Top 3 Importance Scoring Metrics for LLM Quantization

Key methods to assess layer importance for mixed-precision quantization include Hessian-based analysis (like HAWQ-V2's average Hessian trace), activation dynamic range, and gradient-based approaches (such as those in GPTQ and SliM-LLM).

The top 3

  1. Activation-Aware Weight Importance (AWQ): Prioritizing Salient Weights: AWQ identifies critical weight channels by analyzing activation statistics from a calibration dataset during inference. It applies per-channel scaling to these 'salient' weights, often preserving the top 1% with the largest activation values, to reduce quantization error and maintain accuracy in compressed LLMs.
  2. 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.
  3. Quantization Error Minimization: Prioritizing Error-Prone Weights: Many quantization methods, such as GPTQ, prioritize weights that introduce the largest quantization error, often measured by Mean Squared Error (MSE) or L2-norm, when converted to lower precision. By iteratively minimizing this error layer-by-layer, these techniques implicitly allocate more precision to weights that are most sensitive to approximation.

Sources

Open the full topic