Communication overhead remains a primary bottleneck in distributed machine learning. While gradient compression techniques like sparsification and quantization mitigate this, most existing methods rely on static compression ratios. A new algorithm, AdaCGD (Adaptive Compressed Gradient Descent), introduces a dynamic approach, adjusting compression levels on-the-fly to optimize the trade-off between communication cost and convergence speed.
Addressing the Communication Bottleneck
In distributed training and Federated Learning, workers frequently transmit high-dimensional gradients to a central server. Static compressors use a fixed ratio throughout training, which can be inefficient: aggressive compression may hinder convergence early on, while light compression may waste bandwidth in later stages.
Existing "lazy" methods, such as Lazy Aggregated Gradient (LAG), offer a binary choice: send a full gradient or send nothing. AdaCGD expands this by selecting from a spectrum of compression levels and supporting bidirectional communication.
The AdaCGD Framework
AdaCGD is built upon the Ada3PC (Adaptive Three Point Compressor) framework. Instead of a single compressor, it utilizes a set of available compressors (e.g., Top-$k$ with varying $k$). The algorithm employs a "trigger condition" to decide which compressor to use at each iteration.
If the error of a highly compressed gradient is small relative to the gradient's change, high compression is used. If the error exceeds a threshold, the algorithm "shifts gears" to a lower compression level or transmits the full gradient. This adaptivity is based on local information, ensuring minimal computational overhead. Furthermore, AdaCGD supports bidirectional compression, allowing the server to compress updates sent back to the workers.
Theoretical Insights and Convergence
A significant contribution of this work is the theoretical analysis. While many adaptive methods only guarantee an $O(1/\sqrt{T})$ convergence rate, the authors prove that AdaCGD achieves an $O(1/T)$ rate for general nonconvex functions. This matches the best-known rates for non-adaptive compressed methods while offering the practical benefits of adaptivity.
Experimental Results
The researchers evaluated AdaCGD using logistic regression tasks on datasets from the LIBSVM library (phishing, a1a, a9a).
- Efficiency: AdaCGD consistently required fewer bits to reach target accuracy compared to standard Error Feedback (EF21) and LAG.
- Dynamic Adaptation: Experiments confirmed the "gear-shifting" behavior, where the algorithm intelligently transitions between compressors to maintain precision as it approaches an optimal solution.
- Versatility: The algorithm demonstrated robustness across strongly convex, convex, and nonconvex regimes, providing a unified theoretical framework for adaptive compression.
Conclusion
AdaCGD represents a significant step forward in communication-efficient distributed optimization. By treating compression as a dynamic parameter rather than a static constraint, it achieves state-of-the-art convergence rates with reduced communication overhead. Future work may explore relaxing smoothness assumptions for broader applicability in deep learning architectures.
Paper Citation: Makarenko, M., Gasanov, E., Islamov, R., Sadiev, A., & Richtárik, P. (2023). Adaptive Compression for Communication-Efficient Distributed Training. Transactions on Machine Learning Research.
Summary updated