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

Jue Wang, Binhang Yuan, Luka Rimanic, Yongjun He, Tri Dao +3 more
6/2/2022
cs.LGcs.DC

Official code: DS3Lab/AC-SGD (29 stars, Python, MIT, last commit 2023-04-25).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

DS3Lab/AC-SGDOfficial100%
MIT

Code associated with the paper **Fine-tuning Language Models over Slow Networks using Activation Compression with Guarantees**.

292Python, ShellJun 8, 20223 years agoMIT

Similar Papers

Cite this paper

@article{wang2022finetuning,
  title  = {Fine-tuning Language Models over Slow Networks using Activation Compression with Guarantees},
  author = {Jue Wang and Binhang Yuan and Luka Rimanic and Yongjun He and Tri Dao and Beidi Chen and Christopher Re and Ce Zhang},
  year   = {2022},
  eprint = {2206.01299},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.01299}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.01299.svg)](https://codeofpaper.com/paper/2206.01299)

Discussion