Distributed stochastic optimization with gradient tracking over strongly-connected networks

Ran Xin, Anit Kumar Sahu, Usman A. Khan, Soummya Kar

In the world of large-scale machine learning and the Internet of Things (IoT), data is rarely sitting in one place. It’s spread across thousands of devices, and processing it centrally is often impossible due to privacy concerns or bandwidth limits. This paper by Ran Xin and colleagues introduces $S-AB$, a robust algorithm designed to solve optimization problems across these "distributed" networks, even when communication is one-way (directed) and the data is noisy.

TL;DR

The authors propose $S-AB$, a distributed stochastic gradient descent algorithm that works over directed graphs without needing complex eigenvector estimation. By combining gradient tracking with a clever use of both row- and column-stochastic weight matrices, $S-AB$ achieves linear convergence to a neighborhood of the global optimum.

What Problem Does This Paper Address?

Most distributed optimization algorithms rely on two major assumptions:

  1. Bidirectional Communication: Agents can talk back and forth (undirected graphs).
  2. Exact Gradients: Agents have perfect information about their local cost functions.

In reality, communication is often directed (e.g., a sensor can send data but not receive it from a specific neighbor), and data is "stochastic" or noisy. While "Push-Sum" methods exist for directed graphs, they often require agents to estimate the network's eigenvectors—a separate, computationally heavy process that can slow down the main optimization task.

The challenge here is to create an algorithm that is fast (linear convergence), distributed, handles directed communication, and works with noisy data (stochastic gradients) without the overhead of eigenvector estimation.

Methods

The authors introduce the $S-AB$ algorithm. Its name hints at its structure: it uses two different weight matrices, $A$ and $B$.

  • The $x$-update (Consensus): Each agent maintains a solution estimate $x$. They update this by taking a weighted average of their neighbors' estimates using a row-stochastic matrix $A$. This ensures all agents eventually agree on a single solution (consensus).
  • The $y$-update (Gradient Tracking): Simultaneously, each agent maintains an auxiliary variable $y$ to track the global gradient. This update uses a column-stochastic matrix $B$. This ensures that the sum of the gradient estimates is preserved across the network, effectively "tracking" the average gradient of the entire system.
  • Stochastic Oracle: Instead of exact gradients, agents use a Stochastic First-Order Oracle (SFO), which provides an unbiased but noisy estimate of the local gradient.

By using $A$ for consensus and $B$ for gradient tracking, the algorithm avoids the need for the doubly-stochastic matrices required by simpler methods (which are impossible to construct on many directed graphs without global knowledge).

Datasets

The researchers evaluated $S-AB$ using the MNIST dataset of handwritten digits.

  • Task: A logistic regression problem to classify images of the digits '7' and '8'.
  • Setup: 12,000 images were distributed across a network of 20 agents, with each agent holding a local batch of 600 images.
  • Testing: An additional 2,000 images were used to verify the model's accuracy.

Key Insights and Ideas

  • The "Push-Pull" Synergy: The core "aha!" moment is that you don't need a single matrix to be both row- and column-stochastic (doubly-stochastic). By assigning row-stochasticity to the solution estimates and column-stochasticity to the gradient trackers, you can achieve optimality on arbitrary strongly-connected directed graphs.
  • Linear Convergence in a "Ball": Because the algorithm uses a constant step-size ($\alpha$), it doesn't converge to the exact global minimizer. Instead, it quickly (linearly) enters a small neighborhood around the optimum. The size of this neighborhood depends on the noise level and the step-size.
  • Mathematical Sharpness: The authors developed explicit weighted norms to prove that these matrices "contract" (bring agents closer together) over time. This allowed them to provide much tighter convergence bounds than previous work in this area.

Key Results

  • Theoretical Guarantee: The paper proves that under standard assumptions (smooth and strongly convex functions), $S-AB$ converges linearly in the expected mean-square sense.
  • Empirical Performance: In the MNIST experiments, $S-AB$ significantly outperformed the standard non-stochastic $AB$ algorithm.
  • Efficiency: $S-AB$ reached high training and testing accuracy in fewer "epochs" (full passes over the data) compared to its non-tracking counterparts, behaving very similarly to centralized stochastic gradient descent despite the communication constraints.

Limitations and Future Work

  • Constant Step-Size: While a constant step-size allows for fast (linear) convergence, it prevents the algorithm from reaching the exact optimum. Future work could explore decaying step-sizes to achieve exact convergence.
  • Strong Convexity: The current proof relies on the cost functions being strongly convex. Many modern machine learning problems (like deep neural networks) are non-convex. Extending $S-AB$ to these more complex landscapes is a natural next step.
  • Static Networks: The paper assumes the network structure is fixed. Investigating how $S-AB$ handles time-varying directed graphs would be highly relevant for mobile ad-hoc networks.

Summary updated

BibTeX
@inproceedings{xin2019distributed,
  author = {Ran Xin and Anit Kumar Sahu and Usman A. Khan and Soummya Kar},
  title = {{Distributed stochastic optimization with gradient tracking over strongly-connected networks}},
  booktitle = {CDC},
  year = {2019},
  url = {https://openreview.net/forum?id=5RSs-MdwTi5},
}
Figure