AWQ's Activation-Aware Salient Weight Protection

Activation-aware Weight Quantization (AWQ) identifies and protects critical 'salient' weights, those connected to high-activation features, by analyzing activation patterns. This method prioritizes important weights for better preservation in low-bit formats, leading to strong accuracy with faster quantization than error-minimization techniques.

The top 3

  1. AWQ's "Salient Weights": Not All Bits Created Equal: AWQ identifies "salient" weight channels—typically less than 1% of total weights—as those multiplied by activations with consistently large magnitudes. This is crucial because quantization errors in these specific weights disproportionately impact the model's output, a core insight distinguishing AWQ from uniform quantization methods.
  2. How AWQ Protects Salient Weights with Per-Channel Scaling: AWQ protects identified salient weights through an algebraic transformation: it scales up these critical weight channels before quantization and inversely scales the corresponding input activations at inference time. This clever mechanism effectively grants higher effective precision to the salient channels without requiring hardware-inefficient mixed-precision storage.
  3. AWQ's Performance Edge: Benchmarking Against Quantization Rivals: AWQ often achieves superior accuracy at 4-bit quantization, retaining 95-97% of FP16 quality compared to GPTQ's 90-96%, particularly for instruction-following and multi-modal tasks. It also demonstrates faster GPU inference, with benchmarks showing 1.5-3x faster speeds than FP16 and up to 1.8x faster than GPTQ on an A100 GPU for Mistral 7B.

Sources

Open the full topic