arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.11942

Right Screen, Wrong Transition: World Models as Verifiers for GUI Agents

Jiaming Zhang, Xuan Wang, Fuyao Zhang, Yang Cao, Lingjuan Lyu, Wei Yang Bryan Lim

ABSTRACT

A login screen that appears after a tap on Sign in is expected; the same screen after a tap on View order is an attack. For GUI agents, safety is therefore a property of the transition rather than of the screen, and a monitor that inspects only screens can be defeated by reusing a legitimate one. Judging a transition requires an expectation of what should have followed the action. Existing GUI world models provide one, but they output it as text, code, or images, so checking it against the observed screen requires a second model to judge the two. We argue that a world model meant for verification should instead predict in the space in which observations are encoded, and present LGWM, a decoder-free, action-conditioned world model that predicts the representation of the next screen directly, trained without semantic annotation on 1.85M real GUI transitions. Verification reduces to a vector comparison, and the same signal reveals whether a mismatch is harmful. We evaluate on RSWT-BENCH, a diagnostic where each credential screen appears under both a legitimate and a hijacked transition, so detectors that see only the screen are at chance by construction. The training-free score reaches 0.987 AUC at 17 ms per decision, on par with the strongest closed-source VLMs and about ten AUC points above generative GUI world models at over three orders of magnitude lower latency. The residual direction reaches 0.953 AUC at separating harmful from benign violations, where prompted VLMs are near chance. Further analyses show that the prediction is a usable future state rather than an anomaly score. World models have mostly served as simulators or planners; our results point to a third role, verification, for which predicting in representation space is the natural design.

1 INTRODUCTION

A login screen that asks for credentials is unremarkable when the user has just tapped Sign in. The same screen, pixel for pixel, appearing after a tap on View order is an attack in progress (Figure 1, right). Nothing on the screen distinguishes the two cases; what differs is the transition that produced it. GUI agents are exposed to this because they act through interfaces produced by third parties (apps, web pages, advertisements) whose honesty cannot be taken for granted, and attacks on them redirect what happens after an action while every screen stays plausible (Qian et al., 2026; Shi et al., 2026; Korgul et al., 2025; Yang et al., 2025; Sun et al., 2026; Cuvin et al., 2026). Unlike a physics simulator, the environment here may work against the agent. Integrity, for these agents, is a property of transitions rather than screens.

Judging a transition requires an expectation of what should have followed the action, which is what a world model provides, and a growing line of work builds world models for graphical interfaces (Luo et al., 2025; Li et al., 2025; Koh et al., 2026; Zheng et al., 2026; Xu et al., 2026a). All of them output their predictions as rendered artifacts, whether text, screenshots, or executable code (Xu et al., 2026b) (Figure 1a). Rendering makes a prediction inspectable by a person but hard to check by a machine: a paragraph, a DOM tree, or an approximately rendered image is not the same kind of object as the screenshot the agent observes, so whether the two agree is a judgment, not an operation, and the judgment falls to a second model that must itself be trusted. A verifier that needs a judge has not removed the problem, only moved it. The cost follows from the same fact: rendering takes one to two minutes per transition in current generative GUI world models (§4.2), before the judge is run.

Figure

(a) Checking a transition

Figure

(b) Same screen, different meaning

Figure 1: The future as an interface. (a): Existing GUI world models render the future as text, pixels, or code, at a cost of seconds to minutes per decision. LGWM predicts the future in representation space, in milliseconds. (b): A pixel-identical credential screen is legitimate after Sign in but hostile after View order. Safety is a property of the transition, not the screen.

World models have mostly served at runtime as simulators, which show possible futures, or as planners, which search over them (Schrittwieser et al., 2020; Grimm et al., 2020; Hansen et al., 2022). GUI agents call for a third role, verification, in which the model checks the future that actually arrived (Lightman et al., 2024; Yu et al., 2026; Yang et al., 2026; Cao et al., 2026). Latent planners already compare a predicted representation with the encoding of a goal image (Zhou et al., 2024; Assran et al., 2025); a verifier points the same comparison at the observed outcome, which no GUI world model, to our knowledge, has been built to do. We present LGWM (Latent GUI World Model), an action-conditioned predictor that maps the current screen and a structured action to the next screen's representation, trained on real transitions without semantic supervision. The recipe is that of joint-embedding predictive architectures (Bardes et al., 2024; Assran et al., 2023; Fu et al., 2025), with its role inverted: there the predicted representation is a pretext for learning an encoder and is discarded at test time, whereas here it is the product. Because prediction and observation share an embedding space, a single cosine similarity, evaluated in 17 ms, decides whether a transition matched expectation. No decoder or judge is involved, and the score never sees a labeled attack.

The residual between predicted and observed futures is a vector: its magnitude says how far reality departed from expectation, its direction says what it departed into. The distinction matters in practice. A push notification or a server-side layout change surprises a model of normal dynamics without harming anyone, so a deployable monitor needs both signals. LGWM answers both questions with two readouts of one object. The residual magnitude detects a violation of the learned dynamics and needs no training; a linear head on its direction separates harmful violations from benign ones.

We evaluate where the difference between inspecting screens and inspecting transitions can be made exact. RSWT-BENCH (Right Screen, Wrong Transition) is a donor-paired diagnostic of 222 pairs, in each of which a credential screen appears once as a legitimate outcome and once, pixel-identical, as a hijacked one, so any detector that depends only on the resulting screen has an expected AUC of exactly 0.5 (§3). On this test the training-free score reaches 0.987 AUC, on par with the strongest closed-source VLMs (Gemini 3.7 Flash, GPT-5.6 Luna) and about ten points above generative GUI world models (gWorld, Code2World), which hold the same kind of expectation but render it, at more than three orders of magnitude lower latency. The residual head separates harmful from benign violations at 0.953 AUC, where every prompted VLM is near chance. Pretraining diagnostics confirm that the prediction is a usable future state, not merely an anomaly score (§4.3).

Our contributions are as follows.

• World models as verifiers. We formulate GUI-agent runtime safety as transition integrity, identify a world model’s expectation violation as its natural test statistic, and argue that checking it without a judge requires a prediction directly comparable to the encoded observation, which no rendered GUI world model provides.

• LGWM. An action-conditioned GUI world model with no decoder whose predictions live in the observation encoder’s space, trained without semantic annotation. A shared positional basis binds touch coordinates to visual patches, and a change-weighted objective keeps the training signal on what the action changed.

• Residual readouts. The magnitude of the residual detects violated dynamics with no training and its direction, through a linear head, interprets harm. We show that these are separable capabilities, and that a rendered interface cannot expose them without re-encoding its own output.

• A controlled diagnostic. RSWT-BENCH places pixel-identical outcomes under opposite labels, making outcome-only detection provably at chance, and on it a 261M-parameter model with no training on the task is on par with frontier closed-source VLMs.

References (35)