arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.14575cs.LGcs.AI
收藏

DQ-SGD:SGD中的动态Quantization用于通信高效的分布式学习

DQ-SGD: Dynamic Quantization in SGD for Communication-Efficient Distributed Learning

City University of Hong Kong(香港城市大学);City University of Hong Kong Shenzhen Research Institute(香港城市大学深圳研究院);Tsinghua-Berkeley Shenzhen Institute(清华-伯克利深圳学院);George Washington University(乔治华盛顿大学)

Guangfeng Yan, Shao-Lun Huang, Tian Lan, Linqi Song

摘要:

梯度量化是分布式学习中降低通信成本的一种新兴技术。现有的梯度量化算法往往依赖于工程原理或经验观察,缺乏一个系统的方法来动态地识别梯度。本文提出了一种新的动态量化SGD(DQ-SGD)框架,使我们能够动态地调整量化方案的每一个梯度下降步骤,通过探索通信成本和收敛误差之间的权衡来解决这个问题。我们推导出一个上界,在某些情况下紧,收敛误差的量化方案和损失函数的限制家庭。在收敛误差约束下,通过最小化通信代价设计了DQ-SGD算法。最后,通过对AG-News,CIFAR-10和CIFAR-100数据集上的大规模自然语言处理和计算机视觉任务的广泛实验,我们证明了我们的量化方案比其他最先进的梯度量化方法在通信成本和学习性能之间实现了更好的权衡。

英文摘要:

Gradient quantization is an emerging technique in reducing communication costs in distributed learning. Existing gradient quantization algorithms often rely on engineering heuristics or empirical observations, lacking a systematic approach to dynamically quantize gradients. This paper addresses this issue by proposing a novel dynamically quantized SGD (DQ-SGD) framework, enabling us to dynamically adjust the quantization scheme for each gradient descent step by exploring the trade-off between communication cost and convergence error. We derive an upper bound, tight in some cases, of the convergence error for a restricted family of quantization schemes and loss functions. We design our DQ-SGD algorithm via minimizing the communication cost under the convergence error constraints. Finally, through extensive experiments on large-scale natural language processing and computer vision tasks on AG-News, CIFAR-10, and CIFAR-100 datasets, we demonstrate that our quantization scheme achieves better tradeoffs between the communication cost and learning performance than other state-of-the-art gradient quantization methods.

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

↑