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

MoEntwine:释放晶圆级芯片在大规模专家并行推理中的潜力

MoEntwine: Unleashing the Potential of Wafer-scale Chips for Large-scale Expert Parallel Inference

Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Xinru Tang, Jingxiang Hou, Dingcheng Jiang, Taiquan Wei, Jiaxin Liu, Jinyi Deng, Huizheng Wang, Qize Yang, Haoran Shang, Chao Li, Yang Hu, Shouyi Yin

AI总结:

针对GPU集群中MoE模型专家并行通信开销高、晶圆级芯片网格拓扑通信不均且专家迁移开销大的问题,提出ER-Mapping和NI-Balancer,显著提升MoE推理性能。

摘要:

随着大语言模型(LLM)规模持续扩大,混合专家(MoE)已成为SOTA模型中的常用技术。MoE模型依赖专家并行(EP)缓解内存瓶颈,这一过程需要全对全通信在不同设备间分发和合并令牌。然而,在广泛应用的GPU集群中,高开销的跨节点通信使得全对全通信成本高昂,阻碍了EP的落地。近年来,晶圆级芯片(WSC)作为一种在晶圆尺寸中介层上集成大量设备的平台应运而生,WSC提供连接所有设备的统一高性能网络,为部署MoE模型展现出可观潜力。但其网络受限于网格拓扑,会导致通信压力不均衡和性能损失。此外,晶圆上无磁盘的特性使得关键路径上的专家迁移开销很高。\n为充分释放这一潜力,我们首先提出缠绕环映射(ER-Mapping),该方法协同设计注意力层和MoE层的映射,以平衡通信压力并实现更优性能。我们发现在ER-Mapping下,注意力层和MoE层的冷热链路分布具有互补性。因此,为隐藏迁移开销,我们提出非侵入式均衡器(NI-Balancer),将完整的专家迁移拆分为多个步骤,交替利用两层的冷链路。评估结果显示,ER-Mapping最多可减少62%的通信量。NI-Balancer进一步将MoE的计算和通信性能分别提升54%和22%。与SOTA的NVL72超级节点相比,WSC平台由于可扩展至更大规模的EP,单设备MoE性能平均高出39%。

英文摘要:

As large language models (LLMs) continue to scale up, mixture-of-experts (MoE) has become a common technology in SOTA models. MoE models rely on expert parallelism (EP) to alleviate memory bottleneck, which introduces all-to-all communication to dispatch and combine tokens across devices. However, in widely-adopted GPU clusters, high-overhead cross-node communication makes all-to-all expensive, hindering the adoption of EP. Recently, wafer-scale chips (WSCs) have emerged as a platform integrating numerous devices on a wafer-sized interposer. WSCs provide a unified high-performance network connecting all devices, presenting a promising potential for hosting MoE models. Yet, their network is restricted to a mesh topology, causing imbalanced communication pressure and performance loss. Moreover, the lack of on-wafer disk leads to high-overhead expert migration on the critical path. To fully unleash this potential, we first propose Entwined Ring Mapping (ER-Mapping), which co-designs the mapping of attention and MoE layers to balance communication pressure and achieve better performance. We find that under ER-Mapping, the distribution of cold and hot links in the attention and MoE layers is complementary. Therefore, to hide the migration overhead, we propose the Non-invasive Balancer (NI-Balancer), which splits a complete expert migration into multiple steps and alternately utilizes the cold links of both layers. Evaluation shows ER-Mapping achieves communication reduction up to 62%. NI-Balancer further delivers 54% and 22% improvements in MoE computation and communication, respectively. Compared with the SOTA NVL72 supernode, the WSC platform delivers an average 39% higher per-device MoE performance owing to its scalability to larger EP.

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

↑