paper-with-me

홈 › Papers

No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantization

2024-02-28 · June Yong Yang, Byeongwook Kim, Jeongin Bae, Beomseok Kwon, Gunho Park, Eunho Yang, Se Jung Kwon, Dongsoo Lee

Key-Value (KV) Caching has become an essential technique for accelerating the inference speed and throughput of generative Large Language Models~(LLMs). However, the memory footprint of the KV cache poses a critical bottleneck in LLM deployment as the cache size grows with batch size and sequence length, often surpassing even the size of the model itself. Although recent methods were proposed to select and evict unimportant KV pairs from the cache to reduce memory consumption, the potential ramifications of eviction on the generative process are yet to be thoroughly examined. In this paper, we examine the detrimental impact of cache eviction and observe that unforeseen risks arise as the information contained in the KV pairs is exhaustively discarded, resulting in safety breaches, hallucinations, and context loss. Surprisingly, we find that preserving even a small amount of information contained in the evicted KV pairs via reduced precision quantization substantially recovers the incurred degradation. On the other hand, we observe that the important KV pairs must be kept at a relatively higher precision to safeguard the generation quality. Motivated by these observations, we propose \textit{Mixed-precision KV cache}~(MiKV), a reliable cache compression method that simultaneously preserves the context details by retaining the evicted KV pairs in low-precision and ensure generation quality by keeping the important KV pairs in high-precision. Experiments on diverse benchmarks and LLM backbones show that our proposed method offers a state-of-the-art trade-off between compression ratio and performance, compared to other baselines.

📄 PDF Abstract BibTeX arXiv:2402.18096

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

d$^2$Cache: Accelerating Diffusion-Based LLMs via Dual Adaptive Caching

2025-09-27 · Yuchu Jiang, Yue Cai, Xiangzhong Luo, Jiale Fu 외 arxiv

Diffusion-based large language models (dLLMs), despite their promising performance, still suffer from inferior inference efficiency. This is because dLLMs rely on bidirectional attention and cannot directly benefit from …

BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference

2026-09-04 · Janghyeon Kim, Minsoo Kim, Kyuhong Shim, Jungwook Choi arxiv

Large Reasoning Models (LRMs) achieve superior problem-solving through extended Chain-of-Thought (CoT) generation, but the resulting key-value (KV) cache grows linearly with sequence length and creates severe memory bott…

ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identification

2024-05-23 · Yefei He, Luoming Zhang, Weijia Wu, Jing Liu 외

KV cache stores key and value states from previous tokens to avoid re-computation, yet it demands substantial storage space, especially for long sequences. Adaptive KV cache compression seeks to discern the saliency of t…

GPUGSM8KQuantization

LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models

2025-07-14 · Dachuan Shi, Yonggan Fu, Xiangchi Yuan, Zhongzhi Yu 외

Recent advancements in Large Language Models (LLMs) have spurred interest in numerous applications requiring robust long-range capabilities, essential for processing extensive input contexts and continuously generating e…

Long-range modeling

More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compression

2024-12-17 · Jiebin Zhang, Dawei Zhu, YiFan Song, Wenhao Wu 외

As large language models (LLMs) process increasing context windows, the memory usage of KV cache has become a critical bottleneck during inference. The mainstream KV compression methods, including KV pruning and KV quant…

Quantization