Communication-efficient distributed SGD with Sketching

Nikita Ivkin, Daniel Rothchild, Enayat Ullah, Vladimir Braverman, Ion Stoica +1 more
3/12/2019
cs.LGcs.DCmath.OC

Official code: dhroth/sketchedsgd (29 stars, GPL-3.0, last commit 2020-07-04).

Abstract

Large-scale distributed training of neural networks is often limited by network bandwidth, wherein the communication time overwhelms the local computation time. Motivated by the success of sketching methods in sub-linear/streaming algorithms, we introduce Sketched SGD, an algorithm for carrying out distributed SGD by communicating sketches instead of full gradients. We show that Sketched SGD has favorable convergence rates on several classes of functions. When considering all communication -- both of gradients and of updated model weights -- Sketched SGD reduces the amount of communication required compared to other gradient compression methods from $\mathcal{O}(d)$ or $\mathcal{O}(W)$ to $\mathcal{O}(\log d)$, where $d$ is the number of model parameters and $W$ is the number of workers participating in training. We run experiments on a transformer model, an LSTM, and a residual network, demonstrating up to a 40x reduction in total communication cost with no loss in final model performance. We also show experimentally that Sketched SGD scales to at least 256 workers without increasing communication cost or degrading model performance.

View on arXivView PDF

Code Implementations(1)

dhroth/sketchedsgdOfficial100%
GPL-3.0

Sketched SGD

298PythonMar 22, 20196 years agoGPL-3.0

Similar Papers

Cite this paper

@article{ivkin2019communicationefficient,
  title  = {Communication-efficient distributed SGD with Sketching},
  author = {Nikita Ivkin and Daniel Rothchild and Enayat Ullah and Vladimir Braverman and Ion Stoica and Raman Arora},
  year   = {2019},
  eprint = {1903.04488},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.04488}
}

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

Discussion