arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.13532cs.LGcs.DCmath.OC
收藏

SGD中的自适应Top-K用于通信高效的分布式学习

Adaptive Top-K in SGD for Communication-Efficient Distributed Learning

City University of Hong Kong Shenzhen Research Institute(香港城市大学深圳研究院);City University of Hong Kong(香港城市大学);University of Hawaii at Manoa(夏威夷大学马诺阿分校)

Mengzhe Ruan, Guangfeng Yan, Yuanzhang Xiao, Linqi Song, Weitao Xu

AI总结:

本文提出一种SGD框架中的自适应Top-K梯度稀疏化方法,通过动态调整稀疏化程度平衡通信成本与收敛误差,在MNIST和CIFAR-10上实现优于现有方法的收敛速率。

摘要:

带有梯度压缩的分布式随机梯度下降(SGD)已成为加速分布式学习的流行通信高效解决方案。Top-K稀疏化是一种常用的梯度压缩方法,它在模型训练期间以固定程度对梯度进行稀疏化。然而,目前缺乏一种自适应方法来调整稀疏化程度,以最大化模型性能或训练速度的潜力。本文提出了一种新颖的SGD框架中的自适应Top-K,为每个梯度下降步骤启用自适应的稀疏化程度,通过平衡通信成本与收敛误差之间的权衡来优化收敛性能。首先,推导了自适应稀疏化方案和损失函数的收敛误差上界。其次,设计了一种算法,在通信成本约束下最小化收敛误差。最后,在MNIST和CIFAR-10数据集上的数值结果表明,与最先进方法相比,所提出的SGD中的自适应Top-K算法实现了显著更好的收敛速率,即使在考虑误差补偿之后也是如此。

英文摘要:

Distributed stochastic gradient descent (SGD) with gradient compression has become a popular communication-efficient solution for accelerating distributed learning. One commonly used method for gradient compression is Top-K sparsification, which sparsifies the gradients by a fixed degree during model training. However, there has been a lack of an adaptive approach to adjust the sparsification degree to maximize the potential of the model's performance or training speed. This paper proposes a novel adaptive Top-K in SGD framework that enables an adaptive degree of sparsification for each gradient descent step to optimize the convergence performance by balancing the trade-off between communication cost and convergence error. Firstly, an upper bound of convergence error is derived for the adaptive sparsification scheme and the loss function. Secondly, an algorithm is designed to minimize the convergence error under the communication cost constraints. Finally, numerical results on the MNIST and CIFAR-10 datasets demonstrate that the proposed adaptive Top-K algorithm in SGD achieves a significantly better convergence rate compared to state-of-the-art methods, even after considering error compensation.

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

↑