mlsanityData to 14 Oct 2026

Back from the Future: Key-Value Cache Management by Counter-Causal Surprise

arXiv 2607.27600 ↗First posted 30 Jul 2026cs.LGcited by 1

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

Abstract (arXiv)

Key-value (KV) cache management through compression and eviction strategies has emerged as an important research direction in recent years. Computational demands of large language models (LLMs) and their multi-modal variants during output generation can be partially alleviated by caching previous key and value calculations needed by subsequent scaled dot-product attention operations. However, this leads to another problem: the size of the resulting KV cache grows linearly with context length and quickly consumes all available GPU memory when either the prompt or the generated output are long. KV cache management periodically prunes entries from the cache thereby reducing its memory footprint while attempting to retain sufficient information for accurate generation. A by-product is faster inference speed. We propose a simple yet effective KV eviction scheme motivated by the insight that past tokens which can be well-predicted from more recent tokens are redundant and their associated keys and values can be removed from the cache. To score entries for eviction we run the model on the tokens in their original order, reusing the key and value representations already stored in the KV cache, and applying a counter-causal attention mask so that each position attends only to its future context. This is in-distribution, tied directly to the actual cache contents, and requires no additional training. To further reduce cost, we additionally propose a fast single-layer approximation that restricts the counter-causal pass to the last transformer layer, achieving a significant speedup per refresh cycle at marginal accuracy cost. We evaluate our strategy on various open-source LLMs and benchmark datasets showing competitive or improved performance over other state-of-the-art methods. Reference code is available at https://github.com/metacognitionai/counter_causal.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 32 of its 35 references that are in the map. First posted on arXiv 30 Jul 2026.

Builds on

32 of 35 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026Beyond Speedup -- Utilizing KV Cache for Sampling and Reasoning28 Jan
  2. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
  3. 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
  4. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
  5. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  6. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
  7. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 25

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  5. 2024Qwen2.5 Technical Reportcited by 4,942
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  7. 2020Longformer: The Long-Document Transformercited by 3,413
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  10. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  11. 2023Vision Transformers Need Registerscited by 871
  12. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
13 more
  1. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
  2. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
  3. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  4. 2024Titans: Learning to Memorize at Test Timecited by 328
  5. 2025TokenSkip: Controllable Chain-of-Thought Compression in LLMscited by 249
  6. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
  7. 2026Beyond Benchmarks: MathArena as an Evaluation Platform for Mathematics with LLMscited by 137
  8. 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 125
  9. 2019Augmenting Self-attention with Persistent Memorycited by 93
  10. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
  11. 2023Extending Context Window of Large Language Models via Semantic Compressioncited by 45
  12. 2024LongHealth: A Question Answering Benchmark with Long Clinical Documentscited by 33
  13. 2024An Evolved Universal Transformer Memorycited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objective
  2. 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences
  3. 2025Key, Value, Compress: A Systematic Exploration of KV Cache Compression Techniques
  4. 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing
  5. 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
  6. 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
  7. 2025SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs
  8. 2026Behavior-Preserving KV Cache Compression