When an LLM agent fails a complex, multi-step task, how do we fix it? A common approach is to look back at the failed trajectory, identify a "wrong" step, and propose a better action. But here’s the catch: to decide which repair is "best," researchers often use a substitute—like a stronger model (a "judge"), an environment oracle, or a deterministic "greedy" replay of the agent.
This paper identifies a critical flaw in this workflow: evaluator-executor mismatch. A repair that looks perfect to a GPT-4 judge might be useless to the Llama-3 agent actually running the task.
TL;DR
Repairing failed LLM agents requires selecting the best "fix" from candidate actions, but using a substitute model to evaluate these fixes often leads to poor choices. The authors show that a stronger model is frequently a worse judge of what a weaker agent needs, and they recommend verifying repairs using a few rollouts of the actual deployed executor instead.
What Problem Does This Paper Address?
LLM agents often fail in environments like ALFWorld (household tasks) or WebShop (online shopping). To improve them, we need to know which counterfactual changes would have turned a failure into a success. However, the "value" of a repair is policy-dependent.
If you use a "stronger" model to label which step was the error, you are implicitly assuming that the repair which helps the strong model will also help the deployed (often smaller/weaker) model. This paper asks: Does the evaluator pick repairs that actually help the agent that will execute them? If not, how much performance are we leaving on the table?
Methods
The authors developed a measurement protocol to quantify "decision regret"—the deployment value lost when an evaluator picks a repair other than the one the deployed agent would benefit from most.
- Fixed Candidates: They held failed trajectories and a set of candidate single-step repairs fixed.
- Ground Truth: They labeled every candidate by running multiple independent rollouts of the deployed policy to see which repair actually led to success most often.
- Evaluator Comparison: They compared these ground-truth choices against choices made by various substitutes:
- Greedy Replay: Running the deployed model with temperature 0.
- Stronger Models: Using Qwen2.5-14B to pick repairs for Qwen2.5-7B.
- Oracles/Planners: Using environment state information.
- LLM Judges: Having a model read the logs and "reason" about the best fix.
Datasets
The study utilized three text-based interactive environments:
- ALFWorld: A partially observed household simulator.
- WebShop: A simulated e-commerce site with 100,000 products.
- Gridworld: A custom 5x5 environment designed for precise solvability checks.
The primary agents repaired were Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct.
Key Insights and Ideas
- Stronger is not always better: Counter-intuitively, a more capable model (like a 14B model evaluating a 7B model) can be a poor judge. Because the stronger model is more likely to succeed from any reasonable state, it may be indifferent between repairs that are "make-or-break" for a weaker agent.
- Preference Reversals: The authors found cases where two models preferred completely opposite repairs. Figure 3b shows that even with fresh rollouts, the 7B and 14B models consistently disagree on which action is superior for the 7B agent's success.
- The "Greedy" Trap: Many researchers use deterministic (greedy) replay for reproducibility. However, greedy replay loses significant value (0.06–0.13) because it doesn't account for the stochastic nature of how agents actually behave in deployment.
- Verification is Cheap: You don't need a massive budget to fix this. The authors found that just two rollouts of the actual deployed agent were more effective at selecting repairs than twenty rollouts of a stronger substitute model.
Key Results
- Success Probability Loss: In ALFWorld, selecting repairs for a 7B agent using a 14B model's rollouts resulted in a 0.25 loss in success probability compared to using the 7B agent's own rollouts.
- Benchmark Distortion: The choice of evaluator changes the "ground truth" labels for failure attribution. In ALFWorld, the 14B model's "best repair" location agreed with the 7B model's only 32% of the time.
- Substitute Inefficiency: As shown in Figure 3a, increasing the number of rollouts for a substitute model (like the 14B model) helps only slowly; it never reaches the performance of even a single rollout from the correct deployed executor.
Limitations and Future Work
- Model Scale: The study focused on 7B and 8B parameter models as the "deployed" agents. It remains to be seen if these effects scale or diminish with frontier-class models (e.g., 70B+ or GPT-4o).
- Single-Step Repairs: The analysis was restricted to single-step interventions. Multi-step repairs might introduce even more complex evaluator-executor dynamics.
- Environment Scope: The tests were limited to text-based environments. Future work could explore if visual or multimodal agents suffer from similar mismatch issues.
- Recommendation: The authors strongly suggest that future repair benchmarks should explicitly state which executor defines their labels and that researchers should prioritize "matched selection" (verifying with the actual agent) over substitute judges.
Summary updated