[Submitted on 23 Mar 2026 (v1), last revised 25 Nov 2026 (this version, v3)]
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.4times$ 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.
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)
