Introduction
Mixed-precision quantization (MPQ) is a critical technique for deploying deep neural networks on resource-constrained mobile and edge devices. By assigning different bitwidths to different layers—allocating more bits to sensitive layers and fewer to redundant ones—MPQ achieves a superior balance between model size and accuracy compared to uniform quantization. However, the search for an optimal bitwidth policy is traditionally a "needle-in-a-haystack" problem that is heavily dependent on the target dataset. For large-scale datasets like ImageNet, this search can consume multiple GPU days.
To address this, the authors propose Generalizable Mixed-Precision Quantization (GMPQ). The fundamental insight is that a model’s "logic"—what it considers important in an image—is a general property that should remain consistent regardless of bit-depth. By ensuring that a quantized model "looks" at the same features as its full-precision counterpart, GMPQ allows researchers to find optimal policies on tiny datasets (like CIFAR-10) and successfully generalize them to massive ones (like ImageNet).
Methodology: Differentiable Search and Attribution Imitation
GMPQ utilizes a differentiable search framework based on a "hypernet." In this setup, each layer's possible bitwidth configurations are represented as parallel branches. The importance of these branches is learned during a single training pass, significantly reducing computational overhead.
The optimization process is guided by a multi-part loss function:
- Cross-Entropy Loss: Maintains the model's classification or detection performance.
- Complexity Loss: Constrains the model to meet specific hardware bit-operation (BOP) targets.
- Generalization Loss (Attribution Rank Preservation): This novel component forces the quantized model to mimic the attribution (feature importance) of a full-precision teacher model.
Attribution Rank Preservation
A key challenge in quantization is that low-bit models lack the capacity to perfectly match the precise feature activation values of a 32-bit model. GMPQ overcomes this by focusing on rank over value. Instead of forcing identical activation intensities, it ensures the quantized model agrees on which pixels are most important.
Furthermore, the method introduces Capacity-Aware Attribution Imitation. Using a differentiable $L_p$ norm, the search process adapts the focus of the model based on its bitwidth. Lower-capacity models are encouraged to have more "concentrated" attention, allowing them to ignore redundant background information and focus their limited bit-budget on the most critical object features.
Key Results and Generalization
The primary advantage of GMPQ is its ability to break the dataset dependency of the quantization search.
- Massive Efficiency Gains: GMPQ reduces search time from days to hours. For ResNet18, the search cost on ImageNet dropped to just 0.5 GPU hours, compared to 15–35 hours for state-of-the-art competing methods.
- Superior Accuracy: Despite the faster search, the resulting models often outperform their full-precision baselines. On ResNet18, GMPQ achieved 70.2% top-1 accuracy on ImageNet, surpassing the 69.7% baseline while significantly reducing the model's computational footprint.
- Cross-Task Robustness: The authors demonstrated that a bitwidth policy searched on CIFAR-10 for classification could be effectively applied to Faster R-CNN for object detection on PASCAL VOC. This confirms that attribution-based strategies capture fundamental architectural sensitivities that transcend specific tasks.
Conclusion
GMPQ demonstrates that "locating network attribution correctly is a general ability." By decoupling the bitwidth search from the scale of the deployment dataset, it provides a scalable and efficient path for neural network compression. This attribution-centric approach not only accelerates the deployment of mixed-precision models but also offers a promising new direction for broader Neural Architecture Search (NAS) and network pruning research.
Summary updated