Per-Channel Scaling: AWQ's Hardware-Friendly Protection

AWQ protects salient weights not by mixed-precision, but by applying optimal per-channel scaling factors that amplify their values before uniform low-bit quantization. This strategy, coupled with inverse scaling of activations during inference, preserves output without introducing hardware inefficiencies.

The top 3

  1. AWQ's Core: Scaling Weights & Inverse Activations: AWQ employs an algebraic identity to implement per-channel scaling: it scales up salient weight channels before quantization and inversely scales down corresponding activations during inference. This technique effectively protects critical weights from quantization error without resorting to hardware-inefficient mixed-precision computations.
  2. Per-Channel vs. Per-Tensor: Accuracy Gains: Compared to per-tensor quantization, which uses a single scaling factor for an entire layer, per-channel scaling assigns unique quantization parameters to individual output channels. This significantly reduces accuracy loss, particularly in layers with diverse weight distributions and outliers, by better preserving the dynamic range and isolating errors.
  3. Hardware-Friendly: Uniform Low-Bit & No Mixed Precision: AWQ's per-channel scaling enables uniform low-bit quantization (e.g., INT4) across all weights, which is highly hardware-friendly. This approach avoids the computational overhead and complexity of mixed-precision quantization, allowing efficient utilization of existing optimized low-bit kernels for faster inference.

Sources

Open the full topic