HierMoE: Accelerating MoE Training with Hierarchical Token Deduplication and Expert Swap
Wenxiang Lin, Xinglin Pan, Lin Zhang, Shaohuai Shi, Xuan Wang, Xiaowen Chu
摘要
The sparsely activated mixture-of-experts (MoE) transformer has become a common architecture for large language models (LLMs) due to its sparsity, which requires fewer computational demands while easily scaling the model size. In MoE models, each MoE layer requires to dynamically choose tokens to activate particular experts for computation while the activated experts may not be located in the same device or GPU as the token. However, this leads to substantial communication and load imbalances across all GPUs, which obstructs the scalability of distributed systems within a GPU cluster. To this end, we introduce HierMoE to accelerate the training of MoE models by two topology-aware techniques: 1) token deduplication to reduce the communication traffic, and 2) expert swap to balance the workloads among all GPUs. To enable the above two proposed approaches to be more general, we build theoretical models aimed at achieving the best token duplication and expert swap strategy under different model configurations and hardware environments. We implement our prototype HierMoE system atop Megatron-LM and conduct experiments on a 32-GPU cluster with DeepSeek-V3 and Qwen3-30B-A3B models. Experimental results show that our HierMoE achieves 1.55× to 3.32× faster communication and delivers 1.18× to 1.27× faster end-to-end training compared to state-of-the-art MoE training systems, Tutel-2DH, SmartMoE, and Megatron-LM.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- UBEP: Re-architecting Expert Parallelism Communication Library for Production Superpods 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- UBEP: Re-architecting Expert Parallelism Communication Library for Production Superpods 引用了 Mixture-of-Experts with Expert Choice Routing
- UBEP: Re-architecting Expert Parallelism Communication Library for Production Superpods 引用了 DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale
- DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale 引用了 DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale
- DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale 引用了 DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale
- Mixture-of-Experts with Expert Choice Routing 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- Mixture-of-Experts with Expert Choice Routing 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
引用它的顶会 Paper2
- ZipCCL: Efficient Lossless Data Compression of Communication Collectives for Accelerating LLM TrainingWenxiang Lin, Xinglin Pan, Ruibo Fan, Shaohuai Shi 等SIGCOMM 2026 · 1 次引用
- UBEP: Re-architecting Expert Parallelism Communication Library for Production SuperpodsYipeng Liu, Chang Liu, Si Shen, Jiaqi Zheng 等SIGCOMM 2026
它引用的 Paper21
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
- Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用
- 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 次引用
- BASE Layers: Simplifying Training of Large, Sparse ModelsMike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal 等ICML 2021 · 382 次引用
- DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented ScaleReza Yazdani Aminabadi, Samyam Rajbhandari, Ammar Ahmad Awan, Cheng Li 等SC 2022 · 276 次引用
相关 Paper
- MegaScale-MoE: Large-Scale Communication-Efficient Training of Mixture-of-Experts Models in ProductionChao Jin, Ziheng Jiang, Zhihao Bai, Zheng Zhong 等EuroSys 2026 · 5 次引用
- PipeMoE: Accelerating Mixture-of-Experts through Adaptive PipeliningShaohuai Shi, Xinglin Pan, Xiaowen Chu, Bo LiINFOCOM 2023 · 23 次引用
- Parm: Efficient Training of Large Sparsely-Activated Models with Dedicated SchedulesXinglin Pan, Wenxiang Lin, Shaohuai Shi, Xiaowen Chu 等INFOCOM 2024 · 13 次引用
- SP-MoE: Expediting Mixture-of-Experts Training with Optimized Pipelining PlanningNe Wang, Wenxiang Lin, Lin Zhang, Shaohuai Shi 等INFOCOM 2025 · 7 次引用
- Scaling Beyond the GPU Memory Limit for Large Mixture-of-Experts Model TrainingYechan Kim, Hwijoon Lim, Dongsu HanICML 2024 · 10 次引用
