arXiv:2501.01702cs.AIcs.CL2025-01ICLR被引 47

通过自我修正训练提升大模型智能体泛化能力。

AgentRefine: Enhancing Agent Generalization through Refinement Tuning

  • 设计自修正框架,让模型从错误中学习并改进决策。
  • 在多样化任务上显著优于现有方法,泛化性能提升明显。
  • 适合需要灵活应对新环境的智能体研发人员参考。

基于大语言模型的智能体已展现类人复杂任务处理能力,但开源模型与商业模型(如GPT系列)仍存在显著差距。本文聚焦于通过指令微调提升智能体的泛化能力。我们发现现有智能体训练数据集在内部评估集表现良好,却无法泛化到外部测试集,常因格式错误反复犯错。分析表明,其泛化能力差源于对少数人工构建环境的过拟合,缺乏对新情境的适应能力,仅记忆观测-动作关联而无法从中学习。为此,我们提出AgentRefine框架,核心思想是使模型通过轨迹中的环境反馈学会纠正自身错误。具体地,设计智能体合成框架生成多样环境与任务,并利用强模型根据环境反馈优化错误动作。实验显示,AgentRefine在多种智能体任务上的泛化能力显著超越当前最优方法,对扰动更具鲁棒性,且推理时能生成多样化思考过程。研究揭示了智能体泛化与自我修正之间的关联,为未来研究提供了新范式。

原文摘要 · Abstract (English)

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.

智能体自修正泛化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。