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

通过双向记忆-技能学习实现终身上下文适应

Lifelong Context Adaptation through Bidirectional Memory-Skill Learning

Oregon State University(俄勒冈州立大学)

Tianyi Xu, Huazheng Wang

AI总结:

提出MemCryst框架,通过冻结语言模型双向学习记忆与技能实现终身上下文适应,在10类任务的7项比较中领先,ALFWorld任务成功率达63.17%。

摘要:

终身大语言模型(LLM)智能体必须在有限的上下文窗口内做出每个决策的同时,从不断扩展的交互历史中学习。记忆可让过往经验可用,但智能体仍可能需要从检索到的记录中推断如何解决每个新任务;技能提供可复用的流程,但可能会省略应用这些技能所需的任务特定事实。由于检索到的记忆和技能会塑造智能体的行为,它们也会影响未来学习可用的经验。我们提出MemCryst,这是一个通过冻结语言模型进行记忆与技能双向学习来实现终身上下文适应的框架:存储在记忆中的重复事件支持技能的创建与修订,而由这些技能引导的交互则为后续学习提供新的记忆;从记忆中检索的事实与学习到的技能共同构成智能体的上下文,同时任务结果会调整实际提供的记录对未来检索的影响,且不重写这些记录的内容。在涵盖具身控制、长文档阅读、对话、数学和代码的10个设置中,MemCryst在7项报告的比较中表现领先;在ALFWorld任务中,联合提供记忆与技能的成功率达63.17%,而仅提供记忆的成功率为59.83%,仅提供技能的成功率为50.50%。代码可在该https URL获取。

英文摘要:

Lifelong LLM agents must learn from an expanding history of interactions while making each decision within a bounded context window. Memory makes past experience available, but the agent may still need to infer how to solve each new task from the retrieved records. Skills provide reusable procedures, yet may omit the task-specific facts needed to apply them. Because retrieved memory and skills shape the agent's behavior, they also influence the experience available for future learning. We introduce MemCryst, a framework for lifelong context adaptation through bidirectional learning of memory and skills with a frozen language model. Recurring episodes stored in memory support skill creation and revision, and the interactions guided by those skills supply new memory for subsequent learning. Facts retrieved from memory and learned skills jointly form the agent's context, while task outcomes adjust the future retrieval influence of the records actually served without rewriting their content. Across ten settings spanning embodied control, long-document reading, conversation, mathematics, and code, MemCryst leads seven reported comparisons. On ALFWorld, joint serving achieves 63.17% success, compared with 59.83% for memory-only and 50.50% for skill-only serving. Code is available at https://github.com/tianyi0216/Memcryst.git

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

↑