HyperAIHyperAI

Command Palette

Search for a command to run...

LoopTitan : qu'apporte réellement la revisite des paramètres à un mélange d'experts ?

Zichen Tian Yudong Lu Xuansheng Wu Na Zou Xia Hu Guanchu Wang Qianru Sun

Résumé

Les architectures de mélange d'experts bouclées (MoE) revisitent les paramètres des couches à travers la profondeur. Cette conception augmente la profondeur effective sans ajouter de paramètres. Des études récentes sur les MoE bouclés font état de gains substantiels par rapport au MoE standard à budgets égaux (paramètres, FLOPs et cache KV). Cependant, les gains rapportés confondent encore la revisite des paramètres avec d'autres choix de conception, tels que la forme du réseau et l'échelle résiduelle. Nous posons la question suivante : qu'apporte en soi la revisite des paramètres ? À l'aide de contrôles appariés sans revisite, nous constatons que la revisite des paramètres n'apporte presque rien en elle-même. Nous soutenons que la revisite n'offre qu'une liberté dont un MoE dispose déjà, à savoir échanger des experts contre de la profondeur (plus de couches, moins d'experts chacune) à paramètres fixes. Premièrement, à budgets égaux, nous décomposons la recette bouclée de pointe en choix de conception clés, la revisite venant en dernier. Un contrôle sans revisite conserve tout le gain. La majeure partie du gain provient de la forme du réseau (un empilement plus profond et plus étroit avec des experts plus fins), le reste de l'échelle résiduelle. Nous prouvons que cette échelle agit comme un taux d'apprentissage plus faible sur les couches revisitées. Cela aide sous les pas de couche inégaux d'AdamW, mais disparaît sous l'optimiseur Muon, qui les maintient presque égaux. Deuxièmement, au-delà des budgets égaux, nous évaluons la revisite en ajoutant du calcul à paramètres fixes. Une visite supplémentaire apporte plus qu'un doublement des experts. Pourtant, sans revisite, un MoE standard plus profond à paramètres et calcul égaux obtient 90,2 % de ce gain sous Muon. Globalement, les gains proviennent de la forme du réseau, de l'optimiseur et du calcul ajouté, qu'un MoE standard peut adopter. En conséquence, nous proposons LoopTitan-Base comme référence MoE plus solide pour évaluer les architectures bouclées. Sous Muon, il égale la recette bouclée de pointe sans revisite ni échelle résiduelle. Nous ouvrons notre infrastructure LoopTitan pour la recherche sur les MoE bouclés à budget égal et publions 17 modèles préentraînés (dont LoopTitan-Base et le contrôle sans revisite). Notre journal d'expérimentation complet est public sous forme de tickets GitHub, avec des prédictions préenregistrées et l'historique complet d'exploration conservé. Ceci est notre rapport technique de phase 1, qui pose les bases d'études ultérieures.

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)),h \leftarrow h + a \operatorname{Attn}\left(\operatorname{Norm}(h)\right), \qquad h \leftarrow h + a \operatorname{MoE}\left(\operatorname{Norm}(h)\right),h←h+aAttn(Norm(h)),h←h+aMoE(Norm(h)),

where the default residual scale is a=1a=1a=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/2a=1/2a=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>0a>0a>0, training with residual scale aaa and output projection initialization W0W_0W0​, learning rate ηt\eta_tηt​, and decoupled weight-decay coefficient λ\lambdaλ gives the same network function as training with residual scale 111, initialization aW0a W_0aW0​, learning rate aηta \eta_taηt​, and weight-decay coefficient λ/a\lambda/aλ/a:

(a;W0,ηt,λ)  ⟺  (1;aW0,aηt,λ/a).\left(a; W_0, \eta_t, \lambda\right) \iff \left(1; a W_0, a \eta_t, \lambda/a\right).(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−31.7 \times 10^{-3}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.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp