T^2MLR: Transformer with Temporal Middle-Layer Recurrence
Ziyang Cai, Xingyu Zhu, Yihe Dong, Yinghui He, Sanjeev Arora
Abstract
Transformer reasoning is limited by autoregressive decoding, which repeat edly compresses rich hidden computation through token space and makes it difficult for intermediate reasoning states to persist across time. We in troduce Transformers with Temporal Middle-Layer Recurrence (T2MLR), a transformers-based latent reasoning architecture that fuses a cached middle layer representation from the previous token directly into an earlier layer of the current token position, enabling abstract intermediate computation to persist across decoding steps with little inference overhead. Across natural-language pretraining and multi-hop reasoning finetuning, T2MLR consistently outperforms data- and parameter-matched Transformer base lines. Moreover, applying recurrence to only a localized middle-layer block (as little as 20% of the network) often outperforms full-layer recurrence. Im portantly, T2MLR does not require pretraining from scratch: retrofitting the recurrent pathway into an existing pretrained 1.7B Transformer and briefly finetuning substantially improves math reasoning, lowering the barrier to practical adoption. These results suggest that effective latent reasoning in Transformers does not require looping over all layers as in previous works, but can instead emerge more strongly from targeted middle-layer recurrence.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
FlyingStart: Learned Cross-Token Warm Starts for Fixed-Point Decoding in Recurrent-Depth Language Models
Shared title terminologycs.CLRunguo Li, Dezhen Lu, Zixiang Ni
Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
Shared title terminologycs.CLXichong Zhang, Xixuan Hao, Zhichen Liu et al.
Sparse-to-Sparse Feature Learning for Cross-Layer Analysis and Steering
Shared title terminologycs.CLMasahiro Kaneko, Ayana Niwa, Timothy Baldwin
Learning from Recurrence: Internalizing Depth-Induced Preferences in Looped Language Models
Shared title terminologycs.CLHui Chen, Joshua Elsdon, Can Goksen
Implementation of Machine Translation for the Uzbek Language Based on Transformer Models
Shared title terminologycs.CLMukhammadjon Musaev, Mannon Ochilov
Reading Between the Layers: Where Representation Quality Lives, and What Geometry Reveals
Shared title terminologycs.CLArnesh Batra, Aniket Khandelwal, Arush Gumber et al.