Towards a Comprehensive Scaling Law of Mixture-of-Experts

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhao, Guoliang, Fu, Yuhan, Li, Shuaipeng, Sun, Xingwu, Xie, Ruobing, Wang, An, Han, Weidong, Yang, Zhen, Sun, Weixuan, Zhang, Yudong, Xu, Cheng-zhong, Wang, Di, Jiang, Jie
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914061755613184
author Zhao, Guoliang
Fu, Yuhan
Li, Shuaipeng
Sun, Xingwu
Xie, Ruobing
Wang, An
Han, Weidong
Yang, Zhen
Sun, Weixuan
Zhang, Yudong
Xu, Cheng-zhong
Wang, Di
Jiang, Jie
author_facet Zhao, Guoliang
Fu, Yuhan
Li, Shuaipeng
Sun, Xingwu
Xie, Ruobing
Wang, An
Han, Weidong
Yang, Zhen
Sun, Weixuan
Zhang, Yudong
Xu, Cheng-zhong
Wang, Di
Jiang, Jie
contents Mixture-of-Experts (MoE) models have become the consensus approach for enabling parameter-efficient scaling and cost-effective deployment in large language models. However, existing scaling laws for dense models are inapplicable to MoE models, which stems from three critical challenges: the multiplicity of influencing factors, their intricate coupling relationships and the non-monotonic nature of their performance impacts. They collectively necessitate a fine-grained investigation into MoE-specific scaling laws. In this work, we perform a systematic decomposition of MoE settings, identifying five key factors that influence model performance from both size and structural perspectives (data size ($D$), total model size ($N$), activated model size ($N_a$), number of active experts ($G$) and the ratio of shared experts ($S$)). Specifically, we design $446$ controlled experiments to characterize their marginal effects, ultimately constructing a comprehensive and precise joint MoE scaling law that considers all essential factors. Furthermore, we derive the theoretically optimal and practically efficiency-aware optimal configurations for $G$, $S$ and $N_a/N$ with detailed analyses. Our results demonstrate that the optimal settings for $G$ and $S$ are independent of both the model architecture and data size. With the scaling of $N$, the optimal activation parameter ratio of $N_a/N$ becomes sparser. Our proposed MoE scaling law could function as an accurate and insightful guidance to facilitate future MoE model design and training.
format Preprint
id arxiv_https___arxiv_org_abs_2509_23678
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards a Comprehensive Scaling Law of Mixture-of-Experts
Zhao, Guoliang
Fu, Yuhan
Li, Shuaipeng
Sun, Xingwu
Xie, Ruobing
Wang, An
Han, Weidong
Yang, Zhen
Sun, Weixuan
Zhang, Yudong
Xu, Cheng-zhong
Wang, Di
Jiang, Jie
Machine Learning
Artificial Intelligence
Computation and Language
Mixture-of-Experts (MoE) models have become the consensus approach for enabling parameter-efficient scaling and cost-effective deployment in large language models. However, existing scaling laws for dense models are inapplicable to MoE models, which stems from three critical challenges: the multiplicity of influencing factors, their intricate coupling relationships and the non-monotonic nature of their performance impacts. They collectively necessitate a fine-grained investigation into MoE-specific scaling laws. In this work, we perform a systematic decomposition of MoE settings, identifying five key factors that influence model performance from both size and structural perspectives (data size ($D$), total model size ($N$), activated model size ($N_a$), number of active experts ($G$) and the ratio of shared experts ($S$)). Specifically, we design $446$ controlled experiments to characterize their marginal effects, ultimately constructing a comprehensive and precise joint MoE scaling law that considers all essential factors. Furthermore, we derive the theoretically optimal and practically efficiency-aware optimal configurations for $G$, $S$ and $N_a/N$ with detailed analyses. Our results demonstrate that the optimal settings for $G$ and $S$ are independent of both the model architecture and data size. With the scaling of $N$, the optimal activation parameter ratio of $N_a/N$ becomes sparser. Our proposed MoE scaling law could function as an accurate and insightful guidance to facilitate future MoE model design and training.
title Towards a Comprehensive Scaling Law of Mixture-of-Experts
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2509.23678