2025-04-18 · 进阶 · 机器学习 · 自然语言处理

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:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源