[Paper Review] Fighting Quantization Bias With Bias
This paper identifies mean activation shift (MAS) as a key cause of performance degradation in low-precision quantization of lightweight DNNs like MobileNet, particularly due to unbalanced quantization errors in small-layer architectures. It proposes two efficient post-training methods—Iterative Bias Correction (IBC) and Bias Fine Tuning (BFT)—that compensate for MAS by adjusting channel-wise bias terms, achieving near-quantization-aware training accuracy with minimal data and computation, matching state-of-the-art 1% degradation on MobileNet-v1/v2 at a fraction of the cost.
Low-precision representation of deep neural networks (DNNs) is critical for efficient deployment of deep learning application on embedded platforms, however, converting the network to low precision degrades its performance. Crucially, networks that are designed for embedded applications usually suffer from increased degradation since they have less redundancy. This is most evident for the ubiquitous MobileNet architecture which requires a costly quantization-aware training cycle to achieve acceptable performance when quantized to 8-bits. In this paper, we trace the source of the degradation in MobileNets to a shift in the mean activation value. This shift is caused by an inherent bias in the quantization process which builds up across layers, shifting all network statistics away from the learned distribution. We show that this phenomenon happens in other architectures as well. We propose a simple remedy - compensating for the quantization induced shift by adding a constant to the additive bias term of each channel. We develop two simple methods for estimating the correction constants - one using iterative evaluation of the quantized network and one where the constants are set using a short training phase. Both methods are fast and require only a small amount of unlabeled data, making them appealing for rapid deployment of neural networks. Using the above methods we are able to match the performance of training-based quantization of MobileNets at a fraction of the cost.
Motivation & Objective
- To identify the root cause of performance degradation in low-precision quantization of lightweight DNNs, particularly MobileNet.
- To investigate why architectures with small-layer components (e.g., depthwise convolutions) suffer disproportionately from quantization errors.
- To develop a post-training method that corrects mean activation shift (MAS) without full retraining or access to original datasets.
- To evaluate the effectiveness of bias-term compensation in reducing quantization-induced performance degradation across multiple architectures.
- To provide a fast, data-efficient alternative to quantization-aware training for edge deployment.
Proposed method
- The paper identifies mean activation shift (MAS) as a result of non-uniform, unbalanced quantization rounding errors, especially in layers with few parameters like depthwise convolutions.
- It proposes compensating for MAS by adding a constant correction to the additive bias term of each channel, leveraging the bias’s additive nature to shift activation distributions back toward learned statistics.
- Two methods are introduced: Iterative Bias Correction (IBC), which estimates correction constants via inference on a small set of unlabeled test images, and Bias Fine Tuning (BFT), which performs a short, gradient-based fine-tuning of only the bias parameters.
- IBC uses post-activation mean comparisons between full-precision and quantized networks to compute correction values, while BFT uses a standard optimizer with a learning rate schedule over 1K unlabeled images.
- Both methods are applied under a standard 8-bit integer quantization scheme with folded batch normalization, ensuring hardware compatibility.
- The approach is evaluated on ImageNet-trained models, including MobileNet-v1, MobileNet-v2, and Inception-v1, under the same 8-bit quantization setting used in prior SOTA work.
Experimental results
Research questions
- RQ1What causes significant performance degradation in low-precision quantization of lightweight DNNs like MobileNet?
- RQ2Why do architectures with small-layer components (e.g., depthwise convolutions) suffer more from quantization errors than others?
- RQ3Can mean activation shift (MAS) be attributed to unbalanced quantization rounding errors, and is it a major source of error in low-precision inference?
- RQ4Can MAS be effectively compensated by modifying only the bias terms of network layers?
- RQ5Can post-training bias correction methods achieve performance comparable to quantization-aware training with minimal data and computation?
Key findings
- The paper identifies mean activation shift (MAS) as a primary cause of performance degradation in 8-bit quantized MobileNet-v1 and v2, arising from non-uniform quantization errors in small-layer components.
- Iterative Bias Correction (IBC) reduces degradation to 1.0% on MobileNet-v1 and 1.1% on MobileNet-v2, matching the performance of full quantization-aware training.
- Bias Fine Tuning (BFT) achieves 1.0% degradation on MobileNet-v1 and 1.2% on MobileNet-v2, comparable to state-of-the-art results from full quantization-aware training.
- Combining BFT with ChannelEqualization improves MobileNet-v2 accuracy to 71.1% (v2-1.0) and 74.3% (v2-1.4), achieving state-of-the-art performance for quantized models.
- IBC requires only 8 unlabeled images and runs in 2–3 minutes, while BFT uses 1K images and takes ~20 minutes on a single GPU, both being significantly faster and lighter than full quantization-aware training.
- The methods are robust across architectures, showing similar improvements on Inception-v1, confirming that MAS is a general phenomenon beyond MobileNet.
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.