Activation Magnitude as Importance Metric

AWQ identifies critical weight channels by analyzing activation scales from calibration data, deeming those with consistently largest activation magnitudes (e.g., maximum absolute value or high percentile) as most important for model performance.

The top 3

  1. AWQ's Per-Channel Scaling: How Activations Protect Weights: AWQ determines per-channel scaling factors for weights by analyzing activation magnitudes, typically averaging them across a calibration dataset, to shrink the dynamic range of salient weights before quantization and reduce error. This scaling is then absorbed into the model for efficient low-bit inference. [2, 4, 5, 6, 7, 8]
  2. Why Activation Magnitude Matters More Than Weight Magnitude: AWQ prioritizes weights connected to large activation values because quantization errors on these "salient" weights are amplified, disproportionately impacting model output. This core insight distinguishes AWQ from traditional quantization methods that rely solely on weight statistics. [2, 3, 5, 6]
  3. AWQ's Calibration Search: Optimizing Scales with Activation Insights: AWQ employs a greedy search algorithm during calibration to determine optimal per-channel scaling factors. This search directly leverages the identified activation magnitudes to minimize quantization error, thereby protecting critical weights and preserving model performance effectively.

Sources

Open the full topic