Overlap Local-SGD: An Algorithmic Approach to Hide Communication Delays in Distributed SGD

Jianyu Wang, Hao Liang, Gauri Joshi
2/21/2020
cs.LGcs.DCmath.OC

Official code: JYWa/Overlap_Local_SGD (34 stars, Python, PyTorch, last commit 2020-07-12).

Abstract

Distributed stochastic gradient descent (SGD) is essential for scaling the machine learning algorithms to a large number of computing nodes. However, the infrastructures variability such as high communication delay or random node slowdown greatly impedes the performance of distributed SGD algorithm, especially in a wireless system or sensor networks.

Show full abstract

In this paper, we propose an algorithmic approach named Overlap-Local-SGD (and its momentum variant) to overlap the communication and computation so as to speedup the distributed training procedure. The approach can help to mitigate the straggler effects as well. We achieve this by adding an anchor model on each node. After multiple local updates, locally trained models will be pulled back towards the synchronized anchor model rather than communicating with others. Experimental results of training a deep neural network on CIFAR-10 dataset demonstrate the effectiveness of Overlap-Local-SGD. We also provide a convergence guarantee for the proposed algorithm under non-convex objective functions.

View on arXivView PDF

Code Implementations(1)

PyTorch

Implementation of (overlap) local SGD in Pytorch

3411Python, ShellFeb 21, 20206 years ago
deep-learningdistributed-optimizationpytorchsgd-optimizer

Similar Papers

Cite this paper

@article{wang2020overlap,
  title  = {Overlap Local-SGD: An Algorithmic Approach to Hide Communication Delays in Distributed SGD},
  author = {Jianyu Wang and Hao Liang and Gauri Joshi},
  year   = {2020},
  eprint = {2002.09539},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.09539}
}

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/2002.09539.svg)](https://codeofpaper.com/paper/2002.09539)

Discussion