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

arXiv:2603.21676 First posted 2026-03-23 v3 Cited by 3
Cite this paper ×
BibTeX
@misc{chen2026thinking,
  title = {Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization},
  author = {Hung-Hsuan Chen},
  year = {2026},
  eprint = {2603.21676},
  archivePrefix = {arXiv},
  primaryClass = {cs.LG},
  url = {https://arxiv.org/abs/2603.21676}
}
APA
Chen, H.-H. (2026). Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2603.21676
GB/T 7714
CHEN HH. Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization[EB/OL]. (2026-03-23)[2026-11-29]. https://arxiv.org/abs/2603.21676.

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 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.4x 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 harms this extrapolation at widths d >= 256. We release the code for reproducibility.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!