WebGraphEval: Multi-Turn Trajectory Evaluation for Web Agents using Graph Representation

Yaoyao Qian, Yuanli Wang, Jinda Zhang, Yun Zong, Meixu Chen, Hanhan Zhou, Jindan Huang, Yifan Zeng, Xinyu Hu, Chan Hee Song, Danqing Zhang

TL;DR

Evaluating web agents usually boils down to a binary pass/fail or checking whether the agent copied a single "gold" reference path. WebGraphEval changes this paradigm by merging multi-turn trajectories from diverse agents into a unified, weighted action graph. This graph-centric view exposes alternate valid solutions, quantifies step inefficiency, and pinpoints critical decision bottlenecks across different models.

What Problem Does This Paper Address?

In web navigation benchmarks like WebArena and Mind2Web, agents interact with complex, interactive interfaces across multi-turn trajectories. However, standard evaluation protocols suffer from two major flaws:

  1. Outcome-only metrics (binary success or LLM-as-a-judge final checks) ignore how an agent reached a goal—failing to penalize redundant loops, messy detours, or near-misses.
  2. Trajectory conformity metrics compare an agent against a single reference trajectory. This penalizes valid alternative paths, breaks whenever website UI updates, and assumes a single "correct" solution exists.

Evaluating individual trajectories in isolation discards the collective wisdom embedded in hundreds of runs. WebGraphEval addresses this gap by aggregating multiple trajectories across different agents into a shared graphical topology.

Methods

Raw Trajectories ──> LLM Canonicalization ──> Node Merging (Union-Find) ──> Dual Reward Analysis
 (Actions + URLs)    (Standardized Actions)     (Edit Distance θ = 0.9)     (RL Backprop + Edge Stats)
  1. Trajectory Canonicalization & Necessity Tagging: Raw agent actions described in varied natural languages (e.g., "click on 'Submit'" vs. "press Submit") are converted by an LLM into a standardized schema like click(text='Submit', element='button'). The LLM also tags each action with a boolean necessity label $\nu(a_i) \in \{0, 1\}$ (validated at 78% human agreement).

  2. Consensus Graph Construction: Actions are merged into graph nodes using normalized Levenshtein edit distance with a threshold of $\theta = 0.9$. Merging uses a deterministic union–find process across both time-locked steps and arbitrary steps. Directed edges record transition frequencies under successful vs. failed trajectories.

  3. Dual Reward & Topological Analysis:

  4. Temporal Reward Backpropagation: Inspired by RL, terminal outcomes ($+1$ for success, $-1$ for failure) are propagated backward across nodes using a discount factor ($\gamma = 0.9$) to credit or blame early steps.
  5. Success-Weighted Edge Classification: Transitions are categorized into structural archetypes:
  6. Trap Edges: High-frequency transitions that almost always end in failure.
  7. Critical Edges: Infrequent transitions that consistently yield success (expert-like paths).
  8. Bottleneck Edges: High-frequency steps with mixed outcomes (e.g., fragile form submissions).

Datasets

The authors evaluated six distinct agent frameworks on WebArena:

  • Dataset Scale: 4,768 trajectories spanning 812 unique tasks.
  • Resulting Graph: 40,431 nodes and 45,656 edges (averaging 49.79 nodes and 56.23 edges per task).
  • Agent Frameworks: Zeta Labs Jace.AI, IBM CUGA, Learn by Interact, UI-TARS, OpenAI-CUA, and BrowserUse.

Key Insights and Ideas

  • Efficiency Does Not Guarantee Effectiveness: UI-TARS had the highest action necessity rate (82.0%), meaning it took very few extraneous actions. Yet, it solved only 38.7% of tasks. In contrast, IBM CUGA achieved 59.0% success with an 80.6% necessity rate. Minimizing fluff is useless if the agent errs at critical branching points.
  • The "Simple Task" Inflation Paradox: Agents suffered the highest step inflation ($3.18\times$ longer than the shortest path) on simple tasks, wandering aimlessly on problems with trivial solutions. On complex tasks, inflation plummeted (down to $0.60\times$) due to survivorship bias: only hyper-efficient trajectories survived to completion.
  • The Inverted-U Success Curve: Medium-length trajectories (6–10 steps) peaked at a 53.4% success rate, whereas short trajectories (47.6%) and very long ones (30.9%) were far more error-prone.
  • Agent Diversity & Complementarity: Across 761 tasks attempted by all six agents, 83.2% yielded mixed outcomes; only 3.8% were solved by all models, and 13.0% failed universally. Jace.AI excelled at content creation (66%), while IBM CUGA led in structured data updates (61%).
  • Necessity is Learnable: Action necessity grew from 68% on an agent's 1st attempt to >83% by the 10th attempt, showing that trajectory pruning is a strong signal for reinforcement tuning.

Key Results

  • Framework Rankings: Zeta Labs Jace.AI led with 64.78% success (avg. 5.6 steps), followed by IBM CUGA at 59.03% (avg. 5.3 steps), Learn by Interact at 54.19%, UI-TARS at 38.74%, OpenAI-CUA at 27.97%, and BrowserUse at 28.14% (avg. 15.6 steps).
  • Action Breakdown: Of 40,888 total actions, 76.7% were deemed necessary. Type actions were most critical (82.0% necessary), while generic navigation/miscellaneous actions had the highest redundancy (70.2% necessary).
  • Early Decision Anchors: 89% of successful trajectories across different models shared similar initial action prefixes, and 37% of failed runs aborted early after falling into trap states.

Limitations and Future Work

  • Data Density Dependence: Constructing informative consensus graphs requires diverse, repeated attempts on the same task. Graphs for under-explored tasks remain sparse.
  • Heuristic Canonicalization: Relying on string edit distance ($\theta=0.9$) and LLM prompts can struggle with complex visual interfaces or subtle DOM nuances. Future work plans to leverage dense semantic action embeddings.
  • Closing the Loop: Currently diagnostic, consensus graphs could be used dynamically at runtime—either as an explicit graph-search heuristic for exploratory agents or as shaped reward signals in RL agent training.

Summary updated

BibTeX
@inproceedings{qian2025webgrapheval,
  author = {Yaoyao Qian and Yuanli Wang and Jinda Zhang and Yun Zong and Meixu Chen and Hanhan Zhou and Jindan Huang and Yifan Zeng and Xinyu Hu and Chan Hee Song and Danqing Zhang},
  title = {{WebGraphEval: Multi-Turn Trajectory Evaluation for Web Agents using Graph Representation}},
  booktitle = {MTI-LLM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=IPpOtWGmdf},
}
Figure