Quantization: 8-bit vs. 4-bit FLOPs Reduction & Trade-offs

Quantization drastically cuts LLM inference FLOPs and memory by converting model weights from 32-bit to lower precision, such as 8-bit or 4-bit. While 4-bit quantization can yield significant memory reduction (e.g., 4x-16x compared to FP16) and throughput gains, it introduces a greater risk of accuracy degradation compared to 8-bit, with reported average accuracy differences of around 0.09 between 4-bit and 8-bit schemes.

The top 3

  1. Memory & Speed Gains: 4-bit vs. 8-bit LLM Quantization: 8-bit quantization typically halves memory footprint (50% reduction vs. FP16) and can boost inference speed by 1.8x, while 4-bit quantization achieves a 75% memory reduction (vs. FP16) and up to 2.4x faster inference, enabling much larger models on consumer hardware.
  2. Accuracy Trade-offs: 8-bit Maintains 99%+, 4-bit Nears It with Techniques: 8-bit quantization typically results in less than a 1% accuracy drop and can recover over 99% of original model accuracy on benchmarks like HumanEval+. While 4-bit quantization can initially lead to a 2-5% accuracy loss, advanced techniques like AWQ or GPTQ enable it to achieve up to 98.9% accuracy recovery, especially for larger models.
  3. Key Techniques Boosting 4-bit LLM Accuracy: GPTQ, AWQ, SmoothQuant: To overcome 4-bit accuracy challenges, **GPTQ** quantizes weights layer-by-layer using a calibration dataset to minimize output error; **AWQ** identifies and scales critical weights connected to high-activation features to preserve their importance; and **SmoothQuant** mitigates activation outliers by migrating their effects to weights, enabling more accurate low-bit compression.

Sources

Open the full topic