Share from 0:00
0:00
/

PREFIXQUANT: STATIC QUANTIZATION BEATS DYNAMIC THROUGH PREFIXED OUTLIERS IN LLMS

The podcast on this paper is generated with Google's Illuminate.

The newly released PrefixQuant is the first to enable efficient per-tensor static quantization to outperform expensive per-token dynamic quantization.

Results πŸ“Š:

β€’ W4A4KV4 Llama-3-8B: 7.43 WikiText2 perplexity, 71.08% average accuracy on 5 tasks

β€’ Outperforms QuaRot by 0.98 perplexity and +5.98 points accuracy

β€’ 1.60Γ— to 2.81Γ— faster than FP16 models

β€’ 1.2Γ— to 1.3Γ— faster than QuaRot models

PrefixQuant enables static quantization to outperform dynamic quantization for LLMs by effectively handling token-wise outliers.

πŸ“š https://arxiv.org/pdf/2410.05265

Original Problem πŸ”:

Quantization of large language models (LLMs) faces challenges with token-wise outliers, leading to reliance on costly per-token dynamic quantization.

Solution in this Paper πŸ’‘:

β€’ Introduces PrefixQuant, a technique to isolate outlier tokens offline without re-training

β€’ Identifies high-frequency outlier tokens and prefixes them in the KV cache

β€’ Prevents generation of outlier tokens during inference

β€’ Enables efficient per-tensor static quantization to outperform per-token dynamic quantization

β€’ Includes block-wise fine-tuning optimization to improve performance

Key Insights from this Paper πŸ’‘:

β€’ Outlier tokens usually appear at fixed positions or in tokens with low semantic value

β€’ Prefixing outliers in KV cache significantly reduces outlier magnitudes

β€’ Static quantization can outperform dynamic quantization with proper outlier handling

β€’ PrefixQuant is plug-and-play, enhancing other optimization-based methods

Discussion about this video

User's avatar

Ready for more?