Key INT8 Accuracy-Preserving Techniques

Methods like SmoothQuant, GPTQ, and Quantization-Aware Training (QAT) are crucial; SmoothQuant manages activation outliers for W8A8, GPTQ optimizes weight-only quantization, and QAT fine-tunes models during training to specifically minimize accuracy degradation in INT8.

The top 3

  1. Top 3 Calibration Methods for Post-Training Quantization: Post-Training Quantization (PTQ) relies on calibration to set optimal scaling factors. The leading methods include Min-Max (simple, uses absolute extrema), KL-Divergence (minimizes information loss between distributions), and Percentile (robust to outliers by ignoring extreme values), with KL-Divergence often yielding higher accuracy for activations.
  2. Quantization-Aware Training: The Accuracy Champion: Quantization-Aware Training (QAT) significantly outperforms PTQ in accuracy preservation by simulating quantization errors during the training process, allowing the model to adapt. This technique ensures the model 'learns' to be robust to rounding errors, often achieving near FP32 accuracy even with INT8 precision.
  3. Mixed-Precision: Strategic Layer-Wise Quantization for LLMs: Mixed-precision quantization boosts accuracy by applying different bit-widths (e.g., FP16, INT8, INT4) to various model layers based on their sensitivity. This allows critical layers, like embeddings or final output, to retain higher precision while less sensitive layers benefit from INT8 speed and memory savings.

Sources

Open the full topic