AriadneMem: 为LLM代理梳理终身记忆的迷宫
AriadneMem: Threading the Maze of Lifelong Memory for LLM Agents
AI总结:
AriadneMem通过解耦的两阶段流程提升LLM代理在长期对话中的多跳和平均F1表现,同时减少运行时间。
摘要:
长期 horizon的LLM代理需要一种在固定上下文预算下仍能保持准确性的记忆系统。然而,现有的系统在长期对话中面临两个持续的挑战:(i) 分散证据,其中多跳答案需要链接分布在时间上的事实,(ii) 状态更新,其中变化的信息(例如日程变更)会与旧的静态日志产生冲突。我们提出了AriadneMem,一种结构化的记忆系统,通过一个解耦的两阶段流程来解决这些失败模式。在离线构建阶段,AriadneMem采用熵感知门控来在LLM提取前过滤噪声和低信息的消息,并应用冲突感知粗化来合并静态重复项,同时保留状态转换作为时间边。在在线推理阶段,而不是依赖昂贵的迭代规划,AriadneMem执行算法桥梁发现来重建检索事实之间的缺失逻辑路径,随后进行单次调用拓扑感知合成。在使用GPT-4o的LoCoMo实验中,AriadneMem在强基线基础上将多跳F1提高15.2%,平均F1提高9.0%。关键的是,通过将推理卸载到图层,AriadneMem仅使用497个上下文令牌就将总运行时间减少77.8%。代码可在https://github.com/LLM-VLM-GSL/AriadneMem上获得。
英文摘要:
Long-horizon LLM agents require memory systems that remain accurate under fixed context budgets. However, existing systems struggle with two persistent challenges in long-term dialogue: (i) \textbf{disconnected evidence}, where multi-hop answers require linking facts distributed across time, and (ii) \textbf{state updates}, where evolving information (e.g., schedule changes) creates conflicts with older static logs. We propose AriadneMem, a structured memory system that addresses these failure modes via a decoupled two-phase pipeline. In the \textbf{offline construction phase}, AriadneMem employs \emph{entropy-aware gating} to filter noise and low-information message before LLM extraction and applies \emph{conflict-aware coarsening} to merge static duplicates while preserving state transitions as temporal edges. In the \textbf{online reasoning phase}, rather than relying on expensive iterative planning, AriadneMem executes \emph{algorithmic bridge discovery} to reconstruct missing logical paths between retrieved facts, followed by \emph{single-call topology-aware synthesis}. On LoCoMo experiments with GPT-4o, AriadneMem improves \textbf{Multi-Hop F1 by 15.2\%} and \textbf{Average F1 by 9.0\%} over strong baselines. Crucially, by offloading reasoning to the graph layer, AriadneMem reduces \textbf{total runtime by 77.8\%} using only \textbf{497} context tokens. The code is available at https://github.com/LLM-VLM-GSL/AriadneMem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。