EMO: Pretraining Mixture of Experts for Emergent Modularity

Ryan Yixiang Wang, Akshita Bhagia, Sewon MinNeurIPS 2026

TL;DR

Mixture-of-Experts (MoE) language models only activate a small fraction of their parameters per token, yet you still have to load the entire massive model into GPU memory just to solve a narrow task like writing Python code. Researchers from UC Berkeley and Ai2 introduce EMO, a simple tweak to pretraining that causes experts to naturally self-organize by high-level topics rather than low-level grammar. As a result, you can slice off 75% to 87.5% of the model at deployment time to create lightweight, domain-specific sub-models with barely a scratch to accuracy.

What Problem Does This Paper Address?

Imagine hiring 128 specialists to write a biology textbook, only to find out one exclusively writes the word "the," another only handles commas, and a third specializes in verbs. Even if only eight people are typing at any given millisecond, all 128 have to stay in the room the entire time.

That is the hidden catch of modern Mixture-of-Experts (MoE) architectures. While MoEs keep compute costs low by routing each token to only a few small neural networks ("experts"), their memory footprint is enormous. Because standard MoE experts end up specializing in low-level syntactic quirks—like prepositions or punctuation—a single sentence triggers experts scattered across the entire model. If you try to save VRAM on a memory-constrained device by loading only a subset of experts for a math or coding app, standard MoEs completely fall apart. Previous attempts to fix this relied on manually sorting training data into human-defined buckets (like "math" vs. "biomedicine") and training separate models, which injects human bias and hurts general-purpose performance.

Methods

How do you get experts to organize by semantic topic without manually labeling trillions of words? EMO uses a clever, free supervisory signal already sitting in the data: document boundaries. The core intuition is that tokens inside a single document usually belong to the same domain.

Comparison of token routing in Standard MoE vs. EMO

In a standard MoE, every token independently picks its top-$k$ experts (e.g., 8 out of 128). In EMO, routing happens in two steps during pretraining:

  1. Document Pool Selection: The router averages its preferences across all tokens in a document and selects a shared pool of $d$ allowed experts for that entire document.
  2. Token Routing: Every token in that document is masked and constrained to pick its 8 active experts strictly from that shared pool.

To make this actually work at scale, the authors introduced two crucial tricks:

  • Randomized Pool Sizes: If you always train with a fixed pool size of $d=32$, the model overfits to that exact size. By randomly sampling $d$ between $k$ and the total number of experts for every document, EMO learns to operate gracefully at any memory budget you choose at deployment.
  • Global Load Balancing: Standard MoEs balance expert usage within tiny local micro-batches. Doing that on just a few documents fights directly against EMO's goal of concentrating a document's tokens into a single pool. Aggregating load-balancing statistics globally across data-parallel groups resolves the conflict: usage stays uniform across diverse documents, while remaining specialized within each document.

Datasets

  • Pretraining: Models (1B active parameters, 14B total parameters across 128 experts) were pretrained from scratch on 1 trillion tokens from the open OLMoE pretraining corpus (plus 130B-token runs for ablations).
  • Evaluation: No new benchmarks were introduced; instead, the authors evaluated general capabilities on MC9 (9 multiple-choice tasks like HellaSwag and ARC), Gen5 (5 generative QA tasks like SQuAD and TriviaQA), MMLU, MMLU-Pro, and GSM8K. For modular deployment tests, MMLU and MMLU-Pro were grouped into coarse semantic domains (16 and 13 domains, respectively, excluding the "other" category), using as few as five validation examples to identify which experts to keep.

Key Insights and Ideas

  • Semantics over Syntax: Clustering token routing paths reveals a stark qualitative shift. Standard MoEs form clusters around surface-level lexical features ("copula verbs," "definite articles," "prepositions"). EMO spontaneously forms clusters around human-recognizable concepts ("Health, medical & wellness," "U.S. politics," "Source code").
  • Modularity Must Be Learned, Not Pruned: Applying state-of-the-art post-hoc expert pruning (Easy-EP) to a standard MoE still results in severe accuracy collapse at small budgets. Conversely, EMO works great even with naive router-probability selection—proving that domain localization has to be baked into the representations during pretraining.
  • Subsets Beat Purpose-Built Small Models: Slicing a 32-expert or 8-expert module out of EMO doesn't just beat a pruned standard MoE—it actually matches or outperforms dense and smaller MoE models trained from scratch specifically for that smaller memory budget.

Key Results

EMO modularity and MMLU accuracy across expert subset memory budgets

EMO modularity and MMLU accuracy across expert subset memory budgets
  • Zero Modularity Tax: As a full 14B-parameter model, EMO matches its standard MoE twin (e.g., 42.8% vs. 42.4% on MMLU; 63.1% vs. 63.9% on MC9) and outperforms the 5T-token OLMoE baseline thanks to modernized architectural choices (pre-norm, shared expert, no QK-norm).
  • Graceful Scaling Down: On zero-shot MMLU domain deployment, cutting 75% of the experts (128 $\rightarrow$ 32) causes only a ~1.4% absolute drop for EMO (42.8% $\rightarrow$ 41.4%), whereas a standard MoE plunges by 11.6% (42.4% $\rightarrow$ 30.8%).
  • Extreme Compression: Retaining just 12.5% of experts (16 experts) costs EMO less than 3% on MMLU (39.9%), while standard MoEs collapse to near-random guessing (24.6%). After lightweight fine-tuning on GSM8K, a 16-expert EMO subset completely recovers—and slightly exceeds—full-model math performance (28.3% vs. 27.8%).

Limitations and Future Work

While training EMO from scratch works best, the authors tested whether modularity can be retrofitted onto an already-trained standard MoE by annealing it with the document-pool objective; it showed early signs of modularity, leaving a full recipe for cheap retrofitting to future work. Additionally, in a preliminary "modular maintenance" test—fine-tuning a 32-expert subset in isolation and plugging it back into the 128-expert parent model—the merged model improved over the original full model, though it didn't quite match the standalone subset's specialized score. Going forward, the authors envision using emergent expert modules for inference-time safety controls (e.g., unplugging adult/spam or dual-use biomedical experts depending on the user) and model auditing by monitoring which semantic modules light up during generation.

Summary updated

BibTeX
@inproceedings{wang2026emo,
  author = {Ryan Yixiang Wang and Akshita Bhagia and Sewon Min},
  title = {{EMO: Pretraining Mixture of Experts for Emergent Modularity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YavQQZ3cUM},
}
Figure