Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Gradient Quantization for Data-Parallel SGD

Fartash Faghri, Iman Tabrizian|arXiv (Cornell University)|Oct 23, 2020
Advanced Neural Network ApplicationsComputer Science32 references29 citations
TL;DR

This paper proposes Adaptive Level Quantization (ALQ) and Adaptive Multiplier Quantization (AMQ), two adaptive gradient quantization methods for data-parallel SGD that dynamically adjust quantization levels during training based on evolving gradient statistics. The methods improve validation accuracy by nearly 2% on CIFAR-10 and 1% on ImageNet under low-bandwidth conditions, while being significantly more robust to hyperparameter choices than fixed quantization schemes.

ABSTRACT

Many communication-efficient variants of SGD use gradient quantization schemes. These schemes are often heuristic and fixed over the course of training. We empirically observe that the statistics of gradients of deep models change during the training. Motivated by this observation, we introduce two adaptive quantization schemes, ALQ and AMQ. In both schemes, processors update their compression schemes in parallel by efficiently computing sufficient statistics of a parametric distribution. We improve the validation accuracy by almost 2% on CIFAR-10 and 1% on ImageNet in challenging low-cost communication setups. Our adaptive methods are also significantly more robust to the choice of hyperparameters.

Motivation & Objective

  • To address the limitation of fixed quantization schemes in data-parallel SGD, which fail to adapt to changing gradient statistics during training.
  • To reduce communication costs in distributed deep learning without sacrificing model accuracy.
  • To develop adaptive quantization methods that update compression schemes in parallel across workers using sufficient statistics of gradient distributions.
  • To improve convergence and robustness by minimizing excess quantization variance through dynamic level adjustment.
  • To demonstrate significant performance gains in low-communication regimes on standard benchmarks like CIFAR-10 and ImageNet.

Proposed method

  • ALQ minimizes excess quantization variance by computing optimal quantization levels based on estimated gradient distribution parameters, using a parametric model.
  • AMQ models quantization levels as exponentially spaced values and optimizes a single multiplier parameter to minimize variance, enabling efficient computation.
  • Both methods compute sufficient statistics in parallel across workers to update compression schemes without requiring global synchronization.
  • The methods are designed for coordinate-wise, unbiased quantization and support arbitrary quantization levels under general normalization.
  • Theoretical bounds are established on excess variance and communication cost, valid for any adaptive quantization method including ALQ and AMQ.
  • The approach avoids the high computational cost of prior adaptive methods like ZipML by using online, streaming statistics instead of batch processing.

Experimental results

Research questions

  • RQ1Can adaptive gradient quantization that evolves during training outperform fixed quantization schemes in terms of model accuracy and communication efficiency?
  • RQ2How does the changing distribution of gradients during training affect the optimality of fixed quantization schemes?
  • RQ3Can dynamic quantization levels be computed efficiently in a distributed setting without global synchronization?
  • RQ4To what extent do adaptive methods reduce sensitivity to hyperparameter choices compared to fixed schemes?
  • RQ5What is the theoretical bound on excess variance and communication cost for adaptive quantization in data-parallel SGD?

Key findings

  • ALQ and AMQ improve validation accuracy by 1.9% on CIFAR-10 and 1.0% on ImageNet under low-bandwidth communication settings.
  • The adaptive methods achieve higher accuracy than QSGDinf, TernGrad, and NUQSGD under the same communication constraints.
  • The methods are significantly more robust to hyperparameter choices than fixed quantization schemes, reducing the need for manual tuning.
  • On ImageNet with ResNet-18, ALQ with 3 bits and bucket size 1024 reduces training time per step to 0.21× of FP32, with only 0.43× the time of FP16.
  • The additional computational overhead of ALQ is less than 1.5× FP32 time per update, even for 8-bit quantization, demonstrating practical efficiency.
  • Theoretical analysis shows tight bounds on excess variance and communication cost that hold for any adaptive quantization method, including ALQ and AMQ.

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.