Rethinking Routing Exploration in Modern Mixture-of-Experts
Summary (Overview)
-
Identifies a fundamental exploration dilemma in modern Mixture-of-Experts (MoE) architectures that combine fine-grained expert segmentation with shared experts: the combinatorially enlarged routing space demands more exploration, while shared experts simultaneously weaken routing exploration by dominating learned token representations.
-
Provides empirical evidence across four model scales (100M to 2.4B parameters) showing that shared-expert MoEs suffer from three concrete inefficiencies: eroded benefits of shared experts as increases, diminished expressive gains from larger (even negative gains at some scales), and slower routing specialization.
-
Proposes MirrorMoE, a conceptually simple pretraining approach that adaptively shrinks the exploration space through token-adaptive suppression of unnecessary experts via mirror routing (sign negation of routing logits) combined with mirror aggregation using standard routing probabilities.
-
Achieves consistent improvements: On the 2.4B model, MirrorMoE improves pretraining perplexity by 0.67 points and downstream performance by 1.64 points on average across six commonsense reasoning tasks, while restoring the performance gains from increasing .
-
Theoretically characterizes adaptivity through sufficient conditions for both expert suppression (Proposition 3.2) and expert preservation (Proposition 3.3), establishing MirrorMoE's token-adaptive behavior.
Introduction and Theoretical Foundation
Background
Mixture-of-experts (MoE) models have become instrumental in scaling large language models (LLMs) to trillions of parameters. MoEs employ sparse conditional computation, where each token activates only a subset of experts. During pretraining, MoEs can outperform dense counterparts under matched total parameter counts, compute, and data budgets; at inference, sparse activation allows computational cost to grow sublinearly with total parameters.
Two Key Architectural Trends
Modern MoE architectures increasingly combine two design choices:
-
Fine-grained expert segmentation: Using larger numbers of total and activated experts (e.g., preferred over at the same activation ratio). This yields combinatorially richer routing spaces: the number of expert subsets increases from 8 when to with .
-
Shared experts: Activated for every token, these capture common knowledge that would otherwise be learned redundantly by routed experts, allowing routed experts to devote more capacity to specialization.
The Exploration Dilemma
The paper identifies a fundamental tension between these two trends:
-
Fine-grained segmentation demands more exploration: Realizing the expressive potential requires searching a combinatorially larger routing space within each MoE layer.
-
Shared experts weaken exploration: Shared experts dominate learned token representations, leaving routed experts with less influence on layer output. Even activating different routed experts leads to limited variation in learned features, making alternative routes harder to distinguish.
MoE Formulation
For a token representation entering the -th MoE layer, the router produces a probability distribution over routed experts:
The learned token representation combines shared and routed expert outputs:
where renormalizes weights (or as in DeepSeek-MoE and Qwen1.5-MoE).
Methodology
Diagnostic Analysis of the Exploration Dilemma
The paper employs three complementary metrics to diagnose the exploration dilemma:
1. Expert ablation: Zeroing out each expert's output and measuring perplexity change . Shared experts show substantially larger perplexity increases when ablated, demonstrating their disproportionate importance.
2. Routing criticality: Replacing the learned router with uniform random routing and measuring relative perplexity increase . Shared-expert MoEs show much smaller increases, indicating less dependence on learned routing.
3. Variance metrics:
- Expert variance: Measures how much the layer output varies when different experts are activated:
- Router variance: Measures output variability when routing decisions are sampled from the learned distribution:
MirrorMoE Algorithm
Mirror routing: Activates experts according to a modified routing probability:
The second term is obtained by negating the sign of , favoring experts with smaller logits.
Mirror aggregation: Aggregates selected experts using standard routing probabilities instead of :
This ensures that even when low-logit experts are activated, they contribute minimally and are functionally suppressed.
Practical modifications:
- Cosine annealing of to 0 over training (temporal exploration strategy)
- Modified load-balancing loss:
Effective Experts Definition
This measures how many activated experts contribute substantially to the aggregated representation.
Empirical Validation / Results
Pretraining Performance
| Model (Total-Activated params.) | Experts K/R/S | Depth | Vanilla PPL (↓) | MirrorMoE PPL (↓) | Vanilla iter time (ms) | MirrorMoE iter time (ms) |
|---|---|---|---|---|---|---|
| MoE-100M-A38M | 8/64/2 | 1D + 8S | 54.78 | 51.77 | 7871.3 ± 65.9 | 7844.4 ± 85.6 |
| MoE-498M-A121M | 8/64/2 | 1D + 12S | 28.31 | 27.36 | 13550.0 ± 63.0 | 13426.7 ± 83.3 |
| MoE-625M-A100M | 8/128/2 | 1D + 8S | 28.46 | 27.84 | 9527.5 ± 45.4 | 9462.5 ± 61.2 |
| MoE-2.4B-A270M | 8/128/2 | 1D + 15S | 21.17 | 20.50 | 25711.1 ± 176.2 | 25635.4 ± 109.4 |
MirrorMoE consistently achieves lower perplexity across all model scales. Notably, MoE-498M-A121M has a larger routing space (more layers with sparse routing), and MirrorMoE yields a larger performance gain on this model, confirming that shrinking the routing space is particularly beneficial when the exploration dilemma is more pronounced.
Downstream Performance
| Model | Method | ARC-E | OBQA | HellaSwag | PIQA | BoolQ | SIQA | Avg (↑) |
|---|---|---|---|---|---|---|---|---|
| MoE-100M-A38M | Vanilla | 32.11 | 26.40 | 26.62 | 57.56 | 42.66 | 34.29 | 36.61 |
| MirrorMoE | 34.22 | 26.00 | 25.76 | 58.00 | 42.48 | 34.49 | 36.82 | |
| MoE-498M-A121M | Vanilla | 39.44 | 26.80 | 29.87 | 61.43 | 58.65 | 36.69 | 42.15 |
| MirrorMoE | 41.04 | 27.80 | 30.33 | 64.31 | 59.20 | 36.95 | 43.27 | |
| MoE-625M-A100M | Vanilla | 41.12 | 28.20 | 29.97 | 61.10 | 61.47 | 37.36 | 43.20 |
| MirrorMoE | 41.37 | 29.80 | 30.23 | 62.08 | 61.16 | 36.59 | 43.53 | |
| MoE-2.4B-A270M | Vanilla | 45.37 | 30.00 | 36.63 | 66.59 | 54.50 | 38.33 | 45.23 |
| MirrorMoE | 46.63 | 32.40 | 37.40 | 67.95 | 58.53 | 38.28 | 46.87 |
For the 2.4B model, MirrorMoE improves average downstream performance by 1.64 points.
Key Findings Under Enlarged Routing Space
When varying :
- Standard shared-expert MoEs are outperformed by non-shared counterparts at large
- Increasing from 6 to 10 yields perplexity gains of {2.23, 1.32, 1.08, 0.87} for MoEs without shared experts, but only {0.29, -0.03, 0.58, -0.03} with shared experts (negative at two scales)
- MirrorMoE enables shared-expert models to consistently outperform non-shared MoEs and restores performance gains from increasing
Ablation Studies
| Method | Test PPL (↓) |
|---|---|
| MoE (baseline) | 54.78 |
| Linear scheduled | 54.91 |
| Cosine scheduled | 54.19 |
| MirrorMoE | 51.77 |
Non-adaptive schedules (linear/cosine increase of activated experts) fail to match MirrorMoE's performance, demonstrating the importance of token/layer adaptivity.
Theoretical and Practical Implications
Theoretical Results
Proposition 3.2 (Sufficient condition for expert suppression): For a given token, let (the smallest routing probability) and (the smallest probability among standard top- experts). As , is sufficient for , meaning MirrorMoE activates this expert while functionally suppressing its contribution during aggregation.
Proposition 3.3 (Sufficient condition for expert preservation): Let . If , then (the same experts are activated as standard routing). Moreover, for all , meaning no selected expert is functionally suppressed.
These results establish that MirrorMoE's suppression is token-adaptive: experts are suppressed only when the router is confident (large logit ratios), while uncertain routing regimes preserve all experts.
Practical Implications
-
Alternative interpretation: MirrorMoE can be viewed as tokens adaptively determining their effective number of activated experts—if a token can be learned well with fewer experts, the capacity of remaining experts can be devoted to other tokens.
-
Computational efficiency: MirrorMoE slightly reduces per-iteration training time despite adding a softmax operation, suggesting improved load balance.
-
Architecture guidance: The findings suggest that shared-expert MoEs should either limit or employ exploration-aware training strategies like MirrorMoE to realize the full benefits of fine-grained expert segmentation.
-
Generality: MirrorMoE performs comparably to vanilla training when applied to MoEs without shared experts, confirming that the approach specifically addresses the exploration dilemma induced by shared experts.
Conclusion
This work identifies a critical exploration dilemma in modern MoE architectures that combine fine-grained expert segmentation with shared experts: the enlarged routing space demands greater exploration, while shared experts simultaneously weaken routing exploration by dominating learned representations. This tension prevents the additional expressiveness enabled by fine-grained segmentation from being fully realized and diminishes the benefits of shared experts.
MirrorMoE addresses this dilemma by adaptively shrinking the exploration space to better match the model's exploration capability. Through mirror routing (sign negation of logits) and mirror aggregation (using standard probabilities for weighting), MirrorMoE functionally suppresses unnecessary experts in a token-adaptive manner. The approach consistently improves performance across model scales from 100M to 2.4B parameters, restores the benefits of shared experts, and realizes the expressive gains from larger .
Future direction: The current approach addresses the exploration dilemma by shrinking the exploration space. A promising direction is to improve the routing strategy itself for more efficient exploration, potentially enabling even better utilization of fine-grained expert segmentation in shared-expert MoEs.
Related papers
- AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
AutoCompact trains coding agents to decide when and how to compact context, improving SWE-bench Verified pass rates by 9.2% over the base model.
- WEAVE: Weaving Real-World Code Evolution into Dependency-Structured Tasks for Benchmarking and Training Code Agents
WEAVE turns real multi-PR histories into dependency-structured code agent tasks, improving dependency recovery and training while exposing phantom credit in flat evaluation.
- Monitoring latent reasoning in looped language models
Looped language models' behavior is determined by architecture type: carry loops peak at training depth and collapse under noise, while re-read loops improve with iterations and stay robust.