Precision Neural Network Quantization via Learnable Adaptive Modules

Wenqiang Zhou, Zhendong Yu, Xinyu Liu, Jiaming Yang, Rong Xiao, Tao Wang, Chenwei Tang, Jiancheng LvarXiv 2025 · DOI

Abstract

Quantization is a critical technique for deploying deep neural networks on resource-constrained edge devices. However, traditional quantization methods often suffer from "rigidity," where fixed scaling factors and uniform distributions fail to capture the dynamic nature of activations and the bell-shaped distribution of weights. This paper introduces Adaptive Step Size Quantization (ASQ) and Power Of Square root of Two (POST) quantization. ASQ utilizes a lightweight adapter module to dynamically adjust activation quantization per input, while POST provides a finer-grained non-uniform distribution for weights. Experimental results on ImageNet and CIFAR-10 demonstrate that 4-bit models using these techniques can even outperform their full-precision counterparts.

Introduction

Reducing the precision of neural network weights and activations—from 32-bit floating-point to low-bit integers—is essential for efficient inference. Standard Quantization-Aware Training (QAT) typically faces two primary challenges:

  1. Activation Sensitivity: Fixed step sizes (scaling factors) are often used for layers during inference. However, activation distributions vary significantly based on the input data, leading to information loss when a static grid is applied to diverse inputs.
  2. Weight Distribution Mismatch: Neural network weights generally follow a bell-shaped distribution. Uniform quantization wastes bits on the tails, while standard Power-of-Two (POT) quantization is often too sparse in critical regions.
Activation and weight distributions highlighting the mismatch between standard quantization grids and actual data.

Proposed Methodology

The authors propose a dual-strategy approach to address these rigidity problems by making the quantization process more flexible and data-aware.

Adaptive Step Size Quantization (ASQ)

ASQ introduces a dynamic element to activation quantization. Instead of a static scaling factor, a small "Adapter" module—consisting of one or two linear layers—is integrated into the quantizer. This module processes the input activations to predict a dynamic adjustment factor ($\beta$). This allows the quantization grid to "stretch" or "shrink" in real-time, adapting to the specific characteristics of the input image and significantly reducing quantization error.

Power Of Square root of Two (POST)

To better represent weight distributions, the authors propose POST quantization. By changing the base of the non-uniform distribution from $2$ to $\sqrt{2}$, the resolution of the quantization levels is effectively doubled. This provides a much closer fit to the bell-shaped weight curves compared to standard POT. To maintain hardware efficiency, the authors utilize a Look-Up Table (LUT) during inference, avoiding expensive floating-point operations while preserving the benefits of non-uniform representation.

The proposed architecture featuring the Adapter module for ASQ and the POST quantization scheme for weights.

Experimental Evaluation

The approach was evaluated on standard benchmarks: ImageNet (ILSVRC2012) and CIFAR-10, using architectures such as ResNet-18, ResNet-34, ResNet-20, and MobileNet-V2.

Key Results

The ASQ+POST method achieved state-of-the-art performance, frequently surpassing full-precision baselines:

  • ResNet-34 (ImageNet): The 4-bit model reached 74.1% Top-1 accuracy, a 1.2% improvement over the 32-bit baseline.
  • ResNet-18 (ImageNet): The 4-bit version improved accuracy by 1.0% over the baseline.
  • MobileNet-V2: The method outperformed existing techniques like LSQ and APOT at 3-bit and 4-bit precisions.

Importantly, the overhead is minimal. For a 4-bit ResNet-18, the Adapter module adds only 5.34% to the parameter count and a negligible 0.07% to the computational load (FLOPs).

Discussion and Insights

A key finding is that dynamic quantization is superior to static methods because the optimal range is a function of both the layer and the specific input. Interestingly, the authors observed that while ASQ might not always minimize the mathematical L2 quantization error, it consistently improves task accuracy. This suggests the adapter learns to preserve features most relevant for classification, even if it introduces more noise in less critical areas.

While POST offers a "sweet spot" between efficiency and representational power, its implementation on standard hardware requires LUTs. Furthermore, at extremely low bit-widths (e.g., 2-bit), the limited number of levels reduces the effectiveness of non-uniform schemes.

Conclusion

By introducing learnable adaptive modules and a refined non-uniform weight distribution, this work demonstrates that low-bit quantization can be achieved without accuracy loss—and in some cases, with accuracy gains. Future work may explore applying these adaptive principles to more volatile domains like Natural Language Processing and Object Detection.

Summary updated

BibTeX
@misc{zhou2025precision,
  author = {Wenqiang Zhou and Zhendong Yu and Xinyu Liu and Jiaming Yang and Rong Xiao and Tao Wang and Chenwei Tang and Jiancheng Lv},
  title = {{Precision Neural Network Quantization via Learnable Adaptive Modules}},
  year = {2025},
  eprint = {2504.17263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.17263},
}
Figure