arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1911.08907cs.DCcs.LG
收藏

分布式深度学习的自动精度缩放

Auto-Precision Scaling for Distributed Deep Learning

Georgia Institute of Technology(佐治亚理工学院);University of California, Berkeley(加州大学伯克利分校);National University of Singapore(新加坡国立大学)

Ruobing Han, James Demmel, Yang You

摘要:

据报道,同步梯度的通信成本可能是一个瓶颈,这限制了分布式深度学习的可扩展性。使用低精度梯度是降低带宽要求的一种有前途的技术。在这项工作中,我们提出了自动精度缩放(APS),一种算法,可以提高精度时,我们通过低精度浮点值的梯度通信。APS可以提高精度的所有精度与微不足道的通信成本。我们的实验结果表明,对于许多应用程序,APS可以训练国家的最先进的模型,8位梯度没有或只有很小的准确性损失(<0.05%)。此外,我们可以通过设计混合精度技术来避免任何精度损失。最后,我们提出了一个性能模型来评估所提出的方法。我们的实验结果表明,APS可以得到一个显着的加速比国家的最先进的方法。为了方便研究人员和开发人员使用,我们设计并实现了CPD(Customized-Precision深度学习)系统,该系统可以使用任意低精度自定义浮点格式来模拟训练过程。我们将CPD集成到PyTorch中并使其开源。

英文摘要:

It has been reported that the communication cost for synchronizing gradients can be a bottleneck, which limits the scalability of distributed deep learning. Using low-precision gradients is a promising technique for reducing the bandwidth requirement. In this work, we propose Auto Precision Scaling (APS), an algorithm that can improve the accuracy when we communicate gradients by low-precision floating-point values. APS can improve the accuracy for all precisions with a trivial communication cost. Our experimental results show that for many applications, APS can train state-of-the-art models by 8-bit gradients with no or only a tiny accuracy loss (<0.05%). Furthermore, we can avoid any accuracy loss by designing a hybrid-precision technique. Finally, we propose a performance model to evaluate the proposed method. Our experimental results show that APS can get a significant speedup over state-of-the-art methods. To make it available to researchers and developers, we design and implement CPD (Customized-Precision Deep Learning) system, which can simulate the training process using an arbitrary low-precision customized floating-point format. We integrate CPD into PyTorch and make it open-source.

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

↑