AWQ's Activation-Driven Weight Scaling Logic

AWQ determines optimal per-channel scaling factors for weights by analyzing maximum activation values, ensuring critical weights multiplied by large activations are protected from significant quantization error, crucial for perplexity. [1, 2, 3, 10]

The top 3

  1. AWQ's Activation-Driven Saliency Identification: AWQ identifies critical "salient" weight channels by analyzing the magnitude of their corresponding input activations from a small calibration dataset, deeming channels with high-magnitude activations as more important for preserving model performance.
  2. Per-Channel Max Activation Scaling Factor: AWQ's logic involves deriving a per-channel scaling factor, typically based on the maximum or average magnitude of activations observed in that channel, to reduce the dynamic range of weights before they are quantized to low-bit formats.
  3. Algebraic Identity for Error-Free Scaling: AWQ employs an algebraic identity where scaling factors are applied to weights before quantization and inverse-scaled into activations during inference, preserving the original floating-point output product and minimizing quantization error without requiring mixed-precision hardware.

Sources

Open the full topic