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

Haoran Sun, Songtao Lu, Mingyi Hong

Abstract

Many modern large-scale machine learning problems benefit from decentralized and stochastic optimization. Recent works have shown that utilizing both decentralized computing and local stochastic gradient estimates can outperform state-of-the-art centralized algorithms in applications involving highly non-convex problems, such as training deep neural networks. In this work, we propose a decentralized stochastic algorithm to deal with certain smooth non-convex problems where there are $m$ nodes in the system, and each node has a large number of samples (denoted as $n$). Differently from the majority of the existing decentralized learning algorithms for either stochastic or finite-sum problems, our focus is given to both reducing the total communication rounds among the nodes, while accessing the minimum number of local data samples. In particular, we propose an algorithm named D-GET (decentralized gradient estimation and tracking), which jointly performs decentralized gradient estimation and gradient tracking. We show that, to achieve certain $\epsilon$ stationary solution of the deterministic finite sum problem, the proposed algorithm achieves an $\mathcal{O}(mn^{1/2}\epsilon^{-1})$ sample complexity and an $\mathcal{O}(\epsilon^{-1})$ communication complexity. Similarly, for online problems, the proposed method achieves an $\mathcal{O}(m \epsilon^{-3/2})$ sample complexity and an $\mathcal{O}(\epsilon^{-1})$ communication complexity.

Introduction: The Decentralized Challenge

In the world of large-scale machine learning, the "center" is disappearing. As datasets grow too large for a single machine and privacy concerns make data sharing risky, researchers are turning to decentralized optimization. Here, a network of nodes works together to solve a problem without ever sending their raw data to a central server.

However, decentralized systems face a frustrating trade-off: do you spend your time processing data (sample complexity) or talking to your neighbors (communication complexity)? Traditionally, researchers chose between two paths:

  1. Deterministic (Batch) Methods: These nodes calculate full gradients of all their local data. This leads to low communication costs but becomes incredibly slow (high sample complexity) as the dataset size ($n$) grows.
  2. Stochastic Methods: Nodes use small, random "mini-batches" of data. This is faster per iteration, but the "noise" in the random samples requires many more rounds of communication to reach a solution.

The gap is particularly wide for non-convex problems, such as training deep neural networks. The goal is to find an algorithm that achieves the low communication of batch methods while maintaining the low sample complexity of stochastic methods.

The D-GET Algorithm

The core innovation is the D-GET (Decentralized Gradient Estimation and Tracking) algorithm, which combines two powerful ideas that are usually treated separately:

  • Gradient Estimation (The "V" Update): To keep sample complexity low, D-GET uses a variance reduction technique (inspired by the SARAH/SPIDER estimators). Instead of calculating a full gradient every time, it calculates a full gradient only occasionally. In between, it estimates the change in the gradient using very small stochastic samples.
  • Gradient Tracking (The "Y" Update): To keep communication efficient, the algorithm uses a "tracking" variable. Nodes share their local gradient estimates with neighbors to maintain a running estimate of the global full gradient. This allows the algorithm to use a constant step size, leading to faster convergence than standard decentralized stochastic gradient descent (DSGD).

The synergy of tracking and estimation is key: tracking handles the "spatial" difficulty (data spread across nodes), while variance reduction handles the "temporal" difficulty (processing large amounts of data over time).

Key Results and Complexity Analysis

The paper establishes new "best-in-class" bounds for reaching an $\epsilon$-stationary solution. D-GET is designed so that local gradient estimation doesn't directly depend on the (potentially inaccurate) global tracked gradients, making the system more robust to consensus errors.

Table 1: Comparison of D-GET with state-of-the-art decentralized algorithms.

As shown in the table above, D-GET significantly improves upon existing methods:

  • Finite-Sum Setting: D-GET achieves a sample complexity of $\mathcal{O}(mn^{1/2}\epsilon^{-1})$. This is a significant improvement over previous batch methods like SONATA or Prox-PDA that scaled linearly with $n$ ($\mathcal{O}(mn\epsilon^{-1})$).
  • Online Setting: D-GET achieves a sample complexity of $\mathcal{O}(m\epsilon^{-3/2})$ and communication complexity of $\mathcal{O}(\epsilon^{-1})$. Compared to previous best bounds ($\mathcal{O}(m\epsilon^{-2})$ and $\mathcal{O}(\epsilon^{-2})$), this represents a massive leap in efficiency as the required accuracy ($\epsilon$) becomes stricter.
Figure 1: Visual comparison of sample and communication complexity scaling.

The visual comparison in Figure 1 highlights how D-GET maintains lower complexity across different sample sizes per node. Notably, D-GET reaches the theoretical lower bound for communication complexity ($\mathcal{O}(\epsilon^{-1})$) for non-convex problems, meaning it is as efficient as a decentralized algorithm can possibly be in terms of communication rounds.

Limitations and Future Work

While D-GET represents a significant step forward, several challenges remain:

  • The "m" Factor: The sample complexity is still a factor of $\sqrt{m}$ higher than the theoretical lower bound for centralized systems. Closing this "decentralization gap" is an open challenge.
  • First-Order Guarantees: The current work focuses on finding stationary points. In non-convex landscapes, these could be saddle points. Extending this to "second-order" guarantees to escape saddle points is a promising direction.
  • Smoothness Assumption: The proofs rely on Lipschitz continuous gradients. Applying these efficiency gains to non-smooth problems remains a task for future 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: A Joint Gradient Estimation and Tracking Approach}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure