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

FlexA-Mem:面向大语言模型智能体的预算自适应智能体记忆

FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents

Rutgers University(罗格斯大学);Stanford University(斯坦福大学);Pricenton University(普林斯顿大学);Northwestern University(西北大学)

Wujiang Xu, Jiaojiao Han, Xi Zhu, Qizheng Zhang, Kaiqu Liang, Yutong Yin, Kai Mei, Dimitris N. Metaxas

AI总结:

FlexA-Mem是面向LLM智能体的通用预算自适应记忆,通过单存储适配两类场景,在AppWorld等任务上优于现有方法,消融实验验证了时间线与恢复机制的作用。

摘要:

大语言模型(LLM)智能体工作在内存需求差异极大的场景中:关于过往对话的问题需要其命名的精确事实,而多步骤任务则需要已执行步骤的轨迹,以及下一步无法命名的细节。现有记忆各自针对某一类场景设计和测试:检索记忆如A-Mem会遗漏当前查询未表达的步骤,摘要则会丢失精确字符串,而将两者结合需预先固定预算分配。我们提出FlexA-Mem,一种通用记忆,它将每一条历史单元写入不可变存储一次,并在每次调用时生成新的记忆。生成的记忆是紧凑的记录时间线,加上固定规则适配剩余空间的细节,无需LLM调用。该细节要么是相关单元的原始文本或摘录,要么是与查询最匹配的逐字片段。凭借单一存储,FlexA-Mem可服务于两类场景:在4k规模的AppWorld挑战任务上,它比排名第二的方法高出11.5%;在147个预测预先固定的未使用任务上,它比带摘要的A-Mem高出12.2%;在LongMemEval和LoCoMo上,它与不写入任何记忆的专用关键词检索器表现相当,而基于LLM写入文本构建的记忆在紧张预算下表现远差。消融实验显示,时间线承载AppWorld的完成情况,而恢复机制主要在该场景中保存步骤,并决定精确事实的准确性。代码可在https URL获取。

英文摘要:

Large language model (LLM) agents work in scenarios with very different memory needs. A question about past conversations needs the exact facts it names, while a multi-step task needs a trace of the steps already taken together with details that the next step cannot name. Existing memories are each designed and tested for one kind of scenario. Retrieval memories such as A-Mem miss steps that the current query does not express, summaries drop exact strings, and pairing the two fixes the split of the budget in advance. We propose FlexA-Mem, a general memory that writes each unit of history once into an immutable store and renders a fresh memory for every call. The rendered memory is a compact timeline of records plus detail that a fixed rule fits into the remaining room without an LLM call. The detail is either relevant units as raw text or excerpts or the verbatim pieces that best match the query. With one store, FlexA-Mem serves both kinds of scenario. On AppWorld challenge tasks at 4k, it outperforms the second-best method by 11.5%, and on 147 unused tasks with predictions fixed in advance it outperforms A-Mem with a summary by 12.2%. On LongMemEval and LoCoMo, it matches a dedicated keyword retriever that writes no memory, while memories built on text written by an LLM fall far behind at tight budgets. Ablations show that the timeline carries AppWorld completion, whereas recovery mainly saves steps there and decides accuracy on exact facts. Code is available at https://github.com/WujiangXu/Flex-Amem

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

↑