arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.04870cs.LG
收藏

多头潜在MoE与头并行:通信高效且确定性的MoE并行

Multi-Head LatentMoE and Head Parallel: Communication-Efficient and Deterministic MoE Parallelism

School of Computing and Augmented Intelligence(计算与增强智能学院);Arizona State University(亚利桑那州立大学)

Chenwei Cui, Rockwell Jackson, Benjamin Joseph Herrera, Ana María Tárano, Hannah Kerner

AI总结:

本文提出多头潜在MoE与头并行方法,通过降低通信成本和提升并行效率,实现更高效的MoE训练。

摘要:

大型语言模型已改变了许多应用,但训练仍然昂贵。稀疏专家混合(MoE)通过条件计算来解决这一问题,专家并行(EP)是标准的分布式训练方法。然而,EP有三个限制:通信成本与激活专家数量k成线性增长,负载不平衡影响延迟和内存使用,且数据依赖的通信需要元数据交换。我们提出多头潜在MoE和头并行(HP),一种新的架构和并行方法,实现无论k如何通信成本均为O(1),完全平衡的流量,以及确定性的通信,同时仍与EP兼容。为了加速多头潜在MoE,我们提出IO感知路由和专家计算。与MoE结合EP相比,多头潜在MoE结合HP的训练速度可提高多达1.61倍,同时性能相同。在粒度加倍的情况下,它实现了更高的整体性能,同时仍比1.11倍快。我们的方法使多十亿参数基础模型研究更加可行。

英文摘要:

Large language models have transformed many applications but remain expensive to train. Sparse Mixture of Experts (MoE) addresses this through conditional computation, with Expert Parallel (EP) as the standard distributed training method. However, EP has three limitations: communication cost grows linearly with the number of activated experts $k$, load imbalance affects latency and memory usage, and data-dependent communication requires metadata exchange. We propose Multi-Head LatentMoE and Head Parallel (HP), a new architecture and parallelism achieving $O(1)$ communication cost regardless of $k$, completely balanced traffic, and deterministic communication, all while remaining compatible with EP. To accelerate Multi-Head LatentMoE, we propose IO-aware routing and expert computation. Compared to MoE with EP, Multi-Head LatentMoE with HP trains up to $1.61\times$ faster while having identical performance. With doubled granularity, it achieves higher overall performance while still being $1.11\times$ faster. Our method makes multi-billion-parameter foundation model research more accessible.

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

↑