[Paper Review] Asynchronous Decentralized Parallel Stochastic Gradient Descent
AD-PSGD is a wait-free, asynchronous decentralized SGD that achieves the optimal convergence rate O(1/√K) and linear speedup with respect to the number of workers, outperforming decentralized and centralized baselines in heterogeneous environments.
Most commonly used distributed machine learning systems are either synchronous or centralized asynchronous. Synchronous algorithms like AllReduce-SGD perform poorly in a heterogeneous environment, while asynchronous algorithms using a parameter server suffer from 1) communication bottleneck at parameter servers when workers are many, and 2) significantly worse convergence when the traffic to parameter server is congested. Can we design an algorithm that is robust in a heterogeneous environment, while being communication efficient and maintaining the best-possible convergence rate? In this paper, we propose an asynchronous decentralized stochastic gradient decent algorithm (AD-PSGD) satisfying all above expectations. Our theoretical analysis shows AD-PSGD converges at the optimal $O(1/\sqrt{K})$ rate as SGD and has linear speedup w.r.t. number of workers. Empirically, AD-PSGD outperforms the best of decentralized parallel SGD (D-PSGD), asynchronous parallel SGD (A-PSGD), and standard data parallel SGD (AllReduce-SGD), often by orders of magnitude in a heterogeneous environment. When training ResNet-50 on ImageNet with up to 128 GPUs, AD-PSGD converges (w.r.t epochs) similarly to the AllReduce-SGD, but each epoch can be up to 4-8X faster than its synchronous counterparts in a network-sharing HPC environment. To the best of our knowledge, AD-PSGD is the first asynchronous algorithm that achieves a similar epoch-wise convergence rate as AllReduce-SGD, at an over 100-GPU scale.
Motivation & Objective
- Motivate robust, scalable distributed training without central bottlenecks in heterogeneous environments.
- Design an asynchronous decentralized SGD that avoids idle time and central server bottlenecks.
- Prove convergence at the optimal rate and establish linear speedup with more workers.
- Empirically evaluate on large-scale datasets (ImageNet) and demonstrate practical speedups over baselines.
Proposed method
- Each worker maintains a local model and updates it with a stochastic gradient computed on a minibatch.
- Nodes perform asynchronous local updates and randomly average their local models with a neighbor via a doubly stochastic matrix W_k.
- The global update can be written as X_{k+1}=X_k W_k - γ ∂g(Ẋ_k; ξ_k^{i_k}, i_k), with Ẋ_k = X_{k-τ_k} representing bounded staleness.
- A deadlock-free, wait-free implementation uses a bipartite graph to schedule neighbor averaging and avoids global synchronization.
- Topology choices include ring-based and multi-hop (logarithmic) connections to accelerate information spreading and robustness.
- Theoretical analysis assumes Lipschitz gradients, bounded variance, spectral gap ρ, and bounded staleness T, leading to an O(1/√K) convergence rate and linear speedups.
Experimental results
Research questions
- RQ1Can asynchronous decentralized training achieve convergence without a central parameter server while maintaining a competitive rate?
- RQ2Does AD-PSGD realize linear speedup as the number of workers increases in heterogeneous environments?
- RQ3How robust is the algorithm to heterogeneity in compute and communication speeds across workers and links?
Key findings
- The algorithm converges at the optimal O(1/√K) rate, matching SGD and D-PSGD.
- AD-PSGD achieves linear speedup with respect to the number of workers.
- Empirically, AD-PSGD outperforms AllReduce-SGD, D-PSGD, and A-PSGD, often by orders of magnitude in heterogeneous environments.
- On ImageNet with up to 128 GPUs, AD-PSGD converges w.r.t epochs similarly to AllReduce-SGD, but per-epoch time can be 4–8× faster in network-sharing HPC environments.
- In homogeneous, shared-network clusters, AD-PSGD still outperforms synchronous baselines by 4×–8× in terms of runtime per epoch.
- AD-PSGD demonstrates strong robustness to slow workers and network links by localizing the impact of stragglers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.