An introduction to decentralized stochastic optimization with gradient tracking

Ran Xin, Soummya Kar, Usman A. Khan · DOI

Abstract: Decentralized solutions to finite-sum minimization are of significant importance in many signal processing, control, and machine learning applications. In such settings, the data is distributed over a network of arbitrarily-connected nodes and raw data sharing is prohibitive often due to communication or privacy constraints. In this article, we review decentralized stochastic first-order optimization methods and illustrate some recent improvements based on gradient tracking and variance reduction, focusing particularly on smooth and strongly-convex objective functions. We provide intuitive illustrations of the main technical ideas as well as applications of the algorithms in the context of decentralized training of machine learning models.

The Shift to Decentralized Optimization

In modern large-scale machine learning, data is often geographically dispersed across devices—such as mobile phones or IoT sensors—or stored in massive computing clusters. Traditionally, these systems relied on a centralized "Master-Worker" architecture. However, bringing all this data to a single central server is often impossible due to privacy concerns, bandwidth limits, or the lack of a central coordinator.

Comparison between centralized (Master-Worker) and decentralized network architectures.

The challenge in decentralized optimization is twofold:

  1. Stochastic Noise: Using random mini-batches (Stochastic Gradient Descent) introduces noise that prevents the algorithm from settling exactly on the optimal solution unless the learning rate is gradually decreased, which slows convergence.
  2. Data Heterogeneity: In a decentralized network, different nodes often have very different data (e.g., one node has only "cat" images, another only "dog" images). Standard decentralized methods suffer from a permanent "bias" because a node’s local gradient doesn't point toward the global optimum.

Core Methodologies

This paper reviews three major algorithmic components designed to overcome these hurdles:

  • Consensus-based Optimization: Nodes maintain local versions of the model and periodically average them with their immediate neighbors to reach an agreement.
  • Gradient Tracking (GT): This is the core focus. It introduces a secondary communication variable that "tracks" the average of all local gradients across the entire network. This allows each node to move in a direction that approximates the global gradient, effectively eliminating the bias caused by heterogeneous data.
  • Variance Reduction (VR): The authors incorporate centralized techniques like SAGA and SVRG into the decentralized framework. These methods use a memory of past gradients to progressively reduce the noise of stochastic sampling.

The state-of-the-art solutions, GT-SAGA and GT-SVRG, combine spatial fusion (gradient tracking across nodes) with temporal fusion (variance reduction across iterations).

Key Insights: Spatial vs. Temporal Fusion

A major conceptual contribution is framing the problem as two types of fusion. Gradient tracking is "spatial," aggregating information across the network graph, while variance reduction is "temporal," aggregating information over the history of the optimization process.

Furthermore, in "big data" regimes where each node has many samples, these decentralized algorithms can be $n$ times faster than a single machine. They effectively achieve a "linear speedup," making decentralized systems competitive with high-end centralized clusters.

Experimental Results on MNIST

The authors evaluated their methods using the MNIST dataset for binary classification (digits '3' and '8'). They simulated a network of 100 nodes connected in a sparsely-connected geometric graph with extreme data heterogeneity: each node held only one class of data.

Numerical results show that while standard Decentralized SGD (DSGD) plateaus at a certain "steady-state error," GT-DSGD continues to converge toward the exact solution when using a constant step size. The hybrid methods, GT-SAGA and GT-SVRG, achieve geometric convergence—meaning the error drops exponentially over time. In these experiments, GT-SAGA converged the fastest, though it requires more memory to store a table of gradients compared to GT-SVRG.

Limitations and Future Outlook

Despite their performance, these methods face practical challenges. Communication overhead is a concern, as gradient tracking requires two rounds of communication per iteration. Additionally, synchrony and latency issues arise in GT-SVRG, where "straggler" nodes can slow the entire network. Finally, while these algorithms are applicable to deep learning, proving similar convergence rates for non-convex landscapes remains a major open challenge in the field.

Summary updated

BibTeX
@misc{xin2019introduction,
  author = {Ran Xin and Soummya Kar and Usman A. Khan},
  title = {{An introduction to decentralized stochastic optimization with gradient tracking}},
  year = {2019},
  eprint = {1907.09648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.09648},
}
Figure