DeepSqueeze: Parallel Stochastic Gradient Descent with Double-Pass Error-Compensated Compression

Hanlin Tang, Xiangru Lian, Shuang Qiu, Lei Yuan, Ce Zhang, Tong Zhang, Ji Liu

Abstract

In large-scale distributed deep learning, communication overhead often becomes the primary bottleneck. While error-compensated compression has proven effective in centralized parameter-server architectures, its application to decentralized settings has remained challenging due to the complex interaction between compression noise and network consensus. This paper introduces DeepSqueeze, the first framework to successfully integrate aggressive, biased error-compensated compression into decentralized learning. DeepSqueeze achieves significant communication cost reductions (up to 93.75%) while maintaining the theoretical "linear speedup" convergence property, outperforming existing state-of-the-art decentralized compression methods.

Introduction

Distributed training is essential for modern deep learning, yet it is frequently limited by the time required to synchronize model updates across machines. Two primary strategies have emerged to mitigate this: decentralization, where workers communicate only with neighbors in a graph topology, and compression, which reduces the precision of transmitted data.

However, combining these strategies is non-trivial. Error compensation—a technique that tracks and reintegrates quantization residuals—is highly effective in centralized systems but often leads to divergence in decentralized settings. In decentralized learning, nodes must simultaneously optimize their local models and reach a consensus on global weights. Standard compression noise can disrupt this consensus, leading to significant accuracy loss.

The DeepSqueeze Framework

DeepSqueeze addresses these challenges by managing compression errors locally at each node through a refined algorithmic design. The core mechanism relies on tracking the residual error between the actual gradient update and its compressed representation.

Standard error-compensated compression mechanism, which DeepSqueeze adapts for decentralized topologies.

In the DeepSqueeze algorithm, each worker node performs the following steps:

  1. Local Update: Compute a local stochastic gradient.
  2. Error Tracking: The worker maintains a local error buffer ($\delta$). It adds the current update to the accumulated error from previous steps to form a value $v$.
  3. Aggressive Compression: This combined value $v$ is compressed using an operator $C_\omega$. DeepSqueeze supports highly aggressive and biased operators, such as 1-bit or 2-bit quantization.
  4. Residual Storage: The difference between $v$ and the compressed value $C_\omega[v]$ is stored back in the error buffer for the next iteration.
  5. Consensus Update: The compressed bits are transmitted to neighbors. The local model is then updated using a weighted average of the neighbors' compressed updates, controlled by an averaging rate $\eta$.

The mathematical innovation of DeepSqueeze lies in its ability to suppress compression error by tuning the averaging rate relative to the network's spectral gap, ensuring that the error does not accumulate destructively across the decentralized network.

Experimental Evaluation

The authors evaluated DeepSqueeze on a cluster of 8 NVIDIA 2080Ti GPUs using a ring topology. The benchmarks utilized the CIFAR-10 image classification dataset (50,000 training images, 10,000 test images) with a ResNet-20 model.

Key Results

  • Communication Efficiency: DeepSqueeze demonstrates remarkable efficiency. Using 4-bit compression, it reduces communication costs by 87.5% with negligible impact on convergence speed. At 2-bit compression, communication is reduced by 93.75%.
  • Convergence and Stability: Unlike previous methods such as DCP-PSGD, which often fail to converge at high compression levels (2-bit or 4-bit), DeepSqueeze remains stable. It consistently outperforms CHOCO-SGD and ECP-PSGD in terms of epoch-wise convergence.
  • Theoretical Soundness: DeepSqueeze achieves an asymptotic convergence rate of $O(1/\sqrt{nT})$, matching the "linear speedup" gold standard of uncompressed centralized SGD. This confirms that the training speed scales linearly with the number of nodes ($n$).

Discussion and Future Work

DeepSqueeze proves that biased compression is viable in decentralized settings when paired with proper error compensation. By "squeezing" the error out of the system during the consensus step, it allows for much more aggressive quantization than previously thought possible.

While the current results on ring topologies and ResNet-20 are promising, future research should explore performance on dynamic or more complex graph structures, automated methods for selecting the optimal averaging rate ($\eta$), and scalability on larger datasets like ImageNet.

Summary updated

BibTeX
@misc{tang2019deepsqueeze,
  author = {Hanlin Tang and Xiangru Lian and Shuang Qiu and Lei Yuan and Ce Zhang and Tong Zhang and Ji Liu},
  title = {{DeepSqueeze: Parallel Stochastic Gradient Descent with Double-Pass Error-Compensated Compression}},
  year = {2019},
  eprint = {1907.07346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.07346},
}
Figure