Towards Internet-Scale Training For Agents

Brandon Trabucco, Gunnar A Sigurdsson, Robinson Piramuthu, Ruslan Salakhutdinov

TL;DR

Current web navigation agents are bottle-necked by scarce, expensive human demonstrations that rarely cover more than a few hundred popular websites. InSTA (Internet-Scale Training for Agents) automates the entire agent pipeline—using LLMs to safely propose realistic tasks across 150k live websites, execute browser trajectories, and judge rollout success. Training agents on these synthetic demonstrations substantially reduces reliance on human annotators, improving step accuracy by up to +89.5% on Mind2Web and +94.5% on WebLINX in data-limited settings.

What Problem Does This Paper Address?

Building autonomous agents capable of navigating the web requires large amounts of varied interaction data. Today, researchers curate datasets by having human annotators hand-write tasks and record demonstrations on popular websites (such as Amazon or Wikipedia).

However, this paradigm hits a wall when scaling to the broader internet:

  1. Human fatigue and unfamiliarity: Out of the hundreds of millions of sites on the web, humans are only familiar with the head of the distribution. On less popular "tail" websites, human-written tasks are feasible only ~40% of the time.
  2. Safety and moderation costs: Manually vetting millions of domains for adult content, malware, or sensitive data is prohibitively slow and expensive.
  3. Distribution shift: Agents trained only on ~150–200 popular domains struggle to generalize to unseen web layouts, interaction paradigms, and diverse real-world tasks.

Methods

The authors introduce InSTA, a fully automated, three-stage synthetic data generation pipeline:

[Common Crawl (1M Sites)]
          │
          ▼
┌───────────────────────────────────────┐
│ Stage 1: LM Task Proposer & Safety    │ ──> Filters unsafe/login sites (85% rejected)
│                                       │ ──> Generates passive tasks for 150k sites
└───────────────────────────────────────┘
          │
          ▼
┌───────────────────────────────────────┐
│ Stage 2: Browser Rollouts (Agent)     │ ──> LLM generates Playwright actions
│                                       │     (clicks, fills, dropdowns, navigation)
└───────────────────────────────────────┘
          │
          ▼
┌───────────────────────────────────────┐
│ Stage 3: Trajectory Evaluation (Judge)│ ──> LLM rates task success & "on right track"
└───────────────────────────────────────┘
          │
          ▼
[Filtered Dataset of 7,463 Clean Trajectories for Fine-Tuning]
  1. Task Proposal & Safety Filtering: Starting from the top 1M websites ranked by PageRank from Common Crawl, an LLM (such as Llama 3.1 70B) is prompted with the domain name. It filters out inappropriate domains (adult, malware, CDNs, or login-gated sites) and proposes passive, non-destructive web tasks under 20 words (e.g., retrieving information, looking up prices).
  2. Autonomous Trajectory Rollouts: An LLM agent converts markdown-rendered web DOM into executable Playwright API function calls (click, fill, select_option, goto, stop). Agents are throttled to a maximum of 10 steps per task.
  3. Automated Evaluation via LLM Judge: A reviewer LLM evaluates the rollout trajectory offline, outputting both task completion success ($r_T \in [0, 1]$) and an "on the right track" score.
  4. Trajectory Filtering & SFT: High-confidence rollouts ($\text{confidence} = 1.0$, at least 3 actions, and zero execution errors/captchas) are extracted into 7,463 synthetic demonstrations to fine-tune downstream navigation models (Flan-T5-Large).

Datasets

  • Common Crawl (June 2024 Host Graph): Provided the initial pool of 1,000,000 domains ranked by PageRank, filtered down to 146,746 safe tasks.
  • Safety & Feasibility Benchmarks: A newly curated test set of 100 domains (50 safe, 50 unsafe) evaluated for safety filtering, and 100 safe domains used to measure task feasibility against human baselines.
  • Evaluation Benchmarks: Evaluated transfer performance on the official cross-website test splits of Mind2Web and WebLINX.

Key Insights and Ideas

  • LLMs dominate humans on the tail: While human annotators match LLMs on top-tier websites, human task feasibility drops by 55.7% on obscure domains. By contrast, LLMs maintain high feasibility across the entire PageRank distribution because their pretraining data spans broad web knowledge.
  • Safety filtering at scale: Llama 3.1 70B achieved 100% recall and 85% accuracy in flagging harmful sites, while Gemini 1.5 Pro hit 97% accuracy—both significantly outperforming single-pass human annotators (75% accuracy, 84% recall).
  • Judge confidence correlates with ground truth: LLM evaluators achieve 81.7%–82.6% accuracy overall, but filtering for maximum judge confidence ($\text{conf} = 1.0$) raises agreement with human labels to 93.1%.
  • Massive cost efficiency with local models: Running Llama 3.1 70B locally via vLLM on spot GPU instances processed over 32 billion tokens across the pipeline for ~$6,622—a 95.9% to 97.1% cost reduction compared to proprietary APIs like GPT-4o ($163k) and Gemini 1.5 Pro ($228k).

Key Results

  • Task Feasibility: Tasks proposed by Gemini 1.5 Pro (89%) and Llama 3.1 70B (75%) far exceeded human annotator feasibility (54%).
  • Zero-Shot Rollout Performance: Llama 3.1 70B solved 16.7% of the 150k generated tasks zero-shot with maximum judge confidence ($\text{conf} = 1.0$).
  • Sample-Efficient Transfer Learning: In data-limited regimes, fine-tuning Flan-T5-Large on mixtures of human demonstrations and InSTA synthetic demonstrations dramatically accelerated learning:
  • Mind2Web (Step Accuracy): Improved by +89.5% (at 32 human actions), +77.5% (at 64 actions), and +12.1% (at 256 actions).
  • WebLINX (Step Accuracy): Improved by +94.5% (at 32 human actions), +44.8% (at 64 actions), and +0.1% (at 256 actions).

Limitations and Future Work

  • Text-Only Observation Space: The agent interacts strictly via compact markdown representations of the DOM, missing purely visual elements (e.g., canvas elements, image-heavy layouts) handled by multimodal agents.
  • Action Space Limitations: The agent struggles with tasks that require interacting with the operating system beyond basic web navigation—such as downloading files, running video playback, or comparing items across multiple browser tabs from memory.
  • Restricted to Passive Tasks: To avoid contaminating the live web, the pipeline intentionally forbids state-modifying tasks (e.g., posting comments, making purchases, creating accounts).
  • Offline Trajectory Selection: The LLM judge is currently used as an offline filter; future iterations could deploy the evaluator online for guided tree search (MCTS) or reinforcement learning reward modeling.

Summary updated

BibTeX
@inproceedings{trabucco2025towards,
  author = {Brandon Trabucco and Gunnar A Sigurdsson and Robinson Piramuthu and Ruslan Salakhutdinov},
  title = {{Towards Internet-Scale Training For Agents}},
  booktitle = {Data Problems @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=UUEGIdyQI0},
}
Figure