arXiv:2608.00967cs.AI2026-08

用可追溯的轨迹记忆提升长对话智能体的连贯性与可解释性

TrajWiki: Source-Grounded Memory Trajectories for Long-Horizon Dialogue Agents

论文配图:TrajWiki: Source-Grounded Memory Trajectories for Long-Horizon Dialogue Agents
图 1 · 摘自论文原文
  • 将记忆建模为带来源证据的演化轨迹,支持增删改查操作
  • 在LoCoMo和MedMT上提升长对话表现,关键指标优于基线
  • 适合需要透明推理过程的医疗、法律等高可靠性场景

大型语言模型智能体在生成连贯回应方面表现优异,但长期对话仍受限于缺乏可追溯、可更新且可诊断的外部记忆。现有记忆增强型智能体通常将记忆存储为孤立记录或可覆盖状态,难以保留信息的来源、演变、冲突或过时过程。本文提出TrajWiki,一种基于轨迹的记忆框架,将每个记忆表示为源码相关的演化路径,通过不可变的事件快照和声明级操作(如ADD、REVISE、DEPRECATE)维护。为降低碎片化与检索开销,还引入内存维基(Memory Wiki),一个持久中间层,逐步将对话历史结构化为关联的维基页面,涵盖关键实体、事件、数量、主题与冲突。推理时,查询按层级从相关维基页经链接记忆轨迹,至对应快照与源消息,实现基于证据的回答合成。在LoCoMo和MedMT数据集上的实验表明,TrajWiki在开源与闭源大模型上均显著提升长对话性能,同时增强对记忆演化、检索失败与生成过程的可解释性与诊断能力。

原文摘要 · Abstract (English)

Large language model agents have shown strong capabilities in generating coherent and contextually appropriate responses, yet robust long-horizon dialogue remains limited by the lack of external memory that is traceable, updatable, and diagnostically transparent. Existing memory-augmented agents often store memories as isolated records or overwritable states, making it difficult to preserve how information originates, evolves, conflicts, or becomes obsolete over time. We propose TrajWiki, a trajectory-based memory framework for long-horizon conversational agents. Instead of treating memory as static entries, TrajWiki represents each memory as a source-grounded evolution trajectory, maintained through immutable episodic snapshots and claim-level operations such as ADD, REVISE, and DEPRECATE. To reduce fragmentation and retrieval cost, TrajWiki further introduces Memory Wiki, a persistent intermediate layer that incrementally compiles dialogue history into structured and interlinked wiki pages capturing salient entities, events, quantities, topics, and conflicts. At inference time, queries are routed hierarchically from relevant wiki pages to linked memory trajectories, then to corresponding snapshots and source messages for evidence-grounded answer synthesis. Experiments on LoCoMo and MedMT show that TrajWiki improves long-horizon dialogue performance across both open-source and closed-source LLM backbones, while providing greater interpretability and diagnostic visibility into memory evolution, retrieval failures, and answer generation.

长对话记忆框架可解释性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。