Summary (Overview)
- This paper provides a rigorous mathematical analysis of softmax routing dynamics in mixture-of-experts (MoE) models, focusing on three key questions: which simplex face is selected during routing concentration, why concentration persists with trainable experts, and what determines recovery time for suppressed experts.
- The authors establish a stationary-loss barrier theorem showing that fixed-expert routing converges to the optimal projection of the target onto the expert convex hull, with the selected face determined by loss-level thresholds.
- For the common-target square-loss model with trainable experts, they prove that slow expert adaptation tracks fixed-expert dynamics on finite horizons, while every fixed positive adaptation rate yields an interior routing limit—reconciling transient concentration with long-time interior convergence.
- The main recovery result provides an exact normal-velocity decomposition separating complementary-expert covariance from relative gradient advantage, yielding recovery times of for and for .
- Paired Transformer-MoE experiments confirm that removing a class-conditional router-gradient contrast delays confirmed recovery and reduces accumulated log-odds on fixed tokens under both standard and capacity-constrained dispatch.
Introduction and Theoretical Foundation
Sparse mixture-of-experts (MoE) models increase capacity by activating only a subset of expert subnetworks per input, enabling conditional computation at scale [12, 13, 23, 36]. During training, self-reinforcing routing preferences can concentrate assignments on a few experts—a form of routing collapse. The paper studies routing concentration as small pre-dispatch probability mass outside a proper coordinate face of the simplex .
The theoretical foundation rests on the geometry of softmax gradient flow. For a routing vector , the softmax Jacobian is:
The Euclidean logit-gradient flow and its probability-space form are:
where is the probability gradient of the half-loss. At , the -th row of vanishes, creating boundary degeneracy—normal probability motion vanishes as under bounded gradient signals. This degeneracy is a property of the vector field, while concentration describes the routing state.
The paper addresses three questions:
- Which simplex face is selected as routing concentrates?
- Why can concentration persist when experts are trainable?
- What determines the time required for a suppressed expert to recover?
Methodology
Problem Setup
For experts with outputs stacked as rows of , and common target , the routed output is with square loss:
The half-loss gradients are:
where . The coupled dynamics with expert-to-router learning-rate ratio are:
Key Theoretical Tools
-
Stationary-loss barrier: For each nonempty support set , define the convex hull , its projection , and loss level . The barrier separates optimal from suboptimal stationary supports.
-
Normal-velocity decomposition (Proposition 5.1): For suppressed probability , with conditional probability vector on the complementary face:
where , with the weighted covariance and the relative gradient advantage.
- Discrete log-odds identity (Proposition 6.2): For arbitrary logit increments :
where .
Empirical Validation / Results
Face Selection (Theorem 3.1)
For fixed experts, if a trajectory enters the strict sublevel below the lowest suboptimal stationary loss , then:
where and is the set of routing vectors representing . The outside-face mass satisfies .
Table 1: Fixed-expert face selection (measured at )
| Geometry | Barrier gap | Entry time | Outside mass (×10⁻³) | Projection error (×10⁻³) |
|---|---|---|---|---|
| Triangle | 0.1225 | 5.38 | 1.62 | 1.64 |
| Pentagon edge | 0.3360 | 18.88 | 1.08 | 1.22 |
| Redundant hexagon face | 0.0400 | 91.78 | 1.53 | 1.59 |
| Cube bottom facet | 0.4880 | 26.60 | 2.51 | 2.51 |
| Cube boundary control | 0.4880 | — | 320 | 482 |
Expert Adaptation (Theorems 4.1–4.2)
The finite-horizon slow-expert approximation gives:
For every fixed , the joint flow converges to an interior routing vector with explicit tails:
with probability floor:
Recovery-Time Scaling (Theorem 5.2)
Under positive two-sided power bounds along the recovery path:
For two experts with advantage bounded above and away from zero:
| Flow type | Recovery time |
|---|---|
| Squared-Jacobian | (inverse-probability) |
| Single-Jacobian | (logarithmic) |
| Euclidean projected | (bounded) |
Transformer-MoE Interventions
Table 2: Effect of router-gradient projection on restricted mean time to confirmed recovery (through 1,024 steps)
| Dispatch | Control | Projection | RMST difference (95% CI) | Sign-test p |
|---|---|---|---|---|
| No drop | 796.25 | 840.50 | +44.25 [31.25, 57.50] | |
| Capacity 1.25 | 810.50 | 869.50 | +59.00 [39.50, 81.00] |
Table 3: Log-odds response of initially subthreshold tokens at step 1,024
| Dispatch | Cumulative log-odds difference (95% CI) | Difference in fraction meeting threshold (pp; 95% CI) |
|---|---|---|
| No drop | -0.194 [-0.252, -0.133] | -1.06 [-1.64, -0.54] |
| Capacity 1.25 | -0.228 [-0.304, -0.140] | -2.28 [-3.71, -0.82] |
Theoretical and Practical Implications
Theoretical Contributions
-
Face selection mechanism: The stationary-loss barrier provides a complete characterization of which simplex face attracts routing dynamics, connecting convex projection theory with gradient-flow dissipation.
-
Two-timescale resolution: The paper resolves an apparent paradox—slow expert adaptation preserves finite-horizon concentration toward faces, while every fixed positive rate ensures interior long-time limits. This reconciles transient collapse with asymptotic interior behavior.
-
Recovery-time classification: The normal-velocity decomposition provides a unified framework for understanding how boundary degeneracy ( factor), optimization geometry ( factor), and gradient structure () jointly determine recovery times.
-
Discrete-time exactness: The log-odds identity (6.2) holds for arbitrary optimizer increments, making it applicable to real neural network training with AdamW, clipping, and other discrete update rules.
Practical Implications
- Load-balancing losses encourage balanced aggregate expert use, but individual inputs can concentrate differently while maintaining aggregate balance—the paper's analysis applies at the individual-input level.
- Router-gradient interventions can systematically delay or accelerate recovery; removing class-conditional contrasts measurably slows recovery in real Transformer-MoE training.
- Recovery time scales inform training schedules: if a suppressed expert requires steps to recover, early intervention (before suppression becomes severe) is critical.
Conclusion
The paper provides a comprehensive mathematical framework for understanding routing collapse and recovery in MoE models. Key takeaways:
-
Fixed experts: A stationary-loss barrier identifies the selected simplex face, with geometric bounds controlling outside-face mass and entry times.
-
Trainable experts: Slow adaptation tracks fixed-expert dynamics on finite horizons, but every fixed positive rate yields interior convergence—concentration is transient for the common-target square-loss model.
-
Recovery dynamics: The normal-velocity decomposition separates covariance from gradient advantage, with the order of vanishing of determining logarithmic vs. power-law recovery times.
-
Neural validation: Removing class-conditional router-gradient contrasts delays confirmed recovery and reduces accumulated log-odds on fixed tokens, confirming the theoretical predictions in real Transformer-MoE training.
Future directions include estimating recovery coefficients in naturally evolving systems, testing predictions on new trajectories, and exploring independent evaluation inputs with norm-matched gradient controls to further assess how neural responses transfer across inputs and depend on gradient direction.
Related papers
- Loopback Transformer: Towards a Unified View of Residual Looped Transformers
The Loopback Transformer stores block updates separately with decay-bounded attention, beating standard Transformers with 40-75% of their parameters.
- Iterated Narrow Networks: Turing Completeness at Width 4 on Convex Input Spaces and the Complexity of Verification
A single width-4 iterated ReLU network can simulate any Turing machine on convex inputs, making verification NP-complete, NEXP-complete, or undecidable depending on the time bound.
- Dory1.0-4B: A Looped Normalized-GPT
Dory1.0-4B, a looped 4B model, outperforms models up to 9x larger by scaling compute per token in latent space rather than generating longer outputs.