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

AdaMem: 学习为个性化长时程LLM代理记住什么

AdaMem: Learning What to Remember with Adaptive Memory Policies for Personalized Agents

Shanghai Jiao Tong University(上海交通大学);Tencent(腾讯)

Xingyu Chen, Rui Wang, Zhaopeng Tu, Liefeng Bo

AI总结:

针对长时程LLM代理中记忆膨胀导致QA准确率下降的问题,提出AdaMem方法,通过角色特定的记忆策略和基于反馈的轻量级自反思步骤,学习为每个用户记住重要信息,在减少9%记忆量的同时提升QA准确率最高9%。

摘要:

大型语言模型(LLM)代理的长期记忆系统通常试图“记住一切”,统一提取记忆以保留尽可能多的事实。然而,在生产中,推理成本和有限的上下文预算使得这一点难以维持:除了将原始对话整合到记忆中,代理还必须施加“写入控制”,高效地只保留每个用户真正关心的信息。否则,长时程个性化交互会遭受“记忆膨胀”,无关的琐碎信息挤占有用信息,并逐渐侵蚀问答(QA)准确率。我们认为,值得记住的内容是角色依赖的,并提出\textbf{AdaMem}(自适应记忆),一种从反馈中学习为每个用户记住什么的方法。AdaMem维护一个结构化的、角色特定的记忆策略,并通过轻量级的、带有失败回滚的补丁式自反思步骤,从每周的QA反馈中优化该策略。为了研究这一设置,我们构建了\textbf{AdaMem-Bench},一个模拟数周交互并逐周进行QA的基准测试。在两种提取模型和两种反馈模式下,与统一的Mem0基线相比,AdaMem将QA准确率提高了高达\textbf{+9.0\%},同时将记忆量减少了\textbf{9\%}。

英文摘要:

Long-term memory systems allow LLM agents to preserve information beyond a single context window, but most systems focus on storing and retrieving facts after extraction, leaving the write decision under-specified. What deserves memory can depend on the user's current task, topic, activity, or interaction partner, while uniform extraction applies one notion of importance across these different situations. We formulate this challenge as preference-conditioned write control and introduce AdaMem, which uses adaptive natural-language Memory Policies to personalize what an agent writes to memory. Each policy represents the user's memory preference for a particular interaction context, is updated from periodic feedback, and controls subsequent memory writing. We evaluate this loop in AdaMem-Bench, which assigns different memory preferences to six concurrent interaction personas across five ten-week stories. Across two extraction models and two feedback modes, AdaMem improves average QA accuracy over Mem0 from 80.0\% to 84.35\% while reducing persistent memory by 9.27\%. Our analyses show that explicit feedback helps models learn better memory policies, but current models still struggle to translate those policies into reliably selective writing behavior. AdaMem thus demonstrates the promise of adaptive write control while exposing policy execution as a central limitation of current memory agents. Our code is publicly available: https://github.com/galaxyChen/AdaMem

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

↑