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

REAL: 一种增强推理的图框架用于LLM的长期记忆管理

REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs

School of Computer Science, Peking University(北京大学计算机科学学院);Kuaishou Technology(快手科技);Center for Data Science, Academy for Advanced Interdisciplinary Studies, Peking University(北京大学前沿交叉学科研究院数据科学中心)

Keer Lu, Liwei Chen, Guoqing Jiang, Zhiheng Qin, Yunhuai Liu, Wentao Zhang

AI总结:

提出REAL框架,通过构建时序和置信度感知的有向属性图,采用非破坏性更新和混合束搜索检索,解决LLM长期记忆中的关系缺失、事实覆盖和查询被动问题,平均性能提升22.72%。

摘要:

大型语言模型(LLM)越来越期望与用户进行长时间跨度的交互。然而,由于其有限的上下文窗口,LLM无法保留所有过去的交互,因此长期记忆管理对于存储、更新和检索超出上下文限制的历史信息至关重要。尽管最近的记忆系统试图通过外部存储历史信息来解决这个问题,但现有方法存在三个关键限制:基于平面文本的记忆组织无法捕捉记忆之间的显式关系,结构化记忆系统通常会破坏性地覆盖演变的事实,而当前的检索机制在证据不完整时仍然与查询无关且被动。REAL将长期对话记忆构建为时序和置信度感知的有向属性图,其中每个原子事实都用实体、关系、有效时间区间、置信度分数和探索意图标签表示。在记忆构建过程中,REAL采用非破坏性时序更新策略,保留并行的事实版本及其有效性区间,从而能够忠实地追踪事实的演变。在检索过程中,REAL锚定与查询相关的根实体,解耦其探索意图,并执行语义评估器引导的混合束搜索以提取紧凑的记忆子图。它进一步结合反事实推理来修复不可靠的检索状态,并通过隐式逻辑关系恢复缺失的记忆证据。综合实验表明,REAL在长期记忆性能上显著优于平面文本、基于图和现有记忆基线,平均提升22.72%。

英文摘要:

Large Language Models (LLMs) are increasingly expected to interact with users over long time horizons. However, due to their finite context window, LLMs cannot retain all past interactions, making long-term memory management essential for storing, updating, and retrieving historical information beyond the context limit. Although recent memory systems attempt to address this issue by storing historical information externally, existing approaches suffer from three key limitations: flat text-based memory organizations fail to capture explicit relations among memories, structured memory systems often destructively overwrite evolving facts, and current retrieval mechanisms remain query-agnostic and passive when evidence is incomplete. REAL constructs long-term conversational memory as a temporal and confidence-aware directed property graph, where each atomic fact is represented with entities, relations, valid-time intervals, confidence scores, and exploration intent labels. During memory construction, REAL adopts a non-destructive temporal update strategy that preserves parallel fact versions and their validity intervals, enabling faithful tracking of fact evolution. During retrieval, REAL anchors query-relevant root entities, decouples their exploration intents, and performs semantic evaluator-guided hybrid beam search to extract compact memory subgraphs. It further incorporates counterfactual inference to repair unreliable retrieval states and recover missing memory evidence through implicit logical relations. Comprehensive experiments demonstrate that REAL substantially improves long-term memory performance over flat-text, graph-based, and existing memory baselines, achieving an average improvement of 22.72\%.

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

↑