Quantization Quality: Accuracy Loss by Bit-Width
8-bit quantization typically preserves over 99% of a model's original accuracy, making it near-lossless for many tasks. 4-bit quantization can achieve 98.9% accuracy with advanced techniques, but below 4-bit, such as 2-bit or 3-bit, accuracy often degrades sharply on most architectures, requiring specialized non-uniform methods to maintain usability.
The top 3
- 8-bit vs. 4-bit: Quantization's Accuracy Trade-off: 8-bit quantization typically results in minimal quality loss, often less than 1%, making it easy to implement. Moving to 4-bit can cut memory by 75% but introduces a 1-3% accuracy drop with advanced techniques like AWQ or GPTQ, or 2-5% without them. Sub-4-bit quantization (e.g., 2-bit or 3-bit) generally leads to significant accuracy degradation, with some models losing over half their intelligence on benchmarks like MMLU.
- Top Quantization Methods for Minimal Accuracy Loss: AWQ (Activation-Aware Weight Quantization) often edges out GPTQ on 4-bit perplexity benchmarks, for instance, Llama-2-7B showed AWQ with 5.60 perplexity versus GPTQ's 5.69 on WikiText-2. AWQ protects salient weights based on activation patterns, offering robust performance. QLoRA is primarily for efficient fine-tuning, allowing models to be trained with 4-bit base weights and 16-bit adapters, but can slow down inference compared to dedicated post-training quantization methods like AWQ and GPTQ.
- Benchmarks Most Affected by LLM Quantization: Quantization impacts various benchmarks differently, with an average quality drop of around 12% across LLMs. Complex reasoning tasks are particularly sensitive: GSM8K (math reasoning) shows the highest average drop at 28%, followed by HellaSwag (commonsense reasoning) at 16%, and MMLU (multitask language understanding) and ARC (reasoning) both at 12%. Coding tasks like HumanEval+ and SWE-Bench also show significant degradation at 4-bit and tend to collapse at 3-bit precision.
Sources
Open the full topic