📄
Abstract - RaMem: Contextual Reinstatement for Long-term Agentic Memory
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.
RaMem:面向长期智能体记忆的上下文重构框架 /
RaMem: Contextual Reinstatement for Long-term Agentic Memory
1️⃣ 一句话总结
针对AI记忆系统中不同场景的记忆碎片因失去上下文而难以判断是否适用于当前问题(即“上下文崩塌”问题),该论文提出RaMem框架,通过将记忆与原始事件时间、参与者等关键条件绑定,并在检索时匹配合适的上下文,从而让AI更准确、可靠地利用过去的经验来辅助决策,实验证明该方法在多个基准测试中平均F1得分提升超过10%。