给大模型代理记忆加版本控制,支持自然语言回滚。
ChronoMem: Version Control and Semantic Rollback for Large Language Model Agent Memory

- 通过快照和语义检索实现记忆的版本管理与回滚。
- 在多轮对话任务中,回滚后问答准确率显著提升。
- 首个开源的端到端记忆回滚系统,适合研究记忆鲁棒性者。
LLM代理依赖长期记忆实现多会话交互与个性化,但现有记忆系统仅支持单向演进,无法查看、版本化或回滚历史状态,导致在纠错、概念漂移和记忆污染下表现脆弱,尤其在已接触后续信息后。我们提出ChronoMem,一个集成于Google开源代理开发套件中的语义版本控制层。ChronoMem在每次记忆写入时生成完整快照,维护结构化版本历史,并通过混合词法与语义检索、排序融合与重排序,将自然语言回滚请求映射到具体历史版本。我们进一步设计了事后评估协议,测试代理在回滚后能否反事实地行为——即回答问题并总结历史,仿佛未来更新从未发生。在增强演化记忆状态与回滚任务的长程对话基准上,ChronoMem相比仅靠提示词和仅靠检索的基线,在回滚一致性问答与历史摘要方面均有显著提升,且在语义版本选择上表现优异。据我们所知,ChronoMem是首个开源的系统性语义全局记忆回滚框架。
原文摘要 · Abstract (English)
LLM agents increasingly rely on long-term memory to support multi-session interaction and personalization. However, existing agent memory systems are designed around forward-only evolution, continuously accumulating, consolidating, and overwriting knowledge, with no principled mechanism to inspect, version, or revert prior states. This makes agents brittle under corrections, concept drift, and memory corruption, particularly after they have already been exposed to subsequent information. We present ChronoMem, a semantic version-control layer for agentic memory integrated into the production-ready, open-source Agent Development Kit by Google. ChronoMem commits whole-memory snapshots at each memory write, maintains structured version histories, and supports natural-language rollback requests by mapping undo intents to concrete historical versions through hybrid lexical and semantic retrieval, rank fusion, and reranking. We further introduce a post-exposure evaluation protocol that tests whether an agent can behave counterfactually after rollback by answering queries and summarizing history as if future updates had never occurred. On long-horizon conversational benchmarks augmented with evolving memory states and rollback tasks, ChronoMem substantially improves rollback-consistent question answering and history summarization relative to prompt-only and retrieval-only baselines, while achieving strong performance in semantic version selection. To our knowledge, ChronoMem is the first open-source system and benchmark for systematic semantic global memory rollback in LLM agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。