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

SelfMem:人工智能代理的自优化内存

SelfMem: Self-Optimizing Memory for AI Agents

PRADA Lab, King Abdullah University of Science and Technology(阿卜杜拉国王科技大学普拉达实验室);NLP2CT Lab, University of Macau(澳门大学NLP2CT实验室)

Shu Yang, Junchao Wu, Derek F. Wong, Di Wang

AI总结:

研究针对当前AI代理内存系统局限,提出SelfMem自优化内存框架,借自我改进AI理念,提供含内存工具与反馈信号的环境让代理自主探索优化内存策略,实验表明其性能优于基线。

摘要:

虽然当前人工智能代理支持越来越长的上下文窗口、工具使用和长期任务的技能执行,但它们仍需要内存系统来有效利用历史经验。现有内存框架通常依赖固定的存储、检索和总结机制,在不同任务中可能很僵化,且常需手动调整。为解决这一限制,我们提出SelfMem,一种自优化内存框架。受先前关于自我改进人工智能的工作启发,我们遵循“授人以鱼不如授人以渔”的原则。SelfMem不是强迫模型遵循预定义的内存策略或格式,而是提供一个带有内存工具和反馈信号的环境,使代理能够探索、评估和完善自己的内存策略。我们的结果表明,在从100K到1M令牌的对话规模上,SelfMem在BEAM上始终优于检索、压缩和代理内存基线。与最强基线相比,SelfMem在100K、500K和1M时分别将官方分数提高了48.7%、40.8%和41.9%。进一步的问题类型分析表明,在各种内存需求下具有广泛的鲁棒性,我们的优化研究表明,模型引导的策略改进进一步提高了性能。

英文摘要:

While current AI agents support increasingly long context windows, tool use, and skill execution for long-horizon tasks, they still require memory systems to effectively leverage historical experience. Existing memory frameworks typically rely on fixed storage, retrieval, and summarization mechanisms, which can be rigid across different tasks and often require manual tuning. To address this limitation, we propose SelfMem, a self-optimizing memory framework. Inspired by prior work on self-improving AI, we follow the principle of "teaching an agent to fish rather than giving it a fish." Instead of forcing the model to follow a predefined memory strategy or format, SelfMem provides an environment with memory tools and feedback signals that allow the agent to explore, evaluate, and refine its own memory strategy. Our results show that SelfMem consistently outperforms retrieval, compression, and agent-memory baselines on BEAM across conversation scales from 100K to 1M tokens. Compared with the strongest baseline, SelfMem improves the official score by 48.7%, 40.8%, and 41.9% at 100K, 500K, and 1M, respectively. Further question-type analysis shows broad robustness across diverse memory demands, and our optimization study shows that model-guided strategy refinement further improves performance.

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

↑