paper-with-me

Papers

Accurate KV Cache Quantization with Outlier Tokens Tracing

2025-05-16 · Yi Su, Yuechi Zhou, Quantong Qiu, Juntao Li, Qingrong Xia, Ping Li, Xinyu Duan, Zhefeng Wang, Min Zhang

The impressive capabilities of Large Language Models (LLMs) come at the cost of substantial computational resources during deployment. While KV Cache can significantly reduce recomputation during inference, it also introduces additional memory overhead. KV Cache quantization presents a promising solution, striking a good balance between memory usage and accuracy. Previous research has shown that the Keys are distributed by channel, while the Values are distributed by token. Consequently, the common practice is to apply channel-wise quantization to the Keys and token-wise quantization to the Values. However, our further investigation reveals that a small subset of unusual tokens exhibit unique characteristics that deviate from this pattern, which can substantially impact quantization accuracy. To address this, we develop a simple yet effective method to identify these tokens accurately during the decoding process and exclude them from quantization as outlier tokens, significantly improving overall accuracy. Extensive experiments show that our method achieves significant accuracy improvements under 2-bit quantization and can deliver a 6.4 times reduction in memory usage and a 2.3 times increase in throughput.

📄 PDF Abstract BibTeX arXiv:2505.10938

Code (1)

yisunlp/ott 공식 구현 pytorch

Tasks

Quantization

Similar Papers 제목 키워드 기반

Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantization

2024-06-17 · Seungwoo Son, Wonpyo Park, Woohyun Han, Kyuyeun Kim 외

Despite recent advances in LLM quantization, activation quantization remains to be challenging due to the activation outliers. Conventional remedies, e.g., mixing precisions for different channels, introduce extra overhe…

Language ModelingLanguage ModellingLarge Language ModelQuantization

Activation Quantization of Vision Encoders Needs Prefixing Registers

2025-10-06 · Seunghyeon Kim, Taesun Yeom, Jinho Kim, Wonpyo Park 외 arxiv

Large pretrained vision encoders are central to multimodal intelligence, powering applications from on-device vision processing to vision-language models. Since these applications often demand real-time processing of mas…

InnerQ: Hardware-Aware Tuning-Free Quantization of KV Cache for Large Language Models

2026-02-26 · Sayed Mohammadreza Tayaranian Hosseini, Amir Ardakani, Warren J. Gross arxiv

When transformer-based language models are deployed for text generation, most of the inference time is spent in the decoding stage, where output tokens are generated sequentially. Reducing the hardware cost of each decod…

Text Generation

KVSink: Understanding and Enhancing the Preservation of Attention Sinks in KV Cache Quantization for LLMs

2025-08-06 · Zunhai Su, Kehong Yuan arxiv

Key-Value (KV) cache quantization has become a widely adopted optimization technique for efficient large language models (LLMs) inference by reducing KV cache memory usage and mitigating memory-bound constraints. Recent …

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

2024-10-07 · Mengzhao Chen, Yi Liu, Jiahao Wang, Yi Bin 외

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,…

Common Sense ReasoningQuantization