TL;DR
Standard language models use billions of parameters just once per token, making them memory-heavy and slow. "Looped" models save memory by reusing the same layers multiple times, but historically they perform worse as they scale up. This paper shows that swapping standard feed-forward layers for sparse Mixture-of-Experts (MoE) layers completely fixes this scaling bottleneck—and as a bonus, makes looped models naturally great at "early exiting" to save inference compute.
What Problem Does This Paper Address?
Modern Transformers are built like assembly lines where every station (layer) has its own unique set of tools (parameters) used exactly once per token. An appealing way to shrink model size is layer looping: taking a smaller stack of layers and running tokens through it multiple times, like a spiral staircase.
The catch? When given the exact same training compute budget, looped models consistently underperform standard Transformers. The authors hypothesize that the culprit is the standard dense feed-forward network (FFN). Because a dense FFN applies the exact same rigid math to every token on every loop, repeating it creates an expressiveness bottleneck. Meanwhile, looping saves memory, not compute—you still do the same number of operations—unless tokens can "exit early" once their predictions are good enough. The authors set out to test whether sparse routing can rescue looped scaling while unlocking cheap early exits.
Methods
To isolate what actually makes looped models tick, the authors run a clean, controlled 2×2 comparison on a 16-effective-layer decoder Transformer backbone:
- Base: 16 unique dense layers.
- Looped: 8 unique dense layers repeated twice ($8 \times 2$).
- MoE: 16 unique sparse layers.
- Looped-MoE: 8 unique sparse layers repeated twice ($8 \times 2$).
In the MoE variants, dense FFNs are replaced with 8 smaller "expert" networks, where a learned router picks the top $k=2$ experts per token.
Two methodological choices keep the study rigorous and affordable:
- IsoFLOP Scaling Laws: Models are compared at matched active parameters (compute per forward pass) across budgets from $5 \times 10^{16}$ to $10^{18}$ FLOPs.
- Extended $\mu$P (Maximal Update Parameterization): Standard $\mu$P lets you tune learning rates on a tiny model and transfer them to wider models for free. Here, the authors extend $\mu$P scaling rules directly to MoE routers, expert weights, and unembedding matrices without messy forward-pass multipliers.
Finally, they test training-free early exiting: at loop boundaries (or intermediate layers for non-looped models), hidden states are projected to the vocabulary. If the output distribution's uncertainty (entropy) is below a threshold, the token exits early, saving the remaining layers' FLOPs.
Datasets
- Pretraining: The 10B-token sample of FineWeb-Edu, tokenized with the GPT-2 tokenizer.
- Evaluation: Downstream zero/few-shot accuracy is measured using the AI2 OLMES benchmark suite (ARC-Easy, ARC-Challenge, CommonsenseQA, HellaSwag, OpenBookQA, PIQA, SIQA, and WinoGrande; BoolQ was excluded from the main average due to high seed variance). No new datasets are introduced.
Key Insights and Ideas
- Dynamic routing gives shared weights "depth": Why does Looped-MoE scale well when dense Looped fails? When a token goes through the exact same physical layer on loop 2, its hidden state has evolved—so the router sends it to different experts! Across most layers, 25–53% of tokens hit completely disjoint expert pairs on their second pass, and only 4–14% get the exact same pair. Weight tying saves memory, while routing divergence restores depth-unique computation. (Curiously, layer 7 is a structural outlier with 37% exact expert overlap, likely stabilizing representations right before the loop boundary.)
- Loop boundaries are natural off-ramps: In a standard 16-layer Transformer, layer 8 is trained solely to build intermediate features—projecting it straight to words yields noisy predictions. In an $8 \times 2$ looped model, the end of loop 1 is physical layer 8, which is the exact same layer trained to produce the final vocabulary output at step 16. Because it's already "output-facing," representations converge much earlier without any special early-exit training!
- Looping tighter improves early exits: Keeping effective depth at 16, shifting from $8 \times 2$ to $4 \times 4$ to $2 \times 8$ (2 layers looped 8 times) steadily improves the compute-saved vs. perplexity curve by offering more frequent, well-formed exit boundaries.
Key Results
- Better scaling and accuracy with fewer weights: Across all compute budgets, Looped-MoE beats the standard dense Base model in test loss (fitting a power-law scaling exponent of $\alpha = 0.077$ vs. Base's $0.076$), whereas dense Looped scales strictly worse. At $10^{18}$ FLOPs, Looped-MoE achieves the highest OLMES average score (37.1%) compared to Base (36.9%), while storing 12% fewer unique parameters (216M vs. 246M).
- Superior early-exit efficiency: Saving 10% of inference FLOPs via entropy-based early exiting, Looped (50.2) and Looped-MoE (51.0) maintain much lower (better) perplexity than Base (55.4) and non-looped MoE (75.7). By layer 8, ~65% of tokens in Looped-MoE have already converged close to their final output distributions, compared to just ~30% in non-looped MoE.
Limitations and Future Work
- Fixed depth during scaling: Because $\mu$P doesn't transfer hyperparameters across changing depths, the main scaling laws hold depth constant at 16 effective layers (with a 32-layer check in the appendix) and scale width. Future work could apply depth-aware parameterizations like CompleteP.
- Model scale: Due to compute limits, models top out at 305M active (711M stored) parameters; the authors plan to validate these scaling trends at 1B and 7B scales.
- Theoretical FLOP savings: Early-exit savings are calculated theoretically as skipped operations rather than wall-clock speedup on an optimized inference engine, where batching dynamic per-token exits can be tricky in practice.
Summary updated