arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.10936cs.LGcs.DCmath.OCstat.ML
收藏

具有误差反馈的通信高效分布式BMomentum SGD

Communication-Efficient Distributed Blockwise Momentum SGD with Error-Feedback

Amazon Web Services(亚马逊云科技);Hong Kong University of Science and Technology(香港科技大学)

Shuai Zheng, Ziyue Huang, James T. Kwok

摘要:

通信开销是阻碍分布式机器学习系统可扩展性的主要瓶颈。最近,人们对使用梯度压缩来提高分布式神经网络训练的通信效率产生了极大的兴趣。使用1位量化,具有多数表决的signSGD实现了通信成本的32倍降低。然而,它的收敛是基于不切实际的假设,在实践中可能会出现分歧。在本文中,我们提出了一个一般的分布式压缩SGD Nesterov的动量。我们考虑双向压缩,它压缩到工人和从工人的梯度。给出了一般梯度压缩器在非凸问题上的收敛性分析。通过将梯度划分为块,引入了逐块压缩器,使得每个梯度块以具有缩放因子的1位格式压缩和传输,从而导致通信减少近32倍。实验结果表明,该方法与全精度分布式动量SGD算法收敛速度相当,且测试精度相同。特别是,在ImageNet上使用7个工作人员进行分布式ResNet训练时,所提出的算法使用全精度梯度实现了与动量SGD相同的测试精度,但$46\%$的挂钟时间更少。

英文摘要:

Communication overhead is a major bottleneck hampering the scalability of distributed machine learning systems. Recently, there has been a surge of interest in using gradient compression to improve the communication efficiency of distributed neural network training. Using 1-bit quantization, signSGD with majority vote achieves a 32x reduction on communication cost. However, its convergence is based on unrealistic assumptions and can diverge in practice. In this paper, we propose a general distributed compressed SGD with Nesterov's momentum. We consider two-way compression, which compresses the gradients both to and from workers. Convergence analysis on nonconvex problems for general gradient compressors is provided. By partitioning the gradient into blocks, a blockwise compressor is introduced such that each gradient block is compressed and transmitted in 1-bit format with a scaling factor, leading to a nearly 32x reduction on communication. Experimental results show that the proposed method converges as fast as full-precision distributed momentum SGD and achieves the same testing accuracy. In particular, on distributed ResNet training with 7 workers on the ImageNet, the proposed algorithm achieves the same testing accuracy as momentum SGD using full-precision gradients, but with $46\%$ less wall clock time.

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

↑