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

探索专家失败提升LLM智能体调优

Exploring Expert Failures Improves LLM Agent Tuning

UCLA(加利福尼亚大学洛杉矶分校);Pennsylvania State University(宾夕法尼亚州立大学);University of Maryland(马里兰大学)

Li-Cheng Lan, Andrew Bai, Minhao Cheng, Cho-Jui Hsieh, Tianyi Zhou

AI总结:

针对LLM智能体调优中复杂子任务持续分布外的问题,提出探索专家失败(EEF)方法,从失败轨迹中提取有益动作并排除有害动作,显著提升调优性能,在WebShop和SciWorld上创下新最先进水平。

摘要:

大型语言模型(LLMs)作为智能体展现出巨大潜力,在需要多轮推理和交互的任务中表现出色。拒绝采样微调(RFT)已成为微调LLM作为智能体的有效方法:它首先模仿专家生成的成功轨迹,并通过对成功的自生成轨迹进行迭代微调来进一步提升智能体技能。然而,由于专家(如GPT-4)主要在较简单的子任务上成功,且RFT天然偏向于简单场景,许多复杂的子任务仍未解决并持续处于分布外(OOD)。在调查这些具有挑战性的子任务时,我们发现先前失败的专家轨迹通常能提供有价值的指导,例如计划和关键动作,这些可以显著提高智能体的探索效率和关键技能的获取。受这些观察的启发,我们提出了探索专家失败(EEF)方法,该方法从失败的专家轨迹中识别有益动作,并将其整合到训练数据集中。潜在有害的动作被精心排除,以防止污染模型学习过程。通过利用专家失败中的有益动作,EEF成功解决了一些先前无法解决的子任务,并提升了智能体调优性能。值得注意的是,我们的方法在WebShop中达到了62%的胜率,优于RFT(53.6%)和GPT-4(35.6%),并且据我们所知,作为首个在WebShop中超过0.81分和SciWorld中超过81分的方法,创造了新的最先进水平。

英文摘要:

Large Language Models (LLMs) have shown tremendous potential as agents, excelling at tasks that require multiple rounds of reasoning and interactions. Rejection Sampling Fine-Tuning (RFT) has emerged as an effective method for finetuning LLMs as agents: it first imitates expert-generated successful trajectories and further improves agentic skills through iterative fine-tuning on successful, self-generated trajectories. However, since the expert (e.g., GPT-4) succeeds primarily on simpler subtasks and RFT inherently favors simpler scenarios, many complex subtasks remain unsolved and persistently out-of-distribution (OOD). Upon investigating these challenging subtasks, we discovered that previously failed expert trajectories can often provide valuable guidance, e.g., plans and key actions, that can significantly improve agent exploration efficiency and acquisition of critical skills. Motivated by these observations, we propose Exploring Expert Failures (EEF), which identifies beneficial actions from failed expert trajectories and integrates them into the training dataset. Potentially harmful actions are meticulously excluded to prevent contamination of the model learning process. By leveraging the beneficial actions in expert failures, EEF successfully solves some previously unsolvable subtasks and improves agent tuning performance. Remarkably, our approach achieved a 62\% win rate in WebShop, outperforming RFT (53. 6\%) and GPT-4 (35. 6\%), and to the best of our knowledge, setting a new state-of-the-art as the first method to surpass a score of 0.81 in WebShop and exceed 81 in SciWorld.

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

↑