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.
The top 3
- Per-Channel Scaling: AWQ's Core Protection Mechanism: AWQ protects its identified salient weights by applying a unique per-channel scaling factor (s > 1) to them *before* quantization, effectively making these critical values more distinguishable within low-bit formats, with this scaling compensated during inference. [1, 2, 4, 9, 13]
- Hardware Efficiency: Uniform Low-Bit Quantization: AWQ's protection mechanism avoids hardware-inefficient mixed-precision (e.g., FP16 and INT4 within the same matrix) by applying pre-quantization scaling, allowing the *entire* weight matrix to be uniformly represented in low-bit integers (e.g., INT4), which GPUs process efficiently. [2, 5, 9]
- Near FP16 Accuracy at 4-bit: AWQ's Performance Edge: By strategically protecting just 1% of salient weights, AWQ achieves significantly better accuracy at low bit-widths (e.g., INT3/INT4), often bringing 4-bit quantized LLMs close to the perplexity performance of original FP16 models. [2, 7, 13, 17]
Sources
Open the full topic