mlsanityData to 7 Oct 2026

WeightedKV: Attention Scores Weighted Key-Value Cache Merging for Large Language Models

arXiv 2503.01330 ↗First posted 3 Mar 2025cs.CLcited by 4

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

  1. 2024Model Tells You Where to Merge: Adaptive KV Cache Merging for LLMs on Long-Context Tasks11 Jul
  2. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
  3. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May

Other references · 13

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2023Mistral 7Bcited by 3,065
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  5. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  8. 2023Benchmarking Large Language Models for News Summarizationcited by 444
  9. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
  10. 2024Transformers are Multi-State RNNscited by 120
  11. 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
  12. 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 110
1 more
  1. 2024Anchor-based Large Language Modelscited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
  2. 2025Homogeneous Keys, Heterogeneous Values: Exploiting Local KV Cache Asymmetry for Long-Context LLMs
  3. 2026DynaCalKV: Key-Value Cache Compression via Head Grouping and Adaptive Rank Allocation
  4. 2025Key, Value, Compress: A Systematic Exploration of KV Cache Compression Techniques
  5. 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More
  6. 2024Effectively Compress KV Heads for LLM
  7. 2024A Survey on Large Language Model Acceleration based on KV Cache Management
  8. 2025KVCrush: Key value cache size-reduction using similarity in head-behaviour