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

FUSCO:通过变换-通信融合实现高性能分布式数据洗牌

FUSCO: High-Performance Distributed Data Shuffling via Transformation-Communication Fusion

Tsinghua University(清华大学);Infinigence AI(英智智能);University of Southern California(南加州大学);Zhongguancun Academy(中关村研究院);Shanghai Jiaotong University(上海交通大学)

Zhuoran Zhu, Chunyang Zhu, Hao Lin, Xu Fu, Yiming Zhou, Quanlu Zhang, Zhenhua Li, Feng Qian, Chao Yu, Boxun Li, Guohao Dai, Yu Wang

AI总结:

FUSCO通过融合数据转换和通信实现高效数据洗牌,提升MoE模型的训练和推理性能。

摘要:

大规模混合专家(MoE)模型依赖于专家并行性以实现高效的训练和推理,这将专家分布在设备上,并需要分布式数据洗牌来将每个token路由到其分配的专家。然而,现有通信库处理这种洗牌效果不佳;其开销可能占端到端运行时间的一半以上。我们提出了FUSCO,一种适用于MoE的通信库,通过融合数据转换和通信实现高效且轻量的数据洗牌,基于关键观察:MoE的专家主导的数据布局与通信操作预期的设备主导布局冲突。FUSCO捕获了细粒度的数据布局,然后由一个流水线通信引擎解释,该引擎在通信路径上高效地执行所需的洗牌。轻量级规划和负载平衡机制补充了引擎,通过消除冗余通信和分散流量。在代表性的基准测试中,FUSCO在NCCL和DeepEP(最先进的MoE通信库)上分别实现了3.84倍和2.01倍的加速。在端到端的MoE任务中,与NCCL和DeepEP相比,FUSCO将训练延迟降低了1.17-1.39倍和1.10-1.19倍,并降低了推理中的第一个token生成延迟1.09-1.25倍和1.06-1.16倍。

英文摘要:

Large-scale Mixture-of-Experts (MoE) models rely on \emph{expert parallelism} for efficient training and inference, which splits experts across devices and necessitates distributed data shuffling to route each token to its assigned experts. However, existing communication libraries handle this shuffling poorly; its overhead can account for over half of end-to-end runtime. We present FUSCO, an MoE-friendly communication library that achieves efficient and lightweight data shuffling through fused data transformation and communication, based on the key observation that MoE's expert-major data layout conflicts with the device-major layout expected by communication operations. FUSCO captures the fine-grained data layout, which is then interpreted by a pipelined communication engine that performs the required shuffling efficiently along the communication path. Lightweight planning and load-balancing mechanisms complement the engine by eliminating redundant communication and dispersing traffic. Evaluations on representative benchmarks illustrate that FUSCO achieves up to 3.84$\times$ and 2.01$\times$ speedups over NCCL and DeepEP (the state-of-the-art MoE communication library), respectively. In end-to-end MoE tasks, compared to NCCL and DeepEP, FUSCO reduces the training latency by 1.17-1.39$\times$ and 1.10-1.19$\times$, and lowers the first-token generation latency in inference by 1.09-1.25$\times$ and 1.06-1.16$\times$.

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

↑