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

训练语言代理以从经验中学习

Training Language Agents to Learn from Experience

University of Cambridge(剑桥大学)

Yuval Shalev, Zifeng Ding, Mateja Jamnik

AI总结:

本文提出了一种名为In-context Training(ICT)的任务框架,用于评估语言代理在跨任务中的自我改进能力,并通过基于强化学习的训练管道直接从经验中学习反思,从而在多个基准任务中优于基线模型,展示了从经验中学习的能力本身可以被学习。

摘要:

语言代理可以在交互环境中通过经验进行适应,但当前基于反思的方法只能在单个任务实例内进行自我纠正。是否可以将这种经验提炼成可重用的教训,从而在未来的未见任务上提高性能仍不明确。我们通过引入In-context Training(ICT)任务来解决这个问题,这是一种用于评估语言代理跨任务自我改进能力的框架。在ICT中,一个反思模型观察由行为模型收集的轨迹,并生成旨在提高行为模型在未见任务上的性能的系统提示。然后,我们提出了一种基于强化学习的训练管道,用于直接从经验中学习此类反思,而无需人工提供的示例。在ALFWorld和MiniHack上,我们训练的反思器在大多数保留的任务家族上优于未训练的基线,表明从经验中学习的能力本身可以被学习。在某些情况下,我们观察到在训练反射器的基准之外的泛化能力,能够显著不同的环境。最后,我们介绍了MetaGym,一个通用的Python库,用于构建元环境,从而促进未来对自我改进语言代理的研究。

英文摘要:

Language agents can adapt from experience in interactive environments, but current reflection-based methods can only self-correct within a single task instance. Whether such experience can be distilled into reusable lessons that improve performance on future unseen tasks remains unclear. We address this problem by introducing the In-context Training (ICT) task, a framework for evaluating cross-task self-improvement in language agents. In ICT, a reflector model observes trajectories collected by an actor model and generates system prompts intended to improve the actor's performance on future unseen tasks. We then propose an RL-based training pipeline for learning such reflections directly from experience, without human-provided examples. Across ALFWorld and MiniHack, our trained reflectors outperform an untrained baseline on most held-out task families, showing that the ability to learn from experience can itself be learned. In some cases, we observe generalisation beyond the benchmark on which the reflector was trained, to substantially different environments. Finally, we introduce MetaGym, a generic Python library for constructing meta-environments, enabling future research on self-improving language agents.

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

↑