Abstract
WebWISE is a novel framework designed to empower Large Language Models (LLMs) for autonomous web navigation. By treating web interaction as a sequential programming task, WebWISE overcomes significant challenges related to noisy Document Object Model (DOM) metadata and the complexities of multi-step planning. The system utilizes a targeted DOM filtering mechanism and an iterative "observe-act" loop to generate and execute small Python programs. Evaluated on the MiniWoB++ benchmark, WebWISE achieves an 88% success rate using GPT-3.5-turbo, outperforming specialized models trained on thousands of expert demonstrations while requiring as little as a single in-context example.
Introduction
Creating autonomous agents capable of navigating software designed for humans, such as web browsers, remains a significant challenge in AI. Traditional approaches have relied heavily on Reinforcement Learning (RL) or Imitation Learning (IL), both of which are data-intensive and require extensive expert demonstrations for each new task. While Large Language Models (LLMs) possess strong code-generation capabilities, they often struggle with web navigation due to environment grounding issues—where massive, noisy DOM data distracts the model—and sequential complexity, where generating a full action plan upfront fails to account for dynamic UI changes.
WebWISE addresses these hurdles by reframing web navigation as a sequential programming task, leveraging the LLM's ability to react to environmental feedback rather than predicting future states in a vacuum.
Methodology
The WebWISE framework operates through a continuous feedback loop that bridges the gap between raw web data and executable code. The core components of the pipeline include:
- DOM Filtering (
getSummary): To prevent token limit issues and model confusion, WebWISE extracts only pertinent interactive elements (buttons, text boxes, links) based on specific tags and classes, providing a condensed summary of the environment. - Sequential Decision-Making: Instead of a one-shot plan, the system generates one small Python program at a time. After execution, the environment updates, and the new state is fed back to the LLM for the next step.
- Python-Based API: The LLM interacts with the browser via a simplified API (e.g.,
click_action1), utilizing its inherent strengths in code generation. - Auto-Context Generation (ACG): This mechanism allows the model to "teach itself" by converting successful zero-shot trials into high-quality in-context examples for future tasks.
Experimental Evaluation
The researchers evaluated WebWISE on the MiniWoB++ benchmark, selecting 48 tasks that range from simple button clicks to complex multi-step scenarios involving form filling and data extraction. The primary model used was GPT-3.5-turbo, though tests were also conducted with open-source models like Llama-2 7B to test framework adaptability.
Results and Discussion
WebWISE demonstrated significant performance gains over both baseline LLM prompts and fine-tuned models. A key finding was that providing a filtered DOM summary is essential for success; without it, models often failed to ground their actions in the actual UI elements.
Key insights from the results include:
- Efficiency: With an 88% average success rate, WebWISE outperformed WebNT5-3B (a model fine-tuned on 12,000 demonstrations) by 14.1% on simple tasks.
- Reaction over Prediction: The sequential approach saw success rates jump from 23% (one-shot) to 75% (sequential) on challenging tasks, proving that reacting to a changing screen is more effective than predicting future UI states.
- Filtering Impact: As shown in the performance comparison, tasks requiring arbitrary numbers of function calls (the most complex) saw accuracy rise from near zero to over 75% when filtered DOM information was provided.
Conclusion
WebWISE demonstrates that LLMs can effectively control web interfaces through sequential program generation and environment filtering. While the framework shows high sensitivity to prompt variations and has currently only been tested on "clean" benchmark environments, it provides a scalable path toward autonomous web agents that do not require massive amounts of human-labeled training data. Future work will focus on adaptive filtering for real-world websites and improving long-term memory for complex, multi-stage tasks.
Summary updated