Optimal Sparsity of Mixture-of-Experts Language Models for Reasoning Tasks

Taishi Nakamura, Satoki Ishikawa, Masaki Kawamura, Takumi Okamoto, Daisuke Nohara, Jun Suzuki, Rio Yokota

Introduction

Mixture-of-Experts (MoE) architectures have become the cornerstone of efficient large language models (LLMs). By routing tokens to only a subset of parameters, MoE models achieve lower training loss for a given compute budget compared to dense models. However, a critical question remains: does lower training loss always translate to better downstream performance, particularly in complex reasoning tasks? This paper investigates the "optimal sparsity" of MoE models, revealing that while memorization-heavy tasks benefit from high sparsity, reasoning tasks exhibit a distinct performance degradation beyond a certain threshold of expert count.

Methodology

The researchers conducted a systematic sweep of MoE configurations based on the Mixtral architecture. They varied three primary architectural "knobs":

  1. Model Width ($d$): The hidden dimension of the transformer.
  2. Number of Experts ($E$): Ranging from 8 to 256.
  3. Top-$k$ Routing: The number of experts activated per token (from 2 to 16).

To isolate the impact of architecture, the total training budget was fixed at 125 billion tokens. The pre-training corpus included a balanced mix of web text (DCLM), mathematics, STEM literature, and code. Evaluation spanned memorization benchmarks (TriviaQA, HellaSwag) and reasoning benchmarks (GSM8K, GSM-Plus, HumanEval, MBPP). Additionally, the study examined whether post-training techniques like Group Relative Policy Optimization (GRPO) or test-time compute (Self-Consistency) could mitigate the effects of excessive sparsity.

The Reasoning U-Curve

A central discovery of this work is the "Reasoning U-Curve." In standard scaling laws, increasing model size or sparsity typically leads to monotonic improvements in performance. While this holds true for pre-training loss and memorization tasks, reasoning tasks like GSM8K show a different trend. As the number of experts increases (and total parameters grow), task loss initially decreases but eventually begins to rise, even as the overall training loss continues to fall.

Figure 1: Scaling behavior across different tasks. While train and validation loss decrease with total parameters, reasoning tasks like GSM8K exhibit a U-shaped curve where performance degrades at high parameter counts (high sparsity).

This divergence suggests that training loss is an insufficient proxy for reasoning ability in MoE models. High sparsity might allow a model to "memorize" the pre-training distribution more efficiently without developing the robust internal representations required for multi-step logical deduction.

Active Compute and Data Density

The paper identifies two key factors driving reasoning performance:

  • Active FLOPs: Reasoning is compute-intensive. Models with higher active parameters (larger $k$ in top-$k$ routing) consistently outperformed sparser models with the same training loss.
  • Tokens per Parameter (TPP): Reasoning is also data-intensive. The authors found that reasoning performance peaks at approximately 20 tokens per parameter. If the number of experts is too high for the available data, each expert becomes "data-starved," failing to learn complex patterns.

Results and Task Divergence

The most striking result is the fundamental difference in how task types respond to MoE density. For knowledge-retrieval tasks like TriviaQA, higher sparsity (more experts) is almost always beneficial. Conversely, for reasoning tasks like GSM8K and GSM-Plus, denser configurations (fewer experts or higher $k$) become superior as the compute budget scales.

Figure 3: Task loss vs. Final training loss. For TriviaQA and HellaSwag, task loss decreases linearly with training loss. For GSM8K and GSM-Plus, task loss begins to increase after an inflection point, indicating that further training loss reduction via sparsity harms reasoning.

Crucially, post-training interventions did not bridge this gap. Neither reinforcement learning nor increased test-time compute could overcome the "reasoning ceiling" established during the pre-training phase for overly sparse models.

Conclusion and Future Directions

This research highlights a critical trade-off in MoE design: the sparsity that optimizes for training efficiency can actively undermine reasoning capabilities. While the current study is limited by a 125B token budget, it provides a new framework for understanding MoE scaling. Future work should investigate whether massive increases in token volume (trillions of tokens) allow sparse models to eventually recover reasoning performance, or if the "data starvation" of individual experts remains a fundamental bottleneck.

Summary updated

BibTeX
@inproceedings{nakamura2026optimal,
  author = {Taishi Nakamura and Satoki Ishikawa and Masaki Kawamura and Takumi Okamoto and Daisuke Nohara and Jun Suzuki and Rio Yokota},
  title = {{Optimal Sparsity of Mixture-of-Experts Language Models for Reasoning Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=XFw2EPRUUR},
}
Figure