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

分布式训练中减少通信量的嵌套抖动Quantization

Nested Dithered Quantization for Communication Reduction in Distributed Training

Afshin Abdi, Faramarz Fekri

摘要:

在分布式训练中,由于梯度或深度模型参数的传输而产生的通信成本是扩大处理节点数量的主要瓶颈。为了解决这个问题,我们提出了\emph{dithered quantization}的随机梯度的传输,并表明,训练与\emph{Dithered Quantized Stochastic Gradients (DQSG)}是类似的训练与未量化的SG由一个独立的有界均匀噪声扰动,在其他量化方法的扰动依赖于梯度,因此,复杂的收敛性分析。我们研究了使用DQSG的训练算法的收敛性以及量化层数和训练时间之间的权衡。接下来,我们观察到,在由工作者计算的SG之间存在相关性,其可以用于进一步减少通信开销而没有任何性能损失。因此,我们开发了一个简单而有效的量化方案,嵌套抖动量化SG(NDQSG),可以减少通信显着\emph{without requiring the workers communicating extra information to each other}。我们证明,虽然NDQSG需要显着更少的比特,它可以实现相同的量化方差界DQSG。我们的仿真结果证实了使用DQSG和NDQSG训练的有效性,与现有的方法相比,在不牺牲训练模型的准确性的情况下,减少了通信比特或收敛时间。

英文摘要:

In distributed training, the communication cost due to the transmission of gradients or the parameters of the deep model is a major bottleneck in scaling up the number of processing nodes. To address this issue, we propose \emph{dithered quantization} for the transmission of the stochastic gradients and show that training with \emph{Dithered Quantized Stochastic Gradients (DQSG)} is similar to the training with unquantized SGs perturbed by an independent bounded uniform noise, in contrast to the other quantization methods where the perturbation depends on the gradients and hence, complicating the convergence analysis. We study the convergence of training algorithms using DQSG and the trade off between the number of quantization levels and the training time. Next, we observe that there is a correlation among the SGs computed by workers that can be utilized to further reduce the communication overhead without any performance loss. Hence, we develop a simple yet effective quantization scheme, nested dithered quantized SG (NDQSG), that can reduce the communication significantly \emph{without requiring the workers communicating extra information to each other}. We prove that although NDQSG requires significantly less bits, it can achieve the same quantization variance bound as DQSG. Our simulation results confirm the effectiveness of training using DQSG and NDQSG in reducing the communication bits or the convergence time compared to the existing methods without sacrificing the accuracy of the trained model.

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

↑