mlsanityData to 7 Oct 2026

PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantization

arXiv 2410.05265 ↗First posted 7 Oct 2024cs.LG cs.CLcited by 11

Not on the map. Why?

Abstract (arXiv)

Existing weight-activation quantization methods for Large Language Models (LLMs) primarily address channel-wise outliers but often neglect token-wise outliers, which limits the accuracy of quantized models. In this work, we propose PrefixQuant, a novel quantization method that achieves state-of-the-art performance across various precision levels (W4A4KV4 and W4A8KV4) and granularities (dynamic and static quantization) by effectively isolating token-wise outliers. First, PrefixQuant eliminates token-wise outliers by prefixing outlier tokens in the KV cache, a process that is training-free and highly efficient (e.g., 1 minutes for Llama-3-70B). Second, PrefixQuant introduces new trainable parameters for block-wise training to compensate for quantization error. Our experiments show that PrefixQuant significantly outperforms existing dynamic quantization methods, even under coarser static quantization settings. For instance, PrefixQuant achieves an average accuracy improvement of +3.08 and +2.85 points over SpinQuant (dynamic quantization) on five zero-shot reasoning tasks under dynamic and static quantization settings, respectively, on W4A4KV4 Llama-3-8B. Additionally, we demonstrate up to 2.74x prefilling speedup and 2.16x decoding speedup for LLMs using W4A4 PrefixQuant. Our code is available at https://github.com/ChenMnZ/PrefixQuant.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 40 of its 56 references that are in the map. First posted on arXiv 7 Oct 2024.

Builds on

40 of 56 references.

References · 40

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2016Pointer Sentinel Mixture Modelscited by 2,992
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  9. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  10. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  11. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  12. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
28 more
  1. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  2. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  3. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  4. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  5. 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 598
  6. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  7. 2021A White Paper on Neural Network Quantizationcited by 453
  8. 2024SpinQuant: LLM quantization with learned rotationscited by 446
  9. 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 403
  10. 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
  11. 2024Massive Activations in Large Language Modelscited by 277
  12. 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
  13. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  14. 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
  15. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  16. 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 165
  17. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
  18. 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
  19. 2024EfficientQAT: Efficient Quantization-Aware Training for Large Language Modelscited by 123
  20. 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
  21. 2023QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Modelscited by 63
  22. 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 62
  23. 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
  24. 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
  25. 2023QUIK: Towards End-to-End 4-Bit Inference on Generative Large Language Modelscited by 39
  26. 2024Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantizationcited by 33
  27. 2024Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMscited by 21
  28. 2024TernaryLLM: Ternarized Large Language Modelcited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 4.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Rethinking Channel Dimensions to Isolate Outliers for Low-bit Weight Quantization of Large Language Models
  2. 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Study
  3. 2023SmoothQuant+: Accurate and Efficient 4-bit Post-Training WeightQuantization for LLM
  4. 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More
  5. 2023FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMs
  6. 2024GWQ: Gradient-Aware Weight Quantization for Large Language Models
  7. 2026TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization
  8. 2026Theory-optimal Quantization Based on Flatness