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

基于两级梯度平均的分布式SGD的O(1)通信

O(1) Communication for Distributed SGD through Two-Level Gradient Averaging

Florida State University(佛罗里达州立大学)

Subhadeep Bhattacharya, Weikuan Yu, Fahim Tahmid Chowdhury

摘要:

大型神经网络模型对分布式随机梯度下降(SGD)提出了巨大的通信挑战,对于n个参数的模型,每个工作者的通信复杂性为O(n)。已经提出了许多稀疏化和量化技术来压缩梯度,其中一些将通信复杂性降低到O(k),其中k <<n。在本文中,我们引入了一种称为两级梯度平均(A2SGD)的策略,在计算更新模型的两个全局平均值之前,将所有梯度合并为每个工人的两个局部平均值。A2SGD还保留了局部误差,以保持快速收敛的方差。我们的理论分析表明,A2SGD收敛类似于默认的分布式SGD算法。我们的评估验证了理论结论,并表明A2SGD显着降低了每个工人的通信流量,并将LSTM-PTB的总体训练时间分别提高了3.2倍和23.2倍,与Top-K和QSGD相比。据我们所知,A2 SGD是第一个实现O(1)通信复杂性的分布式SGD。

英文摘要:

Large neural network models present a hefty communication challenge to distributed Stochastic Gradient Descent (SGD), with a communication complexity of O(n) per worker for a model of n parameters. Many sparsification and quantization techniques have been proposed to compress the gradients, some reducing the communication complexity to O(k), where k << n. In this paper, we introduce a strategy called two-level gradient averaging (A2SGD) to consolidate all gradients down to merely two local averages per worker before the computation of two global averages for an updated model. A2SGD also retains local errors to maintain the variance for fast convergence. Our theoretical analysis shows that A2SGD converges similarly like the default distributed SGD algorithm. Our evaluation validates the theoretical conclusion and demonstrates that A2SGD significantly reduces the communication traffic per worker, and improves the overall training time of LSTM-PTB by 3.2x and 23.2x, respectively, compared to Top-K and QSGD. To the best of our knowledge, A2SGD is the first to achieve O(1) communication complexity per worker for distributed SGD.

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

↑