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

FastSGD:一个快速压缩的分布式机器学习SGD框架

FastSGD: A Fast Compressed SGD Framework for Distributed Machine Learning

College of Computer Science, Zhejiang University(浙江大学计算机科学与技术学院);School of Software Technology, Zhejiang University(浙江大学软件学院)

Keyu Yang, Lu Chen, Zhihao Zeng, Yunjun Gao

摘要:

随着大数据的快速增长,分布式机器学习在大规模模型训练中得到了广泛应用。随机梯度下降(SGD)可以说是ML的主力算法。SGD训练的分布式ML模型涉及大量的梯度通信,这限制了分布式ML的可扩展性。因此,重要的是压缩梯度以减少通信。在本文中,我们提出了FastSGD,这是一个用于分布式ML的快速压缩SGD框架。为了以低成本实现高压缩比,FastSGD将梯度表示为键-值对,并以线性时间复杂度压缩梯度键和值。对于梯度值压缩,FastSGD首先使用倒数映射器将原始值转换为倒数值,然后使用对数量化将倒数值进一步减少到小整数。最后,FastSGD滤波器通过给定的阈值减少梯度整数。对于梯度密钥压缩,FastSGD提供了一种自适应细粒度增量编码方法,以更少的位存储梯度密钥。在实际ML模型和数据集上进行的大量实验表明,与最先进的方法相比,FastSGD实现了高达4个数量级的压缩比,并将收敛时间加快了8倍。

英文摘要:

With the rapid increase of big data, distributed Machine Learning (ML) has been widely applied in training large-scale models. Stochastic Gradient Descent (SGD) is arguably the workhorse algorithm of ML. Distributed ML models trained by SGD involve large amounts of gradient communication, which limits the scalability of distributed ML. Thus, it is important to compress the gradients for reducing communication. In this paper, we propose FastSGD, a Fast compressed SGD framework for distributed ML. To achieve a high compression ratio at a low cost, FastSGD represents the gradients as key-value pairs, and compresses both the gradient keys and values in linear time complexity. For the gradient value compression, FastSGD first uses a reciprocal mapper to transform original values into reciprocal values, and then, it utilizes a logarithm quantization to further reduce reciprocal values to small integers. Finally, FastSGD filters reduced gradient integers by a given threshold. For the gradient key compression, FastSGD provides an adaptive fine-grained delta encoding method to store gradient keys with fewer bits. Extensive experiments on practical ML models and datasets demonstrate that FastSGD achieves the compression ratio up to 4 orders of magnitude, and accelerates the convergence time up to 8x, compared with state-of-the-art methods.

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

↑