HAWQ: Automating Precision via Hessian Spectrum Analysis
Hessian AWare Quantization (HAWQ), introduced by Dong et al. in 2019, revolutionized mixed-precision by automatically selecting each layer's quantization precision based on its Hessian spectrum. This method also provided a deterministic fine-tuning order, achieving superior accuracy with higher compression ratios (e.g., 12.0x compression for Inception-V3 with 74.36% top-1 accuracy) compared to prior methods.
The top 3
- Hessian Spectrum's Role: Guiding Layer-Specific Precision: HAWQ quantifies a neural network layer's sensitivity to quantization noise using its Hessian matrix. Layers with larger 'top eigenvalues' in their Hessian spectrum, indicating high loss function curvature, are deemed more sensitive and assigned higher precision, while less sensitive layers receive lower precision.
- HAWQ's Performance: Up to 14% Smaller Models, Higher Accuracy: HAWQ demonstrated significant benefits, achieving up to 1% higher accuracy with models up to 14% smaller on ResNet50 and Inception-V3 compared to other methods like RVQuant and HAQ. It enabled quantizing SqueezeNext to a mere 1MB model size while maintaining over 68% top-1 accuracy on ImageNet.
- HAWQ's Automation Edge: Eliminating Manual Bit Allocation: HAWQ automates the complex and often heuristic task of assigning optimal bit-widths to different layers in mixed-precision quantization, significantly reducing the need for extensive manual tuning and expert knowledge.
Sources
Open the full topic