Introduction
Mixture of Experts (MoE) architectures have become the standard for scaling Large Language Models (LLMs), enabling massive capacity without a linear increase in inference costs. While models like Mixtral and GPT-4 have popularized this approach, many fundamental design choices—such as routing granularity and gating strategies—are often based on convention rather than empirical evidence. This study provides a systematic ablation of MoE design choices to understand how they influence model performance and expert behavior.
Experimental Methodology
The researchers utilized a GPT2-small (124M) backbone, replacing standard feedforward layers with MoE layers. The study investigated several key variables:
- Routing Unit: Comparing Token-level (individual word fragments) vs. Sequence-level (entire prompts) routing.
- Routing Strategy: Evaluating Layer-wise routers (unique to each layer) against Global routers (single decision for all layers).
- Top-K Gating: Testing the impact of activating different numbers of experts ($K$) from the total pool ($N$).
- Router Learning: Comparing learned routers against Frozen (randomly initialized) and Random (re-initialized every iteration) configurations.
Models were trained on Multilingual Wikipedia (17B tokens) and OpenWebText (9B tokens), with evaluations conducted across MMLU, XNLI, and X-Stance benchmarks.
The Specialization Trade-off
A primary finding of the research is the fundamental trade-off between raw performance and expert specialization. While token-level routing consistently achieves the lowest validation perplexity, sequence-level routing induces a unique form of "weak expert specialization."
In sequence-level models, analysis of MMLU tasks revealed that specific experts naturally gravitate toward distinct domains, such as management or global facts. In contrast, token-level routing shows negligible topic-based specialization, suggesting that token-level experts focus more on low-level syntactic or linguistic patterns rather than high-level semantic concepts.
Router Dynamics and Expert Collapse
The study also challenges common assumptions regarding router training. Surprisingly, a Frozen router—one that is randomly initialized and never updated—performs nearly as well as a fully learned router. This indicates that the underlying expert weights and embeddings are sufficiently flexible to adapt to a fixed, random routing map.
Furthermore, the phenomenon of "expert collapse," where a model relies on a small subset of experts, was found to be less detrimental than previously thought. Even when collapse occurred, validation perplexity remained stable, suggesting the model effectively learns to maximize the utility of fewer parameters.
Key Results and Performance
- Performance Leader: The Token-level Layer-wise Top-2 configuration emerged as the most effective, achieving a validation perplexity of 9.907 on MultiWiki, significantly outperforming dense baselines of equivalent parameter counts.
- The Sequence Gap: Sequence-level routing generally lagged behind token-level routing in raw perplexity (e.g., 10.667 vs. 9.907 on MultiWiki). However, sequence-level routing scales better when the number of activated experts ($K$) is increased.
- Cross-lingual Behavior: In multilingual settings, routers did not group experts by language. Instead, they shared concepts across linguistically similar groups, indicating that semantic content is the primary driver of routing decisions.
Conclusion and Future Directions
While token-level routing remains the superior choice for raw predictive performance, sequence-level routing offers a path toward more interpretable, specialized expert systems. The finding that routers do not require complex learning to be effective opens new avenues for simplifying MoE architectures. Future research may focus on hybrid routing strategies that combine the performance of token-level units with the semantic specialization observed at the sequence level.
Summary updated