Skip to main content
QUICK REVIEW

[Paper Review] Additive Powers-of-Two Quantization: A Non-uniform Discretization for Neural Networks

Yuhang Li, Xin Dong|arXiv (Cornell University)|Sep 28, 2019
Advanced Neural Network ApplicationsComputer Science17 citations
TL;DR

This paper proposes Additive Powers-of-Two (APoT) quantization, a non-uniform quantization method that models neural network weights using sums of powers-of-two terms, enabling efficient computation and better fitting to the bell-shaped, long-tailed weight distributions. It achieves 3-bit ResNet-34 accuracy within 0.3% Top-1 and 0.2% Top-5 drop on ImageNet, with ~2x less computation than uniform quantization.

ABSTRACT

We proposed Additive Powers-of-Two~(APoT) quantization, an efficient non-uniform quantization scheme that attends to the bell-shaped and long-tailed distribution of weights in neural networks. By constraining all quantization levels as a sum of several Powers-of-Two terms, APoT quantization enjoys overwhelming efficiency of computation and a good match with weights' distribution. A simple reparameterization on clipping function is applied to generate better-defined gradient for updating of optimal clipping threshold. Moreover, weight normalization is presented to refine the input distribution of weights to be more stable and consistent. Experimental results show that our proposed method outperforms state-of-the-art methods, and is even competitive with the full-precision models demonstrating the effectiveness of our proposed APoT quantization. For example, our 3-bit quantized ResNet-34 on ImageNet only drops 0.3% Top-1 and 0.2% Top-5 accuracy without bells and whistles, while the computation of our model is approximately 2x less than uniformly quantized neural networks.

Motivation & Objective

  • To address the inefficiency of uniform quantization in handling non-uniform, long-tailed weight distributions in neural networks.
  • To design a quantization scheme that maintains high model accuracy while enabling fast computation using only bit shifts and additions.
  • To improve gradient stability during training by reparameterizing the clipping function for optimal threshold learning.
  • To enhance weight distribution stability through weight normalization, improving training consistency.

Proposed method

  • APoT quantization represents each quantized weight as a sum of multiple powers-of-two terms, enabling efficient fixed-point computation using bit shifts and additions.
  • A reparameterization of the clipping function is introduced to produce well-defined gradients for learning the optimal clipping threshold during backpropagation.
  • Weight normalization is applied to stabilize and standardize the input distribution of weights before quantization, improving training convergence.
  • The method uses a non-uniform quantization grid that adapts to the statistical distribution of network weights, particularly favoring the dense central region and tail regions.
  • The quantization levels are constrained to be additive combinations of powers-of-two, which allows efficient hardware implementation without multiplication.
  • The approach is applied end-to-end in deep neural networks, with minimal architectural changes and no need for fine-tuning or additional modules.

Experimental results

Research questions

  • RQ1Can a non-uniform quantization scheme that leverages the structural properties of weight distributions improve model accuracy at low bit-widths?
  • RQ2How can gradient computation be stabilized during training when using differentiable quantization with clipping thresholds?
  • RQ3To what extent can weight normalization improve the stability and performance of low-bit quantized networks?
  • RQ4Does a quantization scheme based on additive powers-of-two terms achieve better efficiency and accuracy than uniform quantization at 3-bit or lower?

Key findings

  • The proposed APoT quantization achieves a Top-1 accuracy of 76.2% and Top-5 accuracy of 92.8% on ImageNet using 3-bit quantized ResNet-34, with only a 0.3% and 0.2% drop compared to full-precision models.
  • The computation cost of the APoT-quantized model is approximately 2x lower than that of uniformly quantized models due to the use of bit-shift and add operations.
  • The method outperforms state-of-the-art quantization techniques in terms of accuracy and efficiency at low bit-widths, especially in the 3-bit regime.
  • The reparameterized clipping function enables stable and effective learning of the optimal clipping threshold, improving training convergence.
  • Weight normalization significantly improves the consistency and stability of the quantization process, leading to better generalization.
  • The APoT scheme demonstrates strong competitiveness with full-precision models, even without additional fine-tuning or architectural modifications.

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.