mlsanityData to 7 Oct 2026

KVEraser: Learning to Steer KV Cache for Efficient Localized Context Erasing

arXiv 2606.17034 ↗First posted 15 Jun 2026cs.CL cs.LGcited by 4

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Post-hoc context erasing over the KV cache is challenging because a local edit has a global consequence: once a span has been processed, its influence propagates into the cached states of all subsequent tokens. This issue arises naturally in long-context LLM applications, where stale, incorrect, or harmful context may be identified only after prefill. Exact erasing must then recompute all tokens after the deleted span, making its computational cost depend on suffix length rather than erased-span length. We introduce KVEraser, a learned KV-cache editing method for efficient localized context erasing. KVEraser replaces the KV states of the erased interval with learned steering states while reusing the remaining cache unchanged. To learn a transferable erasing mechanism, we use a two-stage pipeline: generic span-neighbor pre-training followed by task-specific fine-tuning. Experiments show that KVEraser nearly matches full recomputation in post-erasure performance on in-domain tasks across 1K-32K contexts, while its latency increases by only 29.6% compared with a 17.6x increase for full recomputation. KVEraser also generalizes to unseen long-document QA with harmful factual distractors and tool-selection with malicious skill-file injections, achieving the best performance among approximate baselines with a 2.9-10.7x speedup over full recomputation. Notably, full-parameter eraser training is unnecessary: a rank-16 LoRA eraser, which trains only approximately 0.6% as many parameters as the generator, performs comparably to or better than its full-parameter counterpart.

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 43 of its 54 references that are in the map. First posted on arXiv 15 Jun 2026.

Builds on

43 of 54 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026LookaheadKV: Fast and Accurate KV Cache Eviction by Glimpsing into the Future without Generation11 Mar
  2. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
  3. 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reuse21 Feb
  4. 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time7 Aug
  5. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  6. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
  7. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  8. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
  9. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun

Other references · 34

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  6. 2025Qwen3 Technical Reportcited by 8,195
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  9. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  10. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  11. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  12. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
22 more
  1. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  3. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  6. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  7. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  8. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  9. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
  10. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  11. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
  12. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
  13. 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
  14. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  15. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 236
  16. 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 97
  17. 2020IIRC: A Dataset of Incomplete Information Reading Comprehension Questionscited by 52
  18. 2024EPIC: Efficient Position-Independent Caching for Serving Large Language Modelscited by 45
  19. 2025Agent Skills Enable a New Class of Realistic and Trivially Simple Prompt Injectionscited by 30
  20. 2025APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encodingcited by 29
  21. 2024Tools Fail: Detecting Silent Errors in Faulty Toolscited by 23
  22. 2025Haystack Engineering: Context Engineering for Heterogeneous and Agentic Long-Context Evaluationcited by 4

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. 2026PatchKV: Efficient KV Cache Recovery for Dynamically Edited LLM Contexts
  2. 2026GRKV: Global Regression for Training-Free KV Cache Compression in Long-Context LLMs
  3. 2025KV Cache Recycling to Expand Usable Context Capacity in Low Parameter LLMs
  4. 2026KV Packet: Recomputation-Free Context-Independent KV Caching for LLMs
  5. 2024Training-Free Exponential Context Extension via Cascading KV Cache
  6. 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?
  7. 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads
  8. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference