Sensitivity-Based Non-Uniform Quantization Explained
This technique optimizes bit allocation by using second-order information, like Fisher information, to determine the optimal placement of quantization bins. Unlike uniform methods, it strategically places more bins closer to sensitive weight values, improving 3-bit LLaMA-7B perplexity from 28.26 to 7.75 on C4.
The top 3
- Non-Uniform vs. Uniform: Accuracy Gaps in Ultra-Low Bit LLMs: Sensitivity-based non-uniform quantization significantly outperforms uniform methods in maintaining LLM accuracy at ultra-low bitrates (e.g., 2-4 bits) by preserving critical weights more precisely, where uniform quantization often leads to substantial performance degradation or even failure.
- Pinpointing Criticality: How LLM Sensitivity is Measured: LLM layer sensitivity is quantified by calculating the mean squared error (MSE) between full-precision and quantized outputs using calibration datasets, or by employing gradient-based sensitivity scores to rank a layer's tolerance to quantization.
- LLM's Most Sensitive: Layers That Demand Non-Uniform Quantization: Attention mechanisms, normalization layers, and specific feed-forward layers (like `down_proj` or output projection modules) are highly sensitive to quantization noise, often requiring higher precision or non-uniform bit allocation to prevent significant accuracy degradation.
Sources
Open the full topic