Top Quantization Methods for Preserving LLM Accuracy

To minimize accuracy loss, especially with 4-bit quantization, advanced techniques are crucial. Post-Training Quantization (PTQ) methods like AWQ (Activation-Aware Weight Quantization) and GPTQ (error-aware rounding) are widely used, often recovering 98.9% accuracy. Quantization-Aware Training (QAT) offers even better quality at lower bit-widths by simulating quantization during fine-tuning.

The top 3

  1. AWQ: Prioritizing Critical Weights for 4-bit Accuracy: Activation-aware Weight Quantization (AWQ) preserves LLM accuracy by identifying and keeping less than 1% of critical weights, linked to high-activation features, in higher precision (e.g., FP16), while quantizing the rest to 4-bit integers. This method often matches or beats GPTQ in INT4 benchmarks and calibrates 5-10x faster.
  2. GPTQ: Layer-wise Optimization for Minimal Accuracy Loss: GPTQ employs a layer-wise post-training quantization approach, reducing LLM weights from 16-bit or 32-bit to 4-bit or 8-bit precision. It uses second-order information (Hessian-weighted least-squares) to minimize the reconstruction error at each layer's output, typically maintaining accuracy within 1-2% of the original model.
  3. QLoRA's NF4: Optimized 4-bit Quantization for Fine-tuning: QLoRA achieves high-accuracy, memory-efficient LLM fine-tuning by quantizing the base model to 4-bit NormalFloat (NF4). NF4 is a data type specifically designed with non-uniform quantization bins that are denser around zero, matching the normal distribution of LLM weights, thus capturing more precision than uniform quantization.

Sources

Open the full topic