AWQ's Core Insight: Protecting 1% Salient Weights

AWQ's superior accuracy stems from the discovery that only about 1% of an LLM's weights are 'salient' and disproportionately impact output quality. By identifying and protecting these critical weights through activation-aware per-channel scaling, AWQ drastically reduces quantization error without requiring mixed precision.

The top 3

  1. AWQ Identifies Critical Weights via Activations: AWQ pinpoints the most critical 1% of weights by analyzing input activation magnitudes from a small calibration dataset, deeming channels with consistently large activations as salient.
  2. Why Salient Weights Amplify Quantization Error: Quantization errors in the top 1% salient weights are disproportionately amplified because they are frequently multiplied by large activation values, severely degrading the model's output and perplexity.
  3. AWQ's Smart Scaling Protects Salient Weights: To protect these crucial weights, AWQ employs per-channel scaling: it amplifies salient weights before quantization and then folds the inverse scale into activations during inference, achieving low-bit purity without mixed-precision overhead.

Sources

Open the full topic