Optimal Complexity in Non-Convex Decentralized Learning over Time-Varying Networks

Xinmeng Huang, Kun Yuan

TL;DR

This paper establishes the first theoretical lower bound for non-convex decentralized stochastic optimization over time-varying network topologies with a fixed network size. To prove tightness, the authors introduce MC-DSGT (Multiple Consensus Decentralized Stochastic Gradient Tracking), an algorithm that matches this lower bound up to logarithmic factors, resolving the open question of optimal complexity in this regime.

What Problem Does This Paper Address?

Decentralized optimization enables nodes in a network to collaboratively train machine learning models using only local communication, avoiding the communication bottleneck of a central server. In realistic settings (such as mobile ad-hoc networks, robotics, or one-peer deep learning communication topologies), network connections vary over time.

While convergence limits for static networks or deterministic strongly-convex time-varying networks were previously understood, the theoretical limits for non-convex stochastic optimization over time-varying graphs remained open. Two primary obstacles stood in the way:

  1. Defining network delay over time: Static networks rely on graph diameter $D$ to gauge information propagation speed, but an equivalent metric was missing for time-varying topologies.
  2. Fixed network size ($n$): In stochastic optimization, the network size $n$ must remain fixed to analyze the linear speedup $O(\sigma/\sqrt{nT})$. Prior deterministic lower bounds arbitrarily adjusted $n$ as a proof tool—a technique that fails in the stochastic setting.

Methods

The authors tackled these hurdles through several key mathematical and algorithmic innovations:

  • Effective Graph Distance and Diameter: The authors introduce a metric that quantifies the minimum number of rounds required for a message sent from node $i$ at round $t$ to reach node $j$ across dynamically changing topologies $\{G^t\}$.
  • Sun-Shaped Graph Topologies: To construct the lower bound with a fixed $n$, the authors design a parameterized family of time-varying graphs called sun-shaped graphs ($S_{n,C}$). In these graphs, a dynamic center set $C$ forms a complete clique while outer nodes connect only to $C$. By cycling the center set over time, the authors tightly couple the effective graph diameter to the network connectivity parameter $\beta \in [0, 1 - 1/n]$.
  • Zero-Chain Function Construction: Building on zero-respecting algorithm assumptions, the lower-bound proof combines a stochastic zero-chain construction (to bound gradient noise) with an information-propagation bottleneck across sun-shaped graphs (to bound communication delay).
  • MC-DSGT Algorithm: To match the lower bound, the paper introduces Decentralized Stochastic Gradient Tracking with Multiple Consensus (MC-DSGT). It enhances standard gradient tracking by combining:
  • Gradient accumulation (averaging mini-batches locally across $R$ queries).
  • Multiple fast consensus rounds ($R$ gossip communication steps) where $R = \tilde{\mathcal{O}}\left(\frac{1}{1-\beta}\right)$.

Datasets

The empirical validation evaluates non-convex regularized logistic regression across two real-world datasets:

  • MNIST: Binarized to distinguish digits 2 vs. 4; partitioned non-uniformly across $n=16$ nodes (where half the nodes hold 80% positive samples and the rest hold 80% negative samples).
  • COVTYPE.binary: Binarized forest cover type dataset; partitioned non-uniformly across $n=32$ nodes under the same 80/20 heterogeneous split.

No new datasets were introduced.

Key Insights and Ideas

  • Network delay behaves as $\Theta((1-\beta)^{-1})$: The effective graph diameter in time-varying sun-shaped networks is inversely proportional to $1-\beta$ (the spectral gap measure of connectivity), formalizing the communication delay across evolving topologies.
  • Optimal rate decoupling: The optimal rate splits cleanly into two terms: $$\Omega\left(\sqrt{\frac{\Delta L \sigma^2}{nT}} + \frac{\Delta L}{T(1-\beta)}\right)$$ The first term captures the network-independent stochastic linear speedup, while the second term captures the decentralized communication overhead.

  • Multiple consensus closes the gap: Standard Decentralized SGD (DSGD) suffers from high consensus error under data heterogeneity, and single-consensus Decentralized Stochastic Gradient Tracking (DSGT) exhibits suboptimal network dependency. Executing $\tilde{\mathcal{O}}(1/(1-\beta))$ gossip steps per gradient step eliminates higher-order variance terms and achieves near-optimal rates.

Key Results

  • Theoretical Tightness: The convergence rate of MC-DSGT matches the theoretical lower bound up to logarithmic factors: $$\tilde{\mathcal{O}}\left(\sqrt{\frac{\Delta L \sigma^2}{nT}} + \frac{\Delta L}{T(1-\beta)}\right)$$ This improves upon vanilla DSGT (which has a $T^{-2/3}(1-\beta)^{-1}$ variance term and a $(T(1-\beta)^2)^{-1}$ bias term) and DSGD (which suffers from data heterogeneity $b^2$).

  • Empirical Superiority: On MNIST ($n=16, R=2$) and COVTYPE.binary ($n=32, R=4$) over random time-varying sun-shaped graphs, MC-DSGT converges significantly faster and achieves a gradient norm error ($10^{-5}$) orders of magnitude lower than DSGD ($10^{-2}$) and DSGT ($10^{-3}$ to $10^{-4}$).

Limitations and Future Work

  • Connectivity Restriction: The lower bound is formally established for connectivity parameter $\beta \in [0, 1 - 1/n]$. While this interval covers common topologies as $n$ grows, it does not strictly encompass the boundary as $\beta \to 1$ for small $n$.
  • Function Classes: The optimality results currently address non-convex smooth objective functions. Extending the optimal lower and upper bounds to (strongly) convex stochastic optimization over time-varying networks remains an open direction.

Summary updated

BibTeX
@inproceedings{huang2022optimal,
  author = {Xinmeng Huang and Kun Yuan},
  title = {{Optimal Complexity in Non-Convex Decentralized Learning over Time-Varying Networks}},
  booktitle = {OPT @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=kV2j-XTGAL0},
}
Figure