Exploring Expert Failures Improves LLM Agent Tuning
本文提出了一种名为“探索专家失败”(EEF)的新方法,通过利用失败专家轨迹中的有益行动来提高LLM智能体的调优性能。
更新于 2025-04-23。作者:Li-Cheng Lan、Andrew Bai、Minhao Cheng、Ruochen Wang、Cho-Jui Hsieh、Tianyi Zhou。
中文摘要
大型语言模型(LLMs)作为智能体展现出巨大的潜力,擅长处理需要多轮推理和交互的任务。拒绝采样微调(RFT)已成为微调LLMs作为智能体的有效方法:它首先模仿专家生成的成功轨迹,然后通过在成功、自行生成的轨迹上进行迭代微调来进一步提高智能体的技能。然而,由于专家(例如,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.
解读
一句话总结
本文提出了一种名为“探索专家失败”(EEF)的新方法,通过利用失败专家轨迹中的有益行动来提高LLM智能体的调优性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:拒绝采样微调(RFT)方法在复杂子任务中效果不佳,导致许多复杂子任务无法解决。
- 现有方案不足:RFT方法倾向于简单场景,难以覆盖复杂任务,且未能充分利用失败专家轨迹中的有用信息。
- 研究目标:提出EEF方法,从失败专家轨迹中识别有益行动,并将其集成到训练数据集中,以提高LLM智能体的调优性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出EEF方法,通过模拟专家状态并分析模拟结果来识别有益行动。
- 方法改进:改进了RFT方法,使其能够利用失败专家轨迹中的有用信息。
- 优势:EEF方法能够解决之前无法解决的子任务,并提高智能体的调优性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在WebShop和SciWorld两个复杂环境中进行实验。
- 性能提升:EEF方法在WebShop中达到了62%的胜率,优于RFT(53.6%)和GPT-4(35.6%),在SciWorld中超过了81分。
- 对比结果:EEF方法在WebShop和SciWorld中均优于基线方法。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于需要复杂推理和交互的任务,如电子商务、科学世界模拟等。
- 实施建议:在实际部署中,可以使用EEF方法来提高LLM智能体的性能。
- 局限与展望:EEF方法在处理复杂任务时表现出色,但仍有改进空间,例如提高有益行动识别的准确性。未来研究方向包括改进算法以更好地利用专家轨迹,以及结合不同专家数据集以进一步提高性能。