TrajWiki: Source-Grounded Memory Trajectories for Long-Horizon Dialogue Agents
Jingyu Sun, Yuyang Xue, Mingyang Li, Zhengtao Yao, Jiachen Li, Yang Cui, Wenhao Cai, Haozhe Liu, Fangying Wang, Magdalene K Montgomery, Syed M Baker, Hongpeng Zhou
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Agent Memory Management · Type: new method · Keywords: long-horizon dialogue, memory management, trajectory-based memory, interpretability, dialogue agents
Areas: Memory › Agent Memory Systems › Agent Memory; Long Context › Long-context mechanisms › Agent memory representations; AI Agents › Agent Capabilities › LLM Agent Memory
Summary
TrajWiki introduces a trajectory-based memory framework that stores source-grounded evolution trajectories and a Memory Wiki layer to improve long-horizon dialogue agents' interpretability and performance.
Explained to a 5-year-old
People talk to robot helpers for a long time, but the robots sometimes forget what you said earlier. This paper makes a new way for the robot to remember things that works like a story that can be checked and updated. Each memory is saved as a series of snapshots that never change, so you can see how the information grew. The robot also builds a picture book that collects all the important topics, people, and events from the conversation. When the robot needs to answer a question, it first looks in the picture book for the right page, then goes to the memory story that matches that page to see the detailed steps of how the information changed, and finally checks the original messages to make sure the answer is correct.
Explained to a 5-year-old, longer
Imagine you are talking to a friendly robot for a long time, like a whole day. Sometimes the robot forgets what you said earlier, which makes it hard to keep the conversation going. This paper creates a new way for the robot to remember things that works like a story that can be checked and updated. Each memory is saved as a series of snapshots that never change, so you can see how the information grew. The robot also builds a picture book that collects all the important topics, people, and events from the conversation. The picture book links related topics together, so the robot can find the right information quickly. When the robot needs to answer a question, it first looks in the picture book for the right page. Then it goes to the memory story that matches that page to see the detailed steps of how the information changed. Finally, it checks the original messages to make sure the answer is correct. This helps the robot give better answers and lets us see why it remembers things the way it does.
For a technical reader
The system stores each memory as a source-grounded trajectory of immutable snapshots, supporting ADD, REVISE, and DEPRECATE operations. A persistent Memory Wiki layer aggregates dialogue history into interlinked pages for fast retrieval. At query time, the framework routes the query from the wiki to relevant trajectories and finally to source messages, enabling evidence-grounded synthesis. This design improves long-horizon dialogue performance and provides transparent diagnostics for memory evolution and answer generation.
Problem
Long-horizon dialogue agents lack external memory that is traceable, updatable, and diagnostically transparent, making it hard to preserve how information originates, evolves, conflicts, or becomes obsolete over time.
Method
The approach represents each memory as a source-grounded evolution trajectory using immutable episodic snapshots and claim-level operations (ADD, REVISE, DEPRECATE). It also introduces a persistent Memory Wiki layer that compiles dialogue history into structured, interlinked wiki pages for efficient retrieval. At inference, queries are routed hierarchically from wiki pages to trajectories, then to snapshots and source messages for evidence-grounded answers.
Results
The approach improves long-horizon dialogue performance on LoCoMo and MedMT across both open-source and closed-source LLM backbones and offers greater interpretability and diagnostic visibility into memory evolution and answer generation.
Contributions
It introduces trajectory-based source-grounded memory representations with immutable snapshots and claim-level operations, and a Memory Wiki layer that structures dialogue history for efficient retrieval and transparent reasoning.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction