DecentLaM: Decentralized Momentum SGD for Large-batch Deep Training

Kun Yuan, Yiming Chen, Xinmeng Huang, Yingya Zhang, Pan Pan +2 more
4/24/2021
cs.LGcs.DCmath.OC

Official code: Bluefog-Lib/bluefog (257 stars, Python, Apache-2.0, PyTorch, last commit 2024-07-25).

Abstract

The scale of deep learning nowadays calls for efficient distributed training algorithms. Decentralized momentum SGD (DmSGD), in which each node averages only with its neighbors, is more communication efficient than vanilla Parallel momentum SGD that incurs global average across all computing nodes.

Show full abstract

On the other hand, the large-batch training has been demonstrated critical to achieve runtime speedup. This motivates us to investigate how DmSGD performs in the large-batch scenario. In this work, we find the momentum term can amplify the inconsistency bias in DmSGD. Such bias becomes more evident as batch-size grows large and hence results in severe performance degradation. We next propose DecentLaM, a novel decentralized large-batch momentum SGD to remove the momentum-incurred bias. The convergence rate for both non-convex and strongly-convex scenarios is established. Our theoretical results justify the superiority of DecentLaM to DmSGD especially in the large-batch scenario. Experimental results on a variety of computer vision tasks and models demonstrate that DecentLaM promises both efficient and high-quality training.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Distributed and decentralized training framework for PyTorch over graph

25750Python, C++Dec 3, 20192 years agoApache-2.0
asynchronousdecentralizeddeeplearningdistributed-computingmachine-learning+4 more

Similar Papers

Cite this paper

@article{yuan2021decentlam,
  title  = {DecentLaM: Decentralized Momentum SGD for Large-batch Deep Training},
  author = {Kun Yuan and Yiming Chen and Xinmeng Huang and Yingya Zhang and Pan Pan and Yinghui Xu and Wotao Yin},
  year   = {2021},
  eprint = {2104.11981},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.11981}
}

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

Discussion