NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

World Models for Web Agents

Hyungjoo Chae, Namyoung Kim, Minju Gwak, Gwanwoo Song, Jihoon Kim, Kai Tzu-iunn Ong, Sunghwan Kim, Dongha Lee, Jinyoung YeoSys2-Reasoning @ NeurIPS 2024

TL;DR

This paper introduces World-Model-Augmented (WMA) Web Agents, a novel approach that equips LLM-based web agents with an internal "world model" to better understand and predict the consequences of their actions. By simulating future states, WMA agents significantly improve decision-making accuracy and reduce errors in complex, long-horizon web navigation tasks, outperforming existing methods.

What Problem Does This Paper Address?

Current LLM-based web agents, while impressive, struggle with long-horizon tasks. They often exhibit a "reactive" behavior, akin to trial-and-error, leading to mistakes like repeatedly adding items to a shopping cart or failing to recognize task progression. This contrasts with human agents who possess an internal "world model" – a representation of how their actions affect the environment – allowing for more informed and efficient decision-making. The paper aims to bridge this gap by endowing LLM-based agents with such a world model to enhance their capabilities in dynamic web environments.

Methods

The core innovation is the World-Model-Augmented (WMA) Web Agent. The framework involves three key steps:

  1. Harvesting Agent-Environment Interaction Data: Trajectories of agent interactions with the web environment are collected. To augment existing datasets like WebArena, the authors synthetically generate user instructions using an LLM and then collect corresponding trajectories.
  2. Transition-focused Observation Abstraction: Instead of using raw accessibility trees (which are verbose and lack transition information), the authors propose a novel abstraction that focuses on the differences between consecutive states (i.e., what changed due to an action). This is achieved using a Hungarian algorithm for element matching and then generating a free-form description of these changes. This abstracted observation is more informative for LLMs.
  3. Learning Environment Dynamics: A world model is trained to predict the abstracted next state observation given the current instruction, observation, and action. This model learns the cause-and-effect relationships within the web environment.

During inference, the learned world model is used for Inference-time Policy Optimization. The agent samples multiple action candidates, simulates their outcomes using the world model to predict the next state, and then uses a value model to estimate the reward for each simulated outcome. The action leading to the most optimal predicted next state is selected.

Datasets

  • WebArena: Used for both collecting agent trajectories (for training the world model) and for evaluation. The authors augment the existing WebArena dataset by synthetically generating user instructions using an LLM to increase diversity.
  • Mind2Web: Used for training the value model in one of the implementation setups.

Key Insights and Ideas

  • The "World Model" Gap: The paper clearly articulates that the lack of an internal world model is a fundamental limitation for LLM-based agents in complex, long-horizon tasks, leading to reactive and error-prone behavior.
  • Transition-focused Abstraction is Key: Simply summarizing observations isn't enough. Focusing on what changed between states provides a more efficient and informative representation for LLMs to learn environment dynamics.
  • Simulated Feedback for Better Decisions: Using a world model to simulate future states allows agents to "peek" into the consequences of their actions before committing, leading to more informed choices and reducing costly mistakes.
  • Bridging Human and Machine Intelligence: By incorporating world models, the research moves LLM-based agents closer to human-like understanding and decision-making in dynamic environments.

Key Results

  • Significant Performance Improvement: The WMA Web Agent shows a substantial increase in success rates on the WebArena benchmark, with an overall improvement of 79% compared to vanilla agents.
  • Outperforming Baselines: WMA Web Agent outperforms existing baselines, including the Tree Search Agent, which uses oracle information about future states.
  • Efficiency Gains: WMA agents are significantly more time and cost-efficient than the Tree Search Agent, taking an average of 140 seconds per instance compared to 678 seconds.
  • Domain-Specific Improvements: The method shows particularly strong improvements in challenging domains like Map (+2378%), Reddit (+5.3%), and Gitlab (+181%).
  • Observation Abstraction Effectiveness: Ablation studies confirm that the transition-focused observation abstraction method is crucial for the world model's comprehension and performance.

Limitations and Future Work

  • Modality: The current work focuses on text-based world models. Future work could incorporate visual information for more accurate perception of the environment.
  • Multi-step Planning: While the current approach aids in single-step decision-making, the authors suggest extending the world model for multi-step planning. This would involve recursively feeding predicted states back into the agent to reason about longer-term consequences and complex action sequences.
  • Value Model Improvement: The paper uses an off-the-shelf value model. Future work could involve collecting and leveraging larger datasets for training more robust value models.
  • Self-refining with Simulated Feedback: The world model is currently used for inference-time policy selection. Future research could explore using simulated feedback from the world model for refining the agent's policy itself.

Summary updated

BibTeX
@inproceedings{chae2024world,
  author = {Hyungjoo Chae and Namyoung Kim and Minju Gwak and Gwanwoo Song and Jihoon Kim and Kai Tzu-iunn Ong and Sunghwan Kim and Dongha Lee and Jinyoung Yeo},
  title = {{World Models for Web Agents}},
  booktitle = {Sys2-Reasoning @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=NWU6AaJv48},
}
Figure