arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.09268cs.DCcs.LG
收藏

MG-WFBP:明智地合并组件以实现分布式深度学习中的高效通信

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

The Hong Kong University of Science and Technology(香港科技大学);Hong Kong Baptist University(香港浸会大学)

Shaohuai Shi, Xiaowen Chu, Bo Li

摘要:

分布式同步随机梯度下降已被广泛用于在计算机集群上训练深度神经网络(DNN)。随着计算能力的提高,网络通信普遍限制了系统的可扩展性。无等待反向传播(WFBP)是一种流行的解决方案,用于在训练过程中将通信与计算重叠。在本文中,我们观察到许多DNN具有大量的层,在分布式训练中,每层只有少量的数据要传输,这可能会使WFBP效率低下。基于将一些短的通信任务合并为一个可以减少总的通信时间的事实,我们制定了一个优化问题,以最大限度地减少流水线通信和计算的训练时间。我们得到了一个最佳的解决方案,可以有效地解决,而不影响训练性能。然后,我们应用该解决方案提出了一种名为合并梯度WFBP(MG-WFBP)的分布式训练算法,并在两个平台Caffe和PyTorch中实现。在三个GPU集群上进行了大量的实验,以验证MG-WFBP的有效性。我们进一步利用4到2048个GPU的基于跟踪的模拟来探索MG-WFBP的潜在扩展效率。实验结果表明,MG-WFBP实现了更好的缩放性能比现有的方法。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑