Exploiting Simultaneous Communications to Accelerate Data Parallel Distributed Deep Learning
Authors:
- 10 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-10
Abstract
Synchronous stochastic gradient descent (S-SGD) with data parallelism is widely used for training deep learning (DL) models in distributed systems. A pipelined schedule of the computing and communication tasks of a DL training job is an effective scheme to hide some communication costs. In such pipelined S-SGD, tensor fusion (i.e., merging some consecutive layers’ gradients for a single communication) is a key ingredient to improve communication efficiency. However, existing tensor fusion techniques schedule the communication tasks sequentially, which overlooks their independence nature. In this paper, we expand the design space of scheduling by exploiting simultaneous All-Reduce communications. Through theoretical analysis and experiments, we show that simultaneous All-Reduce communications can effectively improve the communication efficiency of small tensors. We formulate an optimization problem of minimizing the training iteration time, in which both tensor fusion and simultaneous communications are allowed. We develop an efficient optimal scheduling solution and implement the distributed training algorithm ASC-WFBP with Horovod and PyTorch. We conduct real-world experiments on an 8-node GPU cluster of 32 GPUs with 10Gbps Ethernet. Experimental results on four modern DNNs show that ASC-WFBP can achieve about 1.09 × −2.48× speedup over the baseline without tensor fusion, and 1.15× −1.35× speedup over the state-of-the-art tensor fusion solution.Keywords
This publication has 21 references indexed in Scilit:
- MG-WFBP: Efficient Data Communication for Distributed Synchronous SGD Algorithms2019
- Round-Robin Synchronization: Mitigating Communication Bottlenecks in Parameter Servers2019
- Performance Modeling and Evaluation of Distributed Deep Learning Frameworks on GPUs2018
- Scaling deep learning on GPU and knights landing clusters2017
- Densely Connected Convolutional Networks2017
- S-Caffe2017
- Efficient Large Message Broadcast using NCCL and CUDA-Aware MPI for Deep Learning2016
- Deep Residual Learning for Image Recognition2016
- Two-tree algorithms for full bandwidth broadcast, reduction and scanParallel Computing, 2009
- Optimization of Collective Reduction Operations2004