Coupling Experts and Routers in Mixture-of-Experts via an Auxiliary Loss

Ang Lv, Jin Ma, Yiyuan Ma, Siyuan Qiao

Mixture-of-Experts (MoE) models have become a cornerstone of modern Large Language Models (LLMs) because they save compute by routing each input token to only a few specialized sub-networks (experts) rather than the entire model. However, these models often suffer from a fundamental disconnect: the "router" that assigns tokens to experts doesn't explicitly know what those experts are actually good at.

Ideally, the router should perfectly understand the capabilities of each expert. In reality, traditional MoEs offer no explicit constraints to guarantee this alignment. The router learns blindly via trial and error, often leading to misrouted tokens that interfere with the experts' ability to specialize. Previous attempts to fix this, such as Autonomy-of-Experts (AoE), force the model to calculate activations for all experts for every token to figure out the best match. While effective, this approach scales with the number of tokens (often millions per batch), destroying the computational efficiency that makes MoEs attractive in the first place.

The Expert-Router Coupling (ERC) Loss

To bridge this gap without inflating computational costs, the authors introduce the Expert-Router Coupling (ERC) loss. Instead of evaluating every token against every expert, ERC uses a highly efficient mathematical shortcut based on clustering.

1. Generating Proxy Tokens

The router's weight matrix is treated as a set of cluster centers. The authors take the cluster center for a given expert, add a bounded amount of random noise to it, and treat this perturbed vector as a "proxy token." This proxy token perfectly represents the ideal input for that specific expert.

Generating proxy tokens by perturbing router parameters.

2. Computing Intermediate Activations

Next, they feed these $n$ proxy tokens (where $n$ is the total number of experts) through the first layer of all $n$ experts. This generates an $n \times n$ matrix of intermediate activation norms, representing how strongly each expert reacts to each proxy token.

3. Applying Contrastive Constraints

The ERC loss then enforces two strict contrastive rules on this activation matrix:

  • Expert Specialization: Proxy token $i$ must activate Expert $i$ more strongly than it activates any other expert.
  • Router Faithfulness: Expert $i$ must be activated more strongly by Proxy token $i$ than by any other proxy token.
Contrastive constraints applied to the activation matrix to enforce specialization.

Why this is a breakthrough: Because this loss only calculates interactions between the $n$ proxy tokens and the $n$ experts, its computational complexity is $O(n^2)$. Since the number of experts (e.g., 64 or 256) is microscopic compared to the millions of tokens in a training batch, the overhead is practically non-existent.

Key Insights and Results

Through pre-training MoE-LLMs ranging from 3B to 15B parameters on trillions of tokens, the authors uncovered several critical insights:

  • Vanilla MoEs are surprisingly unspecialized: Visualizing expert parameters reveals that standard MoE experts don't naturally form distinct capability clusters. The ERC loss forces them to do so, resulting in highly specialized experts.
  • The "Goldilocks" zone of specialization: A common assumption in MoE research is that extreme specialization is always better. The authors prove this false. By tuning the ERC loss hyperparameter ($\alpha$), they show a clear trade-off: forcing too much specialization actually degrades downstream performance.
  • Extreme Efficiency: The ERC loss adds a negligible 0.2% to 0.8% overhead to training time, compared to the AoE baseline which requires 1.6x more training hours and 1.3x more memory. Furthermore, because ERC is only an auxiliary objective used during training, it introduces absolutely zero overhead during inference.
  • Performance Gains: The ERC loss consistently improved downstream accuracy across both 3B and 15B parameter scales on challenging benchmarks (including MMLU, ARC-Challenge, HellaSwag, GSM8K, MATH, and BBH), narrowing the performance gap with computationally heavy baselines.

Limitations and Future Work

The primary limitation of the ERC loss is that finding the optimal degree of specialization (the $\alpha$ hyperparameter) remains an empirical exercise. The "perfect" amount of specialization depends heavily on the total number of experts and the number of active experts per token. Future work will need to focus on developing automated ways to evaluate and set this optimal specialization degree dynamically, as well as investigating how ERC interacts with newer architectural tweaks like shared experts.

Summary updated

BibTeX
@inproceedings{lv2026coupling,
  author = {Ang Lv and Jin Ma and Yiyuan Ma and Siyuan Qiao},
  title = {{Coupling Experts and Routers in Mixture-of-Experts via an Auxiliary Loss}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=MpeyjgWbKt},
}
Figure