RaMem: Contextual Reinstatement for Long-term Agentic Memory
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Long-term memory has become increasingly important for LLM agents that operate across extended interactions and evolving task contexts. Recent memory systems have made past experiences more persistent, compact, and retrievable, but retrieval alone does not ensure that a memory provides valid evidence for the current query. When experiences are compressed into reusable fragments, memories from different situations may appear equally relevant if they involve recurring entities or user states. We refer to this failure as context collapse: memories lose the surrounding context needed to judge whether they provide valid evidence for the current query. To address this problem, we propose Contextual Reinstatement for Agentic Memory (RaMem), a framework that turns retrieved memory fragments into contextually verifiable evidence. RaMem operates through four coordinated stages: (i) evidence anchoring grounds each memory in its original episodic conditions, especially event time, mention time, session span, and participants; (ii) recall condition induction derives the evidence conditions implied by the query; (iii) validity-aware retrieval uses these conditions to prioritize context-compatible memories while retaining content-relevant candidates as fallback evidence; and (iv) context-preserved synthesis keeps the selected memories' structured context available to the generator. Experiments on long-term memory benchmarks show that RaMem consistently improves performance over strong memory baselines, with average F1 gains of more than 10% across several backbones.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 73 of its 85 references that are in the map. First posted on arXiv 22 Jun 2026.
Builds on
73 of 85 references.
Closest ancestors · 18
Same direction, newest first
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers8 Mar
- 2026Adaptive Memory Admission Control for LLM Agents4 Mar
- 2026SimpleMem: Efficient Lifelong Memory for LLM Agents5 Jan
- 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents5 Jan
- 2025MemR3: Memory Retrieval via Reflective Reasoning for LLM Agents23 Dec
- 2025Memory in the Age of AI Agents15 Dec
- 2025Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolution11 Dec
- 2025O-Mem: Omni Memory System for Personalized, Long Horizon, Self-Evolving Agents17 Nov
- 2025What Deserves Memory: Adaptive Memory Distillation for LLM Agents5 Aug
- 2025Memory OS of AI Agent30 May
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025In Prospect and Retrospect: Reflective Memory Management for Long-term Personalized Dialogue Agents11 Mar
6 more
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents10 Feb
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
- 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts15 Feb
Other references · 55
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
38 more
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2023Active Retrieval Augmented Generationcited by 506
- 2024LightRAG: Simple and Fast Retrieval-Augmented Generationcited by 310
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAGcited by 242
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025LightMem: Lightweight and Efficient Memory-Augmented Generationcited by 163
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 117
- 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
- 2024TourRank: Utilizing Large Language Models for Documents Ranking with a Tournament-Inspired Strategycited by 47
- 2023Panoptic Scene Graph Generation with Semantics-Prototype Learningcited by 42
- 2025Treble Counterfactual VLMs: A Causal Approach to Hallucinationcited by 33
- 2024TS-Reasoner: Domain-Oriented Time Series Inference Agents for Reasoning and Automated Analysiscited by 28
- 2024DPU: Dynamic Prototype Updating for Multimodal Out-of-Distribution Detectioncited by 28
- 2025A Survey of Reasoning and Agentic Systems in Time Series with Large Language Modelscited by 21
- 2026REMem: Reasoning with Episodic Memory in Language Agentcited by 20
- 2025Secure On-Device Video OOD Detection Without Backpropagationcited by 19
- 2025Learning to Deliberate: Meta-policy Collaboration for Agentic LLMs with Multi-agent Reinforcement Learningcited by 18
- 2025HDLCoRe: A Training-Free Framework for Mitigating Hallucinations in LLM-Generated HDLcited by 17
- 2025R4ec: A Reasoning, Reflection, and Refinement Framework for Recommendation Systemscited by 16
- 2026Auditing Multi-Agent LLM Reasoning Trees Outperforms Majority Vote and LLM-as-Judgecited by 16
- 2025VeriMoA: A Mixture-of-Agents Framework for Spec-to-HDL Generationcited by 15
- 2026TemporalBench: A Benchmark for Evaluating LLM-Based Agents on Contextual and Event-Informed Time Series Taskscited by 15
- 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Modelscited by 14
- 2025Maestro: Learning to Collaborate via Conditional Listwise Policy Optimization for Multi-Agent LLMscited by 14
- 2026Self-Compression of Chain-of-Thought via Multi-Agent Reinforcement Learningcited by 13
- 2025When LLM Meets Time Series: Can LLMs Perform Multi-Step Time Series Reasoning and Inferencecited by 12
- 2026POET: Power-Oriented Evolutionary Tuning for LLM-Based RTL PPA Optimizationcited by 11
- 2026FORTIS: Benchmarking Over-Privilege in Agent Skillscited by 11
- 2026Defenses Against Prompt Attacks Learn Surface Heuristicscited by 10
- 2025ClimateLLM: Efficient Weather Forecasting via Frequency-Aware Large Language Modelscited by 9
- 2026Adaptive Collaboration with Humans: Metacognitive Policy Optimization for Multi-Agent LLMs with Continual Learningcited by 9
- 2026The Autonomy Tax: Defense Training Breaks LLM Agentscited by 8
- 2025TrackRec: Iterative Alternating Feedback with Chain-of-Thought via Preference Alignment for Recommendationcited by 7
- 2026OASES: Outcome-Aligned Search-Evaluation Co-Training for Agentic Searchcited by 7
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026SodaMem: Evidence-Grounded Temporal Graph Memory for LLM Agentscited by 1
- 2026QUMem: Personalized Memory for Query-Conditioned User-State Inference in LLM Agentscited by 0
- 2026GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMscited by 0
- 2026Beyond Final Accuracy: Auditing Communication in LLM Multi-Agent Systemscited by 0
- 2026SynCo: Data Synthesis Co-Training for Self-Evolving LLMs via Multi-Agent Reinforcement Learningcited by 0
- 2026SynCo: Data Synthesis Co-Training for Self-Evolving LLMs via Multi-Agent Reinforcement Learning8 Oct 2026
- 2026Beyond Final Accuracy: Auditing Communication in LLM Multi-Agent Systems1 Oct 2026
- 2026GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMs10 Sep 2026
- 2026QUMem: Personalized Memory for Query-Conditioned User-State Inference in LLM Agents17 Aug 2026
- 2026SodaMem: Evidence-Grounded Temporal Graph Memory for LLM Agents8 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026Understanding and Mitigating Inference-Time Overreliance Using Agentic Memory
- 2026Memory Control Signals Emerge Before Action in Long Horizon Agents
- 2026RippleMem: From Isolated Retrieval to Associative Recollection for Long-Term Agent Memory
- 2026From Recall to Forgetting: Benchmarking Long-Term Memory for Personalized Agents
- 2026Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents
- 2026MemHarness: Memory Is Reconstructed, Not Replayed
- 2026Less Context, More Accuracy: A Bi-Temporal Memory Engine for LLM Agents Where a Lean Retrieved Context Beats the Full History
- 2026Learning What to Remember: A Cognitively Grounded Multi-Factor Value Model for Agentic Memory