AWQ's Secret: Protecting Llama-2's Top 1% Salient Weights

AWQ identifies and selectively scales only the most critical 1% of Llama-2's weights, determined by their impact on activation distributions, to minimize quantization error and drastically preserve model accuracy without complex mixed-precision methods.

The top 3

  1. AWQ's Activation-Aware Saliency Detection: AWQ identifies Llama-2's critical 1% salient weights by analyzing the distribution and magnitudes of input activations, rather than just weight values, using offline calibration data to pinpoint channels most sensitive to quantization error.
  2. Per-Channel Scaling: AWQ's Uniform 4-bit Protection: Instead of hardware-inefficient mixed precision, AWQ protects Llama-2's salient weights by applying per-channel scaling factors, effectively giving them more precision before uniform 4-bit quantization, and inversely scaling activations to maintain operational integrity.
  3. Llama-2's 6x Less Accuracy Drop with AWQ: AWQ dramatically reduces accuracy degradation in Llama-2 models, exhibiting a 6x smaller accuracy drop (1.17 points) on Llama-2-7B-Chat compared to GPTQ (3.50 points) on the OpenLLM Leaderboard-v1 average, demonstrating superior 4-bit preservation.

Sources

Open the full topic