Battle Against Amplified Error: Top 3 Techniques to Tame Activations
Key techniques include AWQ's per-channel scaling to protect salient weights identified by activation magnitudes, SmoothQuant's activation equalization to balance weight and activation distributions, and token-level calibration for dynamically adjusting quantization parameters based on individual token patterns.
The top 3
- SmoothQuant: Shifting Quantization Burden to Weights: SmoothQuant mitigates activation outliers by scaling down problematic activation channels and proportionally scaling up corresponding weights, effectively moving the quantization difficulty from dynamic activations to static weights for improved accuracy.
- Dynamic Range Adaptation via Clipping & Percentiles: To prevent extreme activation outliers from distorting the quantization range, techniques like clipping based on percentiles (e.g., 1st and 99th) or Dynamic Range-Aware Quantization (DRAQ) adapt quantization boundaries to the actual signal distribution, improving precision for the majority of values.
- OffQ: Outlier Offsetting for Reduced Activation Variance: OffQ tackles structured activation outliers by identifying a low-dimensional outlier subspace, concentrating high-magnitude activations into a single channel via rotation, and then absorbing this channel's magnitude into a shared offset to reduce overall activation standard deviation.
Sources
Open the full topic