Abstract
The progress of autonomous web navigation has been hindered by the dependence on billions of exploratory interactions via online reinforcement learning, and domain-specific model designs that make it difficult to leverage generalization from rich out-of-domain data. In this work, we study data-driven offline training for web agents with vision-language foundation models. We propose an instruction-following multimodal agent, WebGUM, that observes both webpage screenshots and HTML pages and outputs web navigation actions, such as click and type. WebGUM is trained by jointly finetuning an instruction-finetuned language model and a vision transformer on a large corpus of demonstrations. We empirically demonstrate this recipe improves the agent's ability of grounded visual perception, HTML comprehension and multi-step reasoning, outperforming prior works by a significant margin. On the MiniWoB benchmark, we improve over the previous best offline methods by more than 31.9%, being close to reaching online-finetuned SoTA. On the WebShop benchmark, our 3-billion-parameter model achieves superior performance to the existing SoTA, PaLM-540B. We also collect 347K high-quality demonstrations using our trained models, 38 times larger than prior work, and make them available to promote future research in this direction.
Introduction
Teaching AI to navigate the web like a human is notoriously difficult. Traditionally, researchers have relied on online Reinforcement Learning (RL), where an agent learns through billions of trial-and-error interactions. However, online RL is computationally expensive and risky in real-world scenarios—you don't want an agent "exploring" by accidentally deleting a user's email or locking a bank account.
Furthermore, previous agents often used "brittle," task-specific architectures designed to parse the Document Object Model (DOM) of a webpage. These models lacked the general reasoning and visual perception needed to handle the diverse, messy, and visually-driven nature of the modern internet. The authors of this paper sought to bridge this gap by leveraging the power of multimodal foundation models and high-quality offline data.
Methods: The WebGUM Architecture
The authors introduce WebGUM (Web navigation via Grounded Understanding Models). Its architecture is built on two main pillars:
- Multimodal Foundation Models: Instead of a custom architecture, WebGUM uses a pre-trained Flan-T5 (an instruction-finetuned encoder-decoder model) as its "brain" and a Vision Transformer (ViT) as its "eyes."
- Temporal and Local Perception: To understand the flow of a website, the model doesn't just look at one screenshot; it observes a history of the last two steps. Crucially, it processes screenshots as a grid of local patches (16x16) rather than a single global summary. This allows the model to "see" exactly where buttons and text fields are located relative to the HTML code.
The model takes the user's instruction, the raw HTML, and the patched screenshots as input. It then outputs the next action (like click or type) as free-form text. This "text-to-action" approach allows it to leverage the linguistic reasoning already present in the foundation model.
Datasets and Large-Scale Demonstrations
The study utilizes three primary benchmarks:
- MiniWoB++: A suite of simulated web tasks (e.g., "forward this email," "book a flight").
- WebShop: A simulated e-commerce site with 1.18 million real-world products, requiring complex multi-step searching and comparison.
- Mind2Web: A challenging dataset involving action prediction on real-world websites.
A major contribution of this work is the collection and release of a new dataset of 347,000 high-quality multimodal demonstrations on MiniWoB++. This is 38 times larger than previous human-demonstration datasets, providing the "fuel" needed for effective offline training.
Key Insights and Scaling Laws
The research highlights several critical factors for successful web navigation:
- Multimodal Synergy: While HTML provides structural data, screenshots provide vital context for dynamic transitions and visual concepts (e.g., "click the red circle"). Adding vision improved performance on visual tasks by over 20%.
- Instruction Tuning: Starting with a model already tuned to follow instructions (Flan-T5) was significantly more effective than using a vanilla T5, suggesting that web navigation is fundamentally an instruction-following task.
- Encoder-Decoder Architecture: The 3-billion parameter WebGUM (encoder-decoder) outperformed the 540-billion parameter PaLM (decoder-only) on the WebShop benchmark. The bidirectional nature of the T5 encoder is likely better suited for processing the hierarchical tree structure of HTML.
As shown in the scaling analysis, web agents benefit immensely from increasing both the model size and the amount of training data, leading to consistent improvements in success rates.
Results and Performance
- MiniWoB++: WebGUM achieved a 94.2% success rate, surpassing the previous best offline model (48.4%) by a massive margin. It even outperformed human benchmarks (93.5%) and GPT-4-based agents (94.0%).
- WebShop: Despite having only 3 billion parameters, WebGUM achieved a 45.0% success rate, beating the state-of-the-art PaLM-540B (40.0%).
- Real-World Transfer: When tested on the Mind2Web dataset, WebGUM showed strong "positive transfer," meaning the skills it learned in simulation helped it predict correct actions on real, unseen websites.
Conclusion
WebGUM represents a major leap forward in autonomous web navigation by combining multimodal foundation models with large-scale offline training. While challenges remain in long-horizon memory and handling ambiguous instructions, the results demonstrate that scaling multimodal instruction-tuned models is a highly effective path toward general-purpose web agents.
Summary updated