Hessian-based Sensitivity: Measuring Output Impact
This metric uses the inverse-Hessian of the model's loss function to quantify how sensitive the model's output is to changes in individual weights. Weights with smaller Hessian values (indicating higher inverse-Hessian values) are deemed more crucial, as slight alterations can significantly impact performance, guiding bit allocation.
The top 3
- Hessian's Edge: Quantization Accuracy Leader: Hessian-based sensitivity offers superior accuracy in LLM quantization by precisely measuring how much each parameter affects the model's loss function, outperforming simpler magnitude-based or first-order methods in mixed-precision allocation.
- Taming Hessian Cost: Top 3 Strategies: The computational cost of a full Hessian matrix is prohibitive (O(N^2) or O(N^3)) for LLMs; key mitigation strategies include block-wise processing (e.g., GPTQ), approximating the Hessian with its trace (e.g., HAWQ, HESTIA), or employing Hessian-free methods (e.g., HWPQ) for scalability.
- Hessian vs. Magnitude: The Accuracy Gap in Bit Allocation: Unlike simple magnitude-based scoring, Hessian-based methods directly evaluate a weight's impact on model output, which is crucial for mixed-precision quantization. This leads to superior accuracy, as seen with GPTQ achieving 2x better compression than magnitude-focused baselines.
Sources
Open the full topic