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

Nezha: 突破多轨网络障碍实现分布式DNN训练

Nezha: Breaking Multi-Rail Network Barriers for Distributed DNN Training

National University of Defense Technology(国防科技大学)

Enda Yu, Dezun Dong, Xiangke Liao

AI总结:

Nezha通过协议无关的多轨网络系统,实现分布式DNN训练的高效通信优化,提升吞吐量和训练效率。

摘要:

在分布式深度学习中,通信仍然是关键瓶颈。尽管现代硬件迅速发展,但超过60%的生产HPC系统仍依赖于遗留基础设施(V100 GPU,多平面以太网/InfiniBand),需要在不升级硬件的情况下进行通信优化。现有方法面临三个关键限制:(1)静态单轨绑定未能充分利用多轨带宽;(2)协议异质性(TCP-RDMA共存)导致同步延迟;(3)主流库(NCCL/MPI)缺乏跨协议协调。我们提出了Nezha,这是首个协议无关的多轨网络系统。我们的贡献包括:(1)硬件无关的跨协议协调:一种统一的抽象,使网络计算(SHARP)、自适应RDMA(GLEX)和TCP能够无缝协作,实现比Gloo低1.7到4.3倍的延迟。(2)协议感知的动态负载均衡:一种混合调度策略,具有冷/热启动状态机,用于异构协议,减少小负载的启动延迟,同时提高大传输的吞吐量。(3)容错的多轨协作:一种自我恢复机制,在单轨故障时可在200毫秒内重新路由数据流,确保训练不间断。在8节点集群上的实验表明,Nezha在同构(TCP-TCP)和异构(TCP-SHARP)网络中分别比MPTCP高出74%和80%的吞吐量。在128节点超级计算机上,Nezha的训练效率比Gloo高2.36倍。通过连接现代DNN通信需求与遗留基础设施,Nezha证明了系统化的多轨优化可以释放老化集群的潜力。

英文摘要:

In distributed deep learning, communication remains a critical bottleneck. While modern hardware advances rapidly, over 60 percent of production HPC systems still rely on legacy infrastructure (V100 GPUs, multi-plane Ethernet/InfiniBand), necessitating communication optimization without hardware upgrades. Existing approaches face three key limitations: (1) static single-rail binding underutilizes multi-rail bandwidth, (2) protocol heterogeneity (TCP-RDMA coexistence) causes synchronization delays, and (3) mainstream libraries (NCCL/MPI) lack cross-protocol coordination. We present Nezha, the first protocol-agnostic system for multi-rail networks. Our contributions include: (1) Hardware-agnostic cross-protocol coordination: A unified abstraction enabling seamless collaboration between in-network computing (SHARP), adaptive RDMA (GLEX), and TCP, achieving 1.7 to 4.3 times lower latency than Gloo. (2) Protocol-aware dynamic load balancing: A hybrid scheduling strategy with cold/hot start state machine for heterogeneous protocols, reducing startup latency for small payloads while enhancing throughput for large transfers. (3) Fault-tolerant multi-rail collaboration: A self-recovery mechanism that reroutes data flows within 200 milliseconds upon single-rail failures, ensuring uninterrupted training. Experiments on 8-node clusters demonstrate Nezha achieves 74 percent and 80 percent higher throughput than MPTCP in homogeneous (TCP-TCP) and heterogeneous (TCP-SHARP) networks, respectively. On 128-node supercomputers, Nezha delivers 2.36 times higher training efficiency than Gloo. By bridging modern DNN communication demands with legacy infrastructure, Nezha proves that systematic multi-rail optimization can unlock the potential of aging clusters.

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

↑