From Long Context to Selective Memory:A Survey of Memory-Centric Compression for Large Language Models
On the map: Efficient LLM inference and serving → KV cache optimization also fits: Prompt and context compression
Abstract (arXiv)
Long-context capability has become essential for large language models (LLMs) to handle complex tasks, yet continuously expanding the context window does not remove the computational, storage, and information-selection pressures incurred at inference time. Existing work on prompt compression, KV-cache management, efficient serving, retrieval augmentation, and agent memory is usually discussed in isolation, leaving the flow of information between storage and computation insufficiently understood. This survey reframes long-context compression as a memory-management problem for allocating inference-time resources. We distinguish compute-active memory, which directly participates in model computation, from compute-inactive memory, which lies outside the computation path but can be stored, retrieved, updated, or forgotten, and we characterize offloaded KV caches, persistent prefix caches, and precomputed KV states as intermediate states on the activation path. On this basis, we formulate writing, offloading, recall, retrieval-and-injection, materialization, eviction, consolidation, and forgetting as state transitions within an information lifecycle, and introduce a budgeted cost model that places these operations in a single cost account. The resulting framework unifies short-term context compression, long-term memory management, and the transitions between them, and shows that the central challenge is not merely reducing information volume but deciding which information should participate in costly inference, when, and in what form. We further summarize evaluation dimensions, benchmark gaps, and open challenges, and argue that future research should move from static, pointwise compression toward dynamic, governable, lifecycle-aware memory management.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 115 of its 124 references that are in the map. Submitted 15 Oct 2026.
Builds on
115 of 124 references.
Closest ancestors · 23
Same direction, newest first
- 2026EchoKV: Efficient KV Cache Compression via Similarity-Based Reconstruction24 Mar
- 2026KV Cache Optimization Strategies for Scalable and Efficient LLM Inference20 Mar
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Serving24 Aug
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
- 2025xKV: Cross-Layer KV-Cache Compression via Aligned Singular Vector Extraction24 Mar
- 2025Jenga: Effective Memory Management for Serving LLM with Heterogeneity24 Mar
- 2025FastKV: Decoupling of Context Reduction and KV Cache Compression for Prefill-Decoding Acceleration3 Feb
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec
- 2024DiffKV: Differentiated Memory Management for Large Language Models with Parallel KV Compaction4 Dec
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct
11 more
- 2024Lossless KV Cache Compression to 2%20 Oct
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct
- 2024KV-Compress: Paged KV-Cache Compression with Variable Compression Rates per Attention Head30 Sep
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management28 Jun
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Models23 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 92
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,872
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,483
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,340
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,932
38 more
- 2020Big Bird: Transformers for Longer Sequencescited by 1,729
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
- 2021Improving language models by retrieving from trillions of tokenscited by 1,328
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,253
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,241
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 977
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 941
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 915
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 780
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 683
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 630
- 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 579
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 500
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 488
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memorycited by 479
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
- 2023Learning to Compress Prompts with Gist Tokenscited by 426
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 392
- 2023Adapting Language Models to Compress Contextscited by 390
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
- 2024Titans: Learning to Memorize at Test Timecited by 383
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 346
- 2025Memory in the Age of AI Agentscited by 340
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 324
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 309
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 278
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 274
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 274
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 263
- 2025From RAG to Memory: Non-Parametric Continual Learning for Large Language Modelscited by 260
50 most cited of 92 All 92 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2025KV Pareto: Systems-Level Optimization of KV Cache and Model Compression for Long Context Inference
- 2026LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction
- 2024ZigZagkv: Dynamic KV Cache Compression for Long-context Modeling based on Layer Uncertainty
- 2025ChunkKV: Semantic-Preserving KV Cache Compression for Efficient Long-Context LLM Inference
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores
- 2025TailorKV: A Hybrid Framework for Long-Context Inference via Tailored KV Cache Optimization