Manuscript Offprint

arXiv:2610.39442

Softmax Routing Dynamics in Mixture-of-Experts Models: Collapse and Recovery

Shengze Xu, Maolin Deng, Tieyong Zeng

Abstract

Softmax routing in mixture-of-experts models can concentrate probability on a subset of experts, suppressing access to the others. We study how this concentration forms, why it persists, and how suppressed probabilities recover. For fixed experts, a stationary-loss barrier identifies the face supporting the optimal routed output. In a common-target square-loss model with freely trainable expert outputs, slow adaptation tracks fixed-expert dynamics on finite horizons, while every fixed positive adaptation rate yields an interior routing limit. An exact normal-velocity decomposition separates complementary-expert covariance from relative gradient advantage. Under positive two-sided power bounds along recovery paths, uniform over initial masses, the resulting coefficient's order of vanishing gives logarithmic or power-law recovery times. Integrations of constructed fields reproduce these orders. An exact discrete log-odds identity relates neural updates to threshold crossing. In paired Transformer-MoE training, removing a class-conditional router-gradient contrast delays confirmed recovery and reduces accumulated log-odds on fixed tokens, both with and without capacity constraints.

Keywords: mixture of experts, softmax routing, routing collapse, gradient flow, routing recovery

1 Introduction

Sparse mixture-of-experts (MoE) models increase capacity by activating only a subset of expert subnetworks for each input, enabling conditional computation at large scale [12, 13, 23, 36]. A learned router assigns probabilities to experts, while top-k selection and capacity constraints determine the executed assignments. During training, self-reinforcing routing preferences can concentrate assignments on a few experts, a form of routing collapse [9, 36].

We study routing concentration: small pre-dispatch probability mass outside a proper coordinate face. Asymptotic concentration means that this mass tends to zero. Severe concentration suppresses access to some experts for a given input and constitutes the probability-space aspect of routing collapse. Finite logits keep probabilities positive, so finite-time collapse appears as near-boundary concentration. We call the return of a suppressed probability to a prescribed positive threshold recovery.

Load-balancing losses encourage balanced aggregate expert use [13, 36, 47]. Yet individual inputs can concentrate on different experts while maintaining balanced aggregate loads. Routing probabilities also evolve jointly with expert parameters and input representations. Persistent concentration and subsequent reactivation observed during MoE training [35] therefore raise 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?

*Corresponding author: tieyongzeng@bnbu.edu.cn

Near a simplex boundary, a small probability can respond slowly even to a favorable gradient signal. Continuous-time gradient flow on softmax logits makes this effect explicit. For a routing vector pp, let J(p)=diag(p)−pp⊤J(p) = \text{diag}(p) - pp^\top be the softmax Jacobian and gg the probability gradient of the half-loss. Euclidean logit-gradient flow and its probability-space form are

q˙=−J(p)g,p˙=−J(p)2g.\dot{q}=-J(p)g,\qquad\dot{p}=-J(p)^{2}g.

At pj=0p_j = 0, the jjth row of J(p)J(p) vanishes. Under bounded gradient signals, normal probability motion therefore vanishes as pj↓0p_j \downarrow 0; we call this boundary degeneracy. It is a property of the vector field, whereas concentration describes the routing state. The direction and order of normal motion depend on the complementary routing state and gradient field. Related Jacobian structures appear in value-softmax dynamics [37]; here we characterize how this geometry governs routing concentration, persistence, and recovery.

Main results For fixed experts, the optimal routed output is the target's projection onto the expert convex hull. Below the smallest suboptimal stationary loss, every limit point represents this projection and is supported on experts in the minimal hull face containing it. Geometric separation gives bounds on outside-face mass and neighborhood entry times (Section 3).

Expert adaptation introduces a second time scale. As the expert-update rate tends to zero, the joint flow approaches the fixed-expert trajectory on each fixed finite horizon. For every fixed positive rate in the common-target square-loss model with freely trainable outputs, however, residual decay makes the logits converge to finite limits and routing to an interior point. Thus concentration can persist over finite horizons even though the long-time limit is interior (Section 4).

Our main recovery result separates complementary-expert covariance from relative gradient advantage in an exact normal-velocity decomposition (Section 5). For a suppressed probability x=pjx = p_j, it gives x˙=x(1−x)2Γj\dot{x} = x(1 - x)^2 \Gamma_j. The order of vanishing of Γj\Gamma_j governs the recovery time Tθ(ε)T_\theta(\varepsilon) from initial mass ε\varepsilon to a fixed threshold θ\theta. For fixed α⩾0\alpha \geqslant 0, positive two-sided comparisons along the entire recovery path, with constants independent of ε\varepsilon, yield

Γj≍xα⟹Tθ(ε)≍{log⁡(1/ε),α=0,ε−α,α>0,ε↓0.\Gamma_{j}\asymp x^{\alpha}\quad\Longrightarrow\quad T_{\theta}(\varepsilon)\asymp\begin{cases}\log(1/\varepsilon),&\alpha=0,\\ \varepsilon^{-\alpha},&\alpha>0,\end{cases}\qquad\varepsilon\downarrow0.

For two experts under the same advantage signal bounded above and away from zero, squared-Jacobian, single-Jacobian, and Euclidean projected flows yield inverse-probability, logarithmic, and bounded recovery times, respectively.

For input-conditioned routers, an affine separation criterion describes initial routing differences, and an exact discrete log-odds identity relates threshold crossing to individual neural updates (Section 6). Paired Transformer-MoE interventions show that removing a class-conditional router-gradient contrast delays confirmed recovery and reduces accumulated log-odds on fixed tokens, both with and without capacity constraints (Section 7).

Code is available at https://github.com/shengze-xu/softmax-routing-dynamics.

References (40)