Why Activation Magnitude Matters More Than Weight Magnitude
AWQ prioritizes weights connected to large activation values because quantization errors on these "salient" weights are amplified, disproportionately impacting model output. This core insight distinguishes AWQ from traditional quantization methods that rely solely on weight statistics. [2, 3, 5, 6]
The top 3
- Quantization Error's Amplification by Activation Magnitude: Quantization errors on weights are directly scaled by the magnitude of the activations they are multiplied with. This means a small error on a weight interacting with a large activation can lead to a disproportionately large error in the layer's output, making activation magnitude a critical factor for accuracy.
- The Dominance of Activation Outliers in LLMs: Large Language Models (LLMs) frequently exhibit 'activation spikes' or outliers—activation values significantly larger than the majority. These outliers, though few, are disproportionately sensitive to quantization error and can severely degrade model performance if not carefully handled.
- AWQ's Strategic Protection of 'Salient' Weights: Activation-Aware Quantization (AWQ) exploits this principle by identifying a small fraction (e.g., 0.1% to 1%) of 'salient' weight channels whose corresponding input activations have the largest magnitudes. By protecting these critical weights, AWQ significantly reduces quantization error without needing full mixed-precision quantization.
Sources
Open the full topic