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

TL;DR

Scaling up the total parameter count in Mixture-of-Experts (MoE) models consistently lowers pre-training loss, but it can unexpectedly degrade downstream reasoning performance under a fixed token budget. To maximize reasoning capabilities, AI architects must balance active FLOPs and the total tokens per parameter (TPP) ratio rather than blindly maximizing model capacity.

What Problem Does This Paper Address?

Empirical scaling laws (like Chinchilla) have long guided LLM development, telling researchers exactly how to balance compute, parameter count, and dataset size. The rise of Mixture-of-Experts (MoE) architectures threw a wrench into these clean equations. By routing tokens to only a sparse subset of "experts," MoE models allow developers to scale up total parameter capacity without a proportional increase in training compute (FLOPs) per token.

However, a troubling divergence has emerged: models with identical pre-training losses often perform drastically differently on downstream tasks. This paper investigates a critical gap in current scaling frontiers: How does MoE sparsity affect different capability regimes—specifically, memorization vs. complex reasoning?

Methods

The authors systematically trained families of MoE models based on the Mixtral architecture (16 layers), carefully controlling architectural knobs under a fixed training budget of 125 billion tokens. They swept three main hyperparameters:

  1. Model width ($d$): 512, 1024, and 2048.
  2. Number of experts per layer ($E$): ranging from 8 to 256.
  3. Top-$k$ routing ($k$): 2, 4, 8, and 16 active experts per token.

By holding the token count fixed and varying these parameters, they isolated how sparsity impacts downstream task loss and accuracy. Crucially, they also tested whether advanced post-training alignment (Group Relative Policy Optimization, or GRPO) or test-time compute scaling (Self-Consistency decoding) could rescue poorly configured sparse models.

Datasets

  • Pre-training: A balanced 125B-token corpus comprising high-quality web text (43B), mathematics corpora (32B), STEM literature (49B), and code (1B). A separate code-heavy 125B-token corpus was used for coding task ablations.
  • Evaluation Benchmarks:
  • Mathematical Reasoning: GSM8K and GSM-Plus.
  • Reading Comprehension / Memorization: TriviaQA.
  • Commonsense Reasoning: HellaSwag.
  • Code Generation: HumanEval and MBPP.

Key Insights and Ideas

  • The Reasoning U-Curve: For memorization tasks (TriviaQA, HellaSwag), downstream performance scales monotonically with total parameters—more capacity is always better. However, for reasoning tasks (GSM8K, GSM-Plus), task loss follows a U-shaped curve. Past a certain parameter threshold, making the model larger and sparser actually harms reasoning performance.
Figure 1: Although training and validation loss decrease as the total number of parameters grows, the task loss on GSM8K can sometimes worsen with larger models. Training and valida- tion losses steadily decrease as total or active parameters increase. The HellaSwag task loss follows this scaling trend, whereas GSM8K task loss worsens once total parameters exceed a threshold. Within each fixed top-k group, moving right on the x-axis corresponds to increasing sparsity (be- cause total experts E increases while k remains fixed), so the right-hand task-loss panels implicitly reflect the same sparsity ordering shown explicitly in Figure 5.
  • Reasoning is Data-Hungry: Reasoning capabilities peak at around 20 tokens per parameter (TPP). When an MoE model has too many experts for a fixed token budget, individual experts become "data-starved," failing to learn the complex procedural pathways required for multi-step reasoning.
  • Active FLOPs Matter: Pre-training loss is an incomplete metric for reasoning. Models with identical training loss but higher active compute (larger top-$k$ routing) consistently achieve superior reasoning accuracy.
  • Post-Training Can't Fix Bad Architecture: Neither reinforcement learning (GRPO) nor test-time compute (generating multiple answers and voting) eliminates the performance drop caused by excessive sparsity. The bottleneck is baked in during pre-training.
Figure 2: For GSM8K and GSM-Plus, once the training loss drops below a certain point, the task loss starts to increase. Results of scaling total parameters by increasing the number of experts, with model width and top-k held constant. For TriviaQA and HellaSwag, the task loss falls monotonically as training loss decreases. By contrast, GSM8K and GSM-Plus show a U-shaped trend: task loss declines with training loss only until a threshold, beyond which further reductions in training loss hurt task performance. That threshold moves lower as active parameter count increases, models with more active parameters achieve a lower optimal task loss. No such active parameters dependence appears for TriviaQA, HellaSwag.

Key Results

  • On TriviaQA and HellaSwag, task loss steadily decreased as total parameters grew, confirming that memorization is "capacity-hungry."
  • On GSM8K and GSM-Plus, accuracy peaked and then degraded as total parameters scaled past the optimal TPP threshold. For instance, when active parameters were held constant, over-allocating total parameters (adding too many experts) caused a sharp drop in accuracy.
  • Coding tasks (HumanEval and MBPP) mirrored the mathematical reasoning results, showing a clear shift in optimal configurations toward denser models when active compute budgets increased.

Limitations and Future Work

The primary limitation acknowledged by the authors is the fixed 125B token budget. While this budget places their runs squarely in the Chinchilla-optimal or overtrained regimes for their active parameter sizes, industrial flagship models are often trained on tens of trillions of tokens. Overtraining larger models with higher tokens-per-parameter ratios might shift the optimal sparsity frontier back toward sparser configurations. The authors suggest exploring scaling laws with much larger token budgets and alternative routing mechanisms (like shared experts) as vital next steps.

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