T^2MLR: Transformer with Temporal Middle-Layer Recurrence
Summary
T2MLR (Transformers with Temporal Middle-Layer Recurrence) is a novel architecture designed to enhance Transformer reasoning by allowing abstract intermediate computation to persist across decoding steps. It achieves this by fusing a cached middle-layer representation from the previous token directly into an earlier layer of the current token, incurring minimal inference overhead (at most ~8% per-token). T2MLR consistently outperforms parameter- and data-matched Transformer baselines in natural-language pretraining and multi-hop reasoning finetuning. Notably, applying recurrence to a localized middle-layer block (as little as 20% of the network) often yields better results than full-layer recurrence. The architecture can also be retrofitted into existing pretrained 1.7B Transformers, improving math reasoning (e.g., GSM8K accuracy from 35.8 to 39.9 and MATH500 from 12.8 to 18.0) with brief finetuning, significantly lowering adoption barriers.
Key takeaway
For AI Engineers and ML Scientists developing reasoning-intensive LLMs, T2MLR offers a practical architectural upgrade. Its ability to retrofit into existing 1.7B pretrained models and significantly boost math reasoning (e.g., GSM8K, MATH500) with minimal inference overhead (~8%) means you can enhance model capabilities without costly pretraining from scratch. Consider implementing targeted middle-layer recurrence to improve latent reasoning and state tracking in your models.
Key insights
T2MLR enhances Transformer reasoning by enabling abstract middle-layer computation to persist across decoding steps with low inference overhead.
Principles
- Middle-layer recurrence often outperforms full-layer recurrence for reasoning tasks.
- Targeted recurrence at abstract processing layers is key for effective latent reasoning.
Method
T2MLR injects a cached deeper-layer representation from the previous token into an earlier layer of the current token via a gated recurrent pathway, trained with approximate temporal-parallel Jacobi iterations.
In practice
- Retrofit T2MLR into existing pretrained models for substantial reasoning gains.
- Focus recurrence on middle layers (e.g., 20% of network) for optimal performance.
Topics
- Transformer Architecture
- Latent Reasoning
- Recurrent Neural Networks
- Language Models
- Multi-hop Reasoning
- Model Retrofitting
Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.