Lune

ASPLOS2025顶会

FSMoE: A Flexible and Scalable Training System for Sparse Mixture-of-Experts Models

Xinglin Pan, Wenxiang Lin, Lin Zhang, Shaohuai Shi, Zhenheng Tang, Rui Wang, Bo Li, Xiaowen Chu

摘要

Recent large language models (LLMs) have tended to leverage sparsity to reduce computations, employing the sparsely activated mixture-of-experts (MoE) technique. MoE introduces four modules, including token routing, token communication, expert computation, and expert parallelism, that impact model quality and training efficiency. To enable ver- satile usage of MoE models, we introduce FSMoE, a flexible training system optimizing task scheduling with three novel techniques: 1) Unified abstraction and online profiling of MoE modules for task scheduling across various MoE implementations. 2) Co-scheduling intra-node and inter-node communications with computations to minimize communication overheads. 3) To support near-optimal task scheduling, we design an adaptive gradient partitioning method for gradient aggregation and a schedule to adaptively pipeline communications and computations. We conduct extensive experiments with configured MoE layers and real-world MoE models on two GPU clusters. Experimental results show that 1) our FSMoE supports four popular types of MoE routing functions and is more efficient than existing implementations (with up to a 1.42× speedup), and 2) FSMoE outperforms the state-of-the-art MoE training systems (DeepSpeed-MoE and Tutel) by 1.18×-1.22× on 1458 MoE layers and 1.19×-3.01× on real-world MoE models based on GPT-2 and Mixtral using a popular routing function. In this work, we present a flexible training system named FSMoE to optimize task scheduling. To achieve this goal: 1) we design unified abstraction and online profiling of MoE modules across various MoE implementations, 2) we co-schedule intra-node and inter-node communications with computations to minimize communication overhead, and 3) we design an adaptive gradient partitioning method for gradient aggregation and a schedule to adaptively pipeline communications and computations. Experimental results on two clusters up to 48 GPUs show that our FSMoE outperforms the state-of-the-art MoE training systems (DeepSpeed-MoE and Tutel) with speedups of 1.18x-1.22x on 1458 customized MoE layers and 1.19x-3.01x on real-world MoE models based on GPT-2 and Mixtral.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • HierMoE: Accelerating MoE Training with Hierarchical Token Deduplication and Expert Swap 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • HierMoE: Accelerating MoE Training with Hierarchical Token Deduplication and Expert Swap 引用了 Mixture-of-Experts with Expert Choice Routing
  • PaLM-E: An Embodied Multimodal Language Model 引用了 Language Models are Few-Shot Learners
  • MoEntwine: Unleashing the Potential of Wafer-Scale Chips for Large-Scale Expert Parallel Inference 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • FlowMoE: A Scalable Pipeline Scheduling Framework for Distributed Mixture-of-Experts Training 引用了 Large Batch Optimization for Deep Learning: Training BERT in 76 minutes
  • FlowMoE: A Scalable Pipeline Scheduling Framework for Distributed Mixture-of-Experts Training 引用了 Language Models are Few-Shot Learners
  • FlowMoE: A Scalable Pipeline Scheduling Framework for Distributed Mixture-of-Experts Training 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • SYMI: Efficient Mixture-of-Experts Training via Model and Optimizer State Decoupling 引用了 Language Models are Few-Shot Learners
  • SYMI: Efficient Mixture-of-Experts Training via Model and Optimizer State Decoupling 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • SYMI: Efficient Mixture-of-Experts Training via Model and Optimizer State Decoupling 引用了 Mixture-of-Experts with Expert Choice Routing
  • Mixture of Sequence: Theme-Aware Mixture-of-Experts for Long-Sequence Recommendation 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Mixture of Sequence: Theme-Aware Mixture-of-Experts for Long-Sequence Recommendation 引用了 Mixture-of-Experts with Expert Choice Routing
  • GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding 引用了 Language Models are Few-Shot Learners
  • Mixture-of-Experts with Expert Choice Routing 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. HierMoE: Accelerating MoE Training with Hierarchical Token Deduplication and Expert SwapWenxiang Lin, Xinglin Pan, Lin Zhang, Shaohuai Shi 等INFOCOM 2026 · 7 次引用
  2. FlowMoE: A Scalable Pipeline Scheduling Framework for Distributed Mixture-of-Experts TrainingYunqi Gao, Bing Hu, Mahdi Boloursaz Mashhadi, A-Long Jin 等NeurIPS 2025 · 6 次引用
  3. SYMI: Efficient Mixture-of-Experts Training via Model and Optimizer State DecouplingAthinagoras Skiadopoulos, Mark Zhao, Swapnil Gandhi, Thomas Norrie 等NSDI 2026 · 6 次引用
  4. MoEntwine: Unleashing the Potential of Wafer-Scale Chips for Large-Scale Expert Parallel InferenceXinru Tang, Jingxiang Hou, Dingcheng Jiang, Taiquan Wei 等HPCA 2026 · 4 次引用
  5. Mixture of Sequence: Theme-Aware Mixture-of-Experts for Long-Sequence RecommendationXiao Lin, Zhicheng Tang, Weilin Cong, Mengyue Hang 等WWW 2026 · 3 次引用

它引用的 Paper30

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. PaLM-E: An Embodied Multimodal Language ModelDanny Driess, Fei Xia, Mehdi S. M. Sajjadi, Corey Lynch 等ICML 2023 · 2,601 次引用
  3. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
  4. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu 等ICLR 2020 · 1,170 次引用
  5. Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用

相关 Paper

  1. Parm: Efficient Training of Large Sparsely-Activated Models with Dedicated SchedulesXinglin Pan, Wenxiang Lin, Shaohuai Shi, Xiaowen Chu 等INFOCOM 2024 · 13 次引用
  2. ScheMoE: An Extensible Mixture-of-Experts Distributed Training System with Tasks SchedulingShaohuai Shi, Xinglin Pan, Qiang Wang, Chengjian Liu 等EuroSys 2024 · 26 次引用
  3. PipeMoE: Accelerating Mixture-of-Experts through Adaptive PipeliningShaohuai Shi, Xinglin Pan, Xiaowen Chu, Bo LiINFOCOM 2023 · 23 次引用
  4. SP-MoE: Expediting Mixture-of-Experts Training with Optimized Pipelining PlanningNe Wang, Wenxiang Lin, Lin Zhang, Shaohuai Shi 等INFOCOM 2025 · 7 次引用
  5. FoldMoE: Efficient Long Sequence MoE Training via Attention-MoE PipeliningGuichao Zhu, Lintian Lei, Yuhao Qing, Yichao Fu 等ACL 2025
黄昏的海面,两侧是细线勾勒的悬崖