A Flexible Framework for Communication-Efficient Machine Learning

Sarit Khirirat, Sindri Magnússon, Arda Aytekin, Mikael JohanssonAAAI 2021

TL;DR

Communication-aware Adaptive Tuning (CAT) is a novel framework that dynamically optimizes gradient compression during distributed training. By maximizing "improvement per bit" at each iteration, CAT significantly reduces communication overhead and training time compared to static compression methods.

The Communication Bottleneck in Distributed ML

Distributed machine learning is increasingly limited by network bandwidth rather than computational power. As models grow to billions of parameters, the cost of synchronizing gradients across nodes becomes the primary bottleneck. While gradient compression techniques like sparsification and quantization help, they typically rely on fixed compression levels (e.g., sending only the top 1% of gradients).

This approach suffers from two main drawbacks. First, the optimal compression level is not static; it changes as training progresses. Second, standard methods often ignore hardware-specific costs, such as the fixed overhead of network packets, which can lead to inefficient bandwidth utilization.

The CAT Framework: Optimizing for Efficiency

The CAT framework addresses these issues by treating the selection of a compression level ($T$) as a per-iteration optimization problem. Instead of simply minimizing loss, CAT maximizes Communication Efficiency, defined as the ratio of guaranteed improvement in the objective function to the communication cost: $$\text{Efficiency}(T) = \frac{\text{Improvement}(T)}{\text{Cost}(T)}$$

CAT uses "descent lemmas" to bound the improvement $\alpha(T)$ for various schemes. By modeling the cost $C(T)$ flexibly—accounting for both raw bits and packet-level overhead—CAT finds the optimal compression level at each step.

Communication cost per unit improvement ($C(T)/\alpha(T)$) as a function of compression level $T/d$. CAT seeks to minimize this value at each step to maximize efficiency.

The efficiency function is quasi-concave, making the optimization computationally cheap. CAT can even "snap" compression levels to packet boundaries to avoid wasting bandwidth on partially filled network packets.

Experimental Evaluation

The authors evaluated CAT on large-scale datasets like RCV1 (text categorization) and URL (malicious URL detection), featuring millions of parameters.

Key Results

  • Communication Savings: On the URL dataset, CAT combined with Sparsification + Quantization (S+Q) outperformed standard Gradient Descent by two orders of magnitude in communication efficiency.
  • Wall-Clock Speedup: CAT reached target loss levels up to 10 times faster than state-of-the-art heuristics by accounting for realistic network overheads.
  • Scalability: In multi-node MPI environments, CAT maintained a 6x efficiency advantage over existing dynamic rules.
Total bits communicated to reach target accuracy. The horizontal dotted lines represent CAT's performance, demonstrating it achieves near-optimal communication compared to any fixed compression level.

Conclusion and Future Work

CAT provides a hardware-aware foundation for scalable distributed learning. While currently requiring knowledge of the loss function's smoothness parameter, future work aims to extend these bounds to non-convex deep learning models and more complex compression techniques like low-rank approximations. Extending the tightest bounds to deep neural networks remains a promising future direction.

Summary updated

BibTeX
@inproceedings{khirirat2021flexible,
  author = {Sarit Khirirat and Sindri Magnússon and Arda Aytekin and Mikael Johansson},
  title = {{A Flexible Framework for Communication-Efficient Machine Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i9.16987},
}
Figure