Advancing Expert Specialization for Better MoE

Hongcan Guo, Haolang Lu, Guoshun Nan, Bolun Chu, Jialin Zhuang, Yuan Yang, Wenhao Che, Xinye Cao, Sicong Leng, Qimei Cui, Xudong Jiang

TL;DR

While Mixture-of-Experts (MoE) architectures allow large language models to scale efficiently, standard load-balancing losses inadvertently cause experts to become functionally redundant during fine-tuning. This paper introduces a simple, architecture-free framework that adds orthogonality and variance losses to decouple expert specialization from uniform routing. This approach reduces expert overlap by up to 45% and delivers downstream performance gains of up to 23.79% while maintaining stable load balancing.

What Problem Does This Paper Address?

Mixture-of-Experts (MoE) models scale up model capacity without a proportional increase in compute cost by activating only a subset of "experts" (sub-networks) for any given input token. To ensure all experts are utilized efficiently during large-scale pre-training, researchers typically employ an auxiliary load-balancing loss ($L_{aux}$) that encourages the router to distribute tokens evenly across all experts.

However, the authors identify a critical flaw when transitioning to the post-training (fine-tuning) stage. Because downstream tasks often have narrower, domain-specific data distributions, forcing uniform routing creates a destructive feedback loop:

  1. The router evenly distributes highly specific tokens to mismatched experts.
  2. This introduces overlapping gradients, causing different experts to converge on similar representations (expert homogenization).
  3. As experts lose their distinctiveness, the router receives less variation across expert outputs, leading to increasingly random and uniform token assignments.

This lack of expert specialization severely degrades the model's ability to adapt to complex downstream tasks.

Methods

To break this homogenization loop, the authors propose a gradient-based multi-objective optimization framework. Without altering the underlying MoE architecture, they introduce two new complementary loss functions alongside the standard auxiliary loss:

  1. Expert Specialization via Orthogonality Loss ($L_o$): This objective minimizes the vector projections of different active expert outputs for the same token. By penalizing representational similarity, it forces experts to develop independent, orthogonal functionalities.
  2. Routing Diversification via Variance Loss ($L_v$): This objective maximizes the variance of routing scores across tokens for each expert. It discourages uniform, hesitant routing weights and drives the router to make highly confident, discriminative assignment decisions.

The total balance loss is formulated as: $$L_{balance} = \alpha \cdot L_{aux} + \beta \cdot L_o + \gamma \cdot L_v$$

Gradient-level analysis confirms that these objectives are theoretically compatible and mutually reinforcing: orthogonal expert outputs provide clearer, more discriminative signals to the router, which in turn allows the router to send more specialized data streams back to the experts.

Figure 1: Two core effects of our method. Left — Routing Diversification: Left-Bottom: after training, scores show higher discrimination than the untrained model. Right-Top: expert load variance decrease after training. Right-Bottom: when training, variance increases markedly, yielding more decisive token-to-expert assignments. Right — Expert Specialization: Cluster Separation: clearer per-expert token clusters emerge after training, evidencing specialization. Overlap: baseline exhibits heavy token-assignment overlap across experts, which our method substantially reduces.

Datasets

The framework was evaluated across 11 benchmarks categorized into three core downstream capabilities:

  • Mathematics: GSM8K, MATH500, and Numina.
  • Multi-Domain Tasks: MMLU, MMLU-pro, BBH, GLUE, LiveBench, and GPQA.
  • Code Generation: HumanEval and MBPP.

Models were fine-tuned using high-quality training subsets from Numina, GLUE, and the FLAN collection.

Key Insights and Ideas

  • The Homogenization Loop is Real: Standard load balancing acts as a regularizer that actively harms domain adaptation by blending expert identities together.
  • Decoupling Balance from Specialization: Through mathematical proofs (Lemmata 1 & 2), the authors demonstrate that maximizing routing variance per token and orthogonalizing expert representations do not inherently conflict with maintaining an even load distribution across a batch.
  • Purely Loss-Driven: Unlike prior methods that require complex architectural modifications, capacity constraints, or specialized routing networks, this method achieves specialization purely through loss-level innovation, making it entirely plug-and-play.

Key Results

The authors validated their approach using LoRA-based fine-tuning across three prominent MoE models: DeepSeek-MoE-16B, DeepSeek-V2-Lite, and Moonlight-16B-A3B.

  • Downstream Superiority: The proposed method achieved state-of-the-art (SOTA) results on over 85% of the 33 evaluated task-model combinations, outperforming baselines on 92.42% of all tasks. It yielded relative accuracy improvements of up to 23.79% over classic MoE baselines.
  • Enhanced Specialization Metrics: The joint losses successfully reduced expert representational overlap by up to 45% and boosted routing score variance by more than 150%.
  • Maintained Load Balance: Despite maximizing routing variance, the framework successfully preserved global load balancing, keeping the prediction error (RMSE) under 8.63 across all evaluations.
Ablation experiments across three models showing that combining $L_o$ and $L_v$ yields the largest performance coverage area across benchmarks.

Limitations and Future Work

  • Domain Constraints: The evaluation is currently restricted to text-based large language models. The authors note that extending this framework to vision, multimodal, or full-modal MoE settings remains an open area for exploration.
  • Fine-Tuning Scale: The experiments primarily utilized LoRA-based fine-tuning due to hardware constraints. Investigating the framework's behavior under full-parameter fine-tuning or within other parameter-efficient frameworks (like LoRA-MoE) is a necessary next step.
  • Distributed Deployment: Future work will explore how this enhanced specialization can be leveraged to optimize parameter inference efficiency in expert-distributed deployment environments.

Summary updated

BibTeX
@inproceedings{guo2025advancing,
  author = {Hongcan Guo and Haolang Lu and Guoshun Nan and Bolun Chu and Jialin Zhuang and Yuan Yang and Wenhao Che and Xinye Cao and Sicong Leng and Qimei Cui and Xudong Jiang},
  title = {{Advancing Expert Specialization for Better MoE}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=iydmH9boLb},
}
Figure