Looped LLM distills its own deeper passes into the shared block: up to 46.2% math gains

Learning from Recurrence: Internalizing Depth-Induced Preferences in Looped Language Models

Hui Chen, Joshua Elsdon, Can Goksen

cs.CL, cs.LG

2026-11-25

A looped OLMo-2-1B trained for one recurrent pass on its own deeper-pass continuations gains up to 46.2% mean relative accuracy on six math benchmarks, beating budget-matched distillation baselines.

What problem this solves

A looped language model applies the same Transformer block to its hidden state repeatedly before emitting each token. Parameter count stays fixed while per-token compute scales with the number of passes, and prior work has shown such models rivaling several-times-larger models in some settings. Two questions stayed open: what do the extra passes actually change in a pretrained LM retrofitted with recurrence, and can that transient benefit be made permanent? The measurement here is blunt. In the mean-depth-4 model, the top-ranked token after four passes matches the one-pass choice at 95.6% of generated positions; when it does change, 99.4% of the replacements already sit in the first-pass top five. Extra recurrence invents no new candidates. It reshuffles probability among the leading ones, and that reshuffling turns out to be a usable training signal.

Method

The retrofit follows existing recipes. The 16 blocks of OLMo-2-1B split into a 7-block prelude, a 4-block shared recurrent core, and a 5-block coda. At every pass the prelude output is concatenated into the current state and projected back down (input injection), so the original input representation stays visible throughout. Mid-training then runs on the Dolmino mixture for 50B tokens, sampling the pass count per step from a Poisson-lognormal distribution whose mean ramps up to a target, giving checkpoints with mean depths of 4, 8, and 32. A non-looped control gets the same data and token budget.

Preference write-back has three steps:

Teacher, training, and inference depths are therefore decoupled. Training through one pass is not a compute shortcut; there is a gradient-level reason for it. With the loss placed after four passes, the gradient reaching the first-pass state has 7.3% of the norm of the direct one-pass gradient and a cosine similarity of 0.009. Under four-pass training, the first and fourth applications of the core account for 5.4% and 59.1% of the summed per-pass gradient norms. Deep paths dilute and redirect the gradient; the shallow path delivers it intact.

Results

Exact match, greedy decoding, mean-depth-4 model:

SettingGSM8KGSM1K
Non-looped control (same data, same budget)44.0539.83
Looped checkpoint, 1 / 4 passes40.86 / 56.1836.93 / 52.40
preference write-back, 1 / 4 passes48.52 / 62.7044.65 / 54.36

Write-back improves 15 of 18 model-by-benchmark comparisons at mean depths, and mean relative gains over the control rise from 26.5-39.9% to 34.9-46.2% across six math benchmarks. The mean-depth-32 model scores only 4.09% in one pass, yet learning through that pass lifts its 32-pass accuracy from 57.01% to 62.09%.

Under a common budget (1,024 GSM8K training questions, about 1.575x10^16 FLOPs), the same looped checkpoint gets 55.04 from gold-answer SFT, 56.71 from GKD, 56.86 from EOPD, 58.30 from DistiLLM-2, and 60.50 from write-back. The 4.32-point gain is more than twice the 2.12 points of DistiLLM-2, the strongest KD alternative.

Single-pass learning beats full-depth learning on the same targets, 62.70 versus 56.86. A pass-by-pass intervention shows the transfer: using the updated block only on passes two through four scores 62.47%, nearly the 62.70% of using it everywhere, while using it only on pass one gives 56.25%. An update learned in one pass carries to later applications of the same operator.

The recipe transfers to five public looped checkpoints: Retro-OLMo goes from 45.87 to 48.60 at 16 passes, Retro-LLaMA from 46.17 to 48.60 at 8, and LoopUS reaches 55.65 in a single pass after write-back, beating its original eight-pass 48.82. Across 17 OLMES tasks the average score moves by less than 0.2 points.

Why it matters

This is a post-training channel for inference-time scaling that needs no reward model and no answer labels: the model teaches itself from its own deeper executions, only 4 blocks are trained, and the compute goes into generating trajectories. Teacher depth can sit below inference depth, which cuts supervision cost; the mean-depth-32 model trains better from 8-pass trajectories than from 32-pass ones (62.85% versus 62.09%). For weight-tied architectures, 'learn once, reuse everywhere' is structural evidence that updates to a shared operator transfer across its repeated applications.

Keep the scale in view: a 1B model, math only, greedy decoding. The 46.2% figure is relative and lifted by low-base benchmarks such as AQuA-RAT, where the control sits near 10%. This is a methods paper, not a leaderboard run.

Limitations

Terms

Source

What people are saying

Related papers

All paper explainers