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 LiarXiv 2026

TL;DR

Looped Transformers increase effective depth by reusing layers, but previous studies conflated this architectural advantage with extra compute. By using Mixture-of-Experts (MoE) to strictly match FLOPs, parameters, and KV cache budgets, the authors introduce SMELT—a recipe that loops middle layers twice to save up to 18% of training compute while significantly boosting downstream performance on structured reasoning and long-context tasks.

What Problem Does This Paper Address?

Looped Transformers repeat a shared block of layers to simulate a deeper network without adding parameters. In theory, this provides deeper sequential reasoning at a fraction of the parameter count. However, a fraction of the parameters is not a fraction of the cost: executing a layer twice means spending twice the per-token FLOPs and storing a larger Key-Value (KV) cache.

Prior work often compared looped models to unlooped models with the same parameter count, giving the looped models an unfair compute advantage. When previous studies did control for FLOPs, they had to shrink the looped model's parameter count, making it unclear whether looping has a true architectural advantage. This paper addresses a fundamental question: Does looping actually provide an inherent architectural benefit when strictly matched for compute, parameters, and memory budgets simultaneously?

Methods

To make a perfectly fair, budget-matched comparison, the authors leverage Mixture-of-Experts (MoE) Transformers, which decouple total parameter capacity from per-token FLOPs.

They introduce a design recipe called SMELT (Sparse MoE Transformer, middle layers Loop Twice):

  1. Layer Selection: Loop only the middle 50% of the layers exactly twice.
  2. FLOP & Parameter Matching: To pay for the extra layer executions without exceeding the FLOP budget, they narrow the hidden dimension ($H$). To recover the lost parameter capacity from a narrower width, they increase the number of experts in the MoE layers.
  3. KV Cache Matching: They adjust the attention head size and Grouped-Query Attention (GQA) ratio to keep the KV cache size identical to the baseline.
  4. Residual Scaling: Within the looped span, each sublayer's residual update is scaled by $1/r$ (where $r=2$ loops) to prevent correlated weight-tied updates from exploding the residual stream.

The authors scale this recipe across four model sizes (up to 54B non-embedding parameters) and fit separate Chinchilla-style scaling laws to map the compute-optimal frontier.

Datasets

  • Training: Pretrained on an internal corpus consuming up to 215B tokens using a Warmup-Stable-Decay (WSD) learning rate schedule.
  • Evaluation:
  • A held-out validation set with 39 individual sources grouped into Code, Math/STEM, Knowledge, Finance, and Web.
  • DCLM Core suite (22 tasks) for downstream accuracy and DCLM Completion (gold-completion micro loss) for free-form generation.
  • MMLU (5-shot) for massive multitask language understanding.

Key Insights and Ideas

  • The Middle Ground Wins: Looping only the middle 50% of layers outperforms looping the entire stack. This confirms that the first and last layers perform highly specialized, non-repetitive roles (like embedding processing and logit generation) that do not benefit from repetition.
  • Two Loops is the Sweet Spot: Going to 3 or 4 loops forces the model to become too narrow ("thin") to stay within the FLOP budget, which severely hurts overall capacity.
  • Vanishing Attention Sinks: Mechanistically, the second pass drastically reduces the "attention sink" effect (where models dump massive attention weight onto the initial BOS token), freeing up attention bandwidth to focus on content-relevant tokens.
  • Refinement, Not Overwriting: The second pass uses similar retrieval coordinates (Queries and Keys stay aligned) but reads different information (Values diverge). This indicates that the second loop acts as a refinement step rather than a completely new computation.

Key Results

  • Compute Savings: SMELT's loss drops faster with compute, saving 6.8% to 18.0% of training FLOPs on the compute-optimal frontier compared to an unlooped baseline.
  • Downstream Amplification: SMELT wins in 96 out of 96 matched pairs on DCLM Completion and 83 out of 96 on DCLM Core. This improvement actually exceeds what the validation loss gap alone would predict.
  • Structured Data & Long Contexts: The advantage is highly pronounced on structured data like Code (showing a 20.4% compute efficiency gain) and scales robustly with longer sample lengths and more in-context learning (ICL) examples.
SMELT Compute-Optimal Frontier and Downstream Accuracy

Limitations and Future Work

  • Scale of Ablations: The architectural design choices (looping 50% of layers, 2 loops) were optimized at the 200M parameter scale; the optimal configuration might shift for multi-billion parameter models.
  • Simple Weight Sharing: The study focuses on strict weight-sharing. Combining SMELT with richer variants like per-visit low-rank adapters (LoRA) or token-level adaptive recursion depths remains an open area for exploration.
  • Wall-Clock Time vs. FLOPs: While the budgets for arithmetic FLOPs, parameters, and KV cache are perfectly matched, serial execution of looped blocks and sparse routing could introduce hardware-level efficiency bottlenecks that require systems-level optimization to close.

Summary updated

BibTeX
@misc{wang2026smelt,
  author = {Shaowen Wang and Ge Zhang and Kairong Luo and Yuhao Wu and Shaofan Liu and Jiaheng Liu and Wenhao Huang and Shen Yan and Jian Li},
  title = {{SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers}},
  year = {2026},
  eprint = {2609.01343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.01343},
}
Figure