Command Palette
Search for a command to run...
LoopTitan: パラメータ再訪はMixture-of-Expertsに何をもたらすのか
LoopTitan: パラメータ再訪はMixture-of-Expertsに何をもたらすのか
Zichen Tian Yudong Lu Xuansheng Wu Na Zou Xia Hu Guanchu Wang Qianru Sun
概要
ループ型Mixture-of-Experts(MoE)アーキテクチャは、深さ方向にわたって層のパラメータを再訪する。この設計は、パラメータを追加することなく実効的な深さを増大させる。近年のループ型MoEの研究は、予算(パラメータ数、FLOPs、KVキャッシュ)を揃えた標準的なMoEと比較して大幅な性能向上を報告している。しかし、報告された向上は、パラメータ再訪と他の設計上の選択(ネットワーク形状や残差スケールなど)が交絡したままである。本研究では、パラメータ再訪そのものが何をもたらすのかを問う。再訪を行わない対照群と比較した結果、パラメータ再訪そのものはほとんど何ももたらさないことが明らかになった。再訪は、MoEがすでに有している自由度、すなわち固定パラメータ数で専門家を深さと交換する(層を増やし、各層の専門家を減らす)自由度を提供するにすぎないと論じる。第一に、予算を揃えた条件で、最先端のループ型レシピを主要な設計選択に分解し、再訪を最後に評価した。再訪を行わない対照群はすべての性能向上を保持した。向上の大部分はネットワーク形状(より深く狭いスタックとより細かい専門家)に由来し、残りは残差スケールに由来する。このスケールが再訪される層に対して実質的に低い学習率として作用することを証明する。これはAdamWの層ごとに不均一なステップサイズの下では有効だが、ステップサイズをほぼ均一に保つMuonオプティマイザの下では効果が消失する。第二に、予算を揃えた条件を超えて、固定パラメータ数で計算量を追加することにより再訪を評価した。1回の追加訪問は、専門家数を2倍にするよりも大きな向上をもたらす。しかし、再訪なしでも、等しいパラメータ数と計算量でより深い標準MoEは、Muonの下でその向上の90.2%を獲得する。総じて、向上はネットワーク形状、オプティマイザ、追加計算量に由来し、これらは標準MoEでも採用可能である。そこで、ループ型アーキテクチャを評価するためのより強力なMoEベースラインとしてLoopTitan-Baseを提案する。Muonの下では、再訪も残差スケールも用いずに最先端のループ型レシピと同等の性能を達成する。予算を揃えたループ型MoE研究のための基盤LoopTitanをオープンソース化し、LoopTitan-Baseと再訪なし対照群を含む17の事前学習済みモデルを公開する。全実験記録はGitHub issuesとして公開され、予測は事前登録され、全探索履歴が保持されている。これは第1段階の技術報告であり、後続研究の基盤を築くものである。
One-sentence Summary
Researchers from Shanghai Artificial Intelligence Laboratory and Singapore Management University introduce LoopTitan, showing that parameter revisit in looped Mixture-of-Experts architectures buys almost nothing once matched controls attribute the gains to deeper, narrower networks, residual scale, Muon optimization, and added compute, and they propose LoopTitan-Base as a stronger baseline with open-sourced infrastructure and 17 pretrained models.
Key Contributions
- Using matched non-revisit controls, the paper decomposes the state-of-the-art looped MoE recipe and shows parameter revisit itself contributes almost nothing; most of the gain comes from a deeper, narrower network shape with finer experts, and the remainder from residual scale. The analysis also shows residual scale acts as a lower learning rate on revisited layers.
- The paper shows residual-scale benefit depends on the optimizer: it helps under AdamW by compensating for uneven layer step sizes but disappears under Muon, which keeps layer step sizes nearly equal. Adding one extra visit at fixed parameters yields more gain than doubling experts, and a deeper standard MoE at equal parameters and compute recovers 90.2% of that gain under Muon.
- The work introduces LoopTitan-Base, a stronger standard MoE baseline that matches the state-of-the-art looped recipe under Muon without parameter revisit or residual scale. It releases the LoopTitan infrastructure with 17 pretrained models and a public experiment record.
Introduction
Mixture-of-Experts (MoE) architectures scale stored parameters while keeping per-token compute nearly constant by activating only a few experts per token. Looped Transformers revisit layer parameters across depth, and recent looped MoE work treats these revisits as an additional scaling axis. However, prior reported gains for looped MoEs confound parameter revisits with accompanying design choices, such as deeper and narrower network shapes, finer expert layouts, and residual scaling, often because budget matching forces those changes and lacks matched non-revisit controls. The authors isolate parameter revisits using matched non-revisit baselines at equal stored parameters, compute, and KV cache, and find that revisiting parameters itself provides almost no benefit. Instead, the gains come from network shape, optimizer choice, and added compute, all of which standard MoEs can adopt. They introduce LoopTitan-Base as a stronger baseline and release the LoopTitan infrastructure with pretrained models for controlled evaluation of looped MoE designs.
Method
The authors build their study on LoopTitan, an open looped-MoE infrastructure that represents every model variant as one configurable architecture. A looped MoE computes its middle layers repeatedly with the same parameters, a design choice the authors call parameter revisit. Each repeated pass is a visit. In contrast, a standard MoE computes each layer once with independent parameters. In both cases, each layer contributes attention and MoE branches to the residual stream:
h←h+aAttn(Norm(h)),h←h+aMoE(Norm(h)),where the default residual scale is a=1. Each branch ends in an output projection. A revisited layer counts toward compute and inference cache at every visit, so revisit saves stored parameters but not training FLOPs or KV cache.
The looped recipe starts from MoE-12, a 12-layer standard MoE of width 1280 with 64 experts of width 432 per layer. To isolate the effect of revisit, the authors match stored parameters, training compute, and inference cache within 5% of the standard MoE. Stored parameters exclude the embedding and output head and are counted once across visits. Compute is measured as training FLOPs per token, and inference cache is measured as KV cache per token. The recipe increases depth by revisiting layers, narrows the model to match compute, and restores stored parameters with finer experts: more experts in total, but each expert smaller. Revisited layers use residual scale a=1/2 to prevent correlated outputs of shared layers from inflating the residual stream.
To separate revisit from the other shape changes, the authors construct a non-revisit control at equal parameters and compute. Applying the recipe to MoE-12 proceeds in five steps, with revisit last. The first two steps produce MoE-18, an 18-layer model of width 1056 with 58 experts of width 384 per layer. The third step uses the recipe's expert layout: six outer layers with 88 experts and twelve middle layers with 44. The fourth step adds residual scaling to the middle layers. The fifth step revisits the middle layers, replacing the twelve middle layers with six 88-expert layers computed twice. The model before this final revisit is the non-revisit control. The looped MoE and the non-revisit control both compute 18 layers of width 1056 with identical attention, expert width, top-8 routing, residual scaling, and training. They differ only in whether middle layers share parameters. The looped MoE reaches depth by revisiting six layers, while the non-revisit control reaches depth by spreading experts over twelve independent middle layers. The loss difference between the looped MoE and the non-revisit control therefore isolates the effect of revisit itself.
The authors further analyze residual scaling and show that it is equivalent to an optimizer setting for the scaled layers' output projections. In the residual update, each branch ends in an output projection without bias or normalization after it. Scaling a branch output therefore scales its output projections. For a>0, training with residual scale a and output projection initialization W0, learning rate ηt, and decoupled weight-decay coefficient λ gives the same network function as training with residual scale 1, initialization aW0, learning rate aηt, and weight-decay coefficient λ/a:
(a;W0,ηt,λ)⟺(1;aW0,aηt,λ/a).This equivalence holds on the same batches when other settings are equal and there is no gradient-norm clipping. It also holds under Muon while its normalization lower bound is not reached, and under AdamW after adjusting the epsilon term. The result implies that residual scaling changes how the scaled output projections are trained, not what the model can represent, and it requires no loop.
As a stronger baseline, the authors define LoopTitan-Base. This model is MoE-18 without loop or residual scaling, trained with Muon at learning rate 1.7×10−3. LoopTitan-Base keeps the recipe's network shape but removes revisit and residual scaling, providing a clean reference for evaluating looped architectures under Muon. The authors release the pretrained models and their LoopTitan configurations.
LoopTitan itself unifies looped-MoE configuration, pre-run budget verification, scalable training, and reproducible release in one codebase. A single model class implements every configuration in the study, including the controls, LoopTitan-Base, and the public looped recipes considered. Before training, LoopTitan computes each configuration's stored parameters, compute, and KV cache. During and after training, a checker compares each run's recorded configuration with its declared design and flags undeclared differences. This infrastructure enables matched-budget comparisons and makes the model-shape changes and revisit effects auditable across all experiments.
Experiment
The experiments isolate parameter revisit with matched-budget controls: a non-revisit control spreads experts over independent layers, and a deeper control matches added compute without shared parameters. Across AdamW and Muon, revisit contributes little beyond noise, while most gains come from the shape change and, under AdamW, residual scaling; switching to Muon alone outperforms the looped recipe. A deeper standard MoE trading experts for depth captures most of an extra visit's gain, and the LoopTitan-Base baseline under Muon matches the looped MoE without revisit, leading to recommendations for non-revisit controls, multiple optimizers, and well-tuned standard baselines.
Across longer training horizons and a larger model, gains over a standard MoE continue to come primarily from reshaping the network into a deeper, narrower stack with finer experts. The non-revisit control matches the looped MoE, and adding parameter revisit itself provides little or no consistent benefit, often falling within noise. This pattern holds under both optimizers and at the larger scale. The looped MoE's total test-loss advantage over a standard MoE is retained by a non-revisit control that has separate parameters per layer. Most of the improvement is explained by the network shape change, while parameter revisit contributes almost nothing and sometimes appears as a small cost within noise.
Across longer training horizons and larger models, most of the test loss improvement over a standard MoE comes from reshaping the network into a deeper and narrower stack with finer experts, while parameter revisit contributes little or no consistent benefit. A non-revisit control with separate parameters per layer matches the looped MoE, and any difference from adding parameter revisit tends to fall within noise or appear as a small cost. This pattern holds under both optimizers and at larger scale.