Joint MoE Scaling Laws: Mixture of Experts Can Be Memory Efficient
Jan Ludziejewski, Maciej Pi\'oro, Jakub Krajewski, Maciej Stefaniak,, Micha{\l} Krutul, Jan Ma{\l}a\'snicki, Marek Cygan, Piotr Sankowski, Kamil, Adamczewski, Piotr Mi{\l}o\'s, Sebastian Jaszczur

TL;DR
This paper develops joint scaling laws for mixture of experts models, revealing they can be more memory-efficient than dense models and providing a framework for optimal configuration under resource constraints.
Contribution
It introduces a theoretical framework for scaling laws of MoE models, including key factors like active parameters and dataset size, and validates predictions with extensive experiments.
Findings
MoE models can outperform dense models in memory efficiency.
Scaling laws accurately predict model performance under various constraints.
Experimental validation with over 280 tests up to 2.7B active parameters.
Abstract
Mixture of Experts (MoE) architectures have significantly increased computational efficiency in both research and real-world applications of large-scale machine learning models. However, their scalability and efficiency under memory constraints remain relatively underexplored. In this work, we present joint scaling laws for dense and MoE models, incorporating key factors such as the number of active parameters, dataset size, and the number of experts. Our findings provide a principled framework for selecting the optimal MoE configuration under fixed memory and compute budgets. Surprisingly, we show that MoE models can be more memory-efficient than dense models, contradicting conventional wisdom. To derive and validate the theoretical predictions of our scaling laws, we conduct over 280 experiments with up to 2.7B active parameters and up to 5B total parameters. These results offer…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExpert finding and Q&A systems · Machine Learning and Algorithms · Optimization and Search Problems
MethodsMixture of Experts
