mlsanityData to 7 Oct 2026

R3Mem: Bridging Memory Retention and Retrieval via Reversible Compression

arXiv 2502.15957 ↗First posted 21 Feb 2025cs.CL cs.AIcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2024The Llama 3 Herd of Modelscited by 14,192
  7. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  8. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  9. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  10. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
38 more
  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  3. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  4. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  5. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  6. 2014NICE: Non-linear Independent Components Estimationcited by 1,052
  7. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  8. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 719
  9. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  10. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  11. 2014Neural Turing Machinescited by 630
  12. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  13. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  14. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  15. 2023How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detectioncited by 472
  16. 2020Hopfield Networks is All You Needcited by 461
  17. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
  18. 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
  19. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  20. 2023Adapting Language Models to Compress Contextscited by 350
  21. 2021Efficient Attentions for Long Document Summarizationcited by 342
  22. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  23. 2024Titans: Learning to Memorize at Test Timecited by 303
  24. 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
  25. 2019Document Expansion by Query Predictioncited by 225
  26. 2023Language Modeling Is Compressioncited by 225
  27. 2021Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrievalcited by 203
  28. 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
  29. 2023JARVIS-1: Open-World Multi-task Agents with Memory-Augmented Multimodal Language Modelscited by 170
  30. 2016Dual Learning for Machine Translationcited by 146
  31. 2023Towards Learning a Generalist Model for Embodied Navigationcited by 135
  32. 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentationcited by 118
  33. 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
  34. 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
  35. 2019Augmenting Self-attention with Persistent Memorycited by 92
  36. 2024RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agentscited by 80
  37. 2024Prompt Compression for Large Language Models: A Surveycited by 65
  38. 2024CompAct: Compressing Retrieved Documents Actively for Question Answeringcited by 64

50 most cited of 68 All 68 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 8.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction
  2. 2024MemLong: Memory-Augmented Retrieval for Long Text Modeling
  3. 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
  4. 2025Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores
  5. 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression
  6. 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads
  7. 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injection
  8. 2025AttnComp: Attention-Guided Adaptive Context Compression for Retrieval-Augmented Generation