Lune

ACL2025顶会

Demons in the Detail: On Implementing Load Balancing Loss for Training Specialized Mixture-of-Expert Models

Zihan Qiu, Zeyu Huang, Bo Zheng, Kaiyue Wen, Zekun Wang, Rui Men, Ivan Titov, Dayiheng Liu, Jingren Zhou, Junyang Lin

摘要

This paper revisits the implementation of L\textbf{L}oad-b\textbf{b}alancing L\textbf{L}oss (LBL) when training Mixture-of-Experts (MoEs) models. Specifically, LBL for MoEs is defined as NE∑i=1NEfipiN_E \sum_{i=1}^{N_E} f_i p_i, where NEN_E is the total number of experts, fif_i represents the frequency of expert ii being selected, and pip_i denotes the average gating score of the expert ii. Existing MoE training frameworks usually employ the parallel training strategy so that fif_i and the LBL are calculated within a micro-batch\textbf{micro-batch} and then averaged across parallel groups. In essence, a micro-batch for training billion-scale LLMs normally contains very few sequences. So, the micro-batch LBL is almost at the sequence level, and the router is pushed to distribute the token evenly within each sequence. Under this strict constraint, even tokens from a domain-specific sequence (e.g.\textit{e.g.}, code) are uniformly routed to all experts, thereby inhibiting expert specialization. In this work, we propose calculating LBL using a global-batch\textbf{global-batch} to loose this constraint. Because a global-batch contains much more diverse sequences than a micro-batch, which will encourage load balance at the corpus level. Specifically, we introduce an extra communication step to synchronize fif_i across micro-batches and then use it to calculate the LBL. Through experiments on training MoEs-based LLMs (up to 42.8B\textbf{42.8B} total parameters and 400B\textbf{400B} tokens), we surprisingly find that the global-batch LBL strategy yields excellent performance gains in both pre-training perplexity and downstream tasks. Our analysis reveals that the global-batch LBL also greatly improves the domain specialization of MoE experts.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 22 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 Measuring Massive Multitask Language Understanding
  • OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 Mixture-of-Experts with Expert Choice Routing
  • ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution 引用了 OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models
  • ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution 引用了 DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • MoRE: 3D Visual Geometry Reconstruction Meets Mixture-of-Experts 引用了 OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models
  • MoRE: 3D Visual Geometry Reconstruction Meets Mixture-of-Experts 引用了 DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free 引用了 Measuring Massive Multitask Language Understanding
  • Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free 引用了 DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models 引用了 Measuring Massive Multitask Language Understanding
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models 引用了 Mixture-of-Experts with Expert Choice Routing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper22

  1. Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-FreeZihan Qiu, Zekun Wang, Bo Zheng, Zeyu Huang 等NeurIPS 2025 · 336 次引用
  2. ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program EvolutionRobert T. Lange, Yuki Imajuku, Edoardo CetinICLR 2026 · 162 次引用
  3. Controlled LLM Training on Spectral SphereTian Xie, Haoming Luo, Haoyu Tang, Hu Yiwen 等ICML 2026 · 22 次引用
  4. MoRE: 3D Visual Geometry Reconstruction Meets Mixture-of-ExpertsJingnan Gao, Zhe Wang, Xianze Fang, Xingyu Ren 等CVPR 2026 · 19 次引用
  5. ProPhy: Progressive Physical Alignment for Dynamic World SimulationZijun Wang, Panwen Hu, Jing Wang, Terry Jingchen Zhang 等CVPR 2026 · 14 次引用

它引用的 Paper8

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
  2. Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用
  3. DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI ScaleSamyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang 等ICML 2022 · 523 次引用
  4. OpenMoE: An Early Effort on Open Mixture-of-Experts Language ModelsFuzhao Xue, Zian Zheng, Yao Fu, Jinjie Ni 等ICML 2024 · 183 次引用
  5. DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language ModelsDamai Dai, Chengqi Deng, Chenggang Zhao, R. X. Xu 等ACL 2024 · 171 次引用

相关 Paper

  1. Advancing Expert Specialization for Better MoEHongcan Guo, Haolang Lu, Guoshun Nan, Bolun Chu 等NeurIPS 2025 · 48 次引用
  2. From Pseudo-Balancing to True Specialization: Memory-Aware Routing for Mixture-of-ExpertsPeixuan Hou, Yunbo Hou, Bin Chen, Li He 等ACL Findings 2026
  3. AdaMoE: Token-Adaptive Routing with Null Experts for Mixture-of-Experts Language ModelsZihao Zeng, Yibo Miao, Hongcheng Gao, Hao Zhang 等EMNLP Findings 2024 · 8 次引用
  4. Hierarchical Mixture of Experts with Two-Stage OptimizationGleb Molodtsov, Alexander Miasnikov, Aleksandr BeznosikovKDD 2026 · 2 次引用
  5. Coupling Experts and Routers in Mixture-of-Experts via an Auxiliary LossAng Lv, Jin Ma, Yiyuan Ma, Siyuan QiaoICLR 2026 · 14 次引用
黄昏的海面,两侧是细线勾勒的悬崖