paper-with-me

홈 › Papers

HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks

2019-11-10 · NeurIPS 2020 12 · Zhen Dong, Zhewei Yao, Yaohui Cai, Daiyaan Arfeen, Amir Gholami, Michael W. Mahoney, Kurt Keutzer

Quantization is an effective method for reducing memory footprint and inference time of Neural Networks, e.g., for efficient inference in the cloud, especially at the edge. However, ultra low precision quantization could lead to significant degradation in model generalization. A promising method to address this is to perform mixed-precision quantization, where more sensitive layers are kept at higher precision. However, the search space for a mixed-precision quantization is exponential in the number of layers. Recent work has proposed HAWQ, a novel Hessian based framework, with the aim of reducing this exponential search space by using second-order information. While promising, this prior work has three major limitations: (i) HAWQV1 only uses the top Hessian eigenvalue as a measure of sensitivity and do not consider the rest of the Hessian spectrum; (ii) HAWQV1 approach only provides relative sensitivity of different layers and therefore requires a manual selection of the mixed-precision setting; and (iii) HAWQV1 does not consider mixed-precision activation quantization. Here, we present HAWQV2 which addresses these shortcomings. For (i), we perform a theoretical analysis showing that a better sensitivity metric is to compute the average of all of the Hessian eigenvalues. For (ii), we develop a Pareto frontier based method for selecting the exact bit precision of different layers without any manual selection. For (iii), we extend the Hessian analysis to mixed-precision activation quantization. We have found this to be very beneficial for object detection. We show that HAWQV2 achieves new state-of-the-art results for a wide range of tasks.

📄 PDF Abstract BibTeX arXiv:1911.03852

Code (2)

amirgholami/pyhessian pytorch
zhen-dong/hawq pytorch

Tasks

object-detectionObject DetectionQuantizationSensitivity

Similar Papers 제목 키워드 기반

Channel-wise Hessian Aware trace-Weighted Quantization of Neural Networks

2020-08-19 · Xu Qian, Victor Li, Crews Darren

Second-order information has proven to be very effective in determining the redundancy of neural network weights and activations. Recent paper proposes to use Hessian traces of weights and activations for mixed-precision…

AutoMLDeep Reinforcement LearningQuantization

HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision

2019-04-29 · ICCV 2019 10 · Zhen Dong, Zhewei Yao, Amir Gholami, Michael Mahoney 외

Model size and inference speed/power have become a major challenge in the deployment of Neural Networks for many applications. A promising approach to address these problems is quantization. However, uniformly quantizing…

Quantization

On the Quantization Robustness of Diffusion Language Models in Coding Benchmarks

2026-04-22 · Aarav Gupta, Gururaj Deshpande, Chandreyi Chakraborty arxiv

Auto-regressive Large Language Models (LLMs) achieve strong performance on coding tasks, but incur high memory and inference costs. Diffusion-based language models (d-LLMs) offer bounded inference cost via iterative deno…

End-to-end codesign of Hessian-aware quantized neural networks for FPGAs and ASICs

2023-04-13 · Javier Campos, Zhen Dong, Javier Duarte, Amir Gholami 외

We develop an end-to-end workflow for the training and implementation of co-designed neural networks (NNs) for efficient field-programmable gate array (FPGA) and application-specific integrated circuit (ASIC) hardware. O…

Quantization

Resource Efficient Neural Networks Using Hessian Based Pruning

2023-06-12 · Jack Chong, Manas Gupta, Lihui Chen

Neural network pruning is a practical way for reducing the size of trained models and the number of floating-point operations. One way of pruning is to use the relative Hessian trace to calculate sensitivity of each chan…

GPUimage-classificationImage ClassificationNetwork Pruning+1