arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.20237cs.AI
收藏

MemR$^3$: 通过反思推理实现LLM代理的记忆检索

Knowing What is Missing: Efficient Conversational Memory via Explicit Evidence-Gap Tracking

Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Xingbo Du, Loka Li, Duzhen Zhang, Leonard Song, Le Song

AI总结:

MemR$^3$通过反思推理实现LLM代理的记忆检索,提升检索准确性和闭环控制能力。

摘要:

记忆系统已被设计用于在大型语言模型(LLM)代理中利用过去的经验。然而,许多部署的记忆系统主要优化压缩和存储,相比之下对显式、闭环控制的记忆检索关注较少。基于此观察,我们构建了记忆检索作为自主、准确且兼容的代理系统,命名为MemR$^3$,其有两个核心机制:1)一个路由器,选择检索、反思和回答动作以优化回答质量;2)一个全局证据缺口跟踪器,明确呈现回答过程并跟踪证据收集过程。该设计偏离了标准的检索-然后回答流程,引入了闭环控制机制,使系统能够实现自主决策。在LoCoMo基准测试中,MemR$^3$在LLM-as-a-Judge评分上超过了强基线,在使用GPT-4.1-mini后端时,它在RAG(+7.29%)和Zep(+1.94%)四个类别中改进了现有检索器,为现有记忆存储提供了即插即用的控制器。

英文摘要:

Long-term conversational memory poses a fundamental system challenge for LLM agents: reasoning over all past interactions improves coverage but incurs prohibitive token costs and noise, while retrieval-based methods are efficient yet often fail on multi-hop and temporal questions. Existing multi-step retrievers partially address this gap, but typically operate over an ever-growing textual history, causing context expansion and noise accumulation across iterations. We propose MemR$^3$, a backend-agnostic closed-loop controller that reformulates conversational memory retrieval as explicit stateful decision-making. At each iteration, MemR$^3$ maintains an evidence-gap state consisting of grounded information (evidence) and unresolved information requirements (gaps), and uses this state to route among three actions: retrieve, reflect, and answer. Newly retrieved snippets are incorporated into the state and then masked from subsequent prompts, so the model conditions on a compact summary of progress rather than the full retrieval history. This design turns multi-step memory retrieval into a bounded, inspectable control process whose query-time context scales with the state instead of raw accumulated text. Experiments on LongMemEval$_s$ show that MemR$^3$ surpasses implicit multi-step retrieval baselines and often approaches or exceeds full-context prompting while retrieving only 1%-5% of the full conversation tokens on long conversations. On LoCoMo, MemR$^3$ consistently improves over its underlying RAG- and Zep-based memory backbones. These results suggest that explicit evidence-gap tracking is an effective abstraction for token-efficient conversational memory.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑