D-SPIDER-SFO: A Decentralized Optimization Algorithm with Faster Convergence Rate for Nonconvex Problems

Taoxing Pan, Jun Liu, Jie Wang

Abstract

Decentralized optimization algorithms have attracted intensive interests recently, as it has a balanced communication pattern, especially when solving large-scale machine learning problems. Stochastic Path Integrated Differential Estimator Stochastic First-Order method (SPIDER-SFO) nearly achieves the algorithmic lower bound in certain regimes for nonconvex problems. However, whether we can find a decentralized algorithm which achieves a similar convergence rate to SPIDER-SFO is still unclear. To tackle this problem, we propose a decentralized variant of SPIDER-SFO, called decentralized SPIDER-SFO (D-SPIDER-SFO). We show that D-SPIDER-SFO achieves a similar gradient computation cost—that is, O(ε−3) for finding an ϵ-approximate first-order stationary point—to its centralized counterpart. To the best of our knowledge, D-SPIDER-SFO achieves the state-of-the-art performance for solving nonconvex optimization problems on decentralized networks in terms of the computational cost. Experiments on different network configurations demonstrate the efficiency of the proposed method.

Introduction

In large-scale machine learning, training is often distributed across numerous "worker" nodes. Traditional approaches rely on a centralized topology, such as a Parameter Server, where every worker communicates with a central hub. As the number of workers increases or network conditions degrade, this hub becomes a significant bottleneck.

Decentralized optimization addresses this by restricting communication to immediate neighbors. However, existing decentralized algorithms for nonconvex problems, such as training deep neural networks, have historically been slower. For instance, standard methods like Decentralized Parallel Stochastic Gradient Descent (D-PSGD) require a gradient computation cost of $O(\epsilon^{-4})$ to reach an $\epsilon$-accurate solution. This paper introduces D-SPIDER-SFO to bridge this performance gap, matching the $O(\epsilon^{-3})$ rate of state-of-the-art centralized variance-reduced methods.

Methodology

D-SPIDER-SFO is a synchronous, parallel decentralized variant of the Stochastic Path Integrated Differential Estimator (SPIDER). At each iteration, nodes perform four primary steps:

  1. Local Gradient Estimation: Nodes compute local stochastic gradients. A large batch "snapshot" is taken every $q$ iterations to reset the estimate; otherwise, small batches track changes recursively.
  2. Variance Reduction: A recursive update formula for the gradient estimator ($g_{k,i}$) reduces stochastic noise, which is critical for achieving faster convergence.
  3. Local Model Update: Nodes update their local models based on the variance-reduced gradient estimate.
  4. Consensus Step: Nodes exchange and average models with neighbors to ensure global convergence.

Notably, D-SPIDER-SFO does not require the "bounded data variance" assumption, making it more robust to non-IID data distributions across workers compared to traditional methods.

Experimental Evaluation

The algorithm was benchmarked using the CIFAR-10 dataset on two architectures: LeNet5 and ResNet-18.

Convergence Performance

Experiments demonstrate that D-SPIDER-SFO achieves state-of-the-art convergence rates. On both LeNet5 and ResNet-18, it significantly outperforms D-PSGD and $D^2$ in terms of oracle calls (gradient computations) required to reach a target loss.

Convergence comparison on LeNet5 architecture.

Network Efficiency and Scalability

A key advantage of D-SPIDER-SFO is its scalability. In centralized systems, communication costs at the hub scale with the number of workers ($O(n)$). In D-SPIDER-SFO, the per-node cost only scales with the number of neighbors ($O(\text{degree})$).

Convergence on ResNet-18 and sensitivity to network bandwidth and latency.

As shown in the figures above, D-SPIDER-SFO maintains performance parity with its centralized counterpart (C-SPIDER-SFO) in terms of computational complexity. Crucially, in simulated environments with low bandwidth or high latency, the decentralized approach provides up to an order of magnitude speedup in wall-clock time per epoch, as it avoids the centralized communication bottleneck.

Conclusion

D-SPIDER-SFO is the first decentralized algorithm to achieve the near-optimal $O(\epsilon^{-3})$ convergence rate for nonconvex problems. While the current synchronous implementation is susceptible to "straggler" nodes, its robustness to data heterogeneity and superior communication efficiency make it a powerful tool for large-scale distributed training. Future work may explore asynchronous variants to further mitigate synchronization overheads in heterogeneous clusters.

Summary updated

BibTeX
@inproceedings{pan2020d,
  author = {Taoxing Pan and Jun Liu and Jie Wang},
  title = {{D-SPIDER-SFO: A Decentralized Optimization Algorithm with Faster Convergence Rate for Nonconvex Problems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=sVZkMpNv6Ae},
}
Figure