Near-Optimal Sparse Allreduce for Distributed Deep Learning

Shigang Li, Torsten Hoefler
1/19/2022
cs.DCcs.LG

Official code: ParCIS/Ok-Topk (27 stars, Python, GPL-3.0, last commit 2022-12-10).

Abstract

Communication overhead is one of the major obstacles to train large deep learning models at scale. Gradient sparsification is a promising technique to reduce the communication volume.

Show full abstract

However, it is very challenging to obtain real performance improvement because of (1) the difficulty of achieving an scalable and efficient sparse allreduce algorithm and (2) the sparsification overhead. This paper proposes O$k$-Top$k$, a scheme for distributed training with sparse gradients. O$k$-Top$k$ integrates a novel sparse allreduce algorithm (less than 6$k$ communication volume which is asymptotically optimal) with the decentralized parallel Stochastic Gradient Descent (SGD) optimizer, and its convergence is proved. To reduce the sparsification overhead, O$k$-Top$k$ efficiently selects the top-$k$ gradient values according to an estimated threshold. Evaluations are conducted on the Piz Daint supercomputer with neural network models from different deep learning domains. Empirical results show that O$k$-Top$k$ achieves similar model accuracy to dense allreduce. Compared with the optimized dense and the state-of-the-art sparse allreduces, O$k$-Top$k$ is more scalable and significantly improves training throughput (e.g., 3.29x-12.95x improvement for BERT on 256 GPUs).

View on arXivView PDF

Code Implementations(1)

ParCIS/Ok-TopkOfficial100%
GPL-3.0

Ok-Topk is a scheme for distributed training with sparse gradients. Ok-Topk integrates a novel sparse allreduce algorithm (less than 6k communication volume which is asymptotically optimal) with the decentralized parallel Stochastic Gradient Descent (SGD) optimizer, and its convergence is proved theoretically and empirically.

2710Python, ShellNov 27, 20213 years agoGPL-3.0
distributed-deep-learningsparse-allreducetopk-sgd

Similar Papers

Cite this paper

@article{li2022nearoptimal,
  title  = {Near-Optimal Sparse Allreduce for Distributed Deep Learning},
  author = {Shigang Li and Torsten Hoefler},
  year   = {2022},
  eprint = {2201.07598},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.07598}
}

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

Discussion