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.
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:
- 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.
- 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.
- 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.
- 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).
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