Mixture-of-Experts (MoE) architectures have become the de facto standard for scaling Large Language Models (LLMs) efficiently. By only activating a fraction of the model's parameters for any given input, MoEs allow researchers to scale model capacity without a proportional increase in compute cost. However, the design space for MoEs is notoriously complex: How many experts should you have? How big should each one be? Do you need "shared" experts?
In their new paper, "Slicing and Dicing: Configuring Optimal Mixtures of Experts," Margaret Li and colleagues from the University of Washington and NYU provide the first truly systematic look under the hood. By conducting over 2,000 pretraining runs, they’ve distilled a complex design space into a surprisingly simple recipe for building better MoEs.
TL;DR
Through a massive study of 2,000+ models, the authors show that MoE performance is primarily driven by total parameter count and expert granularity. They find that many popular architectural additions, like shared experts or heterogeneous expert sizes, offer little benefit compared to simply getting the expert count and size right.
What Problem Does This Paper Address?
While MoEs are popular, most existing research studies design choices (like expert count or routing algorithms) in isolation or over very narrow ranges. This makes it difficult to know if a specific "trick" works because it’s fundamentally better or just because it was paired with a specific model size.
The authors set out to disentangle these variables. They specifically look at the trade-off between expert count (how many experts exist) and granularity (how large each expert is relative to a standard dense layer). Their goal was to find a universal scaling law for MoE configurations that holds across different compute budgets.
Methods
The researchers performed an exhaustive grid search across several dimensions:
- Scale: Models ranging from 10M to 300M active parameters, with total parameters reaching up to 6.6B.
- Granularity ($g$): They defined granularity as the ratio of an expert's size to a standard dense FFN. They tested values from 1 (one big expert) down to 1/64 (many tiny experts).
- Total Experts ($n$): Varied from 2 to 1024.
- Architectural Variations: They tested homogeneous MoEs (all experts are the same size), heterogeneous MoEs (mixing different expert sizes), and the inclusion of "generalists" (shared experts that are always active).
- Routing: They compared standard token-choice routing with dropless routing, which ensures no tokens are skipped during computation.
To ensure fair comparisons, they used "FLOP-matching," meaning they compared models that used the same amount of compute per token, regardless of how many total parameters they had.
Datasets
The models were pretrained on a diverse mixture of web text, code, math, and encyclopedic data (the same mixture used for the OLMoE models). Evaluation was performed using macro-average cross-entropy loss across several domains (C4, The Pile, WikiText-103, etc.) and downstream accuracy on benchmarks like BoolQ, HellaSwag, and MMLU.
Key Insights and Ideas
- Total Parameters are King: Performance improves monotonically with total MoE parameters. Even at extreme ratios—where a model has 128x more total parameters than active parameters—the model continues to get better without hitting a "diminishing returns" wall.
- Optimal Granularity is Scale-Dependent: The "best" size for an expert depends only on your active parameter count, not your total parameter count. As you move to larger active-parameter scales, you should use finer-grained (smaller) experts.
- The "Generalist" Penalty: Contrary to some recent high-profile MoE papers, this study found that adding shared "generalist" experts consistently degraded performance. Simply put: parameters are better used when they are routed.
- Heterogeneity Offers Little: Mixing experts of different sizes within the same layer doesn't help. A well-configured homogeneous model (where all experts are the same size) performs just as well or better.
Key Results
The authors' findings suggest a much simpler design space than previously thought:
- Expert Size: For a model with 50M active parameters, the optimal granularity is between 1/4 and 1/2. For a 300M active model, the optimum shifts to $\le$ 1/8.
- Routing: Dropless routing is essentially a "free lunch," providing small but consistent gains across all scales by preventing token loss.
- Load Balancing: While necessary, the model's quality is robust to a wide range of load-balancing hyperparameters. You don't need to obsessively tune these as long as they are within a reasonable range.
Limitations and Future Work
The primary limitation is scale. While 6.6B total parameters is significant, it is still small compared to frontier models like GPT-4 or DeepSeek-V3. It remains to be seen if the "generalists are bad" finding holds at the trillion-parameter scale.
Additionally, the study focuses on model quality (loss and accuracy). In real-world deployments, inference throughput is just as important. Finer granularity (more, smaller experts) can sometimes lead to hardware inefficiencies. Future work could bridge the gap between these "mathematically optimal" configurations and "hardware-optimal" implementations.
Practical Takeaway: If you're building an MoE, don't overcomplicate it. Focus on maximizing your total expert count based on your memory budget, choose a granularity based on your active parameter scale, use dropless routing, and skip the shared experts.
Summary updated