GAAMA:用于智能体的图增强关联记忆
GAAMA: Graph Augmented Associative Memory for Agents
AI总结:
GAAMA通过三步流程构建概念中介知识图,结合余弦相似度和个性化PageRank实现检索,通过GRaft修复知识图,提升多会话任务中的表现。
摘要:
AI智能体需要持久的长期记忆以保持一致的个性化行为。当前方法要么依赖于扁平的检索增强生成(RAG),失去记忆间的结构关系,要么使用以实体为中心的知识图,导致对话数据中的 mega-hub 效应。GAAMA通过三步流程构建概念中介知识图:(1)保存原始事件片段;(2)利用LLM提取原子事实和主题级概念节点;(3)合成高阶反思。生成的图包含四种节点类型(事件、事实、反思、概念)和五种结构边类型,概念节点提供交叉遍历路径,避免实体中心设计的mega-hub问题。检索结合基于余弦相似度的k近邻搜索与边类型感知的个性化PageRank(PPR)通过加法评分函数。我们进一步引入GRaft(通过增强事实与拓扑的图修复),在检索后诊断失败并修复知识图。在LoCoMo-10(1,540个问题,10个多会话对话)上,GAAMA达到79.1%的平均奖励,比调优的RAG基线提升4.2个百分点。在MemoryArena上,GAAMA在三个任务(组旅行、网络购物、渐进搜索)中均优于全上下文基线,优势随对话长度增加而单调增长。值得注意的是,GAAMA在所有类别中表现一致,匹配每个类别中的最佳竞争方法,而每个竞争者至少在一类中退化。
英文摘要:
AI agents that talk with users across many sessions need long-term memory to stay coherent and personalized. Existing approaches use either flat retrieval-augmented generation (RAG) that ignores how memories connect, or entity-centric knowledge graphs. Entity-centric graphs split each message into separate triples, which loses its context, and in conversations the speakers become hubs linked to almost every message, so propagation through them tells retrieval little. We present GAAMA, a graph-augmented associative memory that organizes conversations around topics. It keeps verbatim episodes, uses an LLM to distill them into atomic facts and topic concepts, and then synthesizes higher-order reflections. These four node types are linked by five kinds of structural edges, and topic concepts supply the cross-cutting paths, so mega-hubs do not form. Retrieval blends nearest-neighbor similarity search with Personalized PageRank whose transitions depend on edge type. We also introduce GRAFT (Graph Repair by Augmenting Facts & Topology), an offline repair step: for questions whose retrieved evidence fell short, a bounded ReAct agent searches memory again and records the grounded answer as a fresh fact, so later questions find it directly without extra query-time cost. On LoCoMo10, GAAMA achieves the highest average score of all compared methods (79.1%) and is competitive in every question category; GRAFT adds a small further gain. In a controlled comparison, replacing GAAMA's concept-linked facts with entity relation triples lowers reward by 3.0 pp. On MemoryArena, scored on what memory alone determines, GAAMA has the best score on average.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。