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

SP-Allreduce:面向环面及更广泛拓扑的对称树调度算法

SP-Allreduce: Symmetric Tree Schedules for Tori and Beyond

Mikhail Cherniavskii, Andrey Kupavskii, Georgy Mironov, Stanislav Moiseev

AI总结:

本文提出适用于d维环面及更广泛对称拓扑的SP-allreduce算法,其为完全带宽最优,轮数最少,在环面、HyperX等网络上较现有算法有显著性能提升。

摘要:

Allreduce是大规模分布式训练中的基础通信原语,环面互连结构仍广泛应用于高性能系统中。我们提出SP-allreduce,一种适用于d维环面的新型Allreduce算法,该算法利用拓扑的对称性,仅沿最短路径路由。若Allreduce算法无带宽开销、无多跳引发的流量膨胀,且实现了每轮的完美负载均衡,则称其为“完全带宽最优”算法。SP-allreduce基于一组精心对称化的最短路径树,在α-β模型中保证完全带宽最优性。我们证明,在d维环面上,SP-allreduce在所有完全带宽最优的Allreduce算法中使用的轮数最少,因此在该类算法中运行时间最短。从这个意义上讲,SP-allreduce是对Bucket Allreduce的改进:它保留了Bucket Allreduce的核心优势,同时将轮数减少了一半。我们进一步将该方法扩展到更广泛的对称拓扑和指定深度的通信树。实验结果显示,在测试配置中,所得算法在正方形环面上比最佳对比的最新算法提升最高达1.19倍,在矩形环面上提升最高达1.65倍;在HyperX和Spine-Leaf网络上,分别比最佳评估基线提升最高达14.82倍和1.72倍。

英文摘要:

Allreduce is a fundamental communication primitive in large-scale distributed training, and torus interconnects remain widely deployed in high-performance systems. We introduce SP-allreduce, a new allreduce algorithm for $d$-dimensional tori that exploits the symmetry of the topology and routes only along shortest paths. We call an allreduce algorithm \emph{fully bandwidth-optimal} if it incurs no bandwidth overhead, no multihop-induced traffic inflation, and achieves perfect per-round load balance. SP-allreduce is based on a family of carefully symmetrized shortest-path trees that guarantees full bandwidth optimality in the $α$--$β$ model. We prove that it uses the minimum possible number of rounds among all fully bandwidth-optimal allreduce algorithms on $d$-dimensional tori, and therefore the minimum running time in this class. In this sense, SP-allreduce refines Bucket allreduce: it preserves Bucket's key strengths while reducing the number of rounds by a factor of two. We further extend our approach to broader symmetric topologies and to communication trees of prescribed depths. Experimentally, the resulting algorithms improve over the best compared state-of-the-art algorithms for tori by up to $1.19\times$ on square tori and $1.65\times$ on rectangular tori across the tested configurations. On HyperX and spine-leaf networks, we demonstrate gains of up to $14.82\times$ and $1.72\times$, respectively, over the best evaluated baselines.

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

↑