SMELT:计算匹配的MoE循环Transformer的扩展定律
研究论文 · 2026/09/02
循环Transformer通过迭代共享层块来增加有效深度,但大多数评估在固定模型大小下进行,混淆了架构优势与额外FLOPs。我们研究了在混合专家Transformer上的循环,同时紧密匹配每token FLOPs、总非嵌入参数和KV缓存。通过一系列消融实验,我们提出了一种称为SMELT(稀疏MoE Transformer,中间层循环两次)的方法,该方法在匹配未循环基线所有三个预算的同时,循环中间一半的层两次。我们将SMELT扩展到四种规模,最大达540亿非嵌入参数,并为每种架构拟合了独立的Chinchilla风格缩放定律。SMELT的损失随计算量下降更快,在计算最优前沿节省了6.8%至18.0%的训练FLOPs。这一优势在下游基准测试中超越了验证损失的预测,在代码任务上最大,并随样本长度和上下文示例数量增长。机制分析表明,第二次访问减少了注意力汇聚,并将质量重定向到与内容相关的token,这可能是一种潜在的性能提升归纳偏置。这些结果表明,即使在预算匹配下,循环也能改进Transformer,提供了一种将深度重用转化为可衡量收益的实用方法。
该论文提出了一种实用的循环Transformer方法,在严格匹配计算预算下显著提升性能,并通过机制分析揭示了性能提升的原因,对高效模型设计具有重要参考价值。
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.