arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.04759cs.DCcs.LGmath.OC
收藏

通信高效的SGD:从局部SGD到一次平均

Communication-efficient SGD: From Local SGD to One-Shot Averaging

Boston University(波士顿大学)

Artin Spiridonoff, Alex Olshevsky, Ioannis Ch. Paschalidis

摘要:

我们考虑加速随机梯度下降(SGD)的多个工人并行化。我们假设相同的数据集在$N$工作者之间共享,这些工作者可以采取SGD步骤并与中央服务器协调。虽然可以通过对每一步的所有随机梯度进行平均来获得方差的线性减少,但这需要工作人员和服务器之间进行大量通信,这可能会显着减少并行性带来的收益。在早期文献中提出和分析的本地SGD方法建议机器在这种通信之间进行许多本地步骤。虽然局部SGD的初始分析表明,为了使误差与$1/(NT)$成比例地缩放,它需要$T$局部梯度步长的$Ω( \sqrt{T} )$通信,但这已在一系列论文中得到连续改进,最新技术要求$Ω\left( N \left( \mbox{ poly} (\log T) \right) \right)$通信。在本文中,我们提出了一个本地SGD方案,通信较少的整体通信不太频繁的迭代次数的增长。我们的分析表明,这可以实现一个错误,规模为$1/(NT)$与通信的数量是完全独立的$T$。特别是,我们表明,$Ω(N)$通信是足够的。经验证据表明,这个界限是接近紧,因为我们进一步表明,$\sqrt{N}$或$N^{3/4}$通信无法实现线性加速模拟。此外,我们表明,在温和的假设下,其中主要是两次可微的任何邻域的最优解,一次平均,只使用一轮的通信也可以达到最佳的收敛速度渐近。

英文摘要:

We consider speeding up stochastic gradient descent (SGD) by parallelizing it across multiple workers. We assume the same data set is shared among $N$ workers, who can take SGD steps and coordinate with a central server. While it is possible to obtain a linear reduction in the variance by averaging all the stochastic gradients at every step, this requires a lot of communication between the workers and the server, which can dramatically reduce the gains from parallelism. The Local SGD method, proposed and analyzed in the earlier literature, suggests machines should make many local steps between such communications. While the initial analysis of Local SGD showed it needs $Ω( \sqrt{T} )$ communications for $T$ local gradient steps in order for the error to scale proportionately to $1/(NT)$, this has been successively improved in a string of papers, with the state of the art requiring $Ω\left( N \left( \mbox{ poly} (\log T) \right) \right)$ communications. In this paper, we suggest a Local SGD scheme that communicates less overall by communicating less frequently as the number of iterations grows. Our analysis shows that this can achieve an error that scales as $1/(NT)$ with a number of communications that is completely independent of $T$. In particular, we show that $Ω(N)$ communications are sufficient. Empirical evidence suggests this bound is close to tight as we further show that $\sqrt{N}$ or $N^{3/4}$ communications fail to achieve linear speed-up in simulations. Moreover, we show that under mild assumptions, the main of which is twice differentiability on any neighborhood of the optimal solution, one-shot averaging which only uses a single round of communication can also achieve the optimal convergence rate asymptotically.

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

↑