arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.05957cs.DCcs.LG
收藏

DoubleSqueeze:并行随机梯度下降与双通道误差补偿压缩

DoubleSqueeze: Parallel Stochastic Gradient Descent with Double-Pass Error-Compensated Compression

University of Rochester(罗切斯特大学);Hong Kong University of Science and Technology(香港科技大学);Kwai Inc(快手公司)

Hanlin Tang, Xiangru Lian, Chen Yu, Tong Zhang, Ji Liu

摘要:

大规模机器学习中的标准方法是分布式随机梯度训练,其需要计算网络上多个节点上的聚合随机梯度。通信是此类应用中的主要瓶颈,近年来,已经提出了压缩随机梯度方法,如QSGD(量化SGD)和稀疏SGD,以减少通信。它还表明,误差补偿可以与压缩相结合,以实现更好的收敛,在一个计划,每个节点压缩其本地随机梯度和广播的结果,所有其他节点在网络中的一个单一的通过。然而,这种单通道广播方法在许多实际实现中是不现实的。例如,在用于分布式学习的流行参数服务器模型下,工作节点需要将压缩的局部梯度发送到参数服务器,参数服务器执行聚合。参数服务器必须在将其发送回工作节点之前再次压缩聚合的随机梯度。在这项工作中,我们提供了一个详细的分析,这两个通行证的通信模型和它的异步并行变体,与错误补偿压缩的工人节点和参数服务器上。我们发现,误差补偿随机梯度算法承认三个非常好的属性:1)它是兼容的\emph{arbitrary}压缩技术; 2)它承认一个改进的收敛速度比非误差补偿随机梯度方法,如QSGD和稀疏SGD; 3)它承认线性加速的工人的数量。实证研究也验证了我们的理论结果。

英文摘要:

A standard approach in large scale machine learning is distributed stochastic gradient training, which requires the computation of aggregated stochastic gradients over multiple nodes on a network. Communication is a major bottleneck in such applications, and in recent years, compressed stochastic gradient methods such as QSGD (quantized SGD) and sparse SGD have been proposed to reduce communication. It was also shown that error compensation can be combined with compression to achieve better convergence in a scheme that each node compresses its local stochastic gradient and broadcast the result to all other nodes over the network in a single pass. However, such a single pass broadcast approach is not realistic in many practical implementations. For example, under the popular parameter server model for distributed learning, the worker nodes need to send the compressed local gradients to the parameter server, which performs the aggregation. The parameter server has to compress the aggregated stochastic gradient again before sending it back to the worker nodes. In this work, we provide a detailed analysis on this two-pass communication model and its asynchronous parallel variant, with error-compensated compression both on the worker nodes and on the parameter server. We show that the error-compensated stochastic gradient algorithm admits three very nice properties: 1) it is compatible with an \emph{arbitrary} compression technique; 2) it admits an improved convergence rate than the non error-compensated stochastic gradient methods such as QSGD and sparse SGD; 3) it admits linear speedup with respect to the number of workers. The empirical study is also conducted to validate our theoretical results.

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

↑