Lune

NeurIPS2025顶会

Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference

Yuan Feng, Junlin Lv, Yukun Cao, Xike Xie, S. Kevin Zhou

摘要

Large Language Models have excelled in various domains but face efficiency challenges due to the growing Key-Value (KV) cache required for long-sequence inference. Recent efforts aim to reduce KV cache size by evicting vast non-critical cache elements during runtime while preserving generation quality. However, these methods typically allocate compression budgets uniformly across all attention heads, ignoring the unique attention patterns of each head. In this paper, we establish a theoretical loss upper bound between pre- and post-eviction attention output, explaining the optimization target of prior cache eviction methods, while guiding the optimization of adaptive budget allocation. Base on this, we propose Ada-KV, the first head-wise adaptive budget allocation strategy. It offers plug-and-play benefits, enabling seamless integration with prior cache eviction methods. Extensive evaluations on 13 datasets from Ruler and 16 datasets from LongBench, all conducted under both question-aware and question-agnostic scenarios, demonstrate substantial quality improvements over existing methods. Our code is available at https://github.com/FFY0/AdaKV.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 65 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Accelerating Streaming Video Large Language Models via Hierarchical Token Compression 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • R-KV: Redundancy-aware KV Cache Compression for Reasoning Models 引用了 Efficient Streaming Language Models with Attention Sinks
  • R-KV: Redundancy-aware KV Cache Compression for Reasoning Models 引用了 SnapKV: LLM Knows What You are Looking for Before Generation
  • Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs 引用了 Efficient Streaming Language Models with Attention Sinks
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • SnapKV: LLM Knows What You are Looking for Before Generation 引用了 Efficient Streaming Language Models with Attention Sinks
  • SnapKV: LLM Knows What You are Looking for Before Generation 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • SnapKV: LLM Knows What You are Looking for Before Generation 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Neural Attention Search 引用了 Efficient Streaming Language Models with Attention Sinks
  • Neural Attention Search 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Neural Attention Search 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • SGLang: Efficient Execution of Structured Language Model Programs 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction 引用了 Efficient Streaming Language Models with Attention Sinks
  • KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction 引用了 SnapKV: LLM Knows What You are Looking for Before Generation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper65

  1. Neural Attention SearchDifan Deng, Marius LindauerNeurIPS 2025 · 431 次引用
  2. KVzip: Query-Agnostic KV Cache Compression with Context ReconstructionJang-Hyun Kim, Jinuk Kim, Sangwoo Kwon, Jae W. Lee 等NeurIPS 2025 · 103 次引用
  3. R-KV: Redundancy-aware KV Cache Compression for Reasoning ModelsZefan Cai, Wen Xiao, Hanshi Sun, Cheng Luo 等NeurIPS 2025 · 50 次引用
  4. Accelerating Streaming Video Large Language Models via Hierarchical Token CompressionYiyu Wang, Xuyang Liu, Xiyan Gui, Xinying Lin 等CVPR 2026 · 40 次引用
  5. Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMsKan Zhu, Tian Tang, Qinyu Xu, Zhan Jin 等ICLR 2026 · 25 次引用

它引用的 Paper29

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  2. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
  3. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
  4. SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun 等NeurIPS 2024 · 1,586 次引用
  5. SnapKV: LLM Knows What You are Looking for Before GenerationYuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh 等NeurIPS 2024 · 1,019 次引用

相关 Paper

  1. Predicting Future Utility: Global Combinatorial Optimization for Task-Agnostic KV Cache EvictionZiyao Tang, Pengkun Jiao, Xinhang Chen, LiuWei Liu 等ICML 2026 · 1 次引用
  2. LAVa: Layer-wise KV Cache Eviction with Dynamic Budget AllocationYiqun Shen, Song Yuan, Zhengze Zhang, Xiaoliang Wang 等EMNLP Findings 2025
  3. ReST-KV: Robust KV Cache Eviction with Layer-wise Output Reconstruction and Spatial-Temporal SmoothingYongqi An, Chang Lu, Kuan Zhu, Tao Yu 等ICLR 2026 · 11 次引用
  4. Lookahead Q-Cache: Achieving More Consistent KV Cache Eviction via Pseudo QueryYixuan Wang, Shiyu Ji, Yijun Liu, Yuzhuang Xu 等EMNLP 2025
  5. EntroKV: Entropy-Guided Dynamic Budget Allocation for KV-Cache CompressionWenhao Gao, Haoran Cao, Yueyan Li, YongGao Xiao 等ICML 2026
黄昏的海面,两侧是细线勾勒的悬崖