Local SGD with Periodic Averaging: Tighter Analysis and Adaptive Synchronization

Farzin Haddadpour, Mohammad Mahdi Kamani, Mehrdad Mahdavi, Viveck R. Cadambe
10/30/2019
234 citations
cs.LGcs.DCstat.ML

Official code: mmkamani7/LUPA-SGD (2 stars, Python, MIT, TensorFlow, last commit 2019-12-25).

Abstract

Communication overhead is one of the key challenges that hinders the scalability of distributed optimization algorithms. In this paper, we study local distributed SGD, where data is partitioned among computation nodes, and the computation nodes perform local updates with periodically exchanging the model among the workers to perform averaging.

Show full abstract

While local SGD is empirically shown to provide promising results, a theoretical understanding of its performance remains open. We strengthen convergence analysis for local SGD, and show that local SGD can be far less expensive and applied far more generally than current theory suggests. Specifically, we show that for loss functions that satisfy the Polyak-Łojasiewicz condition, $O((pT)^{1/3})$ rounds of communication suffice to achieve a linear speed up, that is, an error of $O(1/pT)$, where $T$ is the total number of model updates at each worker. This is in contrast with previous work which required higher number of communication rounds, as well as was limited to strongly convex loss functions, for a similar asymptotic performance. We also develop an adaptive synchronization scheme that provides a general condition for linear speed up. Finally, we validate the theory with experimental results, running over AWS EC2 clouds and an internal GPU cluster.

View on arXivView PDF

Code Implementations(1)

mmkamani7/LUPA-SGDOfficial100%
TensorFlowMIT

Implementation of Local Updates Periodic Averaging (LUPA) SGD

24PythonOct 25, 20196 years agoMIT
deep-learningdistributeddistributed-optimizationlocal-sgdoptimization+3 more

Similar Papers

Cite this paper

@article{haddadpour2019local,
  title  = {Local SGD with Periodic Averaging: Tighter Analysis and Adaptive Synchronization},
  author = {Farzin Haddadpour and Mohammad Mahdi Kamani and Mehrdad Mahdavi and Viveck R. Cadambe},
  year   = {2019},
  eprint = {1910.13598},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.13598}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.13598.svg)](https://codeofpaper.com/paper/1910.13598)

Discussion