DivMoE: Fine-Grained MoE Upcycling via Cross-Domain Expert Composition

Yuxuan Lou, Kai Yang, Geng Zhang, Yong Liu, Yang You

TL;DR

DivMoE introduces a robust framework for "upcycling" pre-trained dense language models into fine-grained Mixture-of-Experts (MoE) architectures. By combining domain-specialized initialization with a hard structural routing constraint, it solves a newly identified "collapse pathology" where fine-grained MoEs otherwise fail to learn, allowing a 12B-parameter model to match the performance of larger 16B models with significantly less training compute.

What Problem Does This Paper Address?

Scaling large language models (LLMs) often involves moving from dense architectures (where every parameter is used for every token) to Mixture-of-Experts (MoE) architectures (where only a subset of "experts" is activated). Training MoEs from scratch is incredibly expensive. A popular shortcut is upcycling: taking a pre-trained dense model and splitting its layers into experts to inherit its learned knowledge.

Recently, researchers have found that fine-grained MoEs—which use many small experts instead of a few large ones—perform better. However, the authors of this paper discovered a "structural pathology": when you try to upcycle a dense model into a fine-grained MoE using standard methods, the model's accuracy collapses to near-random levels. This happens because the experts derived from a single source are too similar, causing the "router" (the mechanism that chooses experts) to collapse and only pick from a narrow, homogeneous group.

Methods

DivMoE tackles this collapse through a three-phase pipeline:

  1. Domain-Specialized Training (Phase I): Instead of starting with one dense model, they create $n$ "specialists" by continually pre-training the base model on specific domains (e.g., Math, Code, Science, and Common Sense).
  2. Fine-grained Expert Construction (Phase II): Each specialist's Feed-Forward Network (FFN) is vertically sliced into $m$ shards. This results in $N = n \times m$ experts, organized into domain groups.
  3. Diversity-Constrained Routing (Phase III): This is the "secret sauce." Unlike standard routers that might pick two experts from the same domain, DivMoE enforces a hard structural constraint: each token must select exactly one expert from $k$ different domain groups.
Figure 1: DIVMOE overview. Left: a single base model is domain-adaptively pre-trained into n = 4 specialists. Middle: each specialist’s FFN is vertically sliced into m = 2 shards, yielding N = 8 experts in n = 4 domain groups. Right: the router selects the top-1 expert within each group, then top-k groups, guaranteeing k experts from k distinct domains.

This approach ensures that every token benefits from a diverse mix of specialized knowledge (e.g., a coding token might use one "Code" expert and one "Logic/Math" expert).

Datasets

  • Continual Pre-training (CPT): The authors used Dolmino-Mix-1124, a high-quality public corpus curated for the OLMo-2 family.
  • Supervised Fine-Tuning (SFT): They used the Tülu-3-SFT-Mixture to evaluate reasoning capabilities.
  • Evaluation: The models were tested across 15 benchmarks, including MMLU (general knowledge), GSM8K/MATH (mathematics), HumanEval/MBPP (coding), and others like ARC-c, HellaSwag, and BBH.

Key Insights and Ideas

  • The Fine-Grained Collapse: The paper identifies that fine-grained partitioning requires domain diversity. Without it, the router cannot distinguish between experts, leading to the performance drops seen in Figure 2(a).
  • Structural vs. Soft Constraints: Most MoEs use "soft" auxiliary losses to balance expert usage. DivMoE argues that for upcycling, you need a hard structural constraint that operates outside the loss landscape to guarantee diversity regardless of gradient magnitudes.
  • Cross-Domain Synergy: A surprising finding is that forcing a token to use experts from different domains actually improves performance on domain-specific tasks. For example, a coding task performs better when the model is forced to compose a "code" expert with a "math" or "science" expert, rather than just using two code experts.
Comparison between standard routing (which leads to collapse) and DivMoE's diversity-constrained routing.

Key Results

DivMoE consistently outperformed all upcycling baselines across multiple model scales (1B to 4B base models).

  • Performance Boost: On Qwen3-1.7B, DivMoE achieved 55.6% average accuracy, significantly higher than the strongest baseline (51.6%) and the dense base model.
  • Efficiency: The 12B-parameter DivMoE model (upcycled from Qwen3-4B) matched the 64.5% accuracy of the 16B Moonlight-MoE, despite being smaller and trained on fewer tokens.
  • Closing the Gap: Previous fine-grained upcycling methods often regressed below the performance of the original dense model. DivMoE is the first to strictly improve over the dense base on almost every benchmark.
Table 3: Upcycling comparison on Llama3.2-1B after 500B Stage 2 CPT tokens (540B for BTX and DIVMOE). Same conventions as Table 2.

Limitations and Future Work

  • Domain Partitioning: The current work uses a fixed set of four broad domains. The authors suggest that learning these domain partitions end-to-end (rather than pre-defining them) is a promising future direction.
  • Compute Overhead: While efficient, DivMoE requires an additional 40B tokens of domain-specialized training (Stage 1), representing about an 8% overhead compared to training from scratch.
  • Scaling: The experiments focused on models up to 12B parameters. Testing the framework on larger 7B-13B base models (resulting in 30B+ MoEs) remains an important next step.

Summary updated

BibTeX
@inproceedings{lou2026divmoe,
  author = {Yuxuan Lou and Kai Yang and Geng Zhang and Yong Liu and Yang You},
  title = {{DivMoE: Fine-Grained MoE Upcycling via Cross-Domain Expert Composition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KlvTMimHUL},
}
Figure