arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02885

Discriminative World Models for Web Agents

Kelvin Li, Dhruv Pendharkar, Anish Pahilajani, Chuyi Shang, Leon Oks, Leonid Karlinsky, Rogerio Feris, Trevor Darrell, Roei Herzig

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent web agents use world models for test-time action selection by sampling candidate actions, predicting the resulting web states, and ranking them with a ranker model or a Process Reward Model (PRM). These world models are typically trained via supervised next-state prediction to generate fixed representations like HTML or AXTree snapshots. However, this objective is misaligned with the downstream ranker, which relies on predicted states being discriminative across candidates to accurately score them. To address this, we introduce predicted-state matching, a training objective where the predicted representation must distinguish the true resulting state from those reached by alternative actions. We train these models using a branching web-agent dataset derived from WebArena Go-Browse trajectories, where every decision point contains multiple alternative actions and their resulting states. Experiments on our held-out predicted-state matching benchmark show that our approach outperforms world models trained with supervised next-state prediction. We further show that our approach improves PRM-style action ranking on WebPRMBench compared with action-only PRMs and PRMs augmented with supervised-next-state world models. Finally, on WebArena-Lite, using our world model for test-time action selection improves end-to-end task success. Our project page is available at: https://dhruvpendharkar.github.io/dwm/.

1 Introduction

Recent advances in large language models have made it possible to build agents that interact with the web through natural-language instructions and browser actions (Zheng et al., 2024; He et al., 2024; Qin et al., 2025; Gupta et al., 2026). However, web navigation remains challenging because it is a partially observed, multi-step decision-making problem: an agent must choose actions based on the

current page and interaction history, while reasoning about how each action will affect future steps. Most prior work relies on a reactive next-action prediction paradigm, where agents directly select an action based on the current observation and history (Zheng et al., 2024; He et al., 2024; Qin et al., 2025; Gupta et al., 2026). Although straightforward, this approach does not explicitly compare alternative actions at a given state. To address this limitation, recent methods explore test-time action selection: the agent proposes multiple possible next actions, then uses a process reward model (PRM) or ranker to choose among them (Chae et al., 2025b; Zhang et al., 2026). Model-based planning extends this paradigm by augmenting candidate actions with their predicted next states (Gu et al., 2025; Chae et al., 2025a; Fang et al., 2025; Xiao et al., 2026). This allows the agent to explicitly evaluate and compare alternative paths through their expected consequences prior to execution.

This planning paradigm raises a basic question: what should the predicted next state represent? Current web world models typically rely on supervised next-state prediction, training the model to generate predefined formats like textual summaries, HTML, or AXTree snapshots (Gu et al., 2025; Chae et al., 2025a; Fang et al., 2025; Xiao et al., 2026). This approach ties the training objective to arbitrary choices of state format. However, as illustrated in Figure 1, a representation optimized to match a fixed next-state target may still miss the action-relevant differences that distinguish one action's consequence from another. For example, textual-summary methods such as WebDreamer are supervised to reproduce a particular compressed description of the next state, which may omit the specific change needed to distinguish the queried action from alternatives. In contrast, full structured-state methods such as WebWorld generate AXTree-style representations in which the relevant change can be buried among large amounts of unchanged

*Equal contribution.

Figure

Figure 1: Qualitative example of predicted next-state representations at a single decision point in the WebArena Reddit environment. Given the current state and queried action, our predicted-state-matching world model identifies the specific state change produced by the action. A textual-summary method, WebDreamer (Gu et al., 2025), instead describes the outcome of a different action, while a full structured-state method, WebWorld (Xiao et al., 2026), emits a long AXTree-style representation that largely repeats page structure unchanged by the queried action. The browser pane is rendered from the recorded accessibility tree.

page structure. When the world model is used for action selection, the predicted next state should help distinguish the outcomes of competing actions from the same state. We therefore argue that the relevant objective is not to recreate a specific target representation, but to produce predicted next-state representations that are discriminative among the alternative outcomes induced by candidate actions.

We address this with predicted-state matching (Figure 2). Given a current state and a candidate action, the model generates a next-state representation. Rather than forcing the model to generate a fixed target string, we train and evaluate this representation through a matching task, where a fixed judge uses the generated representation to distinguish the true resulting state of the queried action from alternative resulting states reached at the same decision point. This establishes a representation-agnostic objective for world modeling: a predicted representation is valuable specifically because it preserves the features that distinguish one action's consequence from another. Because the output is not tied to a rigid target format, the model can dynamically adapt its level of detail and abstraction across different tasks, pages, and actions.

To support this framework, we construct a branching web-agent dataset derived from Go-Browse trajectories in WebArena environments (Gandhi and Neubig, 2026; Zhou et al., 2024). Unlike existing web-agent datasets that are organized as linear trajectories, our data contains

local decision points with multiple possible actions from the same state and their resulting next states. This structure provides the supervision needed to train world models to distinguish the effects of different actions, rather than imitate a single gold path or generate a fixed state format. It also enables a held-out predicted-state matching benchmark for web world models: models are evaluated by whether their predicted next-state representation matches the correct resulting state among alternatives from the same decision point.

We evaluate our approach at three levels. First, on our held-out predicted-state-matching benchmark, our model achieves higher matching accuracy than existing web world models and a data-matched baseline trained with supervised next-state prediction. Second, we examine the downstream utility of these predictions for action ranking on WebPRMBench (Zhang et al., 2026). In model-based test-time action selection, predicted outcomes are useful only if they help a PRM or ranker choose among candidate actions before execution. WebPRMBench directly evaluates this ranking objective: holding the task context and candidate actions fixed, we compare action-only rankers with rankers augmented either with fixed-format next-state predictions or with representations produced by our predicted-state-matching world model. We evaluate both trained reward models and frozen rankers. Third, we evaluate end-to-end agent performance on WebArena-Lite (Liu

Figure

Figure 2: Supervised next-state prediction trains a world model to generate a fixed target representation. Predicted-state matching instead trains the generated representation to distinguish the true resulting state of a queried action from alternative next states reached by other actions.

et al., 2025; Zhou et al., 2024), showing that incorporating our world model into test-time action selection improves task success.

We summarize our contributions as follows: (i) We formulate web world modeling as learning discriminative next-state representations that distinguish the outcomes of competing actions rather than generating fixed-format targets, introducing a representation-agnostic training objective called predicted-state matching. (ii) We introduce a branching web-agent dataset derived from Go-Browse trajectories, with local decision points containing alternative executable actions and their resulting states. This dataset supports training predicted-state-matching world models and provides a new representation-agnostic benchmark for evaluating whether a predicted next-state representation is distinguishable from the states reached by alternative actions from the same decision point. (iii) We show that our approach improves predicted-state matching over world models trained with supervised next-state prediction, that our predicted next-state representations improve PRM-style action ranking on WebPRMBench compared with action-only PRMs and supervised-next-state world model baselines, and that using our world model for test-time action selection improves end-to-end task success on WebArena-Lite.