Outlier Treatment: Mixed Precision for Critical Weights

SpQR's 'outlier-aware' mechanism identifies crucial outlier weights and stores them in higher precision (e.g., FP16) while the majority are quantized to lower bit-widths, ensuring accuracy where it matters most.

The top 3

  1. Top 3 Methods to Pinpoint LLM Outliers: Critical weights in LLMs, which cause disproportionately high quantization errors, are identified using statistical analysis like histograms or standard deviation, empirical sensitivity analysis, or by detecting feature dimensions with unusually large, consistent values.
  2. SpQR's Near-Lossless Gains: 4x Memory, 15% Faster: The Sparse-Quantized Representation (SpQR) achieves near-lossless compression, with less than 1% relative accuracy loss in perplexity for LLMs, by keeping critical outliers in 16-bit. This enables running a 33B parameter LLM on a single 24 GB consumer GPU with over 4x memory reduction and a 15-30% inference speedup.
  3. SpQR's Dual Precision: 16-bit Outliers, 3-4 bit Base: SpQR employs a dual-precision strategy: it quantizes the majority of LLM weights to ultra-low 3-4 bits, but strategically preserves a small fraction (typically less than 1%) of critical outlier weights in 16-bit precision. This approach combines specialized sparse matrix multiplication for outliers with dense-quantized matrix multiplication for the base weights during inference.

Sources

Open the full topic