Decentralized Stochastic Optimization and Gossip Algorithms with Compressed Communication

Anastasia Koloskova, Sebastian U. Stich, Martin Jaggi

TL;DR

This paper introduces CHOCO-SGD, the first decentralized stochastic gradient descent algorithm that achieves the same convergence rate as centralized mini-batch SGD while using heavily compressed communication. By cleverly compensating for compression errors, the authors demonstrate that you can reduce the number of transmitted bits by up to 100x without sacrificing model accuracy.

The Communication Bottleneck in Decentralized Optimization

In large-scale machine learning, data is often distributed across many machines. The traditional "centralized" approach relies on a parameter server (a star topology), which quickly becomes a bottleneck as the number of workers grows. Decentralized optimization removes this bottleneck by allowing nodes to communicate only with their immediate neighbors in a graph.

However, this introduces a new challenge: communication latency and bandwidth. While we can use compression (like quantization or sparsification) to send fewer bits, standard decentralized algorithms often fail to converge to the correct solution when messages are compressed. This is especially true if the compression is "biased" (e.g., only sending the top 1% of values). Previous attempts to solve this either required very high-precision communication or exhibited slow, sublinear convergence.

The CHOCO Framework: Error Compensation

The authors propose a two-step solution to tackle these communication bottlenecks:

  1. CHOCO-GOSSIP: A novel algorithm for the "average consensus" problem, where nodes try to agree on the average of their local values. Unlike previous methods that send compressed versions of their current state, CHOCO-GOSSIP nodes maintain an estimate of their neighbors' states. They only communicate a compressed update to that estimate. This mechanism effectively "remembers" the compression error and compensates for it in future rounds.
  2. CHOCO-SGD: By integrating CHOCO-GOSSIP into a stochastic gradient descent framework, the authors create a robust decentralized optimizer.
Network topologies (Ring and Torus) used to evaluate decentralized communication.

The key innovation is the support for arbitrary compression operators, including heavily biased ones like top-k sparsification. The algorithm uses a consensus stepsize $\gamma$ to ensure that the noise introduced by compression vanishes as the algorithm approaches the optimal solution. Theoretical analysis shows that the network topology (represented by the spectral gap $\rho$) and the compression quality ($\delta$) only affect the "higher-order" terms of the convergence rate. The primary term remains $O(1/nT)$, matching the efficiency of a centralized system.

Performance and Bandwidth Savings

The researchers evaluated their approach on two standard large-scale datasets for binary classification: epsilon (dense) and rcv1 (sparse).

  • Massive Bandwidth Savings: In experiments on the epsilon dataset, CHOCO-SGD with 1% sparsification (rand1%) reached the same accuracy as uncompressed decentralized SGD but used 100x fewer bits.
  • Linear Convergence for Consensus: CHOCO-GOSSIP is the first gossip algorithm to achieve linear convergence for average consensus using arbitrary compressed messages.
  • Superiority over Baselines: CHOCO-SGD significantly outperformed existing state-of-the-art compressed decentralized methods like DCD-SGD and ECD-SGD, which often diverged or stalled when using low-precision compression. As shown below, CHOCO-GOSSIP converges to the exact average, whereas previous quantized gossip methods (Q1-G, Q2-G) either diverge or hit an "error floor."
CHOCO-GOSSIP performance compared to baselines, showing linear convergence and massive reductions in transmitted bits.

Limitations and Future Work

  • Strong Convexity: The current theoretical proof for CHOCO-SGD assumes the objective functions are strongly convex. While the authors believe the techniques should carry over to non-convex settings (like deep learning), this remains to be formally proven.
  • Hyperparameter Tuning: The algorithm introduces a consensus stepsize $\gamma$ that needs to be tuned based on the compression level and network topology. While the authors provide a theoretical range, finding the optimal $\gamma$ in practice requires careful tuning.
  • Memory Overhead: Each node needs to store an estimate of its neighbors' states. This increases local memory usage proportional to the degree of the node in the network graph.

Summary updated

BibTeX
@inproceedings{koloskova2019decentralized,
  author = {Anastasia Koloskova and Sebastian U. Stich and Martin Jaggi},
  title = {{Decentralized Stochastic Optimization and Gossip Algorithms with Compressed Communication}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=ByVvdnbOWH},
}
Figure