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

大步长同步分布式SGD的通信权衡

Communication trade-offs for synchronized distributed SGD with large step size

IIT Kanpur(坎普尔印度理工学院);EPFL(洛桑联邦理工学院)

Kumar Kshitij Patel, Aymeric Dieuleveut

摘要:

同步小批量SGD是大规模分布式机器学习的最新技术。然而,在实践中,它的收敛性受到工作节点之间缓慢的通信轮次的影响。减少通信的自然解决方案是使用\emph{`local-SGD'}模型,其中工作者独立地训练他们的模型,并每隔一段时间进行同步。该算法改善了计算-通信权衡,但其收敛性不是很好理解。我们提出了一种非渐近误差分析,它可以与\emph{one-shot averaging}进行比较,即,独立工作者之间的单轮通信,以及\emph{mini-batch averaging},即,沟通每一步。我们还提供了自适应下界的通信频率为大步长($ t^{-α} $,$ α\in (1/2 , 1 ) $),并表明,\emph{Local-SGD}减少通信的一个因素,$O\Big(\frac{\sqrt{T}}{P^{3/2}}\Big)$,与$T$的梯度和$P$机的总数。

英文摘要:

Synchronous mini-batch SGD is state-of-the-art for large-scale distributed machine learning. However, in practice, its convergence is bottlenecked by slow communication rounds between worker nodes. A natural solution to reduce communication is to use the \emph{`local-SGD'} model in which the workers train their model independently and synchronize every once in a while. This algorithm improves the computation-communication trade-off but its convergence is not understood very well. We propose a non-asymptotic error analysis, which enables comparison to \emph{one-shot averaging} i.e., a single communication round among independent workers, and \emph{mini-batch averaging} i.e., communicating at every step. We also provide adaptive lower bounds on the communication frequency for large step-sizes ($ t^{-α} $, $ α\in (1/2 , 1 ) $) and show that \emph{Local-SGD} reduces communication by a factor of $O\Big(\frac{\sqrt{T}}{P^{3/2}}\Big)$, with $T$ the total number of gradients and $P$ machines.

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

↑