AWQ's Unique Scaling: Activations Not Weights

AWQ's smart scaling works by applying per-channel scaling factors to *input activations* during inference, not directly to weights, and inversely scaling weights *before* quantization. This algebraic identity effectively reduces the dynamic range of salient weights for more accurate low-bit rounding.

The top 3

  1. AWQ's Dual Scaling: Weights Pre-Quantization, Activations During Inference: AWQ identifies salient weights by analyzing activation magnitudes and applies a pre-quantization scaling factor to these weights; this scaling is then inversely compensated by modifying activations during inference, forming a mathematically equivalent transformation.
  2. AWQ's Unique Approach vs. GPTQ and SmoothQuant: AWQ distinguishes itself from GPTQ, which relies on Hessian matrix approximations for layer-wise optimization, and SmoothQuant, which statically shifts quantization difficulty from activations to weights. AWQ's method avoids backpropagation or reconstruction, making it adaptable across domains.
  3. AWQ's Activation Scaling: Key to Negligible Perplexity Loss: AWQ's strategy of scaling weights based on activation magnitudes, rather than directly modifying activations or relying on complex post-quantization compensation, leads to minimal perplexity degradation. For example, it achieves less than 0.1 perplexity loss on LLaMA-2 7B at 4-bit quantization, outperforming traditional methods.

Sources

Open the full topic