arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.09712cs.CL
收藏

TraceMem: 从用户对话轨迹编织叙事记忆图式

TraceMem: Weaving Narrative Memory Schemata from User Conversational Traces

The University of Hong Kong(香港大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));Nankai University(南开大学)

Yiming Shu, Pei Liu, Tiange Zhang, Ruiyang Gao, Jun Ma, Chen Sun

AI总结:

TraceMem通过三阶段流程从用户对话轨迹中编织叙事记忆图式,提升多跳和时间推理能力。

摘要:

维持长期交互仍是大型语言模型(LLMs)的瓶颈,因为其有限的上下文窗口难以管理随时间推移扩展的对话历史。现有记忆系统往往将交互视为零散片段,未能捕捉对话流下的内在叙事连贯性。我们提出了TraceMem,一个受认知启发的框架,通过三阶段流程从用户对话轨迹中编织出结构化的叙事记忆图式:(1)短期记忆处理,采用演绎性主题分割方法来确定事件边界并提取语义表示;(2)突触记忆巩固,一个将事件汇总为事件记忆的过程,在此过程中将事件与语义一起浓缩为用户特定的轨迹;(3)系统记忆巩固,利用两阶段层次聚类将这些轨迹组织成在统一主题下连贯、随时间演化的叙事线。这些线被封装成结构化的用户记忆卡,形成叙事记忆图式。对于记忆利用,我们提供了一种代理搜索机制以增强推理过程。在LoCoMo基准测试中,TraceMem实现了具有脑启发架构的最先进性能。分析显示,通过构建连贯的叙事,它在多跳和时间推理中超越了基线,凸显了其在深度叙事理解中的关键作用。此外,我们还对记忆系统进行了开放讨论,提出了我们对这一领域的观点和未来展望。我们的代码实现可在:https://github.com/YimingShu-teay/TraceMem获得。

英文摘要:

Sustaining long-term interactions remains a bottleneck for Large Language Models (LLMs), as their limited context windows struggle to manage dialogue histories that extend over time. Existing memory systems often treat interactions as disjointed snippets, failing to capture the underlying narrative coherence of the dialogue stream. We propose TraceMem, a cognitively-inspired framework that weaves structured, narrative memory schemata from user conversational traces through a three-stage pipeline: (1) Short-term Memory Processing, which employs a deductive topic segmentation approach to demarcate episode boundaries and extract semantic representation; (2) Synaptic Memory Consolidation, a process that summarizes episodes into episodic memories before distilling them alongside semantics into user-specific traces; and (3) Systems Memory Consolidation, which utilizes two-stage hierarchical clustering to organize these traces into coherent, time-evolving narrative threads under unifying themes. These threads are encapsulated into structured user memory cards, forming narrative memory schemata. For memory utilization, we provide an agentic search mechanism to enhance reasoning process. Evaluation on the LoCoMo benchmark shows that TraceMem achieves state-of-the-art performance with a brain-inspired architecture. Analysis shows that by constructing coherent narratives, it surpasses baselines in multi-hop and temporal reasoning, underscoring its essential role in deep narrative comprehension. Additionally, we provide an open discussion on memory systems, offering our perspectives and future outlook on the field. Our code implementation is available at: https://github.com/YimingShu-teay/TraceMem

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

↑