Top 3 Metrics for Layer Importance in Quantization
Key methods for identifying critical layers include Activation-Aware Quantization (AWQ), which uses activation magnitudes to protect salient weights; GPTQ's Hessian-based optimization, minimizing layer-wise reconstruction error; and gradient-based sensitivity scores, employed by techniques like GWQ and Model Optimizer AutoQuantize.
The top 3
- Layer Input Modification (LIM) Score: This metric quantifies a layer's importance by measuring the negative cosine similarity between its input and output embeddings, where greater transformation signifies higher importance for maintaining model performance.
- Z-score Distribution (ZD) for Outlier Weights: This score determines layer importance by analyzing the distribution of parameter weights, identifying layers with a higher proportion of weights significantly larger than average (outliers) as more critical for quantization.
- Hessian-based Quantization Sensitivity: This approach leverages the Hessian matrix, which captures the second-order curvature of the loss function, to determine how sensitive a layer's parameters are to quantization noise, thereby guiding the optimal bit allocation to minimize accuracy loss.
Sources
Open the full topic