Hessian-Aware Quantization: Top 3 Metrics for Critical Weights
Hessian information, like the diagonal or trace, identifies weights whose quantization most impacts model loss, guiding bit allocation to minimize error by prioritizing these critical parameters.
The top 3
- Diagonal Hessian: Simplest Weight Sensitivity Metric: The diagonal entries of the Hessian matrix, or their approximation through Fisher Information, provide a computationally efficient measure of individual weight sensitivity, directly indicating which weights lead to the largest loss increase upon quantization and are used in various post-training quantization methods.
- Inverse Hessian: GPTQ's Error Minimization Core: Algorithms like GPTQ utilize an approximation of the inverse Hessian matrix to guide a greedy, layer-wise error compensation process, directly minimizing the squared output error and enabling highly accurate post-training quantization of large language models down to 3 or 4 bits.
- Hessian Trace: Guiding Mixed-Precision Bit Allocation: The average Hessian trace, or tensor-wise Hessian trace, is a crucial metric for determining layer-wise or block-wise sensitivity, enabling optimal mixed-precision bit-width allocation across different neural network components to achieve the best balance between compression and accuracy.
Sources
Open the full topic