arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01224cs.AIcs.CLcs.MA
收藏

AutoMem:自动化学习记忆作为认知技能

AutoMem: Automated Learning of Memory as a Cognitive Skill

Stanford University(斯坦福大学)

Shengguang Wu, Hao Zhu, Yuhui Zhang, Xiaohan Wang, Serena Yeung-Levy

AI总结:

提出AutoMem框架,通过双循环自动优化LLM的记忆管理结构和使用能力,在长时域任务中提升性能约2-4倍。

摘要:

记忆专长是一种习得的技能:知道编码什么、何时检索以及如何组织知识——在认知科学中称为元记忆。我们将这一视角引入LLM,将记忆管理视为一种可训练的技能。我们将文件系统操作提升为与任务操作同等重要的第一类记忆动作,让模型自己决定如何管理其记忆。这种记忆技能沿着两个轴改进:支持它的结构(提示、文件模式、动作词汇)以及使用它的模型的熟练度。这两个轴都难以手动优化:长时域任务中的情节运行数千步,单个记忆错误可能在显现之前隐藏很长时间,使得人工审查完整轨迹不切实际。我们引入了AutoMem,一个自动化这两个轴的框架。在第一个循环中,一个强大的LLM审查完整的智能体轨迹,并迭代修改塑造智能体与其记忆文件交互方式的记忆结构。在第二个循环中,从多个情节中识别出智能体自身的良好记忆决策,并用作训练信号,直接提高模型的记忆熟练度。在三个程序生成的长时域游戏(Crafter、MiniHack和NetHack)中,仅优化记忆——而不修改模型的任务动作行为——将基础智能体的性能提升了约2-4倍,使一个32B开源模型与前沿系统如Claude Opus 4.5和Gemini 3.1 Pro Thinking竞争。我们的结果表明,记忆管理是一个独立可学习的技能,并且是一个在长时域任务上产生巨大收益的高杠杆目标。

英文摘要:

Memory expertise is a learned skill: knowing what to encode, when to retrieve, and how to organize knowledge--a capacity known in cognitive science as metamemory. We bring this perspective to LLMs by treating memory management as a trainable skill. We promote file-system operations to first-class memory actions alongside task actions, letting the model itself decide how to manage its memory. This memory skill improves along two axes: the structure that supports it (prompts, file schemas, action vocabulary), and the proficiency of the model exercising it. Both axes resist manual optimization: episodes in long-horizon tasks run for thousands of steps, and a single memory mistake can hide long before it surfaces, making human review of full trajectories impractical. We introduce AutoMem, a framework that automates both axes. In the first loop, a strong LLM reviews complete agent trajectories and iteratively revises the memory structure that shapes how the agent interacts with its memory files. In the second loop, the agent's own good memory decisions are identified from many episodes and used as training signal to sharpen the model's memory proficiency directly. Across three procedurally generated long-horizon games (Crafter, MiniHack, and NetHack), optimizing memory alone--without modifying the model's task-action behavior--improved the base agent's performance ~2x-4x, bringing a 32B open-weight model competitive with frontier systems such as Claude Opus 4.5 and Gemini 3.1 Pro Thinking. Our results show that memory management is an independently learnable skill, and a high-leverage objective yielding large gains on long-horizon tasks.

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

↑