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

Taishi Nakamura, Satoki Ishikawa, Masaki Kawamura, Takumi Okamoto, Daisuke Nohara +2 more
8/26/2025
cs.LGcs.AIcs.CL

Official code: rioyokotalab/optimal-sparsity (10 stars, Apache-2.0, last commit 2026-04-30).

Abstract

Empirical scaling laws have driven the evolution of large language models (LLMs), yet their coefficients shift whenever the model architecture or data pipeline changes. Mixture-of-Experts (MoE) models, now standard in state-of-the-art systems, introduce a new sparsity dimension that current dense-model frontiers overlook. We investigate how MoE sparsity influences two distinct capability regimes: memorization skills and reasoning skills. By training MoE families that vary total parameters, active parameters, and top-$k$ routing under fixed compute budgets, we disentangle pre-training loss from downstream accuracy. Our results reveal two principles. First, Active FLOPs: models with identical training loss but greater active compute achieve higher reasoning accuracy. Second, Total tokens per parameter (TPP): memorization tasks improve with more parameters, while reasoning tasks benefit from optimal TPP, indicating that reasoning is data-hungry. Neither reinforcement learning post-training (GRPO) nor increased test-time compute alters these trends. We therefore argue that optimal MoE sparsity must be determined jointly by active FLOPs and TPP, revising the classical picture of compute-optimal scaling. Our model checkpoints, code and logs are open-source at https://github.com/rioyokotalab/optimal-sparsity.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICLR 2026 Oral] Optimal Sparsity of Mixture-of-Experts Language Models for Reasoning Tasks

101C, C++Aug 26, 20255 months agoApache-2.0
large-language-modelslarge-scalemixture-of-expertsmoescaling-laws+1 more

Similar Papers

Cite this paper

@article{nakamura2025optimal,
  title  = {Optimal Sparsity of Mixture-of-Experts Language Models for Reasoning Tasks},
  author = {Taishi Nakamura and Satoki Ishikawa and Masaki Kawamura and Takumi Okamoto and Daisuke Nohara and Jun Suzuki and Rio Yokota},
  year   = {2025},
  eprint = {2508.18672},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.18672v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.18672.svg)](https://codeofpaper.com/paper/2508.18672)

Discussion