Summary (Overview)
- Key finding: Looping a trained model (re-applying layers) only pays off for small models (0.8B parameters) when compared against both an identically trained twin (equal parameters) and the best unlooped use of the same inference compute (equal FLOPs).
- Proposed protocol: A two-test evaluation framework— (equal parameters) and (equal FLOPs)—that must both be positive for a loop to be worthwhile.
- Null result at scale: At 4B and 9B parameters, looped models do not beat their unlooped twins, even though benchmarks (AIME, GPQA-Diamond) have ample room for improvement (9B scores up to 13 points higher than 4B).
- Budget forcing matters: A free decoding rule (budget forcing) accomplishes much of what a loop does for small models (finishing unfinished answers), and must be given to both models for fair comparison.
- Practical rule: A loop is only worth its cost under a fixed parameter budget (e.g., on-device models); when the budget can grow, a larger unlooped model is the better choice.
Introduction and Theoretical Foundation
Background and Motivation
A transformer normally passes each token through each layer once. A loop re-applies a block of layers so each token passes through that block multiple times with the same weights. This is attractive because it leaves parameter count, disk size, memory footprint, and training cost unchanged.
The Core Problem
Every generated token pays for the loop. Re-applying of layers makes each token cost about times as much. The same compute could instead buy:
- Longer answers
- Multiple sampled answers
- A move to a larger model (if memory permits)
Key Insight
The authors argue that a loop introduced after training must pass two tests in fixed order:
- Equal parameters test (): Does the loop beat the same model trained identically without it?
- Equal FLOPs test (): Does the loop beat the best unlooped use of the same inference compute?
A loop that fails the first test never reaches the second.
Theoretical Foundation
The inference cost multiplier for a loop is:
The two tests are formally defined as:
where is the looped model, its unlooped twin (same training batches, order, steps, but no loop), and contains the twin at token budgets of 0.5, 1, 1.5, and 2× the default, plus a larger unlooped model where available.
Methodology
Loop Placement
The authors search over candidate spans and score each on held-out reasoning text using perplexity after temperature scaling, which divides each candidate's logits by the temperature that minimizes loss on a validation split. This correction is necessary because post-trained models are over-confident, and many loops lower plain perplexity only by flattening the output distribution.
Model Settings Tested
| Setting | Description |
|---|---|
| Training-free loop | Loop in post-trained Qwen3-8B, and same loop trained via 33M-token LoRA conversion |
| Post-training loops | Qwen3.5 base models (0.8B, 4B, 9B) with three recipes: short FT (100M tokens), LoRA SFT + RL, long FT (400–464M tokens) |
| Anchored Recurrent Depth (ARD) | Trains 4B model to use extra passes with KL anchor keeping one-pass output close to original |
| Continued pretraining | Qwen3.5-0.8B and 4B through the loop for up to 5.2B tokens |
Key Baselines
- Identically trained twin: Same model, same data, same steps, no loop
- Budget forcing: Decoding rule that ends reasoning once a token limit is reached (set 512 tokens before budget), given to both models
- Larger unlooped model: e.g., Qwen3-14B as comparator for looped Qwen3-8B
Benchmarks
Primary: GSM8K and MATH-500. For long fine-tunes and ARD: also AIME 2024/2025 and GPQA-Diamond. Macro accuracy is the unweighted mean of benchmark accuracies.
Empirical Validation / Results
1. Equal Parameters Test (Table 2)
Only the 0.8B loop helps significantly:
- Qwen3.5-0.8B short FT: 44.2% → 48.3% (p < 0.001), ahead in all 4 seeds
- Qwen3.5-4B short FT: 82.7% → 82.3% (p = 0.55), not significant
- Qwen3.5-9B short FT: 86.5% → 85.9% (p = 0.21), not significant
- ARD after post-training: 60.3% → 51.0% (p < 0.001), significantly worse
- Training-free loop (Qwen3-8B): No significant gain on GSM8K or MATH-500
2. Equal FLOPs Test (Table 3)
The 0.8B loop wins at equal FLOPs:
- 0.8B, both + BF: 54.8% → 57.3% (p < 0.001)
- 0.8B, both 3× FT + BF: 60.2% → 64.1% (p < 0.001)
- 4B and 9B: No significant gains at equal FLOPs
- Training-free loop vs. Qwen3-14B: 14B scores significantly higher on MATH-500 (80.2% vs 76.6%, p = 0.01)
3. Budget Forcing Analysis (Table 4)
At 0.8B, budget forcing alone lifts the unlooped model from 44% to 54%, above the looped model without budget forcing (48%). With budget forcing on both models, the loop still leads at equal FLOPs (57.3% vs 54.8%). With 3× fine-tuning data on both, the loop leads by 4 points (64.1% vs 60.1%), with both models finishing almost every GSM8K answer—so the gain is not merely from finishing.
4. Ceiling Analysis (Table 5)
The benchmarks leave ample room for improvement:
| Benchmark | 4B | 9B | Size gap | Loop at 4B | Loop at 9B |
|---|---|---|---|---|---|
| GSM8K | 90.0 | 93.7 | +3.7 | 0.0 | -1.1 |
| MATH-500 | 81.5 | 86.0 | +4.5 | -0.5 | -0.8 |
| AIME 2024 | 49.3 | 61.7 | +12.4 | +0.4 | -2.1 |
| AIME 2025 | 41.1 | 53.8 | +12.7 | +0.5 | -4.6 |
| GPQA-Diamond | 36.5 | 42.9 | +6.4 | -0.3 | +2.0 |
| Macro | 59.7 | 67.6 | +7.9 | 0.0 | -1.3 |
The estimated gain needed for the loop to be worth its compute:
The 95% interval of the 4B loop's effect (±1.1 points) excludes this value.
5. Continued Pretraining and From-Scratch Training
- Continued pretraining (Figure 3): The looped model's loss advantage over its twin crosses zero at ~0.5B tokens, but never reaches the loss of a twin given the same training compute within 5.2B tokens.
- From-scratch training (Table 6): A 113M-parameter looped model reaches loss 3.289 vs. 3.308 for its twin, but a dense model with equal training FLOPs reaches 3.250, and a 16-layer dense model reaches 3.268.
Theoretical and Practical Implications
Why Loops Appear Useful When They Are Not
The authors identify three confounding factors:
- Comparing with the starting model only credits the loop with its extra training and extra compute. The twin and equal-FLOP baselines remove both confounds.
- A free decoding rule (budget forcing) does much of what a loop does for small models—finishing answers. Both models must receive the rule.
- Null results at larger scale are informative only if benchmarks can reveal a gain of the required size. The 4B–9B gap shows they can.
Practical Rule
- A looped 0.8B model keeps the footprint of a 0.8B model but scores 48% vs. 83% for an unlooped 4B model (after the same short fine-tune), which decodes only 1.4× slower per token.
- A loop is only useful under a fixed parameter budget (on-device models, limited training budget). When the budget can grow, a larger model is the better choice.
Cost Measurements
On one H100, the loop slows each generated token by 1.2–1.3× and cuts throughput by about a fifth.
Conclusion
There is no free loop. Re-applying of layers makes every generated token cost times as much, and this cost buys accuracy only for the smallest model tested (0.8B). Useful loops have so far been learned only with large budgets—either during pretraining (hundreds of billions to trillions of tokens) or by converting a model on tens of billions of tokens.
Key Takeaways
- Claims about recurrence should state model size and report both tests, with decoding and training matched on both sides.
- The two-test protocol ( then ) provides a rigorous evaluation framework.
- A null result at larger scale is informative only if benchmarks can reveal a gain of the required size.
Limitations and Future Work
The study tests fixed-depth loops added with modest budgets and a few recipes; conclusions may not hold for other forms of recurrence. Future work aims to understand why the 0.8B model benefits from the loop while the 4B model, with ample room on hard benchmarks, does not.
Related papers
- Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers
Best-of-Depth training, which minimizes loss across all recurrent depths, maximizes solution coverage in looped transformers, outperforming standard objectives on combinatorial tasks and code generation.
- Not All Thinking is Created Equal: Latent Reasoning Discovers a Recurrent Search Algorithm for Depth Generalization
Latent reasoning models discover a generalizable recurrent forward-search algorithm, while token-based methods like CoT rely on local shortcuts that fail out-of-distribution.
- Impossible Code, Barely Changed Score: A Replay Study of Judge-Based Evaluation
A high judge-based coding score can hide severe syntax damage, with invalid Python rising from under 1% to 63-67% while Pass@32 drops only 3 points.