Skip to main content
QUICK REVIEW

[Paper Review] Layer-wise Adaptive Gradient Sparsification for Distributed Deep Learning with Convergence Guarantees

Shaohuai Shi, Zhenheng Tang|arXiv (Cornell University)|Nov 20, 2019
Stochastic Gradient Optimization TechniquesComputer Science36 references14 citations
TL;DR

This paper proposes LAGS-SGD, a distributed deep learning optimization method that combines layer-wise adaptive gradient sparsification with synchronous SGD to enable communication-computation overlap via pipelining. By adaptively selecting significant gradients per layer based on communication-to-computation ratios, LAGS-SGD achieves convergence guarantees with the same rate as vanilla SGD while reducing communication overhead, demonstrating up to 30% faster training than dense SGD on a 16-GPU cluster.

ABSTRACT

To reduce the long training time of large deep neural network (DNN) models, distributed synchronous stochastic gradient descent (S-SGD) is commonly used on a cluster of workers. However, the speedup brought by multiple workers is limited by the communication overhead. Two approaches, namely pipelining and gradient sparsification, have been separately proposed to alleviate the impact of communication overheads. Yet, the gradient sparsification methods can only initiate the communication after the backpropagation, and hence miss the pipelining opportunity. In this paper, we propose a new distributed optimization method named LAGS-SGD, which combines S-SGD with a novel layer-wise adaptive gradient sparsification (LAGS) scheme. In LAGS-SGD, every worker selects a small set of "significant" gradients from each layer independently whose size can be adaptive to the communication-to-computation ratio of that layer. The layer-wise nature of LAGS-SGD opens the opportunity of overlapping communications with computations, while the adaptive nature of LAGS-SGD makes it flexible to control the communication time. We prove that LAGS-SGD has convergence guarantees and it has the same order of convergence rate as vanilla S-SGD under a weak analytical assumption. Extensive experiments are conducted to verify the analytical assumption and the convergence performance of LAGS-SGD. Experimental results on a 16-GPU cluster show that LAGS-SGD outperforms the original S-SGD and existing sparsified S-SGD without losing obvious model accuracy.

Motivation & Objective

  • To address the communication bottleneck in distributed deep learning by combining pipelining and gradient sparsification.
  • To overcome the limitation of existing sparsification methods that cannot overlap communication with computation due to monolithic gradient processing.
  • To design a layer-wise adaptive gradient sparsification scheme that enables communication-computation overlap while maintaining convergence guarantees.
  • To theoretically prove that LAGS-SGD maintains the same convergence rate order as vanilla S-SGD under a weak analytical assumption.
  • To empirically validate the analytical assumptions and demonstrate superior training efficiency on real-world DNNs.

Proposed method

  • Introduces a layer-wise adaptive gradient sparsification (LAGS) scheme that selects top-k significant gradients independently per layer based on their magnitude.
  • Adapts the sparsification ratio dynamically per layer according to the layer's communication-to-computation ratio to balance load and hide communication latency.
  • Integrates LAGS with synchronous SGD (S-SGD) to form LAGS-SGD, enabling pipelined execution where communication overlaps with backpropagation.
  • Employs error compensation to preserve model accuracy despite aggressive gradient sparsification.
  • Derives theoretical convergence bounds for LAGS-SGD on non-convex smooth optimization problems under a weak analytical assumption.
  • Uses a system implementation with Horovod and NCCL on a 16-GPU cluster to evaluate wall-clock performance.

Experimental results

Research questions

  • RQ1Can layer-wise adaptive gradient sparsification enable communication-computation overlap in distributed SGD?
  • RQ2Does LAGS-SGD maintain the same convergence rate order as vanilla S-SGD under realistic assumptions?
  • RQ3How does the adaptive compression ratio per layer affect convergence and training speed?
  • RQ4Can LAGS-SGD achieve significant speedup over dense and sparsified S-SGD without sacrificing model accuracy?
  • RQ5What is the impact of communication-to-computation ratio on the performance of LAGS-SGD?

Key findings

  • LAGS-SGD achieves up to 30% faster training than dense S-SGD on a 16-GPU cluster with 10GbE interconnect.
  • The method reduces average iteration time by 4.5% compared to SLGS-SGD, demonstrating improved system scalability.
  • On ImageNet, LAGS-SGD achieves 22%-30% improvement over Dense-SGD in wall-clock time.
  • Top-1 accuracy for ResNet-20, VGG-16, and ResNet-50 models using LAGS-SGD is within 0.3% of Dense-SGD, showing minimal accuracy loss.
  • LSTM-PTB perplexity for LAGS-SGD is 109.4, close to Dense-SGD (106.7) and SLGS-SGD (105.7), confirming consistent convergence.
  • Theoretical analysis confirms that LAGS-SGD has the same convergence rate order as vanilla S-SGD under a weak analytical assumption.

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.