mlsanityData to 7 Oct 2026

IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference

arXiv 2605.25475 ↗First posted 25 May 2026cs.CL cs.AIcited by 7

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

Abstract (arXiv)

Large Language Models (LLMs) are increasingly expected to operate over long contexts, yet standard softmax attention incurs a KV cache that grows linearly with sequence length, quickly becoming the bottleneck for long context inference. A practical remedy is to evict less important KV entries; however, existing eviction policies are largely heuristic and struggle to capture the rich, input-dependent distribution of token importance. In this work, we introduce a learnable indexer that predicts KV importance, enabling more accurate retention of critical tokens. Meanwhile, naively evicting tokens permanently discards their information, leading to irreversible forgetting and degraded retrieval over long ranges. To address this, we propose a lightweight latent memory module that compresses evicted tokens into a compact, online-updated state and provides residual readouts to compensate for the attention contributions lost through KV eviction. Collectively, our method enables accurate long-context inference under a bounded KV budget, delivering consistent improvements on RULER (4K/16K) across Qwen, Mistral, and Llama models (up to 25 points under aggressive eviction), markedly more stable Needle-in-a-Haystack retrieval, and superior LongBench scores and compression curves compared to existing eviction policies.

Key facts. Cited by 7 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 41 of its 52 references that are in the map. First posted on arXiv 25 May 2026.

Builds on

41 of 52 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction1 Dec
  2. 2025NOSA: Native and Offloadable Sparse Attention15 Oct
  3. 2025Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution1 Oct
  4. 2025Lookahead Q-Cache: Achieving More Consistent KV Cache Eviction via Pseudo Query24 May
  5. 2025KeyDiff: Key Similarity-Based KV Cache Eviction for Long-Context LLM Inference in Resource-Constrained Environments21 Apr
  6. 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices2 Oct
  7. 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
  8. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
  9. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr

Other references · 32

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  6. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
  9. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  10. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  11. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  12. 2025Kimi K2: Open Agentic Intelligencecited by 523
20 more
  1. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  2. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  3. 2024Titans: Learning to Memorize at Test Timecited by 303
  4. 2025Memory in the Age of AI Agentscited by 285
  5. 2020Query-Key Normalization for Transformerscited by 266
  6. 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
  7. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  8. 2019Large Memory Layers with Product Keyscited by 120
  9. 2024Transformers are Multi-State RNNscited by 120
  10. 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentationcited by 118
  11. 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 86
  12. 2025End-to-End Test-Time Training for Long Contextcited by 53
  13. 2025Delta Decompression for MoE-based LLMs Compressioncited by 32
  14. 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reusecited by 27
  15. 2025Sub-MoE: Efficient Mixture-of-Expert LLMs Compression via Subspace Expert Mergingcited by 26
  16. 2026Fast-weight Product Key Memorycited by 11
  17. 2025Capabilities of GPT-5 across critical domains: Is it the next breakthrough?cited by 6
  18. 2026QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training--Inference Mismatchcited by 5
  19. 2025BTC-LLM: Efficient Sub-1-Bit LLM Quantization via Learnable Transformation and Binary Codebookcited by 4
  20. 2026Bit-by-Bit: Progressive QAT Strategy with Outlier Channel Splitting for Stable Low-Bit LLMscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 7.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  2. 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
  3. 2024In-context KV-Cache Eviction for LLMs via Attention-Gate
  4. 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
  5. 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time
  6. 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
  7. 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
  8. 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction