Optimal Complexity in Decentralized Training

Yucheng Lu, Christopher De Sa

TL;DR: This paper establishes the first tight theoretical "speed limit" (lower bound) for decentralized machine learning in complex, non-convex settings. It bridges a significant gap in existing algorithms with DeTAG, a new practical algorithm achieving near-optimal performance via gradient tracking and accelerated communication.

The Challenge of Decentralized Training

In parallel machine learning, the trend is shifting from a "central server" model toward decentralized training. Here, workers (like edge devices) only communicate with their immediate neighbors. While this approach scales better and handles private, "unshuffled" data more effectively, it introduces a fundamental question: What is the absolute fastest a decentralized system can possibly learn?

Until now, we lacked a tight "lower bound" for stochastic non-convex optimization—the math behind training deep neural networks—in a decentralized environment. Existing algorithms like D-PSGD worked well in practice, but their theoretical convergence rates didn't match the best-case scenarios researchers suspected were possible. There was a clear theoretical gap between how fast we thought we could go and how fast our algorithms actually went.

Categorizing Decentralization

To tackle this, the authors first categorize the shift from centralized to decentralized systems into three distinct layers:

  1. Application: Whether data is shuffled across workers or kept locally (unshuffled).
  2. Protocol: How workers coordinate (e.g., AllReduce vs. Gossip).
  3. Topology: The physical or logical network connecting the workers (e.g., a complete graph vs. an arbitrary sparse graph).
Table comparing centralized and decentralized approaches across application, protocol, and topology layers.
The transition from centralized to fully decentralized training across application, topology, and protocol layers.

Establishing the Lower Bound and DeTAG

The authors prove a new lower bound using a "zero-chain" construction. This mathematical tool forces an algorithm to move through coordinates one by one, making it difficult to find the global minimum quickly. The bound accounts for the number of workers ($n$), the network's connectivity (spectral gap $1-\lambda$), and the difficulty of the optimization task.

To prove this theoretical limit is achievable, they propose DeTAG (Decentralized Stochastic Gradient Tracking with By-Phase Accelerated Gossip). DeTAG relies on two key mechanisms:

  • Gradient Tracking: Helps workers "remember" the global gradient direction, even when their local data differs drastically from their neighbors'.
  • Accelerated Gossip: A momentum-like communication method that reaches consensus across the network much faster than standard averaging.

Experimental Validation

The authors evaluated DeTAG against baselines (D-PSGD, $D^2$, and DSGT) using standard image classification benchmarks (CIFAR-10 with LeNet, CIFAR-100 with ResNet-20). They tested various data shuffling strategies (100%, 50%, 25%, and 0%). The 0% shuffled setting represents a strict "Federated Learning" scenario where each worker holds entirely distinct classes of data.

Key Insights and Results

  • Theoretical Optimality: The iteration complexity for decentralized non-convex training is proven to be $\Omega\left(\frac{\Delta L \sigma^2}{n B \epsilon^4} + \frac{\Delta L}{\epsilon^2 \sqrt{1-\lambda}}\right)$. DeTAG achieves this lower bound with only a logarithmic gap.
  • The Spectral Gap is King: Network connectivity significantly impacts communication complexity. DeTAG optimizes the dependency on this spectral gap compared to previous algorithms.
  • Faster Convergence on Unshuffled Data: In the hardest setting (0% shuffled data), DeTAG converged significantly faster and to a lower loss than D-PSGD and DSGT.
  • Robustness to Sparse Networks: As the network became sparser (e.g., ring topologies), DeTAG’s performance remained stable, whereas other algorithms slowed down dramatically.
  • Weakening Assumptions: The paper proves that optimal rates can be achieved by only assuming data variance is bounded at a single point (the origin), rather than everywhere.

Limitations and Future Work

While DeTAG is theoretically near-optimal, a small logarithmic gap remains between its performance and the absolute lower bound. Furthermore, the current version assumes full-precision communication. Future work will investigate combining these optimal rates with communication compression (quantization or sparsification) and asynchronous updates to further reduce overhead in real-world networks.

Summary updated

BibTeX
@inproceedings{lu2021optimal,
  author = {Yucheng Lu and Christopher De Sa},
  title = {{Optimal Complexity in Decentralized Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure