A Stochastic Approximation Approach for Efficient Decentralized Optimization on Random Networks

Chung-Yiu Yau, Haoming Liu, Hoi-To Wai

TL;DR

This paper introduces the Fully Stochastic Primal Dual Algorithm (FSPDA) framework, a novel approach for decentralized optimization over random, time-varying networks. By embedding network topology randomness directly into a stochastic augmented Lagrangian formulation, the authors develop two new algorithms (FSPDA-SA and FSPDA-STORM) that achieve state-of-the-art convergence rates for non-convex problems without requiring restrictive assumptions like bounded data heterogeneity.

What Problem Does This Paper Address?

In decentralized machine learning, multiple agents collaborate to train a model without a central server. They do this by performing local computations and exchanging messages with their neighbors. However, real-world communication networks are messy: links drop, bandwidth is limited, and the network topology changes constantly over time.

Existing advanced decentralized algorithms (like gradient tracking or EXTRA) struggle in these time-varying settings because their mathematical analysis relies on symmetric or commuting "mixing matrices"—a property that breaks down when the network changes randomly at each step. To make the math work, prior methods often resorted to unrealistic assumptions, such as requiring the network to be connected at every single iteration or assuming "bounded data heterogeneity" (meaning the datasets across different agents are not too different).

This paper tackles a fundamental question: Can we design a decentralized algorithm that achieves fast convergence over highly random, time-varying topologies while handling completely heterogeneous data and compressed communication?

Methods

The authors' key insight is to stop treating network randomness as a hurdle to overcome and instead treat it as an inherent part of the stochastic optimization process.

  1. Stochastic Augmented Lagrangian: They reformulate the standard consensus constraint ($x_i = x_j$) into a stochastic equality constraint that models the random activation of communication links and sparsified coordinates. This leads to a new stochastic augmented Lagrangian function.
  2. Stochastic Approximation (SA): By applying standard stochastic approximation techniques to find the saddle points of this Lagrangian, the network's time-varying nature is implicitly handled as gradient noise.

Using this framework, they propose two algorithms that support sparsified communication (where agents only send a random subset of their model coordinates to save bandwidth):

  • FSPDA-SA: A vanilla stochastic approximation algorithm that applies primal-dual stochastic gradient descent-ascent. It allows agents to perform multiple local updates depending on the network state.
  • FSPDA-STORM: An advanced variant that integrates the STORM (Stochastic Optimization with Recursive Momentum) variance-reduction technique. This step recursively reduces the variance of the gradient estimators, significantly improving sample complexity.

Datasets

The algorithms were evaluated on two standard image classification benchmarks:

  • MNIST: Used for a moderate-scale setup training a feed-forward neural network. To simulate extreme data heterogeneity, the dataset was split such that each agent only held data from a single class label.
  • ImageNet: Used for a large-scale setup training a ResNet-50 architecture across 8 nodes to evaluate communication efficiency in a practical deep learning scenario.

Key Insights and Ideas

  • Topology as Noise: Instead of forcing the algorithm to adapt to a changing network matrix, embedding the network topology into the objective function allows the randomness of the graph to be treated mathematically just like the randomness of data sampling (mini-batching).
  • Unified Sparsification: The constraint matrix $\mathbf{A}(\xi_a)$ simultaneously handles both the random selection of active communication links (edges) and the random selection of model parameters (coordinates) to transmit. This elegantly unifies network randomness and communication compression.
  • No Bounded Heterogeneity Required: Unlike vanilla Decentralized SGD (DSGD), the primal-dual nature of FSPDA naturally corrects for local gradient drift, allowing it to converge efficiently even when agents have completely different local data distributions.

Key Results

The theoretical and empirical performance of the FSPDA framework marks a significant improvement over prior art:

Comparison of decentralized algorithms for non-convex optimization.
  • Theoretical Convergence: For non-convex problems, FSPDA-SA achieves an $\mathcal{O}(1/\sqrt{nT})$ convergence rate, exhibiting a linear speedup with respect to the number of agents $n$. FSPDA-STORM improves this to $\mathcal{O}(1/T^{2/3})$, matching the theoretical lower bounds for stochastic non-convex optimization.
  • Communication Efficiency: In the MNIST experiments, both FSPDA variants significantly outperformed standard DSGD and communication-compressed algorithms like CHOCO-SGD in terms of convergence speed versus bits transmitted.
Figure 1: Feed-forward neural network classification training on MNIST using 106 iterations.
  • Massive Scale-Up: On the large-scale ImageNet benchmark, FSPDA-SA achieved comparable accuracy to state-of-the-art methods while providing up to a 100x reduction in communication costs by utilizing one-edge random graphs and coordinate sparsification.

Limitations and Future Work

While powerful, the FSPDA framework has a few limitations:

  • Suboptimal Local Updates: Although the algorithms support local updates (where agents compute multiple steps before communicating), the proven convergence rates under this specific mode are currently suboptimal and leave room for tighter theoretical analysis.
  • Hyperparameter Tuning: The framework introduces several penalty parameters and step sizes ($\alpha, \beta, \eta, \gamma$) along with momentum parameters for STORM, which can require careful tuning in practice to achieve optimal performance.
  • Expectation Dependence: The analysis assumes the network is connected in expectation. If a network becomes permanently partitioned or suffers from extreme long-term disconnects, the convergence guarantees no longer hold.

Summary updated

BibTeX
@misc{yau2024stochastic,
  author = {Chung-Yiu Yau and Haoming Liu and Hoi-To Wai},
  title = {{A Stochastic Approximation Approach for Efficient Decentralized Optimization on Random Networks}},
  year = {2024},
  eprint = {2410.18774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18774},
}
Figure