arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.12285cs.AI
收藏

GAM:基于图的代理记忆用于大语言模型代理

GAM: Hierarchical Graph-based Agentic Memory for LLM Agents

Zhejiang University(浙江大学);University of Illinois Chicago(伊利诺伊大学芝加哥分校);Rutgers University(罗格斯大学);MBZUAI(麦吉尔大学人工智能研究所);McGill University(麦吉尔大学)

Zhaofen Wu, Hanrong Zhang, Fulin Lin, Wujiang Xu, Xinran Xu, Yankai Chen, Henry Peng Zou, Shaowen Chen, Weizhi Zhang, Xue Liu, Philip S. Yu, Hongwei Wang

AI总结:

本文提出GAM框架,通过解耦记忆编码与巩固,解决LLM代理在快速上下文感知与稳定知识保留间的矛盾,提升推理准确性和效率。

摘要:

为维持连贯的长期交互,大语言模型(LLM)代理必须在获取新信息与保留先前知识之间取得平衡。当前统一流式记忆系统虽能更新上下文但易受瞬时噪声干扰,而离散结构化记忆架构则在知识保留方面更稳健,但难以适应演变的叙述。为此,我们提出GAM,一种基于图的代理记忆框架,通过显式解耦记忆编码与巩固,有效解决快速上下文感知与稳定知识保留之间的冲突。通过将正在进行的对话隔离在事件进展图中,并在语义变化时将其整合到主题关联网络中,我们的方法在最小化干扰的同时保持长期一致性。此外,我们引入了图引导的多因素检索策略以提高上下文精度。在LoCoMo和LongDialQA上的实验表明,我们的方法在推理准确性和效率方面均优于最先进的基线方法。

英文摘要:

To sustain coherent long-term interactions, Large Language Model (LLM) agents must navigate the tension between acquiring new information and retaining prior knowledge. Current unified stream-based memory systems facilitate context updates but remain vulnerable to interference from transient noise. Conversely, discrete structured memory architectures provide robust knowledge retention but often struggle to adapt to evolving narratives. To address this, we propose GAM, a hierarchical Graph-based Agentic Memory framework that explicitly decouples memory encoding from consolidation to effectively resolve the conflict between rapid context perception and stable knowledge retention. By isolating ongoing dialogue in an event progression graph and integrating it into a topic associative network only upon semantic shifts, our approach minimizes interference while preserving long-term consistency. Additionally, we introduce a graph-guided, multi-factor retrieval strategy to enhance context precision. Experiments on LoCoMo and LongDialQA indicate that our method consistently outperforms state-of-the-art baselines in both reasoning accuracy and efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑