arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.09767math.OCcs.DCcs.LG
收藏

本地SGD快速收敛,通信量小

Local SGD Converges Fast and Communicates Little

EPFL(洛桑联邦理工学院)

Sebastian U. Stich

摘要:

小批量随机梯度下降(SGD)是大规模分布式训练的最新技术。该方案可以相对于工作人员的数量达到线性加速,但这在实践中很少见,因为该方案经常遭受较大的网络延迟和带宽限制。为了克服这种通信瓶颈,最近的工作提出减少通信频率。这种类型的算法是本地SGD,它在不同的工作者上并行地独立运行SGD,并偶尔对序列进行平均。该方案在实践中显示出良好的效果,但缺乏深入的理论分析。我们证明了简洁的收敛速度的局部SGD凸问题,并表明它收敛在相同的速度作为mini-batch SGD的数量的评估梯度,也就是说,该计划实现线性加速的工人和mini-batch大小。与小批量SGD相比,通信回合的数量可以减少到T^{1/2}的一个因子,其中T表示总步骤的数量。这也适用于异步实现。本地SGD也可以用于深度学习模型的大规模训练。这里所示的结果的目的是作为一个指导方针,以进一步探索本地SGD在这些应用中的理论和实践方面。

英文摘要:

Mini-batch stochastic gradient descent (SGD) is state of the art in large scale distributed training. The scheme can reach a linear speedup with respect to the number of workers, but this is rarely seen in practice as the scheme often suffers from large network delays and bandwidth limits. To overcome this communication bottleneck recent works propose to reduce the communication frequency. An algorithm of this type is local SGD that runs SGD independently in parallel on different workers and averages the sequences only once in a while. This scheme shows promising results in practice, but eluded thorough theoretical analysis. We prove concise convergence rates for local SGD on convex problems and show that it converges at the same rate as mini-batch SGD in terms of number of evaluated gradients, that is, the scheme achieves linear speedup in the number of workers and mini-batch size. The number of communication rounds can be reduced up to a factor of T^{1/2}---where T denotes the number of total steps---compared to mini-batch SGD. This also holds for asynchronous implementations. Local SGD can also be used for large scale training of deep learning models. The results shown here aim serving as a guideline to further explore the theoretical and practical aspects of local SGD in these applications.

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

↑