[Paper Review] Additive Powers-of-Two Quantization: An Efficient Non-uniform Discretization for Neural Networks
This paper introduces APoT, a non-uniform quantization where quantization levels are sums of Powers-of-Two terms, paired with a reparameterized clipping function and weight normalization, achieving competitive accuracy with notable hardware efficiency for weight and activation quantization.
We propose Additive Powers-of-Two~(APoT) quantization, an efficient non-uniform quantization scheme for the bell-shaped and long-tailed distribution of weights and activations in neural networks. By constraining all quantization levels as the sum of Powers-of-Two terms, APoT quantization enjoys high computational efficiency and a good match with the distribution of weights. A simple reparameterization of the clipping function is applied to generate a better-defined gradient for learning the clipping threshold. Moreover, weight normalization is presented to refine the distribution of weights to make the training 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 4-bit quantized ResNet-50 on ImageNet achieves 76.6% top-1 accuracy without bells and whistles; meanwhile, our model reduces 22% computational cost compared with the uniformly quantized counterpart. The code is available at https://github.com/yhhhli/APoT_Quantization.
Motivation & Objective
- Address the mismatch between weight/activation distributions (bell-shaped, long-tailed) and uniform quantization.
- Develop a hardware-friendly non-uniform quantization by expressing levels as sums of powers-of-two terms.
- Improve training stability and clipping threshold learning via a reparameterized clipping function (RCF).
- Stabilize training and improve convergence with weight normalization before quantization.
- Demonstrate state-of-the-art or competitive accuracy on ImageNet and CIFAR-10 with reduced computation.
Proposed method
- Define APoT quantization where each quantization level is a sum of multiple powers-of-two terms, enabling non-uniform yet hardware-friendly levels.
- Use a base bit-width k and number of additive terms n (b = kn) to generate all 2^b levels with sums of PoT terms.
- Propose a Reparameterized Clipping Function (RCF) to provide a more accurate gradient for clipping threshold α during training.
- Apply weight normalization (zero mean, unit variance) before quantization to stabilize distributions and training.
- Optimize clipping threshold α via SGD with STE for the projection, leveraging RCF to propagate informative gradients.
- Quantize both weights and activations with APoT, enabling fast shift-add multiplications and about 2x speed-up over uniform quantization.
Experimental results
Research questions
- RQ1Can APoT quantization match or surpass accuracy of uniform/PoT quantization on standard CNNs?
- RQ2Does RCF provide a more informative gradient signal for clipping thresholds than straight-through estimates?
- RQ3Does weight normalization improve training stability and final performance for APoT quantized networks?
- RQ4To what extent can APoT reduce computational cost while preserving accuracy on ImageNet and CIFAR-10?
Key findings
- 4-bit ResNet-50 on ImageNet achieves 76.6% Top-1 accuracy with reduced computational cost (≈22% lower than uniform quantization).
- APoT attains competitive or superior accuracy compared with state-of-the-art quantization methods across ImageNet and CIFAR-10.
- APoT yields roughly 2x faster multiplication than uniform quantization due to shift-add operations on PoT components.
- The combination of APoT, Reparameterized Clipping Function, and Weight Normalization provides stable training and robust quantization performance.
- 5-bit APoT quantization on ImageNet can surpass some full-precision baselines in Top-1 accuracy in certain configurations (as reported in the ablation results).
- Ablation study shows that removing weight normalization or using non-APoT quantizers degrades accuracy, especially at lower bit-widths.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.