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

基于保证激活压缩的慢速网络语言模型微调

Fine-tuning Language Models over Slow Networks using Activation Compression with Guarantees

ETH Zürich(苏黎世联邦理工学院);Stanford University(斯坦福大学);Zhejiang University(浙江大学);Carnegie Mellon University(卡内基梅隆大学);Meta AI

Jue Wang, Binhang Yuan, Luka Rimanic, Yongjun He, Tri Dao, Beidi Chen, Christopher Re, Ce Zhang

摘要:

通信压缩是现代分布式学习系统在慢速网络上缓解通信瓶颈的关键技术。尽管最近对数据并行式训练的梯度压缩进行了深入研究,但压缩用流水线并行训练的模型的激活仍然是一个悬而未决的问题。在本文中,我们提出了AC-SGD,一种新的激活压缩算法的通信效率的流水线并行训练缓慢的网络。与以往的激活压缩不同,AC-SGD不是直接压缩激活值,而是压缩激活的变化。这使我们能够第一次证明,就我们所知,在激活压缩下,人们仍然可以实现非凸目标的$O(1/\sqrt{T})$收敛速度,而无需对梯度无偏性做出假设,而这些假设不适用于具有非线性激活函数的深度学习模型。然后,我们证明了AC-SGD可以有效地优化和实现,没有额外的端到端运行时开销。我们评估了AC-SGD,以微调语言模型,参数多达15亿,将激活压缩到2-4位。AC-SGD在较慢的网络中提供高达4.3倍的端到端速度,而不会牺牲模型质量。此外,我们还展示了AC-SGD可以与最先进的梯度压缩算法相结合,以实现“端到端通信压缩:机器之间的所有通信,包括模型梯度,前向激活和后向梯度,都被压缩到较低的精度。这提供了高达4.9倍的端到端速度,而不牺牲模型质量。

英文摘要:

Communication compression is a crucial technique for modern distributed learning systems to alleviate their communication bottlenecks over slower networks. Despite recent intensive studies of gradient compression for data parallel-style training, compressing the activations for models trained with pipeline parallelism is still an open problem. In this paper, we propose AC-SGD, a novel activation compression algorithm for communication-efficient pipeline parallelism training over slow networks. Different from previous efforts in activation compression, instead of compressing activation values directly, AC-SGD compresses the changes of the activations. This allows us to show, to the best of our knowledge for the first time, that one can still achieve $O(1/\sqrt{T})$ convergence rate for non-convex objectives under activation compression, without making assumptions on gradient unbiasedness that do not hold for deep learning models with non-linear activation functions.We then show that AC-SGD can be optimized and implemented efficiently, without additional end-to-end runtime overhead.We evaluated AC-SGD to fine-tune language models with up to 1.5 billion parameters, compressing activations to 2-4 bits.AC-SGD provides up to 4.3X end-to-end speed-up in slower networks, without sacrificing model quality. Moreover, we also show that AC-SGD can be combined with state-of-the-art gradient compression algorithms to enable "end-to-end communication compression: All communications between machines, including model gradients, forward activations, and backward gradients are compressed into lower precision.This provides up to 4.9X end-to-end speed-up, without sacrificing model quality.

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

↑