Protecting Just 1% Salient Weights via Activations
The core insight behind activation magnitude's importance is that not all weights are equally critical; preserving only about 1% of 'salient' weights, identified by their association with high-magnitude activations, can drastically reduce quantization error.
The top 3
- AWQ's Top Method for Salient Weight Identification: AWQ pinpoints the critical 1% of weights by analyzing the highest activation magnitudes across input channels from a small calibration dataset, using a grid search to find optimal per-channel scaling factors based on activation statistics to minimize quantization error.
- 1% Salient Weight Protection: Quantifiable Accuracy Gains: Protecting just 1% of salient weights with Activation-aware Weight Quantization (AWQ) dramatically reduces perplexity, enabling 4-bit quantized models to achieve accuracy close to original FP16 models, for instance, reducing OPT-6.7B perplexity from 43.2 to 13.0.
- AWQ's Unique 'Protection' Mechanism for Key Weights: Instead of mixed-precision, AWQ 'protects' salient weights by pre-scaling them down using per-channel factors derived from activation magnitudes, then applying standard quantization and absorbing the inverse scaling into activations during inference to maintain low-bit computation.
Sources
Open the full topic