NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evaluating Quantized Large Language Models

Shiyao Li, Xuefei Ning, Luning Wang, Tengxuan Liu, Xiangsheng Shi, Shengen Yan, Guohao Dai, Huazhong Yang, Yu Wang

Introduction

Deploying Large Language Models (LLMs) presents significant challenges due to high compute requirements during prompt processing and memory bandwidth bottlenecks during token generation. As context lengths expand, the memory footprint of the Key-Value (KV) cache grows exponentially. Post-Training Quantization (PTQ) is a critical technique to mitigate these costs by reducing numerical precision from 16-bit floats to lower-bit integers. However, the impact of quantization on complex reasoning, long-context retrieval, and model safety has remained under-explored. This study provides a comprehensive evaluation of PTQ across 11 model families and diverse task categories.

Methodology

The researchers evaluated uniform PTQ across three primary tensor types:

  1. Weight-only Quantization (W): Targets the memory-bound decoding stage using asymmetric group-wise quantization.
  2. Weight-Activation Quantization (WA): Aims to accelerate the compute-bound prefill stage via low-precision Tensor Cores, utilizing symmetric per-token quantization for activations.
  3. KV Cache Quantization (KV): Reduces the memory overhead of long-context windows using asymmetric group-wise quantization.
Quantization schemes for activations (per-token) and weights (group-wise).

The evaluation spanned models ranging from 125M to 180B parameters, including LLaMA2, Mistral, and Mixtral.

Evaluation Framework

To stress-test model capabilities beyond basic NLP benchmarks, the study utilized five task categories:

  • Emergent Abilities: In-context learning (MMLU), multi-step reasoning (GSM8K), and instruction following.
  • Trustworthiness: Safety alignment (ETHICS), hallucination rates (TruthfulQA), and adversarial robustness.
  • Long-Context Performance: "Needle-in-a-haystack" retrieval (LongEval) and multi-document QA.
  • Dialogue Quality: Evaluated via MT-bench with GPT-4 as a judge.

Key Insights: The Scaling Paradox and Reasoning Collapse

A primary finding is the "Large Model Activation" Paradox. While larger models generally tolerate weight and KV cache quantization better than smaller counterparts, they are significantly more sensitive to activation quantization. This sensitivity stems from massive outliers in activation tensors that emerge as models scale.

Furthermore, different cognitive abilities degrade at different rates. Mathematical reasoning is the most fragile; performance often collapses not due to arithmetic errors, but because the model's fundamental logic fails. In dialogue tasks, degradation follows a predictable pattern: sentence repetition, followed by token repetition, and finally, complete gibberish.

Results and Recommendations

The study identifies clear "sweet spots" for efficient deployment:

  • General Use: W4, W4A8, and KV4 precisions are typically near-lossless, maintaining performance within 2% of FP16 baselines.
  • Long-Context Scenarios: For sequences exceeding 4K tokens, KV cache quantization becomes highly sensitive. W8KV8 is recommended over KV4 to prevent catastrophic performance drops.
  • The Precision Cliff: As shown in the performance curves, there is a sharp drop-off at extremely low bit-widths. While SOTA algorithms like AWQ can salvage 3-bit weights (W3), they fail at 2-bit (W2) levels.
Accuracy degradation across Weight-only, Weight-Activation, and KV Cache quantization for various model families.

Conclusion

This systematic evaluation highlights that while PTQ is a powerful tool for LLM efficiency, its application must be nuanced. Developers should prioritize 4-bit quantization for weights and KV caches in standard tasks but remain cautious with activation quantization in large models and KV cache compression in long-context applications. Future research into mixed-precision quantization—assigning bit-widths based on layer-specific outlier distributions—holds promise for further optimizing the efficiency-performance trade-off.

Summary updated

BibTeX
@inproceedings{li2024evaluating,
  author = {Shiyao Li and Xuefei Ning and Luning Wang and Tengxuan Liu and Xiangsheng Shi and Shengen Yan and Guohao Dai and Huazhong Yang and Yu Wang},
  title = {{Evaluating Quantized Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=DKKg5EFAFr},
}
Figure