Abstract
Deep learning models are often too large for edge devices. This paper proposes a mixed-precision quantization strategy where bitwidth progressively decreases from the input to the output layer. This approach preserves complex low-level features in shallow layers while aggressively compressing deeper, more semantically robust layers. Experiments show that this method outperforms uniform quantization in accuracy while reducing memory usage by over 30%.
Introduction
The deployment of deep neural networks (DNNs) on resource-constrained edge devices, such as smartphones and drones, is limited by their high memory and computational requirements. Network quantization is a popular technique to mitigate this by representing weights and activations with low-bit integers. However, standard homogeneous quantization—applying the same bitwidth to all layers—often results in a rigid trade-off between model size and predictive performance. This paper argues that a "one-size-fits-all" approach is inefficient, as different layers contribute differently to the network's representational capacity.
Proposed Methodology
The researchers introduce a Mixed-Precision Quantized Neural Network (QNN) framework characterized by a layer-wise decreasing bitwidth schedule.
Progressive Bitwidth Logic
The fundamental observation is that shallow layers function as hierarchical feature extractors. They deal with complex, overlapping manifolds of low-level data like colors and textures, which necessitate higher precision (e.g., 8-bit). As information propagates deeper into the network, features become more semantically separable and robust. These "posterior" layers can therefore be compressed more aggressively, often down to 1-bit (binary), without significant loss of information.
Quantization and Training
To handle the typical "long-tail" distribution of weights, a non-linear tanh transformation is applied before linear quantization to map values into a stable interval. Since the quantization function is non-differentiable, the Straight-Through Estimator (STE) is employed during training. This allows gradients to bypass the quantization operation during backpropagation, enabling standard gradient-based optimization.
Experimental Results
The method was evaluated on ImageNet (ILSVRC-2012), CIFAR-10/100, and Pascal VOC.
Performance Benchmarks
- Image Classification: On CIFAR-10, a VGG-7 model using the proposed mixed-precision scheme achieved 93.22% accuracy with an average bitwidth of 1.06. This surpassed 2-bit uniform models (92.83%) while being smaller. On ImageNet, the method reached 53.18% Top-1 accuracy with AlexNet, significantly outperforming 1-bit XNOR-Net (44.20%).
- Object Detection: A mixed-precision SSD-300 on Pascal VOC outperformed a 2-bit DoReFa-Net by 1.55% mAP, demonstrating the method's generalizability.
Feature Separability
The logic behind decreasing bitwidth is supported by t-SNE visualizations of the features at different depths. As shown in the figure below, features in deeper layers exhibit clearer clustering and separability, justifying the use of lower precision.
Discussion and Conclusion
The proposed strategy offers two main benefits: information preservation in early layers and regularization in deeper layers. By binarizing the parameter-heavy deep layers, the model achieves over 30% memory savings compared to homogeneous counterparts with similar accuracy.
While highly effective, the approach currently relies on heuristic bitwidth schedules. Future work could involve automating the search for optimal schedules using reinforcement learning. Additionally, realizing the full hardware speedup of mixed-precision arithmetic requires specialized support from FPGAs or custom ASICs. In conclusion, progressively decreasing bitwidth provides a robust framework for creating efficient, high-performance quantized neural networks.
Summary updated