Abstract
We present a scalable pipeline for automatically generating high-quality training data for web agents. In particular, a major challenge in identifying high-quality training instances is trajectory evaluation—quantifying how much progress was made towards task completion. We introduce a novel constraint-based evaluation framework that provides fine-grained assessment of progress towards task completion. This enables us to leverage partially successful trajectories, which significantly expands the amount of usable training data. We evaluate our method on a new benchmark we propose called BookingArena, which consists of complex booking tasks across 20 popular websites, and demonstrate that our distilled student model outperforms open-source approaches and matches or exceeds commercial systems, while being a significantly smaller model. Our work addresses the challenge of efficiently creating diverse, realistic web interaction datasets and provides a systematic evaluation methodology for complex structured web tasks.
Introduction
The development of autonomous web agents capable of navigating complex, multi-step tasks is a significant frontier in AI. However, training these agents requires vast amounts of high-quality trajectory data. Manual collection is unscalable, and while synthetic generation using Large Language Models (LLMs) offers a path forward, it introduces a critical bottleneck: evaluation.
Traditional automated evaluation relies on binary success metrics (pass/fail) based on final states. For complex tasks—such as booking a specific hotel with multiple constraints—an agent might succeed in 90% of the steps but fail a single minor constraint. In standard pipelines, this entire trajectory is discarded, wasting valuable training signals. This paper addresses this inefficiency through a novel evaluation framework and data distillation pipeline.
Methodology
The proposed pipeline consists of three primary stages: task generation, teacher-led trajectory collection, and fine-grained evaluation.
Automated Data Generation
The process begins with a Task Generator that creates diverse web-based tasks from seed examples. A high-capacity "Teacher Agent" (e.g., Llama 3 70B or 405B) then attempts these tasks on live websites, recording its actions, internal reasoning, and the underlying accessibility tree of the web pages.
Constraint-based Evaluation and Hindsight Relabeling
To move beyond binary metrics, we introduce the Constraint Satisfaction Rate (CSR). An evaluator LLM decomposes each task into specific, verifiable constraints (e.g., location, dates, specific amenities). A VLM/LLM judge then assesses the agent's progress against these constraints at every step of the trajectory.
A key innovation is the use of hindsight relabeling. When an agent achieves a high CSR but fails the overall task, we identify the point of maximum satisfaction, truncate the trajectory, and rewrite the original task prompt to match the agent's actual achievement. This "salvages" partially successful trajectories, transforming them into high-quality training data for instruction tuning.
Experimental Results
We evaluated our approach using a distilled student model (Mistral 3 Small 24B) on two major benchmarks.
BookingArena
We introduced BookingArena, a benchmark featuring 120 complex booking tasks across 20 live websites. Our 24B student model achieved a 29.9% Success Rate (SR) and a 60.2% CSR, significantly outperforming larger models like Claude Computer Use (16.8% SR) and specialized agents like UI-TARS (26.7% SR). It approached the performance of OpenAI's Operator (33.0% SR) despite its smaller parameter count.
WebVoyager
On the WebVoyager benchmark, our model achieved a 64.5% success rate, surpassing GPT-4o (55.5%) and Claude (52.8%).
Ablation Study
Ablation results confirm the value of our methodology: training on relabeled, partially successful trajectories improved the Success Rate from 25.0% to 29.9% compared to training only on perfect successes.
Conclusion
This work demonstrates that fine-grained evaluation and hindsight relabeling are powerful tools for scaling web agent training. By learning from partial successes, we can train smaller, more efficient models that rival or exceed the performance of much larger commercial systems. Future work will focus on incorporating raw visual observations and extending the framework to general desktop and mobile environments.
Summary updated