arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.17377cs.CL
收藏

AnchorMem: 基于关联上下文的锚定事实用于构建大语言模型的记忆

AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Models

College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机科学与软件工程学院);Tsinghua University(清华大学)

Zhanyu Shen, Sijie Cheng, Zhicheng Guo, Weiqin Wang, Yile Wang, Hui Huang

AI总结:

本文提出AnchorMem,通过锚定事实与关联上下文构建大语言模型的记忆系统,解决传统方法依赖总结导致信息丢失的问题,实验表明其在LoCoMo基准上表现优异。

摘要:

尽管大语言模型在复杂任务上表现出色,但仍然需要记忆系统来利用长期交互的历史经验。现有记忆方法(如A-Mem、Mem0)过于强调通过频繁重写来组织交互,这种对总结的依赖风险降低关键上下文细节和关键检索特征。为弥合这一差距,我们引入AnchorMem,一种受认知科学中的普鲁斯特现象启发的新记忆框架,其中特定锚点触发整体回忆。我们提出了一种方法,将检索单元与生成上下文解耦。AnchorMem从交互历史中提取原子事实作为检索锚点,同时保留原始上下文作为不可变上下文。为了揭示隐含的叙述线索,我们构建了一个关联事件图,利用更高阶的事件链接将相关事实集绑定到共享事件表示中,增强跨记忆整合,而无需依赖通用实体作为桥梁。在检索过程中,系统将查询锚定到特定事实和事件以定位相关记忆,但使用关联的原始片段和事件重建上下文。我们的方法在细粒度检索与交互的上下文完整性之间取得平衡。在三个闭源和开源模型上进行的LoCoMo基准测试表明,AnchorMem显著优于基线方法。代码可在https://github.com/RayNeo-AI-2025/AnchorMem获取。

英文摘要:

While large language models have achieved remarkable performance in complex tasks, they still need a memory system to utilize historical experience in long-term interactions. Existing memory methods (e.g., A-Mem, Mem0) place excessive emphasis on organizing interactions by frequently rewriting them, however, this heavy reliance on summarization risks diluting essential contextual nuances and obscuring key retrieval features. To bridge this gap, we introduce AnchorMem, a novel memory framework inspired by the Proust Phenomenon in cognitive science, where a specific anchor triggers a holistic recollection. We propose a method that decouples the retrieval unit from the generation context. AnchorMem extracts atomic facts from interaction history to serve as retrieval anchors, while preserving the original context as the immutable context. To reveal implicit narrative cues, we construct an associative event graph that uses higher-order event links that bind sets of related facts into shared event representations, strengthening cross-memory integration without relying on generic entities as bridges. During retrieval, the system anchors queries to specific facts and events to locate relevant memories, but reconstructs the context using the associated raw chunks and events. Our method reconciles fine-grained retrieval with the contextual integrity of interactions. Experiments across three closed-source and open-source models on the LoCoMo benchmark demonstrate that AnchorMem significantly outperforms baselines. Code is available at https://github.com/RayNeo-AI-2025/AnchorMem.

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

↑