Skip to main content
QUICK REVIEW

[Paper Review] Divide-and-Shuffle Synchronization for Distributed Machine Learning.

Weiyan Wang, Cengguang Zhang|arXiv (Cornell University)|Jul 7, 2020
Stochastic Gradient Optimization TechniquesComputer Science21 references4 citations
TL;DR

This paper proposes Divide-and-Shuffle Synchronization (DS-Sync), a novel communication optimization for distributed machine learning that reduces synchronization overhead by grouping workers and shuffling group membership to minimize the number of synchronized parameters. The method maintains convergence speed while significantly improving training efficiency on models like BERT, WideResNet, and DeepFM across challenging datasets.

ABSTRACT

Distributed Machine Learning suffers from the bottleneck of synchronization to all-reduce workers' updates. Previous works mainly consider better network topology, gradient compression, or stale updates to speed up communication and relieve the bottleneck. However, all these works ignore the importance of reducing the scale of synchronized elements and inevitable serial executed operators. To address the problem, our work proposes the Divide-and-Shuffle Synchronization(DS-Sync), which divides workers into several parallel groups and shuffles group members. DS-Sync only synchronizes the workers in the same group so that the scale of a group is much smaller. The shuffle of workers maintains the algorithm's convergence speed, which is interpreted in theory. Comprehensive experiments also show the significant improvements in the latest and popular models like Bert, WideResnet, and DeepFM on challenging datasets.

Motivation & Objective

  • To address the communication bottleneck in distributed machine learning caused by full parameter synchronization across all workers.
  • To reduce the scale of synchronized elements and eliminate serial execution overhead in synchronization protocols.
  • To maintain algorithm convergence speed while minimizing communication cost through dynamic worker grouping.
  • To design a practical and effective synchronization mechanism compatible with modern deep learning models.

Proposed method

  • Divide workers into multiple parallel groups to reduce the number of parameters synchronized per group.
  • Dynamically shuffle group membership across training iterations to maintain diversity and prevent staleness.
  • Synchronize only within each group, drastically reducing the size of the all-reduce operation.
  • Theoretical analysis shows that shuffling preserves convergence speed by maintaining gradient variance properties.
  • The method is compatible with existing deep learning frameworks and requires minimal modification.

Experimental results

Research questions

  • RQ1Can reducing the number of synchronized parameters through worker grouping improve communication efficiency in distributed training?
  • RQ2Does dynamic shuffling of worker groups maintain the convergence speed of distributed optimization algorithms?
  • RQ3How does DS-Sync perform across diverse deep learning models and datasets?
  • RQ4Can DS-Sync outperform existing communication optimization techniques like gradient compression or stale update handling?

Key findings

  • DS-Sync significantly reduces synchronization overhead by limiting all-reduce operations to smaller, dynamic groups.
  • The method maintains convergence speed comparable to full synchronization, as validated by theoretical analysis.
  • Experiments show consistent training speedups on BERT, WideResNet, and DeepFM across challenging datasets.
  • The approach achieves measurable performance gains without requiring changes to model architecture or hyperparameters.

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.