arXiv(opens in a new tab)cs.LGSep 2026Cited by 23 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2609.01343

SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers

Shaowen Wang, Ge Zhang, Kairong Luo, Yuhao Wu, Shaofan Liu, Jiaheng Liu, Wenhao Huang, Shen Yan, Jian Li

Abstract

Looped Transformers increase effective depth by iterating a shared block of layers, but most evaluations compare at fixed model size, conflating architectural advantage with extra FLOPs. We study looping on Mixture-of-Experts Transformers while closely matching per-token FLOPs, total non-embedding parameters, and KV cache. Through a series of ablations, we arrive at a recipe we call SMELT (Sparse MoE Transformer, middle layers Loop Twice), which loops the middle half of layers twice while matching the unlooped Baseline on all three budgets. We scale SMELT across four sizes up to 54B non-embedding parameters and fit a separate Chinchilla-style scaling law for each architecture. SMELT's loss drops faster with compute, saving 6.8–18.0% of training FLOPs on the compute-optimal frontier. The advantage transfers to downstream benchmarks beyond what validation loss predicts, is largest on Code, and grows with sample length and the number of in-context examples. Mechanistic analysis shows that the second visit reduces the attention sink and redirects mass toward content-relevant tokens, an inductive bias that may underlie the observed performance gains. These results show that looping can improve Transformers even under budget matching, offering a practical recipe that turns depth reuse into measurable gains.

Date: August 10, 2026

1 Introduction

Looped Transformers increase a model's effective depth by repeating a shared block of layers rather than stacking new ones [18]. The idea has drawn intense recent interest: looped models match or exceed unlooped models several times their size on arithmetic, multi-hop induction, and math [22, 54, 68], and learn algorithmic procedures in context at a fraction of the parameter count [64]. Since effective depth sets how many sequential computation steps each token receives [40, 43], looping promises reasoning capability without additional parameters.

But a fraction of the parameter count is not a fraction of the cost: looping a 12-layer model to 24 executed layers stores half the weights, yet spends roughly a 24-layer model's per-token FLOPs and needs its full KV cache. Prior evaluations often keep the stored parameter count fixed while increasing recurrent depth [22, 47], or emphasize parameter efficiency relative to larger untied models [64, 68]; in either case the reported gains conflate architectural advantage with uncontrolled extra computation. Whether looping has an architectural advantage beyond this extra computation is unknown. Schwethelm et al. [55] control for this: they hold per-token FLOPs fixed for a dense model and find that rr recurrences contribute like r0.46r^{0.46} unique-block equivalents, but fixing FLOPs also shrinks the looped model's unique parameters, so the deficit may reflect parameter loss rather than a flaw in looping itself. A clean answer requires holding three budgets all fixed at once: 1) per-token FLOPs, which set training and inference cost; 2) total parameters, which bound knowledge

Figure

(a) The SMELT recipe.

Figure

(b) Compute-optimal frontier.

Figure

(c) Downstream accuracy.

Figure 1 SMELT overview and main results. (a) The SMELT recipe on a compute-matched MoE Baseline: loop the middle 50% of layers twice, narrow the hidden dimension, raise the expert count to recover total parameters, and scale the looped residuals by 1/2, alongside a smaller attention head size at a higher GQA ratio that holds KV cache nearly unchanged across the extra layer executions. Together they closely match per-token FLOPs, total non-embedding parameters, and KV cache (Section 3). (b) Compute-optimal loss under separate Chinchilla-style scaling fits at compute-equivalent sparsity S≈97%S \approx 97\% (defined in Section 3.1). SMELT's frontier drops faster; at C=1021C = 10^{21} FLOPs it reaches the same loss with 14.7% less compute (Section 4). (c) Downstream accuracy at the 1.6B scale (54B non-embedding parameters, S≈97%S \approx 97\%), over the five DCLM Core categories (Appendix E), abbreviated on the axes as Reading (Comprehension), Knowledge (World Knowledge), Commonsense (Reasoning), Language (Understanding) and Symbolic (Problem Solving), with MMLU on its own axis. Each axis is the unweighted mean accuracy over its tasks. SMELT leads the Baseline on all six axes.

capacity; and 3) KV cache, which limits servable context length.

Mixture-of-Experts Transformers make this budget matching feasible: a looped model can pay for its extra visit by narrowing the hidden dimension, and because MoE decouples total parameters from per-token FLOPs [20, 56], it can recover the lost capacity by raising expert count rather than giving it up. KV cache parity is restored separately by adjusting the head size and GQA ratio. Under this matching, we search the loop design space through three ablations and find three rules: 1) loop the middle half of layers rather than the full stack, 2) give the looped model a larger effective depth-to-width ratio than the Baseline, and 3) loop twice rather than three or four times. Together these lock in a recipe we call SMELT, a Sparse MoE Transformer whose middle layers Loop Twice (Figure 1; Section 3).

We scale the recipe up to 54B non-embedding parameters across four model sizes and four sparsity levels, comparing SMELT against the Baseline at each grid point. SMELT reaches lower loss than the Baseline at every scale and sparsity level. To predict how the advantage evolves at scale, we fit separate Chinchilla-style scaling laws [27] for the two architectures. SMELT's loss drops faster with both compute and data, and the CE Gain increases across the fitted compute range (Section 4).

Beyond aggregate validation loss, we examine downstream benchmarks and per-domain performance. On DCLM [39] and MMLU [24], SMELT outperforms the Baseline in nearly all matched pairs, with an improvement that exceeds what the validation loss gap alone would predict. We also find that among training domains, Code benefits the most. The advantage is further amplified on longer samples and when more in-context demonstrations are available, suggesting that looping becomes more valuable as the input grows richer in retrievable structure (Section 5).

To build intuition for the advantages observed above, we examine what the looped layers compute differently on their second visit. We find that the experts selected and the tokens attended to overlap substantially across the two visits, while the residual updates grow substantially larger and stay aligned, indicating that the second visit amplifies the first rather than overwriting it. Within the attention mechanism, values change more than queries and keys, and the attention sink is broadly reduced, redirecting mass toward content-relevant tokens, which may relate to the observed ICL advantage (Section 6).

Our results show that looping can improve Transformers even under budget matching, with particularly strong gains on structured data and in-context learning tasks. Together with the growing body of work exploring looped language models from complementary angles [22, 47, 54, 55, 68], they suggest that looping is a robust and increasingly well-understood design axis.

References (67)

Cited by (23)