DeAR: Accelerating Distributed Deep Learning with Fine-Grained All-Reduce Pipelining

Lin Zhang, Shaohuai Shi, Xiaowen Chu, Wei Wang, Bo Li +1 more
2/24/2023
cs.LGcs.DC

No official code found. Best implementation: lzhangbv/dear_pytorch (12 stars, last commit 2023-12-04).

Abstract

Communication scheduling has been shown to be effective in accelerating distributed training, which enables all-reduce communications to be overlapped with backpropagation computations. This has been commonly adopted in popular distributed deep learning frameworks. However, there exist two fundamental problems: (1) excessive startup latency proportional to the number of workers for each all-reduce operation; (2) it only achieves sub-optimal training performance due to the dependency and synchronization requirement of the feed-forward computation in the next iteration. We propose a novel scheduling algorithm, DeAR, that decouples the all-reduce primitive into two continuous operations, which overlaps with both backpropagation and feed-forward computations without extra communications. We further design a practical tensor fusion algorithm to improve the training performance. Experimental results with five popular models show that DeAR achieves up to 83% and 15% training speedup over the state-of-the-art solutions on a 64-GPU cluster with 10Gb/s Ethernet and 100Gb/s InfiniBand interconnects, respectively.

View on arXivView PDF

Code Implementations(1)

[ICDCS 2023] DeAR: Accelerating Distributed Deep Learning with Fine-Grained All-Reduce Pipelining

123C++, ShellApr 5, 20222 years ago

Similar Papers

Cite this paper

@article{zhang2023dear,
  title  = {DeAR: Accelerating Distributed Deep Learning with Fine-Grained All-Reduce Pipelining},
  author = {Lin Zhang and Shaohuai Shi and Xiaowen Chu and Wei Wang and Bo Li and Chengjian Liu},
  year   = {2023},
  eprint = {2302.12445},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.12445v2}
}

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

Discussion