跳到正文
arXiv cs.AI· Hung-Hsuan Chen·· 10 小时前AI 评分46

深度循环 Transformer 实现省内存的隐式思维链推理:思考更深而非更长

Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization

AI 导读

arXiv 论文提出一种深度循环 Transformer,通过共享权重块的迭代将计算深度与参数量解耦,在 20+ 个思考步骤下不生成 token、峰值推理内存不变、延迟仅线性增长。

正文 · 原文

View PDF HTML (experimental)

Abstract:Standard Transformers have a fixed computational depth, limiting their ability to generalize to tasks that require variable-depth reasoning. The usual remedy, Chain-of-Thought (CoT), spends tokens to reason, inflating the key--value cache, so memory becomes the limiting cost when reasoning is served over large query batches. We study a depth-recurrent Transformer that decouples computational depth from parameter count by iterating a shared-weight block, so that adding reasoning steps leaves peak inference memory unchanged and grows latency only linearly, with no token generation. Three ingredients support the recurrence over 20+ thinking steps: a silent thinking objective that supervises only the final output, LayerScale initialization, and an identity-biased gate that opens a gradient highway across steps. We characterize it on three compositional domains with decreasing structural bias: graph reachability (adjacency masking), nested boolean logic (relative positioning), and unstructured relational text (no structural positional cue). We find a \emph{computational frontier}: accuracy climbs once the thinking-step count meets the task's complexity, reaching near-perfect performance on the two structured tasks and a lower plateau on unstructured text. How it climbs depends on the structural bias---abruptly from chance on the graph task, gradually on the other two. Depth recurrence extrapolates beyond the training range: it succeeds on the graph task where fixed-depth models barely extrapolate, and on the two sequence tasks comes within two points of fixed-depth Transformers that use $4$--$6.4\times$ more parameters. On the graph task, whose adjacency mask makes propagation depth verifiable, intermediate per-step supervision---a standard recipe for deep iterative models---consistently \emph{harms} this extrapolation at widths $d \geq 256$. We release the code for reproducibility.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2603.21676 [cs.LG]
  (or arXiv:2603.21676v3 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2603.21676

arXiv-issued DOI via DataCite

Submission history

From: Hung-Hsuan Chen [view email]
[v1] Mon, 23 Mar 2026 08:06:45 UTC (86 KB)
[v2] Tue, 15 Sep 2026 14:08:32 UTC (57 KB)
[v3] Wed, 25 Nov 2026 13:17:09 UTC (57 KB)

来源:arXiv cs.AI · arxiv.org