IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference
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
- 2025KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction1 Dec
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct
- 2025Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution1 Oct
- 2025Lookahead Q-Cache: Achieving More Consistent KV Cache Eviction via Pseudo Query24 May
- 2025KeyDiff: Key Similarity-Based KV Cache Eviction for Long-Context LLM Inference in Resource-Constrained Environments21 Apr
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices2 Oct
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
Other references · 32
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2025Kimi K2: Open Agentic Intelligencecited by 523
20 more
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2025Memory in the Age of AI Agentscited by 285
- 2020Query-Key Normalization for Transformerscited by 266
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2019Large Memory Layers with Product Keyscited by 120
- 2024Transformers are Multi-State RNNscited by 120
- 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentationcited by 118
- 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 86
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2025Delta Decompression for MoE-based LLMs Compressioncited by 32
- 2026IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reusecited by 27
- 2025Sub-MoE: Efficient Mixture-of-Expert LLMs Compression via Subspace Expert Mergingcited by 26
- 2026Fast-weight Product Key Memorycited by 11
- 2025Capabilities of GPT-5 across critical domains: Is it the next breakthrough?cited by 6
- 2026QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training--Inference Mismatchcited by 5
- 2025BTC-LLM: Efficient Sub-1-Bit LLM Quantization via Learnable Transformation and Binary Codebookcited by 4
- 2026Bit-by-Bit: Progressive QAT Strategy with Outlier Channel Splitting for Stable Low-Bit LLMscited by 3
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026Fewer Tokens, Smaller Cache: Reward-Coordinated Efficient Reasoningcited by 2
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inferencecited by 1
- 2026Trust the Mass: Forced Weights in KV-Cache Evictioncited by 1
- 2026ARC-KV: Amortizing Anchor Search for Reconstruction-Based KV Cache Compactioncited by 1
- 2026Monte Carlo Estimation for KV Cache Evictioncited by 1
- 2026CORE: COverage CAlibration and Evicted-Mass REdistribution for KV Cachecited by 0
- 2026KVFetch: Temporal Prefetching for the Missing Half of KV Cache Compressioncited by 0
- 2026Monte Carlo Estimation for KV Cache Eviction6 Oct 2026
- 2026ARC-KV: Amortizing Anchor Search for Reconstruction-Based KV Cache Compaction29 Sep 2026
- 2026CORE: COverage CAlibration and Evicted-Mass REdistribution for KV Cache28 Sep 2026
- 2026KVFetch: Temporal Prefetching for the Missing Half of KV Cache Compression23 Sep 2026
- 2026Trust the Mass: Forced Weights in KV-Cache Eviction25 Aug 2026
- 2026Fewer Tokens, Smaller Cache: Reward-Coordinated Efficient Reasoning5 Aug 2026
- 2026LiveMem: Maintaining Memory State Continuity in Long-Running LLM Inference3 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
- 2024In-context KV-Cache Eviction for LLMs via Attention-Gate
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
- 2024Compressing KV Cache for Long-Context LLM Inference with Inter-Layer Attention Similarity
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction