WebWISE: Web Interface Control and Sequential Exploration with Large Language Models

Heyi Tao, Sethuraman Tv, Michal Shlapentokh-Rothman, Derek HoiemarXiv 2023 · DOI

Introduction

Creating AI agents capable of navigating human-centric software, such as web browsers, remains a significant challenge. Traditional approaches rely heavily on Reinforcement Learning (RL) or Imitation Learning, which are data-intensive and often task-specific. WebWISE introduces a framework that leverages the reasoning and coding capabilities of Large Language Models (LLMs) to control web interfaces through sequential Python program generation. By grounding text-based models in digital environments using filtered DOM elements, WebWISE achieves high performance with minimal in-context examples.

Methodology

The WebWISE framework is built upon three primary components designed to facilitate effective web navigation:

  1. Filtered DOM Observations: To manage the complexity of raw HTML, WebWISE employs a filterDOM function. This extracts only essential interactive elements (e.g., buttons, links, input fields), reducing token noise and focusing the LLM on actionable components.
  2. Sequential Decision-Making: Instead of generating a complete multi-step plan at once, WebWISE generates a Python program for the immediate next action. The system executes this code, observes the resulting state change, and provides this feedback to the LLM for the subsequent step.
  3. In-Context Learning and Auto-Context Generation (ACG): While the system performs well with a single manual example ($k=1$), it also features ACG. This mechanism allows the model to perform zero-shot trials and automatically save successful traces as examples for future tasks.
The WebWISE system architecture illustrating the flow from web interface to LLM-generated programs.

Experimental Evaluation

The framework was evaluated using the MiniWoB++ benchmark, a suite of over 100 web-interaction tasks. The researchers focused on 48 tasks of varying complexity, from simple button clicks to multi-step data entry and navigation.

Key Results

WebWISE demonstrates significant performance advantages over traditional methods, as shown in the comparative results table below:

  • Complexity Handling: On "Variable Function" tasks, WebWISE with one example ($k=1$) reached a 75% success rate, a substantial improvement over the 27% zero-shot baseline.
  • Efficiency: WebWISE outperformed RL-based models like CCNet-RL on several tasks, despite those models requiring millions of training trials compared to WebWISE's few-shot approach.
  • Comparison to Fine-tuning: The framework (using GPT-3.5) surpassed WebNT5-3B, a model fine-tuned on 12,000 expert demonstrations, in tasks requiring single function calls.
Comparative performance of WebWISE against various baselines across different task complexities.

Discussion and Future Work

The success of WebWISE highlights the power of using code as a universal interface for software control. However, limitations remain, including sensitivity to prompt phrasing and a lack of long-term memory across sessions. Future research aims to develop adaptive DOM filters and incorporate multi-modal inputs, such as visual screenshots, to better capture spatial layouts that text-only representations may miss.

Summary updated

BibTeX
@misc{tao2023webwise,
  author = {Heyi Tao and Sethuraman TV and Michal Shlapentokh-Rothman and Derek Hoiem},
  title = {{WebWISE: Web Interface Control and Sequential Exploration with Large Language Models}},
  year = {2023},
  eprint = {2310.16042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16042},
}
Figure