arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.14798cs.DC
收藏

通过专家放置与副本协调加速混合专家(MoE)模型训练

Accelerating MoE Training through Expert Placement and Replica Coordination

School of Computer Science and Technology, Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳)计算机科学与技术学院);Hong Kong University of Science and Technology(香港科技大学)

Zhiqiang Tan, Maoxin Wang, Wenxiang Lin, Sijie Wang, Qiang Wang, Shaohuai Shi, Bo Li

AI总结:

PlaceMoE通过联合优化专家布局与令牌-副本映射,结合梯度同步与注意力反向传播重叠技术,在32-GPU和64-NPU集群上,使MoE模型训练的A2A通信提速最高6.94倍、端到端训练提速1.74-2.33倍,优于VeOmni框架。

摘要:

稀疏激活的混合专家(MoE)模型的分布式训练常因动态令牌路由引发的工作负载不平衡和全对全(A2A)通信成为瓶颈。现有的令牌去重、专家放置及副本复制技术虽能缓解这些瓶颈,但未联合捕捉其不同的负载语义。在分层令牌去重机制下,通信开销在每个层级对每个目标组的令牌各计数一次,而专家计算则处理每一个令牌-专家分配;引入副本后,两种开销均同时依赖物理布局与令牌到副本的映射,单独优化效果不佳。本文提出PlaceMoE以解决该耦合问题:首先,针对分布在P个设备上的E个专家,联合优化专家布局与源感知的令牌到副本映射,同时考虑分层通信流量与专家计算负载;其次,开发了一种求解器,结合共选择感知的专家分组、用于副本分配的有界动态规划,以及布局与映射的交替优化;最后,PlaceMoE将副本梯度同步与注意力反向传播重叠执行。在32-GPU集群和64-NPU集群上,使用Qwen3-VL与DeepSeek-V3进行评估,实验结果显示,PlaceMoE的A2A通信速度最高提升6.94倍,端到端训练速度较当前最优训练框架VeOmni提升1.74至2.33倍。

英文摘要:

Distributed training of sparsely activated mixture-of-experts (MoE) models is often bottlenecked by workload imbalance and all-to-all (A2A) communication induced by dynamic token routing. Existing token deduplication, expert placement, and replication techniques alleviate these bottlenecks but do not jointly capture their distinct load semantics. Under hierarchical token deduplication, communication counts each token once per destination group at each hierarchy level, whereas expert computation processes every token-expert assignment. With replication, both costs depend jointly on physical layout and token-to-copy mapping, making separate optimization suboptimal. We present PlaceMoE to address this coupling. First, we formulate the joint optimization of expert layout and source-aware token-to-copy mapping for E experts distributed across P devices, accounting for both hierarchical communication traffic and expert-compute load. Second, we develop a solver that combines co-selection-aware expert grouping, bounded dynamic programming for replica allocation, and alternating refinement of layout and mapping. Third, PlaceMoE overlaps replica-gradient synchronization with attention backward. We evaluate PlaceMoE on a 32-GPU cluster and a 64-NPU cluster using Qwen3-VL and DeepSeek-V3. Experimental results show that PlaceMoE achieves up to a 6.94x speedup in A2A communication and 1.74-2.33x speedups in end-to-end training over the state-of-the-art training framework VeOmni.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑