重新审视 AllReduce 的时间成本模型
Revisiting the Time Cost Model of AllReduce
AI总结:
本文指出现代集群上传统 $(α,β,γ)$ AllReduce 成本模型不足,引入 incast 与内存访问项提出 GenModel,并据此设计树状拓扑的 GenTree,在 64 GPU 测试床和大规模仿真中显著优于 NCCL 及现有算法。
摘要:
AllReduce 是一种重要且流行的集合通信原语,已广泛应用于分布式机器学习和高性能计算等领域。为了设计、分析并在各种 AllReduce 算法与实现之间进行选择,时间成本模型起着至关重要的作用,其中占主导地位的是 $(α,β,γ)$ 模型。本文重新审视该模型,揭示其无法很好地刻画现代集群上 AllReduce 的时间成本,因此必须加以更新。我们进行了大量测量,识别出导致时间成本的两个额外项:incast 项和内存访问项。我们用这两个项扩展 $(α,β,γ)$ 模型,并由此提出 GenModel。利用 GenModel,我们发现了 AllReduce 算法的两个新最优性,并证明它们无法同时实现。最后,通过在这两个新最优性之间取得平衡,我们设计了 GenTree,这是一种专门面向树状拓扑的 AllReduce 计划生成算法。在包含 64 个 GPU 的真实测试床上的实验表明,与 NCCL 相比,GenTree 可实现 1.22 倍至 1.65 倍的加速。大规模仿真还证实,在这两个新项占主导地位的场景中,GenTree 可将最先进的 AllReduce 算法提升 1.2 倍至 7.4 倍。
英文摘要:
AllReduce is an important and popular collective communication primitive, which has been widely used in areas such as distributed machine learning and high performance computing. To design, analyze, and choose from various algorithms and implementations of AllReduce, the time cost model plays a crucial role, and the predominant one is the $(α,β,γ)$ model. In this paper, we revisit this model, and reveal that it cannot well characterize the time cost of AllReduce on modern clusters; thus must be updated. We perform extensive measurements to identify two additional terms contributing to the time cost: the incast term and the memory access term. We augment the $(α,β,γ)$ model with these two terms, and present GenModel as a result. Using GenModel, we discover two new optimalities for AllReduce algorithms, and prove that they cannot be achieved simultaneously. Finally, striking the balance between the two new optimalities, we design GenTree, an AllReduce plan generation algorithm specialized for tree-like topologies. Experiments on a real testbed with 64 GPUs show that GenTree can achieve 1.22$\times$ to 1.65$\times$ speed-up against NCCL. Large-scale simulations also confirm that GenTree can improve the state-of-the-art AllReduce algorithm by a factor of $1.2$ to $7.4$ in scenarios where the two new terms dominate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。