Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence
Sean McLeish, Ang Li, John Kirchenbauer, Dayal Singh Kalra, Brian R. Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Jonas Geiping, Tom Goldstein, Micah Goldblum
TL;DR
The paper addresses the challenge of decoupling train-time compute from test-time compute in language models by retrofitting depth recurrence onto pretrained transformers. It introduces a prelude–recurrent–coda architecture and a curriculum that gradually increases recurrence depth, enabling deeper reasoning with efficient training. Key contributions include demonstrating pretrained-weight initialization benefits, recurrence scheduling to reduce training cost, and effective data mixtures and healing to preserve language modeling while boosting math reasoning on TinyLlama, OLMo, and Llama models. The results show that depth-recurrent models can achieve higher GSM8K and MATH performance under the same training FLOPs with fewer trainable parameters, highlighting a practical route to scalable, reasoning-focused language models and offering insights for future adaptive-compute architectures.
Abstract
Recent advances in depth-recurrent language models show that recurrence can decouple train-time compute and parameter count from test-time compute. In this work, we study how to convert existing pretrained non-recurrent language models into depth-recurrent models. We find that using a curriculum of recurrences to increase the effective depth of the model over the course of training preserves performance while reducing total computational cost. In our experiments, on mathematics, we observe that converting pretrained models to recurrent ones results in better performance at a given compute budget than simply post-training the original non-recurrent language model.
