Research map / Architectures and efficiency / Attention and transformers
R³Mem: Bridging Memory Retention and Retrieval via Reversible Compression
Xiaoqiang Wang, Suyuchen Wang, Yun Zhu, Bang Liu
Mila · University of Montreal · Google · Canada CIFAR AI Chair
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
7improved
3no clear effect
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- PG-19 leaderboard perplexity 5.21 · rank 1 of 14 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use hierarchical (document-paragraph-sentence-entity) context-query pairs instead of document-paragraph only (ablation) | R3Mem · C4 (4K+) | perplexity: 17.16 -> 13.38 | Improved |
| build context-query pairs with GPT-4o instead of a doc2query model (ablation) | R3Mem · C4 (4K+) | perplexity: 17.60 -> 13.38 | Improved |
| add backward loss (ablation) | R3Mem · C4 (4K+) | perplexity: 15.83 -> 13.38 | Improved |
| add cycle consistency loss (ablation) | R3Mem · C4 (4K+) | perplexity: 14.80 -> 13.38 | Improved |
| add backward loss (ablation) | R3Mem · PG19 | perplexity: 6.41 -> 5.21 | Improved |
| inject virtual tokens into hidden states of every layer (ablation) | R3Mem · PG19 and C4 (4K+) | perplexity | Improved |
| increase number of input virtual memory tokens from 16 to 128 (ablation) | R3Mem · PG19 and C4 (4K+) | perplexity | No clear effect |
| train 4 to 32 epochs instead of 2 (ablation) | R3Mem and MemoRAG · UltraDomain RAG | F1: in-domain improves, out-of-domain declines | Mixed |
| replace explicit MemoryBank with R3Mem | SiliconFriend · SiliconFriend 194 probing questions | Contextual Coherence | No clear effect |
| replace explicit MemoryBank with R3Mem | SiliconFriend · SiliconFriend 194 probing questions | Memory Retrieval Accuracy | Improved |
| fine-tune on UltraDomain (R3Mem vs base model) | LLaMA 3.1-8B · UltraDomain out-of-domain RAG | F1: in-domain 53 vs out-of-domain 36 (base 38 vs 37) | No clear effect |
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- SimpleMem: Efficient Lifelong Memory for LLM Agents (ICML 2026 · similarity 0.89)
- MemForest: Efficient Agent Memory Management via EventTree Partitioning and Progressive Merging (NeurIPS 2026 · similarity 0.88)
- M+: Extending MemoryLLM with Scalable Long-Term Memory (ICML 2025 · similarity 0.87)
- Compressed Context Memory for Online Language Model Interaction (ICLR 2024 · similarity 0.87)
- RazorAttention: Efficient KV Cache Compression Through Retrieval Heads (ICLR 2025 · similarity 0.87)
- RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrieval (NeurIPS 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.