NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Convergence of Decentralized Gradient Descent

Kun Yuan, Qing Ling, Wotao Yin

Abstract

Consider the consensus problem of minimizing $f(x)=\sum_{i=1}^n f_i(x)$ where each $f_i$ is only known to one individual agent $i$ out of a connected network of $n$ agents. All the agents shall collaboratively solve this problem and obtain the solution subject to data exchanges restricted to between neighboring agents. Such algorithms avoid the need of a fusion center, offer better network load balance, and improve data privacy. We study the decentralized gradient descent method in which each agent $i$ updates its variable $x_{(i)}$, which is a local approximate to the unknown variable $x$, by combining the average of its neighbors' with the negative gradient step $-\alpha\nabla f_i(x_{(i)})$. The iteration is $x_{(i)}(k+1) \gets \sum_{\text{neighbor } j \text{ of } i} w_{ij} x_{(j)}(k) - \alpha\nabla f_i(x_{(i)}(k))$, where the averaging coefficients form a symmetric doubly stochastic matrix $W=[w_{ij}] \in \mathbb{R}^{n \times n}$. We analyze the convergence of this iteration and derive its converge rate, assuming that each $f_i$ is proper closed convex and lower bounded, $\nabla f_i$ is Lipschitz continuous, and stepsize $\alpha$ is fixed. Provided that $\alpha < O(1/L_h)$, the objective error at the averaged solution reduces at a speed of $O(1/k)$ until it reaches $O(\alpha)$. If $f_i$ are further strongly convex, the iterates converge to the global minimizer $x^*$ at a linear rate until reaching an $O(\alpha)$-neighborhood.

Introduction

In modern distributed systems—ranging from sensor networks and power grids to privacy-sensitive machine learning—data is often scattered across multiple agents. Traditional optimization requires a central "fusion center" to collect all local data, creating significant communication bottlenecks and single points of failure. Decentralized Gradient Descent (DGD) offers a robust alternative, allowing agents to solve a global optimization problem $\min \sum f_i(x)$ using only local computations and communication with immediate neighbors.

While DGD has been used as a heuristic for years, this paper provides a rigorous theoretical foundation for its performance. Specifically, it addresses the convergence speed and stability of DGD without relying on the restrictive assumption that gradients are globally bounded, a common limitation in prior literature.

The Decentralized Gradient Descent (DGD) Algorithm

In the DGD framework, each agent $i$ maintains a local estimate $x_{(i)}$ of the global solution. The update rule consists of two primary components: Consensus and Innovation.

  1. Consensus: The agent computes a weighted average of its own estimate and those of its neighbors using a doubly stochastic mixing matrix $W$. This step pulls all local estimates toward a common value.
  2. Innovation: The agent takes a local gradient descent step based on its private objective function $f_i$.

Mathematically, the iteration is expressed as: $$x_{(i)}(k+1) = \sum_{j=1}^n w_{ij}x_{(j)}(k) - \alpha\nabla f_i(x_{(i)}(k))$$

By interpreting the entire network as a single system, the authors utilize a Lyapunov analysis to treat the decentralized process as a step on a global function. This allows for the derivation of specific upper bounds for the stepsize $\alpha$ based on the network's spectral properties (the eigenvalues of $W$) and the smoothness (Lipschitz constants) of the local functions.

Theoretical Contributions

Boundedness as a Result, Not an Assumption

A major contribution of this work is the relaxation of the "bounded gradient" assumption. In many previous analyses, it was assumed that $\|\nabla f_i(x)\| \le C$ for all $x$. This paper proves that if the stepsize $\alpha$ is chosen sufficiently small, the gradients remain bounded automatically throughout the execution of the algorithm. This makes the theory applicable to a much broader class of functions, such as standard quadratic objectives.

Convergence Rates and the Noise Floor

The analysis reveals a fundamental trade-off in decentralized optimization with a fixed stepsize. Unlike centralized gradient descent, DGD does not converge to the exact global optimizer $x^*$. Instead, it converges to a neighborhood of $x^*$ with a radius proportional to the stepsize, $O(\alpha)$.

  • Convex Functions: The objective error $f(\bar{x}(k)) - f^*$ reduces at a rate of $O(1/k)$ until it reaches the $O(\alpha)$ residual error.
  • Strongly Convex Functions: The error reduces at a linear (geometric) rate until reaching the $O(\alpha)$ neighborhood.

This "non-ergodic" convergence—where the current iterates themselves converge rather than just their running average—is particularly valuable for real-time applications where the most recent estimate is the most relevant.

Numerical Validation

The authors validated their theoretical results using synthetic experiments on a network of 100 agents with a connectivity ratio of 0.3.

  1. Decentralized Least Squares: Agents solved a regression problem where data was generated via i.i.d. Gaussian samples. The experiments confirmed that the theoretical stepsize limit (calculated at $\alpha \approx 0.1038$) was remarkably accurate; the algorithm remained stable at the limit but diverged when the stepsize was increased to $0.12$.
  2. Decentralized Basis Pursuit: The framework was extended to sparse recovery. By applying DGD to a dual formulation, the authors developed a decentralized version of the Linearized Bregman iteration, achieving linear convergence to a neighborhood of the true sparse signal.

Conclusion and Future Directions

This paper establishes that DGD is a reliable and efficient method for decentralized optimization, providing convergence guarantees that mirror centralized methods up to a specific error floor. The speed of convergence is explicitly linked to the "spectral gap" of the network; better-connected graphs allow for faster consensus and smaller error neighborhoods.

Future research may address the limitations of the current model, such as the requirement for synchronized updates across all agents and the assumption of a static network topology. Additionally, while fixed stepsizes provide faster initial convergence, exploring non-ergodic sequences with diminishing stepsizes remains a path toward achieving exact convergence in decentralized settings.

Summary updated

BibTeX
@article{yuan2013convergence,
  author = {Kun Yuan and Qing Ling and Wotao Yin},
  title = {{On the Convergence of Decentralized Gradient Descent}},
  journal = {SIAM J. Optim.},
  year = {2013},
}
Figure