AdaComp : Adaptive Residual Gradient Compression for Data-Parallel Distributed Training

Chia-Yu Chen, Jungwook Choi, Daniel Brand, Ankur Agrawal, Wei Zhang, Kailash Gopalakrishnan

Abstract

Highly distributed training of Deep Neural Networks (DNNs) on future compute platforms is expected to be severely communication constrained. To overcome this limitation, new gradient compression techniques are needed that are computationally friendly, applicable to a wide variety of layers, and adaptable to variations in network architectures. In this paper, we introduce Adaptive Residual Gradient Compression (AdaComp), a novel technique based on localized selection of gradient residues that automatically tunes the compression rate depending on local activity. We demonstrate end-to-end compression rates of ~200X for fully-connected and recurrent layers, and ~40X for convolutional layers, without noticeable degradation in model accuracies across vision, speech, and language domains.

Introduction

The rapid advancement of computational hardware has shifted the primary bottleneck in distributed deep learning from computation to communication. In data-parallel training, workers must frequently exchange gradient updates to maintain model synchronization. As raw compute power outpaces network bandwidth, the need for effective gradient compression becomes critical. However, many existing methods, such as simple thresholding or 1-bit quantization, often fail to handle the complex dynamics of Convolutional (Conv) layers, frequently resulting in model divergence.

Previous compression schemes often lead to model divergence on datasets like CIFAR10, where test error spikes significantly compared to the baseline.

The AdaComp Algorithm

AdaComp (Adaptive Residual Gradient Compression) is designed to be a "universal" compression scheme that is both computationally efficient and robust across different model architectures. It is built upon four primary components:

  1. Residual Gradients: Small gradient updates are not discarded but stored in a local "residue" buffer. These accumulate over training steps until they exceed a significance threshold.
  2. Local Binning: To avoid the high computational cost of global sorting, AdaComp partitions the gradient vector into small, uniform bins. This localized approach ensures that important updates in "quiet" layers are not overshadowed by high-activity layers.
  3. Adaptive Soft-Thresholding: Within each bin, the algorithm identifies the maximum absolute value ($g_{max}$). Gradients are selected for transmission if they are within a certain range of this local maximum. This allows the compression rate to adapt dynamically to the activity levels of different layers and training phases.
  4. Quantization: Selected gradients are further compressed into a "ternary" format using a sign bit and a single scale factor per layer, maximizing data reduction.

Experimental Results

The authors evaluated AdaComp across a wide range of benchmarks, including ImageNet (ResNet), CIFAR10 (CNN), BN50 (Speech DNN), and the Shakespeare dataset (LSTM).

AdaComp maintains high accuracy across a varying number of learners (up to 128) on CIFAR10-CNN and remains stable even under extreme compression stress tests.

The results indicate that AdaComp consistently achieves massive compression—approximately 200x for fully-connected and recurrent layers and 40x for convolutional layers—with negligible impact on final test accuracy. For instance, on ResNet50/ImageNet, the baseline error of 28.91% was nearly matched by AdaComp's 29.15%, despite the aggressive compression. Furthermore, "stress tests" revealed that AdaComp maintains stability in scenarios where competing methods typically cause the training process to diverge. Because it avoids sorting and relies on simple local comparisons, the algorithm maintains $O(N)$ complexity, making it suitable for high-speed hardware accelerators.

Conclusion

AdaComp presents a scalable and efficient solution for communication-constrained distributed training. By leveraging local activity patterns and residual accumulation, it provides high compression ratios without the accuracy trade-offs or stability issues common in earlier schemes. Its computational efficiency and optimizer-agnostic nature make it a practical choice for next-generation deep learning platforms.

Summary updated

BibTeX
@inproceedings{chen2018adacomp,
  author = {Chia-Yu Chen and Jungwook Choi and Daniel Brand and Ankur Agrawal and Wei Zhang and Kailash Gopalakrishnan},
  title = {{AdaComp : Adaptive Residual Gradient Compression for Data-Parallel Distributed Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=r14O6CeObr},
}
Figure