AI
New Transformer Design Scales Reasoning Steps Without Inflating Memory or Parameters
Researchers introduce a depth-recurrent Transformer that allows models to perform variable-depth reasoning by reusing the same layer block, maintaining constant inference memory while extending thinking capabilities.
Traditional Transformers process information through a fixed number of layers, which constrains their capacity to tackle problems requiring varying amounts of internal reasoning. When researchers extend reasoning through techniques like Chain-of-Thought prompting, they generate intermediate text tokens that expand the key-value cache, making memory the bottleneck during deployment at scale.
A team of researchers has proposed an alternative: a depth-recurrent Transformer that separates computational depth from the model's total parameters by repeatedly applying the same shared-weight block. This approach lets the model add reasoning iterations without inflating peak memory usage or generating extra tokens—only linear growth in latency results.
The Architecture#
The depth-recurrent design incorporates three key components that stabilize iteration over 20+ thinking steps:
- Silent thinking objective: Only the final output receives direct supervision, allowing intermediate steps to develop reasoning implicitly
- LayerScale initialization: Careful weight initialization that supports stable recurrence
- Identity-biased gating: A learned gate that creates a gradient pathway across reasoning steps, preventing vanishing gradients
Testing on Compositional Tasks#
The researchers evaluated the approach on three domains with decreasing structural clarity:
- Graph reachability: Rigid adjacency masking that makes reasoning paths explicit
- Nested boolean logic: Relies on relative positioning of symbols
- Unstructured relational text: No predefined structural hints
A clear computational frontier emerged: accuracy improves only once reasoning steps meet or exceed the inherent complexity of the task. The model achieves near-perfect performance on the two structured problems, while plateauing at a lower level on unstructured text.
Extrapolation and Generalization#
The model generalizes beyond its training range on compositional tasks where fixed-depth Transformers typically fail, particularly on the graph reachability benchmark. On sequence-based tasks, the depth-recurrent variant comes within two percentage points of fixed-depth models while using 4–6.4× fewer parameters.

