T^2MLR: Transformer with Temporal Middle-Layer Recurrence

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Natural Language Processing · Depth: Expert, extended

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

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

Topics

Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.