arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.04255cs.DC
收藏

大规模神经网络训练中的有效通信

Efficient Communications in Training Large Scale Neural Networks

Linnan Wang, Wei Wu, George Bosilca, Richard Vuduc, Zenglin Xu

摘要:

我们考虑的问题,如何减少所需的并行训练的神经网络的通信成本。最先进的方法,批量同步并行随机梯度下降(BSP-SGD),需要许多集体通信操作,如广播的参数或减少子梯度聚合,这对于大的消息迅速主导整体执行时间,并限制并行可扩展性。为了解决这个问题,我们开发了一种新的集体操作技术,称为线性流水线(LP)。它针对BSP-SGD中出现的消息大小进行了调整,并在多GPU系统上有效工作。从理论上讲,LP的成本对$P$是不变的,其中$P$是GPU的数量,而更传统的最小生成树(MST)的成本像$O(\log P)$一样缩放。LP还展示了比当前MPI实现广泛采用的双向交换(BE)技术快2倍的带宽。我们将这些集体BSP-SGD,表明所提出的实现减少了通信瓶颈,在实践中,同时保持有吸引力的收敛性能的BSP-SGD。

英文摘要:

We consider the problem of how to reduce the cost of communication that is required for the parallel training of a neural network. The state-of-the-art method, Bulk Synchronous Parallel Stochastic Gradient Descent (BSP-SGD), requires many collective communication operations, like broadcasts of parameters or reductions for sub-gradient aggregations, which for large messages quickly dominates overall execution time and limits parallel scalability. To address this problem, we develop a new technique for collective operations, referred to as Linear Pipelining (LP). It is tuned to the message sizes that arise in BSP-SGD, and works effectively on multi-GPU systems. Theoretically, the cost of LP is invariant to $P$, where $P$ is the number of GPUs, while the cost of more conventional Minimum Spanning Tree (MST) scales like $O(\log P)$. LP also demonstrate up to 2x faster bandwidth than Bidirectional Exchange (BE) techniques that are widely adopted by current MPI implementations. We apply these collectives to BSP-SGD, showing that the proposed implementations reduce communication bottlenecks in practice while preserving the attractive convergence properties of BSP-SGD.

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

↑