Skip to main content
QUICK REVIEW

[Paper Review] A Distributed Synchronous SGD Algorithm with Global Top-$k$ Sparsification for Low Bandwidth Networks

Shaohuai Shi, Qiang Wang|arXiv (Cornell University)|Jan 14, 2019
Stochastic Gradient Optimization TechniquesComputer Science35 references9 citations
TL;DR

This paper proposes gTop-k S-SGD, a distributed synchronous SGD algorithm that uses global top-k gradient sparsification to reduce communication overhead in low-bandwidth networks. By selecting the top-k largest-magnitude gradients across all workers instead of aggregating local top-k gradients, it reduces communication complexity from O(kP) to O(k log P), achieving 2.7–12× higher scaling efficiency than dense SGD and 1.1–1.7× better than existing Top-k S-SGD on a 32-GPU 1Gbps Ethernet cluster.

ABSTRACT

Distributed synchronous stochastic gradient descent (S-SGD) has been widely used in training large-scale deep neural networks (DNNs), but it typically requires very high communication bandwidth between computational workers (e.g., GPUs) to exchange gradients iteratively. Recently, Top-$k$ sparsification techniques have been proposed to reduce the volume of data to be exchanged among workers. Top-$k$ sparsification can zero-out a significant portion of gradients without impacting the model convergence. However, the sparse gradients should be transferred with their irregular indices, which makes the sparse gradients aggregation difficult. Current methods that use AllGather to accumulate the sparse gradients have a communication complexity of $O(kP)$, where $P$ is the number of workers, which is inefficient on low bandwidth networks with a large number of workers. We observe that not all top-$k$ gradients from $P$ workers are needed for the model update, and therefore we propose a novel global Top-$k$ (gTop-$k$) sparsification mechanism to address the problem. Specifically, we choose global top-$k$ largest absolute values of gradients from $P$ workers, instead of accumulating all local top-$k$ gradients to update the model in each iteration. The gradient aggregation method based on gTop-$k$ sparsification reduces the communication complexity from $O(kP)$ to $O(k\log P)$. Through extensive experiments on different DNNs, we verify that gTop-$k$ S-SGD has nearly consistent convergence performance with S-SGD, and it has only slight degradations on generalization performance. In terms of scaling efficiency, we evaluate gTop-$k$ on a cluster with 32 GPU machines which are interconnected with 1 Gbps Ethernet. The experimental results show that our method achieves $2.7-12 imes$ higher scaling efficiency than S-SGD and $1.1-1.7 imes$ improvement than the existing Top-$k$ S-SGD.

Motivation & Objective

  • Address the high communication overhead in distributed synchronous SGD (S-SGD) on low-bandwidth networks, especially with large numbers of workers.
  • Overcome the inefficiency of existing Top-k sparsification methods that require AllGather with O(kP) complexity due to irregular gradient indices.
  • Reduce communication complexity while preserving model convergence and generalization performance in large-scale DNN training.
  • Improve scaling efficiency on consumer-grade 1Gbps Ethernet clusters by minimizing redundant gradient transfers.

Proposed method

  • Propose a global Top-k (gTop-k) sparsification mechanism that selects the k largest absolute-value gradients across all workers, rather than aggregating local top-k gradients.
  • Introduce the gTopKAllReduce algorithm, a communication-efficient collective operation that reduces gradient aggregation complexity from O(kP) to O(k log P).
  • Use a distributed selection protocol to identify global top-k gradients across P workers using a tournament-based approach with O(log P) rounds.
  • Maintain gradient index information only for the selected global top-k values, minimizing communication of sparse indices.
  • Integrate gTop-k sparsification into the S-SGD framework with momentum correction and gradient clipping to preserve convergence and accuracy.
  • Design the algorithm to be compatible with existing deep learning frameworks by minimizing changes to the training loop.

Experimental results

Research questions

  • RQ1Can global top-k gradient selection reduce communication complexity in distributed S-SGD without degrading model convergence?
  • RQ2How does the communication complexity of gTopKAllReduce compare to AllGather-based Top-k aggregation (TopKAllReduce) in terms of scaling with the number of workers?
  • RQ3What is the impact of gTop-k sparsification on model accuracy and convergence speed compared to dense SGD and local Top-k S-SGD?
  • RQ4How does gTop-k S-SGD perform in terms of scaling efficiency on low-bandwidth networks with a large number of workers?
  • RQ5Can gTop-k S-SGD maintain high training efficiency on diverse DNN architectures like ResNet, VGG, and RNNs under bandwidth constraints?

Key findings

  • gTop-k S-SGD reduces communication complexity from O(kP) to O(k log P), significantly improving scalability on large clusters.
  • On a 32-GPU cluster connected via 1Gbps Ethernet, gTop-k S-SGD achieves 2.7–12× higher scaling efficiency than dense S-SGD.
  • gTop-k S-SGD improves scaling efficiency by 1.1–1.7× over existing Top-k S-SGD methods on the same hardware setup.
  • The model convergence of gTop-k S-SGD is nearly identical to that of S-SGD, with only slight degradation in generalization performance.
  • On ResNet-20, gTop-k S-SGD shows ~9% accuracy degradation compared to Top-k S-SGD with a mini-batch size of 1024, but this drops to ~0.5% with smaller mini-batch sizes.
  • On VGG-16, gTop-k S-SGD shows only ~1% accuracy degradation compared to Top-k S-SGD, and ~6% degradation with large mini-batch sizes, indicating better robustness to batch size changes.

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.