English

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

Distributed, Parallel, and Cluster Computing 2021-10-28 v2 Machine Learning Optimization and Control

Abstract

We consider speeding up stochastic gradient descent (SGD) by parallelizing it across multiple workers. We assume the same data set is shared among NN 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 Ω(T)\Omega ( \sqrt{T} ) communications for TT local gradient steps in order for the error to scale proportionately to 1/(NT)1/(NT), this has been successively improved in a string of papers, with the state of the art requiring Ω(N(\mboxpoly(logT)))\Omega \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)1/(NT) with a number of communications that is completely independent of TT. In particular, we show that Ω(N)\Omega(N) communications are sufficient. Empirical evidence suggests this bound is close to tight as we further show that N\sqrt{N} or N3/4N^{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.

Keywords

Cite

@article{arxiv.2106.04759,
  title  = {Communication-efficient SGD: From Local SGD to One-Shot Averaging},
  author = {Artin Spiridonoff and Alex Olshevsky and Ioannis Ch. Paschalidis},
  journal= {arXiv preprint arXiv:2106.04759},
  year   = {2021}
}

Comments

arXiv admin note: substantial text overlap with arXiv:2006.02582

R2 v1 2026-06-24T02:59:09.133Z