8-bit vs. 4-bit: Quantization's Memory & Accuracy Trade-offs

8-bit quantization typically reduces LLM memory footprint by 50% with minimal quality loss, often less than 1% accuracy drop. 4-bit quantization can cut memory by 75%, but may incur a 2-5% accuracy degradation, though techniques like AWQ or GPTQ can achieve 98.9% accuracy recovery. Below 4 bits, such as 2-bit or 3-bit, performance degradation becomes significantly more noticeable.

The top 3

  1. 4-bit vs. 8-bit: Quantifiable Memory & Speed Gains: 8-bit quantization reduces LLM memory footprint by 50% and boosts inference speed by 1.5-2x. More aggressively, 4-bit quantization achieves a 75% memory reduction and up to 2.4x faster single-stream processing, making large models feasible on consumer hardware.
  2. Accuracy Impact: Key LLMs Most Affected by 4-bit: While 8-bit quantization typically preserves over 99% of a model's original accuracy, 4-bit can achieve around 98.9% accuracy recovery with advanced techniques like AWQ or GPTQ. However, some LLMs, like the Llama 3.3 70B variant, have shown a noticeable 7.8-point drop on the MMLU benchmark when reduced to 4-bit, contrasting with smaller models like Llama 3.1 8B that maintained high accuracy (within ±1%) on MMLU and ARC-Challenge.
  3. Advanced Quantization Methods: Bridging Accuracy Gaps: Techniques like GPTQ, AWQ, and QLoRA are crucial for 4-bit quantization, minimizing accuracy loss; GPTQ quantizes layer-wise to minimize output error, AWQ selectively quantizes weights based on activation distribution, and QLoRA enables efficient fine-tuning of 4-bit models with low-rank adapters.

Sources

Open the full topic