Stochastic Approximation Approach for Decentralized Optimization on Time Varying Random Networks

Chung-Yiu Yau, Haoming Liu, Hoi To WaiNeurIPS 2026

TL;DR

Imagine trying to train a massive neural network across a swarm of devices where communication links randomly drop out and every device holds wildly different data. Historically, you had to pick your poison: use simple algorithms that choke on diverse data, or advanced ones that break when the network flickers. This paper introduces a mathematical sleight-of-hand—treating the flickering network itself as just another source of random noise—unlocking fast, reliable decentralized training over completely unpredictable networks.

What Problem Does This Paper Address?

In decentralized learning, a group of agents (servers, phones, or sensors) collaboratively train a model without a central coordinator, passing messages only to their immediate neighbors. In the real world, two headaches immediately crop up:

  1. Data Heterogeneity: Device A’s data looks nothing like Device B’s (e.g., in their experiments, one agent only sees images of the digit "1", while another only sees "2").
  2. Time-Varying Networks: Links are unreliable, or agents intentionally skip communication rounds to save bandwidth, meaning the active network graph changes at every step—and might even be disconnected at any given instant.

Standard Decentralized Stochastic Gradient Descent (DSGD) handles flickering networks just fine, provided everyone's data is fairly similar. When data is heterogeneous, DSGD’s performance hits a wall. Sophisticated methods like Gradient Tracking (GT) conquer data heterogeneity by tracking global gradient trends, but analyzing them on random, time-varying graphs is notoriously difficult because multiplying different Asymmetric/random communication matrices scrambles the math. Prior fixes forced strict compromises, like requiring the network to stay connected at every single step or forcing global synchronization pauses.

Comparison of decentralized algorithms showing FSPDA-SA and FSPDA-STORM are the first to simultaneously handle stochastic gradients (SG), time-varying graphs (TV), and unbounded data heterogeneity (w/o BH).

Methods

The authors introduce the Fully Stochastic Primal Dual Algorithm (FSPDA) framework.

In decentralized optimization, getting all agents to agree on the same model weights ($x_i = x_j$) can be written as a linear constraint ($Ax = 0$). Usually, primal-dual algorithms solve this assuming a fixed network $A$. When the network changes randomly, the "dual variables" (which act like memory keeping track of disagreement between neighbors) fall out of sync.

Here is what is new: the authors rewrite the consensus requirement as a stochastic equality constraint, folding the randomness of the network graph—and even random coordinate sparsification (sending only a fraction of model weights)—directly into an augmented Lagrangian function. By doing this, a dropped network link is treated mathematically the exact same way mini-batch SGD treats a noisy data sample: via Stochastic Approximation (SA).

From this framework, they build two algorithms:

  • FSPDA-SA: Applies standard stochastic gradient descent-ascent to update model weights and dual variables simultaneously. It naturally supports local updates (skipping communication) and fully asynchronous execution.
  • FSPDA-STORM: Adds a recursive momentum "control variate" (inspired by the STORM variance-reduction technique) to both the primal and dual updates, canceling out noise from both mini-batching and the flickering network.

Datasets

The authors evaluate their algorithms on two standard image classification benchmarks, deliberately partitioned to stress-test extreme network and data conditions (such as activating only one random edge in the entire network per iteration):

  • MNIST: 60,000 samples (784 features) split across 10 nodes to train a 1-hidden-layer feed-forward network ($d = 79,510$ parameters). To maximize heterogeneity, data is unshuffled so each of the 10 agents holds samples from only one digit class.
  • ImageNet: 1,281,168 training images across 1,000 classes (cropped to $256 \times 256$), split across 8 nodes to train a large-scale ResNet-50 ($d = 25,557,032$ parameters).

No new datasets are introduced.

Key Insights and Ideas

  • Topology randomness is just gradient noise in disguise: Instead of fighting products of random mixing matrices, baking the random graph incidence matrix into a stochastic Lagrangian lets standard stochastic optimization tools do the heavy lifting.
  • Memory-efficient dual updates: A naive stochastic primal-dual setup would force every agent to store separate dual variables for every neighbor. By cleverly using a deterministic matrix in one part of the primal gradient and a random one in the other, each agent only needs to store a single vector of the same size as the model.
  • Dual variables secretly track global gradients: Even though the objective is non-convex (meaning iterates don't contract neatly toward a single point), the authors show that at fixed points, the dual variable naturally converges to the difference between local and global gradients—explaining why it neutralizes data heterogeneity much like Gradient Tracking or EXTRA.
  • Momentum helps consensus: Adding recursive momentum (STORM) to the dual updates doesn't just speed up optimization; it actively shrinks consensus error across the random network.

Key Results

  • Theoretical Convergence: For smooth non-convex problems over $T$ iterations, FSPDA-SA finds a stationary solution at a rate of $\mathcal{O}(1/\sqrt{nT})$, achieving "linear speedup" with the number of agents $n$—matching centralized SGD! Remarkably, for large $T$, random network flickering only affects how fast agents reach consensus, leaving the dominant optimization rate untouched. FSPDA-STORM pushes this further to $\mathcal{O}(1/T^{2/3})$, matching the theoretical lower bound for non-convex stochastic optimization.
  • MNIST Performance: Communicating over just one random edge per step with compressed coordinates (6.7%–10%), both FSPDA variants dramatically outperform DSGD, Swarm-SGD, and CHOCO-SGD under extreme 1-class-per-node heterogeneity, while matching periodic-sync methods (LED, K-GT) without needing global synchronization.
  • ImageNet Efficiency: Training ResNet-50 for 100 epochs using one-edge random graphs, FSPDA-SA (sending 0.5%–1.0% of coordinates) achieves comparable test accuracy (~70%+) while cutting total communication bits by at least 10x compared to CHOCO-SGD and ~1.5x compared to static-graph local-update methods like K-GT, LED, and Decen-Scaffnew.

Limitations and Future Work

  • Loss of Linear Speedup in STORM: While FSPDA-STORM achieves a faster $\mathcal{O}(1/T^{2/3})$ rate in terms of iterations $T$, its bound stays constant as the number of nodes $n$ grows—meaning it does not enjoy the $\sqrt{n}$ multi-agent linear speedup that FSPDA-SA gets.
  • Extreme Compression Trade-offs: On ImageNet, pushing coordinate sparsification down to 0.1% caused accuracy to lag within the 100-epoch budget, requiring more training epochs to recover.
  • Theory vs. Practice Gap in Initialization: Strictly speaking, FSPDA-STORM's theoretical rate assumes specific non-zero initializations involving global averages, though the authors note that simply initializing everything to zero works well in practice.
  • Future Work: The authors suggest their stochastic equality formulation opens the door to designing a broader family of fast decentralized algorithms tailored for arbitrary time-varying networks.

Summary updated

Abstract

This paper initiates the study of a stochastic approximation approach with the Fully Stochastic Primal Dual Algorithm (FSPDA) framework for decentralized optimization on random and time varying topologies. Our framework relies on a novel observation that randomnesses in time varying topology can be incorporated into a stochastic equality constrained optimization formulation. We derived two new algorithms supporting sparsified communication on time varying topologies --- FSPDA-SA allows agents to execute multiple local gradient steps to accelerate convergence, and FSPDA-STORM further incorporates variance reduction to improve sample complexity. For problems with smooth (possibly non-convex) objective function, within $T$ iterations, FSPDA-SA (resp. FSPDA-STORM) finds an $\mathcal{O}( 1/\sqrt{T} )$-stationary (resp. $\mathcal{O}( 1/T^{2/3} )$) solution. Our methods are the first to establish finite-time stationarity guarantees in smooth nonconvex decentralized stochastic optimization over i.i.d. random subgraphs (such as disconnected subgraphs at every iteration) of a fixed connected base graph without bounded local function heterogeneity.
BibTeX
@inproceedings{yau2026stochastic,
  author = {Chung-Yiu Yau and Haoming Liu and Hoi To Wai},
  title = {{Stochastic Approximation Approach for Decentralized Optimization on Time Varying Random Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=CZkji2IRik},
}
Figure