TopoEP: Topology-Aware Load Balancing for Expert-Parallel MoE Training
Jiacheng Zhu, Xie Zhao, Gongming Zhao, Hongli Xu, Yao Fei, Jin Fang
Abstract
Dynamic routing creates severe load imbalance in large-scale expert-parallel Mixture-of-Experts (MoE) training, turning GPUs that host hot experts into stragglers. As each MoE layer waits for its slowest rank, these stragglers prolong the expert-parallel stage and reduce overall training efficiency. Existing expert-parallelism load-balancing (EPLB) systems commonly compute load-balancing plans on the CPU, incurring device--host data transfers and cross-rank synchronization that make scheduling at every layer and microbatch expensive. Their planning formulations also overlook the hierarchical communication costs of modern scale-up and scale-out GPU clusters. We present TopoEP, a GPU-native, topology-aware load-balancing system for large-scale MoE training. At each MoE layer and training microbatch, TopoEP converts the current routing result into hot-expert replication and token-rerouting decisions and executes the resulting plan without data-dependent host synchronization, reducing critical-path overhead. To generate these decisions, TopoEP uses a deterministic GPU solver that performs inter-node placement followed by intra-node refinement, allowing all ranks to independently produce bitwise-identical plans. On a 32-GPU NVIDIA H800 cluster, integrating TopoEP with Megatron-LM improves end-to-end training throughput by 6.2\%--11.4\% across three representative MoE models.
Create a lesson
Metadata
- Categories
- cs.DC, cs.LG
Related papers
HAPMoE: Heterogeneity-Aware Automatic Parallelism Planning for Mixture-of-Experts Models Training
Shared title terminologycs.DCMengyuan Fan, Peizhuang Cong, Zixiao Huang et al.
HyperParallel-FSDP: Topology-Aware Fully Sharded Training with Layout-Driven Muon on Ascend SuperPods
Shared title terminologycs.DCMo Sun, Yifan Yao, Yanwei Liu et al.
Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Shared title terminologycs.DCBorui Xu, Weihao Cui, Yao Chen et al.
NCCL M2N: A Layout- and Topology-Aware Collective for Distributed Tensor Resharding
Shared title terminologycs.DCKaushik Kandadi, Youngeun Kwon, Sreeram Potluri et al.
RailWave: Adaptive Spatial and Temporal Scheduling for Expert-Parallel Communication
Shared title terminologycs.DCChutian Wang, Wenhao He, Jingmin Zhu et al.
Efficient Expert-Parallel Communication on PCIe-Connected Consumer GPUs
Shared title terminologycs.DCJaehwan Lee, Sangmin Lee, Chaewon Kim et al.