Skip to main content
QUICK REVIEW

[Paper Review] Mind2Web: Towards a Generalist Agent for the Web

Xiang Deng, 裕二 池谷|arXiv (Cornell University)|Jun 9, 2023
Topic ModelingComputer Science27 citations
TL;DR

Mind2Web introduces a real-world web task dataset for generalist web agents and proposes MindAct, a two-stage framework that uses a small LM to rank candidate elements and an LLM to predict actions, with extensive evaluation on cross-domain, cross-website, and cross-task generalization.

ABSTRACT

We introduce Mind2Web, the first dataset for developing and evaluating generalist agents for the web that can follow language instructions to complete complex tasks on any website. Existing datasets for web agents either use simulated websites or only cover a limited set of websites and tasks, thus not suitable for generalist web agents. With over 2,000 open-ended tasks collected from 137 websites spanning 31 domains and crowdsourced action sequences for the tasks, Mind2Web provides three necessary ingredients for building generalist web agents: 1) diverse domains, websites, and tasks, 2) use of real-world websites instead of simulated and simplified ones, and 3) a broad spectrum of user interaction patterns. Based on Mind2Web, we conduct an initial exploration of using large language models (LLMs) for building generalist web agents. While the raw HTML of real-world websites are often too large to be fed to LLMs, we show that first filtering it with a small LM significantly improves the effectiveness and efficiency of LLMs. Our solution demonstrates a decent level of performance, even on websites or entire domains the model has never seen before, but there is still a substantial room to improve towards truly generalizable agents. We open-source our dataset, model implementation, and trained models (https://osu-nlp-group.github.io/Mind2Web) to facilitate further research on building a generalist agent for the web.

Motivation & Objective

  • Provide a diverse, real-world dataset of web tasks across 137 websites and 31 domains to train and evaluate generalist web agents.
  • Propose MindAct, a two-stage model combining a small LM for candidate ranking with an LLM for action prediction.
  • Investigate generalization capabilities of agents across domains, websites, and tasks in realistic web environments.

Proposed method

  • MindAct first uses a fine-tuned small LM (DeBERTa base) to rank webpage elements and select a top-k candidate elements.
  • The top-k candidates are condensed into a webpage snippet and fed to an LLM to perform multi-choice question answering for action prediction (element + operation).
  • Training uses ground-truth action histories with a left-to-right LM objective; inference uses iterative grouping of candidates with a None option to converge on a single element and operation.
  • Evaluation includes both classification-style element selection benchmarks and generation-based action prediction, comparing against baselines and multiple LLM backbones (Flan-T5 variants, GPT-3.5, GPT-4).
  • The approach demonstrates that discriminative (multi-choice) prompting with candidate pruning yields better performance than direct generation or plain classification.

Experimental results

Research questions

  • RQ1Can a generalist web agent learn from real-world websites to complete tasks using language instructions?
  • RQ2How well does a two-stage MindAct framework generalize across unseen domains, websites, and task types?
  • RQ3Does pruning high-entropy HTML via a small LM improve large-LM grounding and action prediction on real websites?

Key findings

  • Mind2Web provides over 2,000 tasks from 137 websites across 31 domains to evaluate generalist web agents.
  • MindAct with a multi-choice QA formulation achieves the best step success rates across settings, significantly outperforming generation and classification baselines.
  • Cross-Task generalization is strongest (highest step success rate) compared to Cross-Website and Cross-Domain, indicating domain/website diversity poses substantial generalization challenges.
  • GPT-4 shows strong potential, achieving competitive results with smaller models but with higher cost; GPT-3.5 shows limited element selection accuracy in this setting.
  • Fine-tuning a small LM for candidate generation (DeBERTa B) yields Recall@50 around 85% across settings, enabling effective candidate pools for the LLM predictor.
  • Overall task success remains challenging across settings, highlighting the long-horizon planning and grounding difficulties in real-world web interactions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.