Skip to main content
QUICK REVIEW

[Paper Review] Heterogeneity-Aware Asynchronous Decentralized Training

Qinyi Luo, Jiaao He|arXiv (Cornell University)|Sep 17, 2019
Stochastic Gradient Optimization TechniquesComputer Science50 references8 citations
TL;DR

Ripples is a heterogeneity-aware asynchronous decentralized training framework that combines Partial All-Reduce for low synchronization cost and group scheduling techniques (Group Buffer, Group Division, static/smart scheduling) to reduce conflicts. It achieves 1.1× speedup over state-of-the-art All-Reduce in homogeneous settings and 2× speedup over All-Reduce in heterogeneous environments, outperforming AD-PSGD by 3× in heterogeneity tolerance.

ABSTRACT

Distributed deep learning training usually adopts All-Reduce as the synchronization mechanism for data parallel algorithms due to its high performance in homogeneous environment. However, its performance is bounded by the slowest worker among all workers, and is significantly slower in heterogeneous situations. AD-PSGD, a newly proposed synchronization method which provides numerically fast convergence and heterogeneity tolerance, suffers from deadlock issues and high synchronization overhead. Is it possible to get the best of both worlds - designing a distributed training method that has both high performance as All-Reduce in homogeneous environment and good heterogeneity tolerance as AD-PSGD? In this paper, we propose Ripples, a high-performance heterogeneity-aware asynchronous decentralized training approach. We achieve the above goal with intensive synchronization optimization, emphasizing the interplay between algorithm and system implementation. To reduce synchronization cost, we propose a novel communication primitive Partial All-Reduce that allows a large group of workers to synchronize quickly. To reduce synchronization conflict, we propose static group scheduling in homogeneous environment and simple techniques (Group Buffer and Group Division) to avoid conflicts with slightly reduced randomness. Our experiments show that in homogeneous environment, Ripples is 1.1 times faster than the state-of-the-art implementation of All-Reduce, 5.1 times faster than Parameter Server and 4.3 times faster than AD-PSGD. In a heterogeneous setting, Ripples shows 2 times speedup over All-Reduce, and still obtains 3 times speedup over the Parameter Server baseline.

Motivation & Objective

  • Address the performance bottleneck of All-Reduce in heterogeneous distributed training environments due to slowest-worker limitation.
  • Overcome the deadlock and high synchronization overhead issues in AD-PSGD while preserving its heterogeneity tolerance.
  • Design a decentralized training system that achieves All-Reduce-level performance in homogeneous settings and AD-PSGD-level robustness in heterogeneous settings.
  • Optimize the interplay between algorithmic design and system-level communication primitives to minimize synchronization cost and conflict.

Proposed method

  • Introduce Partial All-Reduce, a novel communication primitive enabling fast synchronization among large worker groups by reducing communication volume.
  • Implement static group scheduling in homogeneous environments to minimize randomness and reduce synchronization conflicts.
  • Propose Group Buffer and Group Division techniques to reduce conflict probability in asynchronous decentralized training with minimal loss of randomness.
  • Use randomized group selection (random GG) and smart group scheduling (smart GG) to balance statistical efficiency and execution speed in heterogeneous settings.
  • Integrate atomic update protocols with conflict avoidance to maintain numerical stability while improving throughput.
  • Design a decentralized training system with flexible communication graphs, spectral gap, and doubly stochastic averaging properties to support robust and scalable training.

Experimental results

Research questions

  • RQ1Can a decentralized training system achieve All-Reduce-level performance in homogeneous environments while maintaining AD-PSGD-level heterogeneity tolerance?
  • RQ2How can synchronization cost be minimized in large-scale decentralized training without sacrificing convergence stability?
  • RQ3What trade-offs exist between randomness in group selection and synchronization conflict, and how can they be optimized?
  • RQ4To what extent can conflict avoidance techniques improve performance in heterogeneous worker environments?

Key findings

  • In homogeneous environments, Ripples is 1.1× faster than the state-of-the-art All-Reduce implementation, 5.1× faster than Parameter Server, and 4.3× faster than AD-PSGD.
  • In heterogeneous settings with a 2× slowdown on one worker, Ripples achieves 2× speedup over All-Reduce and 3× speedup over Parameter Server.
  • With a 5× slowdown, Ripples maintains 5.01× speedup over All-Reduce and 4.23× speedup over AD-PSGD, demonstrating strong heterogeneity tolerance.
  • Smart group scheduling in Ripples outperforms AD-PSGD by 5.26× in overall execution time due to reduced synchronization overhead and better conflict management.
  • On ResNet-50 with ImageNet, Ripples with smart group scheduling achieves 64.21% top-1 accuracy after 10 hours, outperforming AD-PSGD (58.28%) and approaching All-Reduce (66.83%) in convergence speed despite higher iteration count.
  • The performance gain in Ripples comes from reducing per-iteration synchronization cost (5.10× faster than AD-PSGD) at the cost of slightly more iterations (0.96× vs. 0.78×), proving effective trade-off between efficiency and statistical convergence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.