TL;DR
This paper introduces Loop Scaling Laws, the first unified framework to jointly model the scaling behavior of model size, data, recurrence (looping), and sparsity (Mixture-of-Experts). The authors demonstrate that recurrence and sparsity are highly complementary: while sparsity improves active-parameter efficiency, recurrence significantly boosts total-parameter efficiency—especially for reasoning—enabling a looped MoE to match the performance of a non-looped model twice its size.
What Problem Does This Paper Address?
Scaling large language models (LLMs) typically involves increasing both parameter count and training data. To make this more efficient, researchers have turned to two main "axes" of architectural scaling:
- Mixture-of-Experts (MoE): Adds sparsity, increasing total model capacity without increasing the compute required per token.
- Looped Transformers: Introduce recurrence, reusing the same weights across multiple passes to increase computational depth without adding more parameters.
While scaling laws exist for each in isolation, their joint behavior was previously unmodeled. We didn't know if the gains from looping would eventually plateau, or if adding more experts would help sustain those gains over more recurrent passes. This paper fills that gap, providing a principled way to design "Looped MoE" models that balance compute and memory constraints.
Methods
The authors propose a new scaling law centered on a bounded, sparsity-conditional recurrence mapping.
Unlike prior work that modeled the gains from looping as growing indefinitely (linear or power-law), this paper recognizes that weight-sharing leads to diminishing returns. They introduce a mapping for "effective parameters" ($N_{eff}$) that approaches a finite asymptote. Crucially, this asymptote is conditioned on sparsity: as you add more experts, the model can route tokens through different parameter paths in each loop, raising the performance ceiling and delaying saturation.
To validate this, they conducted a massive empirical sweep across:
- Active Parameters ($N_{act}$): 0.3B to 1.0B.
- Training Tokens ($D$): 100B to 500B.
- Expert Count ($E$): 1 to 16.
- Recurrence ($R$): 1 to 8 loops.
They then extended these findings to a practical, trillion-token scale experiment.
Datasets
- Training: A large, open-licensed mixture of web data, math, code, and science.
- Evaluation: A suite of 14 foundational benchmarks across five categories:
- Reasoning: BBH, GSM8K.
- Science: ARC-Challenge/Easy, OpenBookQA.
- Commonsense: HellaSwag, PIQA, SIQA, WinoGrande.
- Reading: BoolQ, DROP.
- Knowledge: MMLU, Natural Questions, TriviaQA.
Key Insights and Ideas
- The Looping Plateau: Increasing recurrence shows sharp initial gains that quickly approach a plateau. Weight-sharing means each additional pass adds less "new" information than the last.
-
Sparsity Sustains Recurrence: In a dense looped model, every pass reuses the same weights. In a looped MoE, the router can send tokens to different experts in different passes. This "expert-path diversity" allows sparsity to lift the asymptotic gain of recurrence, as shown in Figure 3(a).
Figure 3(a) illustrates how sparsity (m) lifts the asymptotic gain from recurrence. -
Complementary Strengths: Sparsity is a powerhouse for active-parameter efficiency (~3x gain), while recurrence is particularly potent for reasoning tasks, yielding ~2x total-parameter efficiency.
- Test-Time Scaling: Because the model is looped, it can unlock "on-demand" scaling. You can choose to run more loops at inference time for difficult reasoning tasks to boost performance without retraining.
Key Results
-
Superior Prediction: The new bounded law predicts held-out loss significantly more accurately than prior linear or power-law models, which tend to be overly optimistic about infinite looping gains.
Figure 2(b) shows how the bounded law captures the loss plateau better than linear or power-law mappings. -
2x Parameter Efficiency: At the trillion-token scale, a looped MoE (1.3B total parameters, 0.3B active) matched the reasoning performance of a non-looped MoE that was more than twice its size (2.9B total, 0.6B active).
- Optimal Design: The laws provide a "recipe" for model design. For example, under tight memory constraints, the law favors higher recurrence; with more memory, it favors greater sparsity.
Limitations and Future Work
- Looping Strategy: The study focused on "middle-block" looping (reusing middle layers while keeping the first and last layers unique). Other strategies, like looping the entire model or single layers, remain unexplored.
- Memory Overhead: While the paper considers weight memory, it does not explicitly model the memory costs of the KV cache or other runtime states, which are critical for deployment.
- Dynamic Recurrence: The authors suggest that future work could explore "early-exit" gating, where the model automatically decides to stop looping for "easy" tokens, further saving compute.
Summary updated