Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning with Low Precision by Half-wave Gaussian Quantization

Zhaowei Cai, Xiaodong He|arXiv (Cornell University)|Feb 3, 2017
Advanced Image and Video Retrieval TechniquesComputer Science49 references66 citations
TL;DR

The paper introduces Half-wave Gaussian Quantizer (HWGQ) for forward activation quantization and suitable backward approximations, enabling 1-bit weights and 2-bit activations (HWGQ-Net) that closely match full-precision networks across several architectures.

ABSTRACT

The problem of quantizing the activations of a deep neural network is considered. An examination of the popular binary quantization approach shows that this consists of approximating a classical non-linearity, the hyperbolic tangent, by two functions: a piecewise constant sign function, which is used in feedforward network computations, and a piecewise linear hard tanh function, used in the backpropagation step during network learning. The problem of approximating the ReLU non-linearity, widely used in the recent deep learning literature, is then considered. An half-wave Gaussian quantizer (HWGQ) is proposed for forward approximation and shown to have efficient implementation, by exploiting the statistics of of network activations and batch normalization operations commonly used in the literature. To overcome the problem of gradient mismatch, due to the use of different forward and backward approximations, several piece-wise backward approximators are then investigated. The implementation of the resulting quantized network, denoted as HWGQ-Net, is shown to achieve much closer performance to full precision networks, such as AlexNet, ResNet, GoogLeNet and VGG-Net, than previously available low-precision networks, with 1-bit binary weights and 2-bit quantized activations.

Motivation & Objective

  • Motivate activation quantization for efficient deep networks and address gradient mismatch in training with non-differentiable quantizers.
  • Propose a forward HWGQ for activations that leverages activation statistics and batch normalization to quantize activations efficiently.
  • Develop corresponding backward approximations to stabilize learning under low-precision constraints.
  • Evaluate HWGQ-Net on large-scale datasets and popular architectures to demonstrate competitive accuracy with significant efficiency gains.

Proposed method

  • Model activations with a forward half-wave Gaussian quantizer HWGQ to discretize ReLU activations.
  • Use batch normalization to stabilize activation distributions, enabling a single HWGQ design across layers.
  • Employ piecewise backward approximators (vanilla ReLU, clipped ReLU, and log-tailed ReLU) to mitigate gradient mismatch during backpropagation.
  • Compare forward HWGQ against binary sign quantization and analyze the impact of backward approximators on training stability.
  • Evaluate networks with 1-bit weights and 2-bit activations (HWGQ-Net) on ImageNet across AlexNet, ResNet, VGG-Variant, and GoogLeNet.

Experimental results

Research questions

  • RQ1Can HWGQ provide efficient forward activation quantization with minimal accuracy loss compared to full-precision networks?
  • RQ2How does gradient mismatch between forward quantization and backward approximations affect learning, and can tailored backward functions stabilize training?
  • RQ3What is the impact of activation quantization bit-width and forward/backward design on mainstream architectures (AlexNet, ResNet, VGG, GoogLeNet) on large-scale datasets?
  • RQ4Do 1-bit weights with low-bit activations (HWGQ-Net) achieve practical accuracy closely approaching full-precision models across multiple architectures?

Key findings

  • HWGQ-Net with 1-bit weights and 2-bit activations achieves much closer performance to full-precision networks than previously available low-precision models across AlexNet, ResNet, VGG-Variant, and GoogLeNet.
  • The forward HWGQ leverages activation statistics (near-Gaussian after batch normalization) to fix quantization parameters, allowing a single quantizer design across layers.
  • Backward approximators such as clipped ReLU and log-tailed ReLU significantly improve training stability and final accuracy compared to vanilla ReLU in backward paths.
  • Compared to prior low-precision methods, HWGQ-Net demonstrates competitive top-1/top-5 accuracy while offering substantial memory and compute savings (the paper notes ~32x memory and ~32x convolutional computation savings for HWGQ-Net).
  • Uniform vs non-uniform quantization with HWGQ shows comparable performance for the same bit-width, and increasing activation quantization levels yields diminishing returns on some networks (e.g., AlexNet) but more gains on deeper architectures (e.g., ResNet-18).

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.