Research
Expert Divergence Learning for MoE-based Language Models
Overview Research area: Machine learning / large language model pre-training, specifically Mixture-of-Experts (MoE) architectures. Technical level: Advanced (assumes familiarity with MoE routing, load
- arXiv
- 2603.00054
- Published
- 2026-02-10
- Authors
- Jiaang Li, Haibin Chen, Langming Liu, Yujin Yuan, Yadao Wang, Yizhen Zhang, Chengting Yu, Xin Tong, Weidong Zhang, Shilei Liu, Wenbo Su, Bo Zheng
AI summary
Overview
- Research area: Machine learning / large language model pre-training, specifically Mixture-of-Experts (MoE) architectures.
- Technical level: Advanced (assumes familiarity with MoE routing, load-balancing losses, and divergence measures such as KL and Jensen-Shannon).
- Scope: One sentence: the paper proposes a label-driven auxiliary training loss that maximizes Jensen-Shannon Divergence between the expert routing distributions of different data domains, and validates it by pre-training MoE models up to 15 billion parameters from scratch.
What This Paper Is About
MoE models are supposed to let different experts specialize in different kinds of data, but standard training only applies a load-balancing loss that spreads tokens evenly across experts without saying what each expert should learn. The result is "expert homogenization": experts become redundant generalists instead of distinct specialists, wasting the architecture's capacity. The paper's goal is to explicitly steer experts toward specialization by using the domain labels (source or topic) already present in pre-training corpora.
Key Contributions
- Expert Divergence Learning: a pre-training strategy adding a label-driven auxiliary loss, the Expert Divergence Loss (L_ED), that maximizes the pairwise Jensen-Shannon Divergence between the average expert routing distributions of different data domains.
- A theoretical decomposition: Proposition 1 shows total routing divergence equals inter-domain divergence plus intra-domain divergence (D_total = D_inter + D_intra), and Proposition 2 argues that optimizing L_ED specifically increases D_inter, so it works in synergy with the load-balancing loss.
- Large-scale validation: MoE models of 15B-A1.5B, 8B-A0.8B, and 3B-A0.3B parameters pre-trained from scratch on 100B tokens, with a 3-class and a 49-class domain labeling scheme.
- Mechanistic and efficiency analysis: routing perturbation experiments and expert activation heatmaps showing reduced homogenization, plus throughput measurements showing negligible training and inference overhead.
Main Findings
- Lower language modeling loss: All configurations trained with Expert Divergence Learning converge to a lower language modeling loss L_LM than the standard MoE baseline; changing the divergence coefficient β causes loss variance but remains better than standard MoE training.
- Better downstream averages on every model size: The 15B-A1.5B model reaches an average score of 36.65 under the 49-class scheme versus 35.59 for the baseline; the 8B-A0.8B reaches 35.77 versus 35.10; the 3B-A0.3B reaches 34.91 versus 34.13.
- Gains scale with model size: The improvement is most pronounced at the largest scale, which the authors attribute to greater capacity to convert structured specialization into benchmark gains.
- Finer domain granularity helps: Across all three model sizes the fine-grained 49-class scheme consistently outperforms the coarse-grained 3-class scheme in both downstream performance and final training loss. The 3-class scheme still beat the baseline at the 8B and 15B scales.
- Expert homogenization is reduced: Routing perturbation (randomly permuting router weight matrix rows per layer and measuring perplexity increase) produces mostly larger ΔPPL for divergence-trained models than for the baseline, with peaks at layers 0, 4, and 14. The 49-class model shows a dramatically higher ΔPPL at Layer 4.
- Specialization is layer-concentrated: The effect of random routing varies significantly across layers, suggesting specialization concentrates in critical layers rather than being uniformly distributed.
- Qualitative routing evidence: Expert activation heatmaps for representative layers (0, 4, 14) show more distinct domain-specific activation patterns for the 49-class model, while baseline activations across domains overlap more.
- Negligible overhead: Training throughput (k tokens/s/gpu) for 15B-A1.5B is 5.07 (MoE), 5.03 (3-class), 4.96 (49-class); for 8B-A0.8B it is 7.97, 7.94, 7.91; for 3B-A0.3B it is 9.99, 9.88, 9.85. Inference throughput on the 15B-A1.5B model stays comparable across domains.
Methodology in Plain English
The team starts from a standard MoE layer: a router assigns each token a probability distribution over N experts, the top-K experts are selected, and their outputs are combined. Standard training combines the language modeling loss with a load-balancing loss that keeps expert usage roughly uniform across the whole batch — but it never says which experts should handle which data.
The new loss works in three steps per MoE layer. First, for each sequence, average the router's probability distributions across all its tokens. Second, group sequences by their domain label and average again to get one distribution per domain in the batch. Third, for every pair of domains, compute the Jensen-Shannon Divergence between their distributions and average the negative logarithm of these divergences. Because it is a negative logarithm, the gradient is amplified when divergence is small, which the authors say avoids vanishing gradients. A small constant epsilon (e.g., 1e-8) is added for numerical stability.
The final objective is L_LM + α·L_LB + β·L_ED, with α fixed at 1×10⁻³ and β set to 5×10⁻⁴ based on training loss stability and performance. The theoretical argument is that total routing divergence splits into a between-domain part and a within-domain part, and L_ED pushes diversity into the between-domain part.
Why This Matters
- Research impact: It reframes expert specialization as something to be explicitly guided rather than left to emerge, and it contributes a divergence-decomposition analysis linking a training loss to a measurable property of routing. It also contrasts with prior approaches that modified architecture (shared experts) or used unsupervised objectives (router weight orthogonality in ERNIE 4.5) without using a domain prior.
- Real-world applications:
- Multilingual assistant models where English, Chinese, and other language data demand different handling.
- Domain-specific assistants in mathematics, code, or technical fields where specializing experts on topical data could improve quality.
- Cost-sensitive deployment: since the paper reports negligible training and inference overhead, the method targets efficiency-sensitive serving environments.
- Web-scale data curation pipelines, where the finding that topical labels help suggests value in labeling corpora at finer granularity.
- Industry relevance: The authors are at Alibaba Group, and the method is applied to a scaled-down version of Qwen3-MoE 30B-A3B using its architecture and tokenizer, on 64 GPUs with 80 GB each — a realistic large-scale industrial setup. Mixing 40% Nemotron-cc, 40% Fineweb-edu-chinese-v2, and 20% FineMath reflects production-style multi-source corpora.
Future Directions
- Scaling further: The paper validates up to 15B-A1.5B parameters; whether the gains continue at larger scales is not reported and remains open.
- Better domain supervision: The authors hypothesize that more specific, semantically meaningful domain signals are key, and argue that curating web-scale corpora with fine-grained topical labels is a promising direction for MoE optimization.
- Richer data properties: The conclusion states future directions include scaling LLMs with more sophisticated properties and connections curated from massive data.
- Evaluating other specialization methods at scale: The paper notes that some prior structural approaches (such as expert merge scoring) showed improvements but have not been verified by large-scale training.
Target Audience
Researchers and engineers working on MoE architectures, LLM pre-training, and efficient sparse model scaling; practitioners who build multilingual or multi-domain model pipelines and can supply domain or topic labels for their training corpora; and readers interested in training-objective design rather than architectural modification, since the method adds no new modules. Beginners will find the load-balancing and divergence background helpful but will need prior familiarity with MoE routing and KL/JS divergence to follow the theory sections.
Authors’ abstract
The Mixture-of-Experts (MoE) architecture is a powerful technique for scaling language models, yet it often suffers from expert homogenization, where experts learn redundant functionalities, thereby limiting MoE's full potential. To address this, we introduce Expert Divergence Learning, a novel pre-training strategy that explicitly encourages functional specialization among experts. Our method incorporates a label-driven auxiliary loss that leverages domain labels inherent in pre-training corpora to maximize the Jensen-Shannon Divergence between the expert routing distributions of different data domains. This optimization objective guides the model to develop diverged routing policies for varied domains and closer routing policies for the same domain, which leads to emergent and organized expert specialization. We validate our approach by pre-training MoE models of up to 15 billion parameters from scratch. Experimental results demonstrate that models trained with Expert Divergence Learning not only achieve a lower language modeling loss but also exhibit significant performance improvements across a diverse range of downstream benchmarks. Further analysis confirms that our method effectively mitigates expert homogenization and brings greater functional specialization, all with negligible computational overhead during training.