TernGrad:减少分布式深度学习中通信的三元组件
TernGrad: Ternary Gradients to Reduce Communication in Distributed Deep Learning
摘要:
用于同步梯度和参数的高网络通信成本是分布式训练的众所周知的瓶颈。在这项工作中,我们提出了TernGrad,它使用三元梯度来加速数据并行中的分布式深度学习。我们的方法只需要三个数值水平{-1,0,1},这可以大大减少通信时间。我们在数学上证明了TernGrad的收敛性的假设下的梯度上的约束。在边界的指导下,我们提出了分层三值化和梯度裁剪来提高其收敛性。我们的实验表明,在AlexNet上应用TernGrad不会造成任何准确性损失,甚至可以提高准确性。TernGrad导致的GoogLeNet的准确性损失平均不到2%。最后,提出了一个性能模型来研究TernGrad的可扩展性。实验表明,各种深度神经网络的速度都有显著提高。我们的源代码是可用的。
英文摘要:
High network communication cost for synchronizing gradients and parameters is the well-known bottleneck of distributed training. In this work, we propose TernGrad that uses ternary gradients to accelerate distributed deep learning in data parallelism. Our approach requires only three numerical levels {-1,0,1}, which can aggressively reduce the communication time. We mathematically prove the convergence of TernGrad under the assumption of a bound on gradients. Guided by the bound, we propose layer-wise ternarizing and gradient clipping to improve its convergence. Our experiments show that applying TernGrad on AlexNet does not incur any accuracy loss and can even improve accuracy. The accuracy loss of GoogLeNet induced by TernGrad is less than 2% on average. Finally, a performance model is proposed to study the scalability of TernGrad. Experiments show significant speed gains for various deep neural networks. Our source code is available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。