# DiagEval: Trajectory-Conditioned Diagnosis for Reliable Software Evaluation with GUI Agents

*Sirui Hong, Liuzhijie, Tengfei Li, Wei Tao, Yifan Wu, Chenglin Wu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151898) · [OpenReview](https://openreview.net/forum?id=X7W0twHPBw) · [alphaXiv](https://www.alphaxiv.org/abs/2605.17439) · [Open on the map](../papers.html#p151898)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Verifier-Backed Evaluation of Agentic Reasoning](../pgroup/369.md) · Type: new method · Keywords: trajectory-conditioned diagnosis, GUI-agent evaluation, failure attribution, interactive software testing, LLM evaluation

Areas: [AI Agents](../areas/agents.md) › Agent Robustness › Agent Failure Attribution; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Coding Agent Benchmarks; [Evaluation Methodology & Auditing](../areas/eval-methodology.md) › Agent and Reward Auditing › Agent Trajectory Evaluation

## Summary
DiagEval introduces a trajectory-conditioned diagnostic evaluation protocol that reuses failed execution trajectories to select targeted probes and attribute failures, distinguishing evaluator errors from genuine software defects.

## Explained to a 5-year-old
When a program that talks to a computer makes a mistake, we don’t know if it’s because the program is wrong or because the tester made a mistake. The new idea watches what happened when it went wrong and asks a few extra questions to see which side is at fault. It uses the path it already took to pick new tests that might show the problem. By looking at the answers, it decides if the bug is in the program or in the tester. This helps us get more reliable results when checking programs.

## Explained to a 5-year-old, longer
People create computer programs that can click buttons and type on a screen, and they want to make sure these programs work correctly. When a test fails, it is unclear whether the failure comes from the program itself or from the testing tool making a mistake. The new method looks at the exact steps the test took before it failed and uses that information to ask a few extra, focused questions. These extra questions are chosen to reveal whether the problem is in the program or in the testing process. By gathering the answers to these questions, the method builds a clear signal that tells which side is responsible. This way, the testing becomes smarter and less likely to blame the program for errors it did not cause. The approach also avoids trying to rebuild the whole hidden graph of possible screen states, which saves time and effort. In practice, this leads to more accurate evaluations and helps developers trust the test results more. It also reduces the need for many repeated attempts, making testing faster and cheaper. Overall, the method makes checking interactive software more reliable and efficient.

## For a technical reader
The paper addresses the ambiguity in GUI-agent evaluation by conditioning diagnostics on the observed execution trajectory. Instead of discarding a failed run, the approach extracts diagnostic probes from that trajectory, executes them, and aggregates outcomes to produce an attribution signal. This avoids graph reconstruction and posterior calibration, focusing on practical failure attribution. Empirical results on two benchmarks show substantial recovery of false-negative cases and overall accuracy improvements, demonstrating the value of active diagnosis in reliable evaluation.

## Problem
Evaluating interactive software generated by large language models is challenging because correctness depends on graph-level reachability over hidden UI states, yet evaluators only observe a single execution path, making it hard to tell whether a failure originates from the evaluator or the software itself.

## Method
The approach reuses a failed trajectory to choose targeted diagnostic probes, runs them, and aggregates their outcomes into an attribution signal that distinguishes evaluator errors from software defects, without reconstructing the underlying UI state graph.

## Results
The approach recovers 45.6-62.1% of false-negative failures, improving overall accuracy from 69.9% to 78.3% on WebDevJudge-Unit and from 65.0% to 81.6% on RealDevBench, outperforming simple retry baselines.

## Contributions
A trajectory-conditioned diagnostic protocol that leverages failed trajectories for targeted probing and attribution, and an empirical evaluation demonstrating significant failure recovery and accuracy gains on two evaluation suites.

## Practical relevance
Enables more reliable evaluation of LLM-generated interactive software by clearly separating evaluator errors from genuine defects, increasing confidence in automated testing.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151898)
