HyperAIHyperAI

Command Palette

Search for a command to run...

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 옵티마이저 하에서는 사라진다. 둘째, 예산 일치 조건을 넘어서, 고정된 매개변수에서 계산량을 추가하여 재방문을 평가했다. 한 번의 추가 방문은 전문가 수를 두 배로 늘리는 것보다 더 큰 성능 향상을 얻었다. 그러나 재방문 없이 동일한 매개변수와 계산량에서 더 깊은 표준 MoE는 Muon 하에서 그 성능 향상의 90.2%를 달성했다. 전반적으로 성능 향상은 네트워크 형태, 옵티마이저, 추가된 계산량에서 비롯되며, 이는 표준 MoE가 채택할 수 있는 요소들이다. 이에 따라 우리는 루프형 아키텍처 평가를 위한 더 강력한 MoE 기준선으로 LoopTitan-Base를 제안한다. Muon 하에서 이 모델은 재방문이나 잔차 스케일 없이 최신 루프형 레시피와 동등한 성능을 달성한다. 우리는 예산 일치 루프형 MoE 연구를 위한 인프라 LoopTitan을 오픈소스로 공개하고, LoopTitan-Base와 재방문 미적용 대조군을 포함한 17개의 사전학습 모델을 공개한다. 전체 실험 기록은 GitHub 이슈로 공개되어 있으며, 예측은 사전 등록되었고 전체 탐색 이력이 보존되어 있다. 이는 후속 연구의 기반을 마련하는 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)),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.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp