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

AgentRefine:通过精炼调优增强智能体泛化能力

AgentRefine: Enhancing Agent Generalization through Refinement Tuning

Beijing University of Posts and Telecommunications(北京邮电大学);Meituan(美团)

Dayuan Fu, Keqing He, Yejie Wang, Wentao Hong, Zhuoma Gongque, Weihao Zeng, Wei Wang, Jingang Wang, Xunliang Cai, Weiran Xu

AI总结:

针对开源LLM智能体泛化能力不足的问题,提出AgentRefine框架,通过合成多样环境与任务,让模型从轨迹观察中学习纠正错误,显著提升泛化与鲁棒性。

摘要:

基于大型语言模型(LLM)的智能体已证明其具备像人类一样执行复杂任务的能力。然而,开源LLM与商业模型(如GPT系列)之间仍存在较大差距。本文聚焦于通过指令调优提升LLM的智能体泛化能力。我们首先观察到,现有的智能体训练语料在已见评估集上表现令人满意,但无法泛化到未见集。这些智能体调优工作面临严重的格式错误,并常常长时间陷入同一错误。我们分析认为,泛化能力差源于对若干人工智能体环境的过拟合,以及缺乏对新情境的适应能力。它们难以处理错误的动作步骤,无法从经验中学习,而只是记忆现有的观察-动作关系。受此启发,我们提出了一种新颖的AgentRefine框架用于智能体调优。其核心思想是使模型能够通过轨迹中的观察来学习纠正自身错误。具体而言,我们提出一个智能体合成框架,涵盖多样化的环境和任务,并提示强LLM根据环境反馈精炼其错误动作。AgentRefine在多样智能体任务上的泛化能力显著优于最先进的智能体调优工作。它还具有更好的鲁棒性以应对扰动,并能在推理中生成多样化的思维。我们的发现建立了智能体泛化与自我精炼之间的关联,并为未来研究提供了新范式。

英文摘要:

Large Language Model (LLM) based agents have proved their ability to perform complex tasks like humans. However, there is still a large gap between open-sourced LLMs and commercial models like the GPT series. In this paper, we focus on improving the agent generalization capabilities of LLMs via instruction tuning. We first observe that the existing agent training corpus exhibits satisfactory results on held-in evaluation sets but fails to generalize to held-out sets. These agent-tuning works face severe formatting errors and are frequently stuck in the same mistake for a long while. We analyze that the poor generalization ability comes from overfitting to several manual agent environments and a lack of adaptation to new situations. They struggle with the wrong action steps and can not learn from the experience but just memorize existing observation-action relations. Inspired by the insight, we propose a novel AgentRefine framework for agent-tuning. The core idea is to enable the model to learn to correct its mistakes via observation in the trajectory. Specifically, we propose an agent synthesis framework to encompass a diverse array of environments and tasks and prompt a strong LLM to refine its error action according to the environment feedback. AgentRefine significantly outperforms state-of-the-art agent-tuning work in terms of generalization ability on diverse agent tasks. It also has better robustness facing perturbation and can generate diversified thought in inference. Our findings establish the correlation between agent generalization and self-refinement and provide a new paradigm for future research.

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

↑