Abstract
Decentralized stochastic optimization methods have gained a lot of attention recently, mainly because of their cheap per iteration cost, data locality, and their communication-efficiency. In this paper we introduce a unified convergence analysis that covers a large variety of decentralized SGD methods which so far have required different intuitions, have different applications, and which have been developed separately in various communities. Our algorithmic framework covers local SGD updates and synchronous and pairwise gossip updates on adaptive network topology. We derive universal convergence rates for smooth (convex and non-convex) problems and the rates interpolate between the heterogeneous (non-identically distributed data) and iid-data settings, recovering linear convergence rates in many special cases, for instance for over-parametrized models. Our proofs rely on weak assumptions (typically improving over prior work in several aspects) and recover (and improve) the best known complexity results for a host of important scenarios, such as for instance cooperative SGD and federated averaging (local SGD).
Introduction
In large-scale machine learning, centralizing data is often impractical due to privacy constraints, bandwidth limitations, or massive data volumes. Decentralized optimization addresses these challenges by allowing nodes to perform local computations and communicate only with immediate neighbors. However, the theoretical landscape has been fragmented, with specialized analyses for "Local SGD" and "Gossip SGD" often relying on disparate assumptions. Furthermore, real-world deployments face two significant hurdles: changing network topologies and data heterogeneity (non-IID data), which leads to "client drift." This work introduces a unified framework to bridge these gaps.
Methodology: A Unified Framework
The paper analyzes a generalized Decentralized SGD algorithm where nodes alternate between local gradient updates and "gossip" steps—averaging model weights with neighbors via a mixing matrix. The core of this unified theory rests on two pillars:
- Expected Consensus Rate: Unlike traditional proofs requiring strong connectivity at every step, this framework only requires consensus on average over a window of $\tau$ steps, accommodating time-varying and randomly sampled topologies.
- Weak Noise Assumptions: By relaxing the requirement for globally bounded noise, the analysis allows noise and data diversity to scale with the gradient norm, reflecting more realistic optimization scenarios.
Theoretical Results and Comparisons
The unified analysis yields "best-in-class" convergence rates across various settings. A key finding is the robustness of linear speedup in high-noise regimes, where the specific network topology and the frequency of local steps become secondary to the number of workers $n$.
As shown in the comparison table above, the framework provides tighter bounds for strongly convex functions than previous work (e.g., Khaled et al., 2020) and recovers best-known rates for non-convex settings under significantly weaker assumptions. It also quantifies the cost of heterogeneity, proving that terms involving data diversity ($ζ$) are mathematically necessary for accurate convergence bounds.
Empirical Validation
The theoretical predictions were validated using a synthetic distributed least squares objective across 25 nodes with varying topologies (Ring, 2D Torus, and Fully-Connected).
The experiments demonstrate a near-perfect alignment with the theory. For instance, in noiseless, strongly convex settings, the iterations required to reach a target accuracy scale with $1/\sqrt{\epsilon}$, as predicted. The results also highlight how over-parameterized models (where noise at the optimum is zero) can achieve linear convergence, matching centralized mini-batch SGD.
Conclusion
This work provides a comprehensive theory for decentralized SGD, unifying previously disparate algorithmic variants. While it sets a new standard for convergence analysis, future extensions could integrate accelerated methods (e.g., Nesterov momentum) to improve dependence on the network's spectral gap or explicitly incorporate communication compression techniques like quantization.
Summary updated