Quantized Decentralized Stochastic Learning over Directed Graphs

Hossein Taheri, Aryan Mokhtari, Hamed Hassani, Ramtin Pedarsani

TL;DR

This paper introduces the first communication-efficient decentralized learning algorithm designed specifically for directed graphs. By combining the "push-sum" protocol with a clever quantization strategy that tracks local estimates, the authors achieve a 5x to 10x reduction in communication data while maintaining the same theoretical convergence rates as methods using exact, high-precision communication.

What Problem Does This Paper Address?

In large-scale machine learning, we often distribute data across many computing nodes (workers). In a decentralized setup, there is no central server; instead, nodes talk only to their neighbors to reach a consensus on the model.

Two major hurdles exist in this space:

  1. Communication Bottlenecks: Modern models have millions of parameters. Sending these high-precision vectors between nodes every iteration is incredibly slow and bandwidth-intensive.
  2. Directed Communication: Most existing decentralized algorithms assume "undirected" graphs—meaning if Node A can talk to Node B, Node B can talk back with the same weight. In the real world (e.g., wireless sensors or specific network topologies), communication is often one-way or asymmetric, represented by a directed graph. Standard averaging techniques fail here because the "influence" of nodes doesn't balance out naturally.
Directed graph topologies used in the experiments

The authors tackle both: how do we compress messages (quantization) while ensuring the math still works out over lopsided (directed) network connections?

Methods

The authors propose Algorithm 2: Quantized Decentralized SGD over Directed Graphs. It merges two powerful concepts:

  • Push-Sum Protocol: To handle directed graphs, they use the push-sum method. Each node maintains an auxiliary scalar variable ($y$) that tracks the "weight" it has received from the network. By dividing their model parameters by this weight, nodes can "un-bias" the asymmetric influence of the directed graph.
  • Difference Quantization: Instead of quantizing the entire model vector (which would introduce massive, persistent noise), the algorithm quantizes the difference between the current model and a locally stored estimate ($\hat{x}$).
  • Error Tracking: Each node keeps track of what its neighbors think its model looks like. By only communicating the quantized "delta" (the update), the quantization noise effectively vanishes as the algorithm approaches the optimal solution.

This approach is standard for undirected graphs but novel when integrated into the push-sum framework required for directed topologies.

Datasets

The paper evaluates the algorithm using two primary setups:

  1. Synthetic Least-Squares: A convex optimization problem where data points are generated according to a linear model with Gaussian noise.
  2. MNIST: The classic handwritten digit dataset. They used this to train a non-convex neural network (10 hidden units with sigmoid activation) to classify digits into 10 classes.

Key Insights and Ideas

  • The "Free" Compression: The most striking insight is that quantization doesn't actually slow down the rate of convergence. Theoretically, the "speed limit" of the learning process ($O(1/\sqrt{nT})$) remains the same whether you use 64-bit floats or highly compressed 4-bit integers. The quantization noise only affects the "lower-order" terms of the error.
  • Vanishing Noise: Because the algorithm quantizes the difference between the current state and a running estimate, the "signal" being quantized gets smaller as the model converges. Eventually, the quantization error becomes negligible.
  • Robustness to Topology: The paper proves that as long as the directed graph is "strongly connected" (there is a path from any node to any other node), the algorithm will converge to the global optimum for convex problems and a stationary point for non-convex ones.

Key Results

  • Bit Reduction: In gossip (consensus) experiments, the authors observed up to a 10x reduction in the total number of bits required to reach a target error level compared to exact communication.
  • Neural Network Training: When training on MNIST, the quantized method (using 8-bit quantization) achieved a 5x reduction in transmitted bits while maintaining a loss curve almost identical to the exact-communication version.
Loss vs. Iteration and Loss vs. Bit for 8-bit quantization on MNIST
  • Matching Theory: The numerical results confirmed the theoretical proofs: the quantized version over directed graphs reaches the same accuracy levels as non-quantized versions, just much more efficiently.

Limitations and Future Work

  • Strong Connectivity Requirement: The proofs rely on the graph being strongly connected. If the network splits or has "sink" nodes that don't pass information along, the consensus breaks.
  • Synchronicity: The current algorithm assumes nodes operate in synchronized rounds. The authors suggest that extending this to asynchronous settings (where nodes update at different speeds) is a vital next step for real-world deployment.
  • Hyperparameter Sensitivity: Like most SGD-based methods, the choice of step-size ($\alpha$) is crucial. While they provide a theoretical formula for $\alpha$, in practice, it requires fine-tuning to balance the speed of consensus against the speed of optimization.

Summary updated

BibTeX
@inproceedings{taheri2020quantized,
  author = {Hossein Taheri and Aryan Mokhtari and Hamed Hassani and Ramtin Pedarsani},
  title = {{Quantized Decentralized Stochastic Learning over Directed Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=MHLTSoRvmHW},
}
Figure