Improving the Sample and Communication Complexity for Decentralized Non-Convex Optimization: Joint Gradient Estimation and Tracking

Haoran Sun, Songtao Lu, Mingyi Hong

Introduction

In modern large-scale machine learning, data is frequently distributed across multiple nodes, such as mobile devices in federated learning or servers in a data center. Decentralized optimization allows these nodes to train a joint model by communicating only with their immediate neighbors, eliminating the need for a central server. This architecture inherently improves privacy and network robustness.

However, existing decentralized algorithms for non-convex problems—like training deep neural networks—force a frustrating trade-off. Deterministic methods process the entire local dataset at every step; they require few communication rounds but are computationally exhausting, resulting in high sample complexity. Conversely, stochastic methods use small data batches; they are computationally cheap per step but require a massive number of communication rounds to converge, leading to high communication complexity.

This paper tackles the challenge of breaking this trade-off, introducing a novel algorithm designed to require both minimal local data processing and minimal network communication.

The D-GET Algorithm

The authors propose D-GET (Decentralized Gradient Estimation and Tracking). The core innovation is marrying two powerful optimization concepts that are notoriously difficult to combine in a decentralized setting:

  1. Variance Reduction (VR): Utilizing techniques similar to SARAH or SPIDER to reduce the noise inherent in stochastic gradients.
  2. Gradient Tracking: Employing a specialized auxiliary variable to track the global average gradient across the network, which corrects the "consensus error" that typically plagues decentralized systems.

Directly feeding stochastic gradients into a gradient tracker usually fails because high variance destroys the tracker's accuracy. D-GET solves this using a "double loop" architecture:

  • Outer Loop: Occasionally, nodes compute a highly accurate full-batch gradient (or a very large batch in the online setting) to anchor the estimates.
  • Inner Loop: Nodes perform cheap, stochastic updates. They maintain a local gradient estimator ($v_i$) that uses variance reduction, and a global tracker ($y_i$) that updates based on $v_i$ and messages from neighbors.

Crucially, the local gradient estimates do not depend on the potentially inaccurate globally tracked gradients, preventing errors from spiraling out of control. This synergy demonstrates that one does not have to sacrifice communication efficiency to use stochastic gradients in a decentralized network, provided variance reduction is applied locally before gradients enter the global tracking mechanism.

Key Results and Theoretical Guarantees

By proving that D-GET works, the authors show that decentralized non-convex optimization can theoretically match the communication bounds of deterministic methods while drastically cutting the sample bounds.

Comparison of sample and communication complexities for decentralized non-convex optimization algorithms.

The paper provides rigorous theoretical bounds that shatter previous complexity ceilings:

  • Finite-Sum Setting (Fixed Datasets): D-GET achieves a sample complexity of $\mathcal{O}(m n^{1/2} \epsilon^{-1})$ and a communication complexity of $\mathcal{O}(\epsilon^{-1})$. This is a massive improvement over the previous best sample complexity of $\mathcal{O}(mn\epsilon^{-1})$. The theoretical sample complexity achieved by D-GET is only $\sqrt{n}$ worse than the known absolute lower bound for centralized non-convex optimization, proving that decentralization doesn't have to incur a massive computational penalty.
  • Online Setting (Streaming Data): D-GET achieves a sample complexity of $\mathcal{O}(m \epsilon^{-3/2})$ and a communication complexity of $\mathcal{O}(\epsilon^{-1})$. This strictly beats the prior state-of-the-art $\mathcal{O}(m\epsilon^{-2})$ bounds for both metrics.

Empirical Performance

The authors evaluated their algorithm on standard machine learning benchmarks, specifically utilizing the a9a dataset from the LIBSVM repository ($n=32,561$ samples, $d=123$ features). The data was distributed evenly across simulated nodes to test decentralized logistic regression (with a non-convex regularizer) and non-convex robust linear regression.

In experiments against strong baselines (NEXT, PSGD, GNSD), D-GET converged significantly faster in terms of epochs (data samples processed) while matching the communication efficiency of the best deterministic algorithms.

Limitations and Future Work

While D-GET represents a significant leap forward, its theoretical guarantees currently rely on specific network and function assumptions. The communication graph is assumed to be undirected and unweighted, and the objective functions are assumed to be smooth (with a specific mean-squared smoothness assumption required for the online setting).

The authors note that variance-reduced methods like SpiderBoost can be adapted for non-smooth problems. Extending D-GET to handle non-smooth objectives, directed communication graphs, or time-varying networks represent clear and promising next steps for this line of research.

Summary updated

BibTeX
@inproceedings{sun2020improving,
  author = {Haoran Sun and Songtao Lu and Mingyi Hong},
  title = {{Improving the Sample and Communication Complexity for Decentralized Non-Convex Optimization: Joint Gradient Estimation and Tracking}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure