Scaling Laws for Fine-Grained Mixture of Experts

Jakub Krajewski, Jan Ludziejewski, Kamil Adamczewski, Maciej Pi'oro, Michal Krutul +7 more
2/12/2026

No official code found. Best implementation: llm-random/llm-random (212 stars, Apache-2.0, last commit 2026-01-14).

Abstract

Mixture of Experts (MoE) models have emerged as a primary solution for reducing the computational cost of Large Language Models. In this work, we analyze their scaling properties, incorporating an expanded range of variables. Specifically, we introduce a new hyperparameter, granularity, whose adjustment enables precise control over the size of the experts. Building on this, we establish scaling laws for fine-grained MoE, taking into account the number of training tokens, model size, and granularity. Leveraging these laws, we derive the optimal training configuration for a given computational budget. Our findings not only show that MoE models consistently outperform dense Transformers but also highlight that the efficiency gap between dense and MoE models widens as we scale up the model size and training budget. Furthermore, we demonstrate that the common practice of setting the size of experts in MoE to mirror the feed-forward layer is not optimal at almost any computational budget.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
21222Shell, PythonJan 17, 20229 months agoApache-2.0

Similar Papers

Cite this paper

@article{krajewski2026scaling,
  title  = {Scaling Laws for Fine-Grained Mixture of Experts},
  author = {Jakub Krajewski and Jan Ludziejewski and Kamil Adamczewski and Maciej Pi'oro and Michal Krutul and Szymon Antoniak and Kamil Ciebiera and Krystian Kr'ol and Tomasz Odrzyg'o'zd'z and Piotr Sankowski and Marek Cygan and Sebastian Jaszczur},
  year   = {2026},
  eprint = {2402.07871},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.07871},
  journal = {ICML 2024 2024}
}

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/2402.07871.svg)](https://codeofpaper.com/paper/2402.07871)

Discussion