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

从承诺到实践:实现高性能去中心化训练

From promise to practice: realizing high-performance decentralized training

KTH Royal Institute of Technology(皇家理工学院);Southern University of Science and Technology(南方科技大学)

Zesen Wang, Jiaojiao Zhang, Xuyang Wu, Mikael Johansson

AI总结:

本文针对多节点去中心化训练的挑战,构建运行时模型揭示提升速度的关键因素,提出支持通信计算重叠的去中心化Adam算法及累积技术,在64 GPU集群上验证了其在运行时间和泛化性能上的优势。

摘要:

深度神经网络的去中心化训练因在理论上比All-Reduce等同步数据并行方法具有更优的可扩展性而受到广泛关注。然而,由于涉及通信拓扑、计算模式和优化算法的复杂设计空间,在多节点训练中实现这一潜力颇具挑战。本文确定了可带来相比All-Reduce训练速度提升的三个关键因素,并构建了一个运行时模型,以确定去中心化在何时、以何种方式以及在多大程度上能够产生更短的单次迭代运行时间。此外,为了支持基于transformer的模型的去中心化训练,我们研究了一种允许通信与计算重叠的去中心化Adam算法,证明了其收敛性,并提出了一种累积技术来缓解由较小的局部批处理大小引起的高方差。我们在最多包含64个GPU的集群中部署了所提方法,并在固定的迭代预算下证明了其在运行时间和泛化性能方面的实用性与优势。

英文摘要:

Decentralized training of deep neural networks has attracted significant attention for its theoretically superior scalability over synchronous data-parallel methods like All-Reduce. However, realizing this potential in multi-node training is challenging due to the complex design space that involves communication topologies, computation patterns, and optimization algorithms. This paper identifies three key factors that can lead to speedups over All-Reduce training and constructs a runtime model to determine when, how, and to what degree decentralization can yield shorter per-iteration runtimes. Furthermore, to support the decentralized training of transformer-based models, we study a decentralized Adam algorithm that allows for overlapping communications and computations, prove its convergence, and propose an accumulation technique to mitigate the high variance caused by small local batch sizes. We deploy the proposed approach in clusters with up to 64 GPUs and demonstrate its practicality and advantages in both runtime and generalization performance under a fixed iteration budget.

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

↑