paper-with-me

홈 › Papers

WindowKV: Task-Adaptive Group-Wise KV Cache Window Selection for Efficient LLM Inference

2025-03-23 · Youhui Zuo, Sibo Wei, Chen Zhang, Zhuorui Liu, Wenpeng Lu, Dawei Song

With the advancements in long-context inference capabilities of large language models (LLMs), the KV cache has become one of the foundational components. However, its substantial GPU memory consumption makes KV cache compression a key technique for enabling efficient LLM inference in industrial scenarios. While recent studies have focused on optimizing the memory occupied by the KV cache, they overlook two critical factors: preserving semantic coherence and considering task-specific characteristic during compression. To address these limitations, we propose a novel task-adaptive KV cache window selection method, WindowKV. WindowKV dynamically selects local semantic windows consisting of consecutive tokens, according to task-specific characteristics, ensuring the retained KV cache captures continuous, essential context. Additionally, we introduce an intra-group layer KV cache indices sharing strategy to reduce computational overhead, achieving a balance between performance and efficiency. We rigorously evaluate WindowKV on the LongBench benchmark, and the results demonstrate that it maintains a performance comparable to full KV cache retention while using only 12% of the original KV cache, significantly reducing memory requirements. Furthermore, our method also achieves state-of-the-art results in the Needle-in-a-Haystack evaluation, highlighting its effectiveness and robustness.

📄 PDF Abstract BibTeX arXiv:2503.17922

Code (1)

optim996/WindowKV 공식 구현 pytorch

Tasks

GPU

Similar Papers 제목 키워드 기반

LayerCache: Exploiting Layer-wise Velocity Heterogeneity for Efficient Flow Matching Inference

2026-04-13 · Guandong Li arxiv

Flow Matching models achieve state-of-the-art image generation quality but incur substantial inference cost due to iterative denoising through large Transformer networks. We observe that different layer groups within a T…

Image Generation

LaCache: Exact Caching and Precision-Adaptive Inference for Diffusion Large Language Models

2026-07-16 · Xingru Chen, Zelang Liang, Yongjia Ma, Jiqing Zhan 외 arxiv

Diffusion-based Large Language Models(DLLMs) enable parallel generation via Semi-Autoregressive (SAR) decoding in text generation. However, current methods suffer from severe operator-level redundancy: they recompute the…

Text Generation

Adaptive Layer Selection for Layer-Wise Token Pruning in LLM Inference

2026-01-12 · Rei Taniguchi, Yuyang Dong, Makoto Onizuka, Chuan Xiao arxiv

Due to the prevalence of large language models (LLMs), key-value (KV) cache reduction for LLM inference has received remarkable attention. Among numerous works that have been proposed in recent years, layer-wise token pr…

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

Mixture of Weight-shared Heterogeneous Group Attention Experts for Dynamic Token-wise KV Optimization

2025-06-16 · Guanghui Song, Dongping Liao, Yiren Zhao, Kejiang Ye 외

Transformer models face scalability challenges in causal language modeling (CLM) due to inefficient memory allocation for growing key-value (KV) caches, which strains compute and storage resources. Existing methods like …

Causal Language ModelingInstruction FollowingLanguage ModelingLanguage Modelling