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.

The top 3

  1. AWQ's Scaling Factor: Calibration-Driven Optimization: AWQ determines per-channel scaling factors by analyzing activation magnitudes, typically the maximum absolute value, from a small calibration dataset, then fine-tunes with a hyperparameter (alpha) to minimize the reconstruction error of the layer's output.
  2. Per-Channel Scaling: Targeting Salient Activation Outliers: The 'per-channel' approach is crucial because a small fraction (approximately 1%) of activation channels exhibit magnitudes 10-100 times larger than others, disproportionately affecting quantization error and making their corresponding weights critical to protect.
  3. Accuracy Leap: AWQ's Per-Channel Scaling Benefits: This activation-aware per-channel scaling enables AWQ to achieve near FP16 accuracy even at 4-bit quantization, significantly surpassing simpler methods like Round-to-Nearest, while offering calibration speeds up to 20 times faster than GPTQ.

Sources

Open the full topic