NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Double Residual Compression Algorithm for Efficient Distributed Learning

Xiaorui Liu, Yao Li, Jiliang Tang, Ming Yan

Abstract

Large-scale machine learning models are often trained by parallel stochastic gradient descent algorithms. However, the communication cost of gradient aggregation and model synchronization between the master and workers often becomes a significant bottleneck. This paper introduces DORE, a double residual compression algorithm that reduces communication overhead by compressing both upstream gradients and downstream model updates. By utilizing a double residual approach with error compensation, DORE achieves significant bandwidth reduction without sacrificing convergence speed or accuracy.

Introduction

In the era of large-scale machine learning, the primary bottleneck has shifted from computation to communication. As models scale to billions of parameters, the time required to synchronize data between worker nodes and a central master server frequently exceeds the time spent on gradient computation. While many existing techniques focus on compressing upstream gradients (worker to master), they often neglect downstream model synchronization (master to worker). This unidirectional focus limits potential communication savings to 50% and often relies on restrictive assumptions, such as bounded gradients, which may not hold in complex deep learning tasks.

The DORE Algorithm

The researchers propose DORE (DOuble REsidual compression), a distributed SGD algorithm designed to address the bidirectional communication bottleneck. DORE introduces two primary innovations:

  1. Double Residual Compression: Instead of compressing raw gradients or model parameters, DORE tracks a state variable at each node and compresses only the residual—the difference between the current value and the tracked state. Since models and gradients typically evolve smoothly, these residuals become increasingly small as the model converges, minimizing quantization error.
  2. Bidirectional Error Compensation: DORE employs an error-feedback mechanism on both the worker and master sides. Information lost during compression (e.g., due to quantization) is stored and added to the subsequent iteration's value. This ensures that no information is permanently discarded, merely delayed.
The DORE architecture compresses both upstream gradient residuals and downstream model residuals.

Theoretical analysis demonstrates that DORE achieves linear convergence for strongly convex functions and a linear speedup for non-convex functions, notably without requiring the "bounded gradient" assumption common in other compression frameworks.

Experimental Evaluation

The efficacy of DORE was evaluated across synthetic data (linear regression), MNIST (LeNet), and CIFAR-10 (ResNet-18). These scenarios were chosen to verify theoretical convergence properties and performance on modern, non-convex deep learning architectures.

Key Results

  • Bandwidth Efficiency: DORE reduces the total bits transmitted per iteration by over 95% compared to standard SGD through blockwise $p$-norm quantization.
  • Robustness to Network Constraints: As network bandwidth decreases, DORE’s advantage becomes more pronounced. While standard SGD training time increases sharply in low-bandwidth environments, DORE's time-per-iteration remains relatively stable.
DORE maintains low training time per iteration even as network bandwidth decreases, outperforming standard SGD and QSGD.
  • Convergence and Accuracy: In ResNet-18 experiments on CIFAR-10, DORE reached the same final accuracy as full-precision SGD. It matched the convergence rate of state-of-the-art gradient-only compressors like DIANA while utilizing half the total bandwidth.

Conclusion

DORE effectively breaks the "50% wall" of communication efficiency by compressing both ends of the distributed learning pipeline. By focusing on residuals and employing bidirectional error compensation, it provides a robust and efficient solution for large-scale model training. Future work aims to bridge the gap between theoretical convergence rates and the empirical success of error compensation, as well as exploring advanced coding techniques to further enhance compression rates.

Summary updated

BibTeX
@inproceedings{liu2020double,
  author = {Xiaorui Liu and Yao Li and Jiliang Tang and Ming Yan},
  title = {{A Double Residual Compression Algorithm for Efficient Distributed Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=PjB-lrCony},
}
Figure