arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1710.06952math.OCcs.LGstat.ML
收藏

异步分散并行随机梯度下降算法

Asynchronous Decentralized Parallel Stochastic Gradient Descent

University of Rochester(罗切斯特大学);IBM T. J. Watson Research Center(IBM T. J. 沃森研究中心);ETH Zurich(苏黎世联邦理工学院);Tencent AI Lab(腾讯人工智能实验室)

Xiangru Lian, Wei Zhang, Ce Zhang, Ji Liu

摘要:

最常用的分布式机器学习系统要么是同步的,要么是集中式异步的。像AllReduce-SGD这样的同步算法在异构环境中表现不佳,而使用参数服务器的异步算法遭受1)当工作者很多时参数服务器处的通信瓶颈,以及2)当到参数服务器的流量拥塞时收敛性明显更差。我们能否设计出一种算法,在异构环境中具有鲁棒性,同时保持通信效率和最佳的收敛速度?在本文中,我们提出了一个异步分散随机梯度下降算法(AD-PSGD)满足上述期望。我们的理论分析表明,AD-PSGD收敛在最佳$O(1/\sqrt{K})$率为SGD和线性加速比。工人的数量。从经验上讲,AD-PSGD优于分散式并行SGD(D-PSGD)、异步并行SGD(A-PSGD)和标准数据并行SGD(AllReduce-SGD),在异构环境中通常是几个数量级。当在最多128个GPU的ImageNet上训练ResNet-50时,AD-PSGD的收敛(相对于epoch)与AllReduce-SGD类似,但每个epoch的速度比网络共享HPC环境中的同步同行快4- 8倍。据我们所知,AD-PSGD是第一个异步算法,它在超过100 GPU的规模上实现了与AllReduce-SGD相似的逐时收敛速度。

英文摘要:

Most commonly used distributed machine learning systems are either synchronous or centralized asynchronous. Synchronous algorithms like AllReduce-SGD perform poorly in a heterogeneous environment, while asynchronous algorithms using a parameter server suffer from 1) communication bottleneck at parameter servers when workers are many, and 2) significantly worse convergence when the traffic to parameter server is congested. Can we design an algorithm that is robust in a heterogeneous environment, while being communication efficient and maintaining the best-possible convergence rate? In this paper, we propose an asynchronous decentralized stochastic gradient decent algorithm (AD-PSGD) satisfying all above expectations. Our theoretical analysis shows AD-PSGD converges at the optimal $O(1/\sqrt{K})$ rate as SGD and has linear speedup w.r.t. number of workers. Empirically, AD-PSGD outperforms the best of decentralized parallel SGD (D-PSGD), asynchronous parallel SGD (A-PSGD), and standard data parallel SGD (AllReduce-SGD), often by orders of magnitude in a heterogeneous environment. When training ResNet-50 on ImageNet with up to 128 GPUs, AD-PSGD converges (w.r.t epochs) similarly to the AllReduce-SGD, but each epoch can be up to 4-8X faster than its synchronous counterparts in a network-sharing HPC environment. To the best of our knowledge, AD-PSGD is the first asynchronous algorithm that achieves a similar epoch-wise convergence rate as AllReduce-SGD, at an over 100-GPU scale.

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

↑