arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17254cs.DCcs.NI
收藏

Trivance: 通过多端口网络捷径实现延迟最优的AllReduce

Trivance: Latency-Optimal AllReduce by Shortcutting Multiport Networks

Weizenbaum Institute(魏曾鲍姆研究所);TU Berlin(柏林工业大学);Purdue University(普渡大学)

Anton Juerss, Vamsi Addanki, Stefan Schmid

AI总结:

Trivance是一种在log_3 n步内完成的延迟最优AllReduce算法,通过多端口网络减少拥堵并保持带宽最优性。

摘要:

AllReduce是分布式计算中的基本集体操作,也是大规模训练和推理的关键性能瓶颈。其完成时间由通信步骤的数量决定,这主导了对延迟敏感的工作负载,并受影响通信距离的两种 regime(延迟受限和带宽受限)。直接连接拓扑,如Google的TPUv4使用的环形网络,由于有限的切片带宽,特别容易出现大的通信距离。延迟最优的算法,如Bruck的完全AllReduce在log_3 n步内完成,但导致通信距离大,从而产生大量拥堵。相反,最近的方法如Swing减少了通信距离和拥堵,但本质上需要进行log_2 n步才能完成AllReduce,牺牲了延迟最优性。在本文中,我们提出Trivance,一种新的AllReduce算法,可以在log_3 n步内完成,同时将拥堵减少到Bruck算法的三分之一,并保持带宽最优性。Trivance利用双向环形网络中的每个步骤的两个传输端口,同时在两个方向上三倍增加通信距离。此外,通过执行联合缩减,Trivance提高了步骤数和网络拥堵。我们进一步证明,Trivance可以自然扩展到多维超立方体网络,保留其延迟优势,同时在大消息情况下达到与带宽最优算法相当的性能。我们的实证评估显示,Trivance在消息大小高达8MiB、高带宽设置高达32MiB以及3D超立方体高达128MiB的情况下,比最先进的方法提高了5-30%。在整个评估过程中,Trivance始终是表现最佳的延迟最优算法。

英文摘要:

AllReduce is a fundamental collective communication operation in distributed computing and a key performance bottleneck for large-scale training and inference. Its completion time is determined by the number of communication steps, which dominate latency-sensitive workloads, and the communication distance affecting both latency- and bandwidth-bound regimes. Direct-connect topologies, such as Google's TPUv4 tori, are particularly prone to large communication distances due to limited bisection bandwidth. In this paper, we present Trivance, a novel AllReduce algorithm that completes within $\log_3 n$ steps - a 50% improvement in comparison to Swing and Recursive Doubling, while reducing congestion compared to Bruck's algorithm by a factor of three and preserving bandwidth-optimality. Trivance exploits both transmission ports of a bidirectional ring within each step to triple the communication distance along both directions simultaneously. By performing joint reductions, Trivance improves both the number of steps and network congestion. We further show that Trivance extends naturally to multidimensional torus networks, retaining its latency advantage while achieving performance comparable to bandwidth-optimal algorithms for large AllReduce sizes. Our packet-level SST simulation shows that Trivance improves state-of-the-art approaches by 5-30% for AllReduce sizes up to 8 MiB, in high-bandwidth settings up to 32 MiB and for 3D tori up to 128 MiB. Throughout the evaluation, Trivance remains the best-performing latency-optimal algorithm.

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

↑