arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2107.01499cs.LGcs.DC
收藏

BAGUA:使用系统松弛扩展分布式学习

BAGUA: Scaling up Distributed Learning with System Relaxations

ETH Zürich(苏黎世联邦理工学院);Kuaishou Technology(快手科技)

Shaoduo Gan, Xiangru Lian, Rui Wang, Jianbin Chang, Chengjun Liu, Hongmei Shi, Shengzhuo Zhang, Xianghong Li, Tengxu Sun, Jiawei Jiang, Binhang Yuan, Sen Yang, Ji Liu, Ce Zhang

摘要:

近年来,分布式数据并行训练的系统越来越多。现有的系统很大程度上适合于两种范例,即,参数服务器和MPI风格的集体操作。在算法方面,研究人员提出了一系列通过系统松弛来降低通信的技术:量化,分散化和通信延迟。然而,大多数(如果不是全部的话)现有系统仅依赖于基于标准同步和异步随机梯度(SG)的优化,因此,不能利用机器学习社区最近开发的所有可能的优化。考虑到当前系统和理论之间的差距,我们构建了BAGUA,一个MPI风格的通信库,提供了一个原语集合,它既灵活又模块化,以支持分布式训练的最先进的系统松弛技术。在这种设计的支持下,BAGUA有很强的能力来实现和扩展各种最先进的分布式学习算法。在一个拥有多达16台机器(128个GPU)的生产集群中,BAGUA可以在各种任务的端到端训练时间中以显著的优势(高达2倍)超过PyTorch-DDP,Horovod和BytePS。此外,我们进行了严格的权衡探索表明,不同的算法和系统松弛在不同的网络条件下实现最佳性能。

英文摘要:

Recent years have witnessed a growing list of systems for distributed data-parallel training. Existing systems largely fit into two paradigms, i.e., parameter server and MPI-style collective operations. On the algorithmic side, researchers have proposed a wide range of techniques to lower the communication via system relaxations: quantization, decentralization, and communication delay. However, most, if not all, existing systems only rely on standard synchronous and asynchronous stochastic gradient (SG) based optimization, therefore, cannot take advantage of all possible optimizations that the machine learning community has been developing recently. Given this emerging gap between the current landscapes of systems and theory, we build BAGUA, a MPI-style communication library, providing a collection of primitives, that is both flexible and modular to support state-of-the-art system relaxation techniques of distributed training. Powered by this design, BAGUA has a great ability to implement and extend various state-of-the-art distributed learning algorithms. In a production cluster with up to 16 machines (128 GPUs), BAGUA can outperform PyTorch-DDP, Horovod and BytePS in the end-to-end training time by a significant margin (up to 2 times) across a diverse range of tasks. Moreover, we conduct a rigorous tradeoff exploration showing that different algorithms and system relaxations achieve the best performance over different network conditions.

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

↑