WeightedKV: Attention Scores Weighted Key-Value Cache Merging for Large Language Models
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large Language Models (LLMs) use key-value (KV) cache to reduce redundant computation in autoregressive generation. However, the KV cache size increases linearly during generation, leading to excessive memory usage, especially for long texts. Most KV cache compression methods evict the unimportant KV pairs to maintain a fixed cache size, which leads to the permanent loss of tokens during generation. However, singular value decomposition shows that textitvalues do not exhibit a strong low-rank property as textitkeys do, suggesting that information is distributed more evenly across textitvalues, in contrast to its more redundant distribution within textitkeys. Therefore, methods that evict both textitkeys and textitvalues risk losing crucial information and compromise context integrity, ultimately degrading the output quality. To address this problem, we propose WeightedKV, a novel, training-free approach that discards the textitkeys of less important tokens, while merging their textitvalues into neighboring tokens via a convex combination weighted by their average attention scores. In this way, the retained textitkeys serve as anchors that guide the generation process, while the merged textitvalues provide a rich contextual backdrop. We assess our method on four widely used language modeling datasets, demonstrating superior performance compared to all baseline methods, particularly with a lower budget ratio.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 16 of its 19 references that are in the map. First posted on arXiv 3 Mar 2025.
Builds on
16 of 19 references.
Closest ancestors · 3
Same direction, newest first
- 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 13
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Mistral 7Bcited by 3,065
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023Benchmarking Large Language Models for News Summarizationcited by 444
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2024Transformers are Multi-State RNNscited by 120
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
- 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 110
1 more
- 2024Anchor-based Large Language Modelscited by 12
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inferencecited by 8
- 2026SemantiCache: Efficient KV Cache Compression via Semantic Chunking and Clustered Mergingcited by 5
- 2026SelKV: Selective KV Cache Merging with Per-Token Merge-or-Drop and Attention Compensationcited by 0
- 2026Beyond Sparse Weights: When Is Attention Compressible?cited by 0
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2026SelKV: Selective KV Cache Merging with Per-Token Merge-or-Drop and Attention Compensation19 May 2026
- 2026SemantiCache: Efficient KV Cache Compression via Semantic Chunking and Clustered Merging15 Mar 2026
- 2026ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inference8 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
- 2025Homogeneous Keys, Heterogeneous Values: Exploiting Local KV Cache Asymmetry for Long-Context LLMs
- 2026DynaCalKV: Key-Value Cache Compression via Head Grouping and Adaptive Rank Allocation
- 2025Key, Value, Compress: A Systematic Exploration of KV Cache Compression Techniques
- 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More
- 2024Effectively Compress KV Heads for LLM
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management
- 2025KVCrush: Key value cache size-reduction using similarity in head-behaviour