Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence

Sean McLeish, Ang Li, John Kirchenbauer, Dayal Singh Kalra, Brian R. Bartoldson +5 more
11/10/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: mcleish7/retrofitting-recurrence (68 stars, Apache-2.0, last commit 2025-11-11). 1 more below.

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.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence

685Shell, PythonNov 9, 202511 months agoApache-2.0
Apache-2.0

Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence

00Shell, PythonJan 22, 202611 months agoApache-2.0

Similar Papers

Cite this paper

@article{mcleish2025teaching,
  title  = {Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence},
  author = {Sean McLeish and Ang Li and John Kirchenbauer and Dayal Singh Kalra and Brian R. Bartoldson and Bhavya Kailkhura and Avi Schwarzschild and Jonas Geiping and Tom Goldstein and Micah Goldblum},
  year   = {2025},
  eprint = {2511.07384},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.07384v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.07384.svg)](https://codeofpaper.com/paper/2511.07384)

Discussion