Exploring Expert Failures Improves LLM Agent Tuning

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

In the development of Large Language Model (LLM) agents, the prevailing paradigm has been simple: "Imitate the winners." Standard techniques like Rejection Sampling Fine-Tuning (RFT) focus on collecting successful trajectories from high-performing experts, such as GPT-4, and training smaller student models to mimic those successes. However, this approach ignores a critical reality: on complex tasks, even the best experts fail frequently.

In the paper "Exploring Expert Failures Improves LLM Agent Tuning," researchers from UCLA, Penn State, and UMD argue that these failures are not waste, but a goldmine of training data. By surgically extracting "beneficial actions" from failed expert attempts, they have established new state-of-the-art benchmarks for autonomous agents.

The Problem: Simplicity Bias and OOD Tasks

Traditional agent tuning often suffers from simplicity bias. Because RFT only trains on successes, student models never see the difficult tasks that the expert failed to solve. If an expert fails on a significant portion of a dataset, those specific scenarios remain "out-of-distribution" (OOD) for the student.

Crucially, a "failed" trajectory is rarely entirely incorrect. An expert might perform 90% of a complex task perfectly—demonstrating advanced reasoning or navigation—only to make one fatal error at the end. Current methods either discard these trajectories or treat the entire sequence as negative data. The proposed Exploring Expert Failures (EEF) method aims to rescue the "good" parts of "bad" trajectories to teach agents how to handle difficult scenarios and, more importantly, how to recover from mistakes.

Methods: The EEF Framework

The core innovation of EEF is its surgical approach to data selection. Rather than adopting a whole trajectory, it identifies specific beneficial actions that lead to success from previously failed states.

The EEF framework: Agents are initialized at intermediate states of failed expert trajectories to find successful recovery paths.
  1. Behavior Cloning: The agent begins with standard supervised fine-tuning on successful expert data.
  2. Exploration & Simulation: Instead of starting tasks from scratch, the agent is "teleported" into intermediate states ($s_i$) of the expert's failed trajectories.
  3. Important State Selection: The framework looks for "recovery points." If the agent succeeds when starting from state $s_{i-1}$ but fails when starting from state $s_i$, it implies the expert's action at $s_i$ was the harmful one.
  4. Selective Fine-Tuning: Once a successful path is found from a previously failed expert state, the agent is trained only on the actions following that state. This prevents the model from learning the suboptimal actions that led to the initial failure.

This pinpointing allows the model to learn critical recovery skills—such as using a "Back" button after a wrong click—that are rarely demonstrated in perfect, "happy-path" trajectories.

Experimental Results

The researchers evaluated EEF on two notoriously difficult benchmarks: WebShop (an e-commerce simulation with 1.18 million products) and SciWorld (a complex science lab simulation).

Performance comparison across WebShop and ScienceWorld benchmarks. EEF significantly outperforms standard SFT and RFT baselines.

The results represent a significant leap over previous baselines:

  • WebShop: EEF achieved a 62.0% win rate, significantly outperforming the GPT-4 expert (35.6%) and the previous RFT state-of-the-art (53.6%). It is the first method to surpass a reward score of 0.80 on this benchmark.
  • SciWorld: The model achieved a score of 81.3 (68.5% win rate), while standard RFT hovered around 61.5%.
  • Cross-Expert Learning: Interestingly, adding data from a "weaker" expert like GPT-3.5 Turbo actually improved performance. Because EEF filters for pinpointed beneficial actions, the diversity of the weaker expert's exploration outweighed its higher failure rate.

Conclusion and Future Work

EEF demonstrates that failure is a powerful teacher. By focusing on recovery actions, agents become more robust in environments where mistakes are inevitable. While the current method uses fixed intervals to check expert states, future iterations could employ more granular search techniques like Monte Carlo Tree Search (MCTS) to identify harmful actions even more precisely. Combining EEF with preference learning (like DPO) also offers a promising path for future research, using the expert's error as a negative example against the agent's successful recovery.

Summary updated

BibTeX
@misc{lan2025exploring,
  author = {Li-Cheng Lan and Andrew Bai and Minhao Cheng and Cho-Jui Hsieh and Tianyi Zhou},
  title = {{Exploring Expert Failures Improves LLM Agent Tuning}},
  year = {2025},
  eprint = {2504.13145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.13145},
}
Figure