MG-WFBP: Merging Gradients Wisely for Efficient Communication in Distributed Deep Learning

Shaohuai Shi, Xiaowen Chu, Bo Li
12/18/2019
cs.DCcs.LG

Official code: HKBU-HPML/MG-WFBP (12 stars, Python, last commit 2021-04-26).

Abstract

Distributed synchronous stochastic gradient descent has been widely used to train deep neural networks (DNNs) on computer clusters. With the increase of computational power, network communications generally limit the system scalability.

Show full abstract

Wait-free backpropagation (WFBP) is a popular solution to overlap communications with computations during the training process. In this paper, we observe that many DNNs have a large number of layers with only a small amount of data to be communicated at each layer in distributed training, which could make WFBP inefficient. Based on the fact that merging some short communication tasks into a single one can reduce the overall communication time, we formulate an optimization problem to minimize the training time in pipelining communications and computations. We derive an optimal solution that can be solved efficiently without affecting the training performance. We then apply the solution to propose a distributed training algorithm named merged-gradient WFBP (MG-WFBP) and implement it in two platforms Caffe and PyTorch. Extensive experiments in three GPU clusters are conducted to verify the effectiveness of MG-WFBP. We further exploit trace-based simulations of 4 to 2048 GPUs to explore the potential scaling efficiency of MG-WFBP. Experimental results show that MG-WFBP achieves much better scaling performance than existing methods.

View on arXivView PDF

Code Implementations(1)

HKBU-HPML/MG-WFBPOfficial100%

MG-WFBP: Merging Gradients Wisely for Efficient Communication in Distributed Deep Learning

125Python, ShellDec 16, 20195 years ago

Similar Papers

Cite this paper

@article{shi2019mgwfbp,
  title  = {MG-WFBP: Merging Gradients Wisely for Efficient Communication in Distributed Deep Learning},
  author = {Shaohuai Shi and Xiaowen Chu and Bo Li},
  year   = {2019},
  eprint = {1912.09268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.09268}
}

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

Discussion