PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantization
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
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
28 more
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 598
- 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2024SpinQuant: LLM quantization with learned rotationscited by 446
- 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 403
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
- 2024Massive Activations in Large Language Modelscited by 277
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
- 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 165
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2024EfficientQAT: Efficient Quantization-Aware Training for Large Language Modelscited by 123
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
- 2023QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Modelscited by 63
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 62
- 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
- 2023QUIK: Towards End-to-End 4-Bit Inference on Generative Large Language Modelscited by 39
- 2024Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantizationcited by 33
- 2024Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMscited by 21
- 2024TernaryLLM: Ternarized Large Language Modelcited by 15
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 4.
11 papers.
- 2025MQuant: Unleashing the Inference Potential of Multimodal Large Language Models via Full Static Quantizationcited by 35
- 20241.58-bit FLUXcited by 31
- 2025Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Modelscited by 21
- 2026Flow caching for autoregressive video generationcited by 19
- 2025INT v.s. FP: A Comprehensive Study of Fine-Grained Low-bit Quantization Formatscited by 16
- 2025Scaling Law for Quantization-Aware Trainingcited by 15
- 2025Activation Quantization of Vision Encoders Needs Prefixing Registerscited by 1
- 2025SASQ: Static Activation Scaling for Quantization-Aware Training in Large Language Modelscited by 0
- 2026InfoQuant: Shaping Activation Distributions for Low-Bit LLM Quantizationcited by 0
- 2026When Local Variance Optimality Is Not Enough: RoPE-Aligned Q/K Rotations for Dynamic 4-Bit Quantisationcited by 0
- 2026IMC-CLINIC: Coupled Loss-Informed Newton Iterations for Clipping in Analog In-Memory Computingcited by 0
- 2026IMC-CLINIC: Coupled Loss-Informed Newton Iterations for Clipping in Analog In-Memory Computing28 Sep 2026
- 2026When Local Variance Optimality Is Not Enough: RoPE-Aligned Q/K Rotations for Dynamic 4-Bit Quantisation13 Aug 2026
- 2026InfoQuant: Shaping Activation Distributions for Low-Bit LLM Quantization25 May 2026
- 2026Flow caching for autoregressive video generation11 Feb 2026
- 2025SASQ: Static Activation Scaling for Quantization-Aware Training in Large Language Models16 Dec 2025
- 2025INT v.s. FP: A Comprehensive Study of Fine-Grained Low-bit Quantization Formats29 Oct 2025
- 2025Activation Quantization of Vision Encoders Needs Prefixing Registers6 Oct 2025
- 2025Scaling Law for Quantization-Aware Training20 May 2025
- 2025MQuant: Unleashing the Inference Potential of Multimodal Large Language Models via Full Static Quantization1 Feb 2025
- 2025Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models31 Jan 2025
- 20241.58-bit FLUX24 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2023Rethinking Channel Dimensions to Isolate Outliers for Low-bit Weight Quantization of Large Language Models
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Study
- 2023SmoothQuant+: Accurate and Efficient 4-bit Post-Training WeightQuantization for LLM
- 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More
- 2023FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMs
- 2024GWQ: Gradient-Aware Weight Quantization for Large Language Models
- 2026TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization
- 2026Theory-optimal Quantization Based on Flatness