R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression
Not on the map. Why?
Abstract (arXiv)
Memory plays a key role in enhancing LLMs' performance when deployed to real-world applications. Existing solutions face trade-offs: explicit memory designs based on external storage require complex management and incur storage overhead, while implicit memory designs that store information via parameters struggle with reliable retrieval. In this paper, we propose R3Mem, a memory network that optimizes both information Retention and Retrieval through Reversible context compression. Specifically, R3Mem employs virtual memory tokens to compress and encode infinitely long histories, further enhanced by a hierarchical compression strategy that refines information from document- to entity-level for improved assimilation across granularities. For retrieval, R3Mem employs a reversible architecture, reconstructing raw data by invoking the model backward with compressed information. Implemented via parameter-efficient fine-tuning, it can integrate seamlessly with any Transformer-based model. Experiments demonstrate that our memory design achieves state-of-the-art performance in long-context language modeling and retrieval-augmented generation tasks. It also significantly outperforms conventional memory modules in long-horizon interaction tasks like conversational agents, showcasing its potential for next-generation retrieval systems.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 68 of its 95 references that are in the map. First posted on arXiv 21 Feb 2025.
Builds on
68 of 95 references.
References · 68
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
38 more
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2014NICE: Non-linear Independent Components Estimationcited by 1,052
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2021BARTScore: Evaluating Generated Text as Text Generationcited by 719
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2014Neural Turing Machinescited by 630
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2023How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detectioncited by 472
- 2020Hopfield Networks is All You Needcited by 461
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023Adapting Language Models to Compress Contextscited by 350
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
- 2019Document Expansion by Query Predictioncited by 225
- 2023Language Modeling Is Compressioncited by 225
- 2021Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrievalcited by 203
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
- 2023JARVIS-1: Open-World Multi-task Agents with Memory-Augmented Multimodal Language Modelscited by 170
- 2016Dual Learning for Machine Translationcited by 146
- 2023Towards Learning a Generalist Model for Embodied Navigationcited by 135
- 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentationcited by 118
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2019Augmenting Self-attention with Persistent Memorycited by 92
- 2024RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agentscited by 80
- 2024Prompt Compression for Large Language Models: A Surveycited by 65
- 2024CompAct: Compressing Retrieved Documents Actively for Question Answeringcited by 64
50 most cited of 68 All 68 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 8.
12 papers.
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025System-1.5 Reasoning: Traversal in Language and Latent Spaces with Dynamic Shortcutscited by 23
- 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agentscited by 12
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2026From Experience to Skill: Multi-Agent Generative Engine Optimization via Reusable Strategy Learningcited by 3
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2026CrystalMem: Elastic Memory for Self-Evolving LLM Agents via Knowledge Crystallizationcited by 2
- 2026AgentSpec: Understanding Embodied Agent Scaffolds Through Controlled Compositioncited by 1
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agentscited by 1
- 2026Remember and Reweight: Enhancing Multi-Agent Debate with Experience Memory and Confidence Estimationcited by 0
- 2026LatentHarness: Learning Latent Actions for Memory and Reasoning via Counterfactual Policy Distillationcited by 0
- 2026MemCodex: Self-Programming Hierarchical Memory for Language Agentscited by 0
- 2026MemCodex: Self-Programming Hierarchical Memory for Language Agents30 Sep 2026
- 2026LatentHarness: Learning Latent Actions for Memory and Reasoning via Counterfactual Policy Distillation30 Sep 2026
- 2026Remember and Reweight: Enhancing Multi-Agent Debate with Experience Memory and Confidence Estimation3 Sep 2026
- 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agents15 Aug 2026
- 2026CrystalMem: Elastic Memory for Self-Evolving LLM Agents via Knowledge Crystallization31 Jul 2026
- 2026AgentSpec: Understanding Embodied Agent Scaffolds Through Controlled Composition12 Jun 2026
- 2026Mem-π: Adaptive Memory through Learning When and What to Generate20 May 2026
- 2026From Experience to Skill: Multi-Agent Generative Engine Optimization via Reusable Strategy Learning21 Apr 2026
- 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agents29 Dec 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025System-1.5 Reasoning: Traversal in Language and Latent Spaces with Dynamic Shortcuts25 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction
- 2024MemLong: Memory-Augmented Retrieval for Long Text Modeling
- 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
- 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads
- 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injection
- 2025AttnComp: Attention-Guided Adaptive Context Compression for Retrieval-Augmented Generation