Abstract
Quantization is a critical technique for deploying Deep Neural Networks (DNNs) on resource-constrained edge devices. However, standard deep architectures often suffer significant performance degradation when reduced to low bit-widths. This paper demonstrates that weight and activation quantization impact model performance through fundamentally different mechanisms: weight quantization reduces generalization capacity, while activation quantization introduces stochastic noise into the forward pass. We propose a holistic optimization framework that prioritizes wider, shallower architectures over traditional deep models and introduces targeted training interventions, including Lipschitz regularization and Cyclical Learning Rates, to mitigate quantization-induced errors.
Introduction
The deployment of DNNs on edge hardware typically involves quantizing 32-bit floating-point weights and activations to lower precision (e.g., 2-bit or 4-bit). The conventional approach—applying quantization to existing state-of-the-art floating-point models—often yields suboptimal results. This research identifies two primary reasons for this failure: the inherent sensitivity of specific architectures to quantization and the distinct mathematical distortions caused by weight versus activation precision reduction.
Characterizing Quantization Effects
To understand how quantization warps a model's internal logic, we utilized a synthetic 2D dataset to visualize decision boundary distortions. This characterization revealed a clear dichotomy:
- Weight Quantization: Acts as a form of capacity reduction. It tends to smooth and oversimplify decision boundaries, leading to a loss in the model's ability to generalize complex patterns.
- Activation Quantization: Functions as forward-pass noise. This results in fragmented and erratic decision boundaries, as noise introduced at each layer compounds and amplifies during inference.
Holistic Optimization Methods
Architectural Transformation
Our analysis suggests that depth is often the enemy of activation quantization due to noise amplification. Conversely, increasing the channel width of a network provides a robust buffer, allowing the model to "average out" quantization errors. Consequently, we advocate for a shift toward shallower and wider architectures when designing for low-precision environments.
Targeted Training Interventions
To further stabilize Quantized Neural Networks (QDNNs), we propose two specific training strategies:
- Cyclical Learning Rate (CLR): Used to navigate the loss landscape more effectively to find flatter, more robust minima that are less sensitive to weight perturbations.
- Lipschitz Regularization ($L_{Lip}$): A loss term added to prevent the network from amplifying activation noise as it propagates through successive layers, effectively constraining the model's sensitivity to input variations.
Experimental Results
ImageNet and CIFAR-10
The benefits of our holistic approach are most evident in large-scale benchmarks. On ImageNet, a standard deep ResNet101 quantized to 2-bits collapsed to 20.1% top-1 accuracy. In contrast, a shallower and wider ResNet50×1.3 with a comparable parameter count maintained 73.7% accuracy. On CIFAR-10, the combination of $L_{Lip}$ and CLR improved a 2-bit ResNet110 from 83.71% to 87.77%.
Semantic Segmentation
On the PASCAL VOC 2012 dataset, our training interventions successfully recovered the mean Intersection over Union (mIOU) for 4-bit MobileNetV2 models, demonstrating that these techniques scale to complex spatial tasks where quantization noise typically manifests as visual artifacts.
Limitations and Future Work
While highly effective for aggressive quantization (≤ 6-bit), our proposed regularization techniques can slightly degrade performance in 8-bit models, where the noise is minimal and the constraints become overly restrictive. Future research will focus on integrating these architectural insights into Neural Architecture Search (NAS) to automate the discovery of noise-resilient, wide-and-shallow models specifically optimized for extreme quantization.
Summary updated