让聊天机器人像人一样记住故事,还能快速回忆。
Amory: Building Coherent Narrative-Driven Agent Memory through Agentic Reasoning

- 离线时用智能推理构建有情节的对话记忆
- 比全量处理快50%,效果接近完整上下文
- 适合需要长期连贯对话的AI系统
长期对话代理面临计算瓶颈:反复处理完整对话历史效率过低。现有方法多将对话切片为孤立嵌入或图结构,通过RAG式检索实现高效记忆。但此类方法对记忆形成关注不足,难以捕捉人类记忆的连贯性与细微之处。我们提出Amory,一种工作记忆框架,在离线阶段通过增强代理推理主动构建结构化记忆。Amory将对话片段组织成情景叙事,以动量机制整合记忆,并将边缘事实语义化为语义记忆。检索时,系统基于叙事连贯性进行推理。在LOCOMO长程推理基准上评估,Amory显著优于此前最先进方法,性能接近全上下文推理,响应时间减少50%。分析表明,动量感知整合显著提升回复质量,而连贯性驱动检索相比嵌入式方法提供更优记忆覆盖。
原文摘要 · Abstract (English)
Long-term conversational agents face a fundamental scalability challenge as interactions extend over time: repeatedly processing entire conversation histories becomes computationally prohibitive. Current approaches attempt to solve this through memory frameworks that predominantly fragment conversations into isolated embeddings or graph representations and retrieve relevant ones in a RAG style. While computationally efficient, these methods often treat memory formation minimally and fail to capture the subtlety and coherence of human memory. We introduce Amory, a working memory framework that actively constructs structured memory representations through enhancing agentic reasoning during offline time. Amory organizes conversational fragments into episodic narratives, consolidates memories with momentum, and semanticizes peripheral facts into semantic memory. At retrieval time, the system employs coherence-driven reasoning over narrative structures. Evaluated on the LOCOMO benchmark for long-term reasoning, Amory achieves considerable improvements over previous state-of-the-art, with performance comparable to full context reasoning while reducing response time by 50%. Analysis shows that momentum-aware consolidation significantly enhances response quality, while coherence-driven retrieval provides superior memory coverage compared to embedding-based approaches.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。