AWQ's Top 3 Salient Weight Identification Methods

AWQ identifies the critical 1% of weights by analyzing the magnitude of input activations they interact with, not the weights themselves, using a small calibration dataset. It prioritizes channels consistently exhibiting the largest activation values, as errors in these are amplified in the output.

The top 3

  1. Calibration Data: AWQ's Saliency Starting Point: AWQ identifies salient weights by first processing a small, representative calibration dataset. This step observes the distribution of activation magnitudes across input channels for each weight matrix.
  2. Top Metrics: Max Absolute Value & High Percentile: AWQ quantifies saliency by recording activation statistics for each input feature channel, typically using the maximum absolute value or a high percentile (e.g., 99th percentile). Channels consistently exhibiting the largest activation magnitudes are deemed most important.
  3. Strategic Scaling: Protecting Salient Weights: Instead of hardware-inefficient mixed-precision, AWQ protects salient weights through per-channel scaling. Scaling factors, derived from activation magnitudes, reduce the dynamic range of these critical weight groups, making them easier to quantize to low-bit formats with minimal accuracy loss.

Sources

Open the full topic