arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.08772cs.LGcs.DCstat.ML
收藏

理解分布式深度学习中的Top-k稀疏化

Understanding Top-k Sparsification in Distributed Deep Learning

Hong Kong Baptist University(香港浸会大学);NVIDIA(英伟达)

Shaohuai Shi, Xiaowen Chu, Ka Chun Cheung, Simon See

摘要:

分布式随机梯度下降(SGD)算法被广泛应用于大规模深度学习模型的训练,但工作者之间的通信开销成为新的系统瓶颈。最近提出的梯度稀疏化技术,特别是$k$稀疏化与误差补偿(TopK-SGD),可以显着减少通信流量,而不会对模型的准确性产生明显的影响。对TopK-SGD算法的收敛性进行了理论分析。然而,现有的研究没有深入到梯度稀疏化中的Top- $k$算子的细节,并且使用宽松的边界(例如,Random- $k$的精确界)进行分析;因此,导出的结果不能很好地描述TopK-SGD的真实收敛性能。为此,我们首先通过大量的实验研究了TopK-SGD在训练过程中的梯度分布。然后,我们从理论上推导出一个更严格的上限的顶部- $k$运营商。最后,我们利用梯度分布的性质,提出了一个近似的顶部- $k$选择算法,这是计算效率的GPU,以提高缩放效率的TopK-SGD显着减少计算开销。代码可从以下网址获得:\url{https://github.com/hclhkbu/GaussianK-SGD}。

英文摘要:

Distributed stochastic gradient descent (SGD) algorithms are widely deployed in training large-scale deep learning models, while the communication overhead among workers becomes the new system bottleneck. Recently proposed gradient sparsification techniques, especially Top-$k$ sparsification with error compensation (TopK-SGD), can significantly reduce the communication traffic without an obvious impact on the model accuracy. Some theoretical studies have been carried out to analyze the convergence property of TopK-SGD. However, existing studies do not dive into the details of Top-$k$ operator in gradient sparsification and use relaxed bounds (e.g., exact bound of Random-$k$) for analysis; hence the derived results cannot well describe the real convergence performance of TopK-SGD. To this end, we first study the gradient distributions of TopK-SGD during the training process through extensive experiments. We then theoretically derive a tighter bound for the Top-$k$ operator. Finally, we exploit the property of gradient distribution to propose an approximate top-$k$ selection algorithm, which is computing-efficient for GPUs, to improve the scaling efficiency of TopK-SGD by significantly reducing the computing overhead. Codes are available at: \url{https://github.com/hclhkbu/GaussianK-SGD}.

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

↑