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—Δparam\Delta_{\text{param}} (equal parameters) and ΔFLOP\Delta_{\text{FLOP}} (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 mm of NN layers makes each token cost about (N+m)/N(N+m)/N 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:

  1. Equal parameters test (Δparam\Delta_{\text{param}}): Does the loop beat the same model trained identically without it?
  2. Equal FLOPs test (ΔFLOP\Delta_{\text{FLOP}}): 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:

c=N+mN.(1)c = \frac{N + m}{N}.\tag{1}

The two tests are formally defined as:

Δparam=Acc⁡(L)−Acc⁡(U),(2)\Delta_{\text{param}} = \operatorname{Acc}(L) - \operatorname{Acc}(U),\tag{2} ΔFLOP=Acc⁡(L)−max⁡e∈U, cost(e)≤cost(L)Acc⁡(e),(3)\Delta_{\mathrm{FLOP}} = \operatorname{Acc}(L) - \max_{e \in \mathcal{U}, \text{ cost}(e) \leq \text{cost}(L)} \operatorname{Acc}(e),\tag{3}

where LL is the looped model, UU its unlooped twin (same training batches, order, steps, but no loop), and U\mathcal{U} 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

SettingDescription
Training-free loopLoop in post-trained Qwen3-8B, and same loop trained via 33M-token LoRA conversion
Post-training loopsQwen3.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 pretrainingQwen3.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:

Benchmark4B9BSize gapLoop at 4BLoop at 9B
GSM8K90.093.7+3.70.0-1.1
MATH-50081.586.0+4.5-0.5-0.8
AIME 202449.361.7+12.4+0.4-2.1
AIME 202541.153.8+12.7+0.5-4.6
GPQA-Diamond36.542.9+6.4-0.3+2.0
Macro59.767.6+7.90.0-1.3

The estimated gain needed for the loop to be worth its compute:

Δ⋆≈log⁡clog⁡(P9B/P4B)(Acc9B−Acc4B)=log⁡1.29log⁡2.25×7.9≈2.5 points,(4)\Delta^{\star} \approx \frac{\log c}{\log (P_{9\mathrm{B}} / P_{4\mathrm{B}})} (\mathrm{Acc}_{9\mathrm{B}} - \mathrm{Acc}_{4\mathrm{B}}) = \frac{\log 1.29}{\log 2.25} \times 7.9 \approx 2.5 \text{ points},\tag{4}

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:

  1. 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.
  2. A free decoding rule (budget forcing) does much of what a loop does for small models—finishing answers. Both models must receive the rule.
  3. 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 mm of NN layers makes every generated token cost (N+m)/N(N+m)/N 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

  1. Claims about recurrence should state model size and report both tests, with decoding and training matched on both sides.
  2. The two-test protocol (Δparam\Delta_{\text{param}} then ΔFLOP\Delta_{\text{FLOP}}) provides a rigorous evaluation framework.
  3. 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