L-GreCo: Layerwise-Adaptive Gradient Compression for Efficient and Accurate Deep Learning

Mohammadreza Alimohammadi, Ilia Markov, Elias Frantar, Dan Alistarh
10/31/2022
cs.LGcs.DC

Official code: LGrCo/L-GreCo (16 stars, Python, last commit 2023-10-27).

Abstract

Data-parallel distributed training of deep neural networks (DNN) has gained very widespread adoption, but can still experience communication bottlenecks. To address this issue, entire families of compression mechanisms have been developed, including quantization, sparsification, and low-rank approximation, some of which are seeing significant practical adoption.

Show full abstract

Despite this progress, almost all known compression schemes apply compression uniformly across DNN layers, although layers are heterogeneous in terms of parameter count and their impact on model accuracy. In this work, we provide a general framework for adapting the degree of compression across the model's layers dynamically during training, improving the overall compression, while leading to substantial speedups, without sacrificing accuracy. Our framework, called L-GreCo, is based on an adaptive algorithm, which automatically picks the optimal compression parameters for model layers guaranteeing the best compression ratio while satisfying an error constraint. Extensive experiments over image classification and language modeling tasks shows that L-GreCo is effective across all existing families of compression methods, and achieves up to 2.5$\times$ training speedup and up to 5$\times$ compression improvement over efficient implementations of existing approaches, while recovering full accuracy. Moreover, L-GreCo is complementary to existing adaptive algorithms, improving their compression ratio by 50% and practical throughput by 66%.

View on arXivView PDF

Code Implementations(1)

LGrCo/L-GreCoOfficial100%

AN EFFICIENT AND GENERAL FRAMEWORK FOR LAYERWISE-ADAPTIVE GRADIENT COMPRESSION

164Python, ShellOct 28, 20223 years ago

Similar Papers

Cite this paper

@article{alimohammadi2022lgreco,
  title  = {L-GreCo: Layerwise-Adaptive Gradient Compression for Efficient and Accurate Deep Learning},
  author = {Mohammadreza Alimohammadi and Ilia Markov and Elias Frantar and Dan Alistarh},
  year   = {2022},
  eprint = {2210.17357},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.17357}
}

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/2210.17357.svg)](https://codeofpaper.com/paper/2210.17357)

Discussion