Variance Reduced Local SGD with Lower Communication Complexity

Xianfeng Liang, Shuheng Shen, Jingchang Liu, Zhen Pan, Enhong Chen +1 more
12/30/2019
cs.LGcs.DCmath.OC

Official code: zerolxf/VRL-SGD (12 stars, Python, last commit 2020-05-20).

Abstract

To accelerate the training of machine learning models, distributed stochastic gradient descent (SGD) and its variants have been widely adopted, which apply multiple workers in parallel to speed up training. Among them, Local SGD has gained much attention due to its lower communication cost.

Show full abstract

Nevertheless, when the data distribution on workers is non-identical, Local SGD requires $O(T^{\frac{3}{4}} N^{\frac{3}{4}})$ communications to maintain its \emph{linear iteration speedup} property, where $T$ is the total number of iterations and $N$ is the number of workers. In this paper, we propose Variance Reduced Local SGD (VRL-SGD) to further reduce the communication complexity. Benefiting from eliminating the dependency on the gradient variance among workers, we theoretically prove that VRL-SGD achieves a \emph{linear iteration speedup} with a lower communication complexity $O(T^{\frac{1}{2}} N^{\frac{3}{2}})$ even if workers access non-identical datasets. We conduct experiments on three machine learning tasks, and the experimental results demonstrate that VRL-SGD performs impressively better than Local SGD when the data among workers are quite diverse.

View on arXivView PDF

Code Implementations(1)

zerolxf/VRL-SGDOfficial100%

Code for paper: Variance Reduced Local SGD with Lower Communication Complexity

124Python, ShellSep 22, 20196 years ago

Similar Papers

Cite this paper

@article{liang2019variance,
  title  = {Variance Reduced Local SGD with Lower Communication Complexity},
  author = {Xianfeng Liang and Shuheng Shen and Jingchang Liu and Zhen Pan and Enhong Chen and Yifei Cheng},
  year   = {2019},
  eprint = {1912.12844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.12844}
}

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

Discussion