Skip to main content
QUICK REVIEW

[Paper Review] A Statistical Framework for Low-bitwidth Training of Deep Neural Networks

Jianfei Chen, Yu Gai|arXiv (Cornell University)|Oct 27, 2020
Advanced Neural Network ApplicationsComputer Science39 references14 citations
TL;DR

This paper introduces a statistical framework that models low-bitwidth training gradients as unbiased stochastic estimators of full-precision gradients, enabling theoretical analysis of gradient quantization variance. It proposes two novel quantizers—Per-Sample Quantizer (PSQ) and Block Householder Quantizer (BHQ)—which reduce gradient variance, achieving 5-bit ResNet-50 validation accuracy within 0.5% of full-precision training, matching 8-bit baselines.

ABSTRACT

Fully quantized training (FQT), which uses low-bitwidth hardware by quantizing the activations, weights, and gradients of a neural network model, is a promising approach to accelerate the training of deep neural networks. One major challenge with FQT is the lack of theoretical understanding, in particular of how gradient quantization impacts convergence properties. In this paper, we address this problem by presenting a statistical framework for analyzing FQT algorithms. We view the quantized gradient of FQT as a stochastic estimator of its full precision counterpart, a procedure known as quantization-aware training (QAT). We show that the FQT gradient is an unbiased estimator of the QAT gradient, and we discuss the impact of gradient quantization on its variance. Inspired by these theoretical results, we develop two novel gradient quantizers, and we show that these have smaller variance than the existing per-tensor quantizer. For training ResNet-50 on ImageNet, our 5-bit block Householder quantizer achieves only 0.5% validation accuracy loss relative to QAT, comparable to the existing INT8 baseline.

Motivation & Objective

  • To address the lack of theoretical understanding in fully quantized training (FQT), particularly how gradient quantization affects convergence.
  • To model FQT gradients as stochastic estimators of full-precision gradients, enabling bias and variance analysis.
  • To design novel gradient quantizers that reduce variance compared to existing per-tensor quantizers.
  • To demonstrate that 5-bit quantization can achieve performance comparable to 8-bit training on ResNet-50.
  • To enable efficient, low-bitwidth training on edge devices by minimizing accuracy loss.

Proposed method

  • Formalize FQT as a stochastic estimator of QAT gradients, assuming deterministic forward pass and unbiased quantization.
  • Derive a general variance formula for FQT gradients, showing how bitwidth and quantizer type affect gradient quality.
  • Propose the Per-Sample Quantizer (PSQ), which adapts quantization per gradient sample to reduce variance.
  • Introduce the Block Householder Quantizer (BHQ), which applies orthogonal transformations to spread signal across gradient dimensions and reduce dynamic range issues.
  • Use theoretical bounds on bias and variance to guide the design of low-variance quantizers.
  • Evaluate quantizers end-to-end on ImageNet (ResNet-50) and machine translation (IWSLT14), comparing gradient variance and validation accuracy.

Experimental results

Research questions

  • RQ1How does gradient quantization in FQT affect the bias and variance of the training update?
  • RQ2Can a statistical framework be developed to analyze FQT without strong assumptions like single-layer or convexity?
  • RQ3How do different quantizer designs (e.g., per-tensor vs. per-sample) impact gradient variance and convergence?
  • RQ4Can 5-bit gradient quantization achieve performance comparable to 8-bit or full-precision training?
  • RQ5Can novel quantizers like BHQ and PSQ reduce variance more effectively than existing per-tensor quantizers?

Key findings

  • The FQT gradient is an unbiased estimator of the QAT gradient, ensuring asymptotic convergence equivalence under vanishing learning rates.
  • The proposed Block Householder Quantizer (BHQ) reduces gradient variance significantly, enabling 5-bit training with only 0.5% accuracy drop on ImageNet.
  • For ResNet-50 on ImageNet, 5-bit BHQ achieves 76.83% validation accuracy, comparable to 8-bit PTQ (77.40%) and near the QAT baseline (77.35%).
  • PSQ and BHQ achieve lower gradient variance than the baseline per-tensor quantizer (PTQ), especially at low bitwidths.
  • On machine translation (IWSLT14), 5-bit BHQ maintains a BLEU score within 1% of QAT, while PTQ diverges at 5-bit, demonstrating robustness.
  • The framework enables theoretically grounded design of low-bitwidth quantizers, with potential for adaptive bitwidth per layer or novel formats.

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.