LGWM: Verifying GUI agent screen transitions with action-conditioned world modelsRight Screen, Wrong Transition: World Models as Verifiers for GUI Agents
LGWM's training-free verification on RSWT-BENCH has an RSWT AUC of 0.987 and 17.1 ms (Table 1).
Third-party applications, web pages, and ads may redirect the outcome after the action while the screen still looks plausible. The monitor sees the current screen, the structured action, and the next screen, and checks whether the outcome is compatible with the conditional distribution of the uncompromised interface. A detector that only looks at the resulting screen has expected AUC of 1/2 on RSWT.
- GUI agents act through third-party interfaces, and attacks can redirect the outcome after the action while the screen still looks plausible. The same credential screen is normal under a legitimate transition and an attack under a hijacked transition, so a monitor that only looks at the screen can be bypassed by reusing a legitimate screen.
- LGWM is a decoder-free action-conditioned world model that maps the current screen and structured action to the next-screen representation, trained on 1,845,659 real transitions without semantic annotation. Verification is a cosine comparison; residual magnitude detects violations, and direction uses a linear head to distinguish harm.
- On 222 pairs, LGWM training-free RSWT AUC is 0.987 with 17.1 ms latency (Table 1). The authors state that no difference was detected against the strongest closed-source VLM, and generative models are about ten AUC points lower. On Harm AUC, the residual head is 0.953 and prompted VLMs range from 0.512 to 0.614.
- In the Discussion, the authors state that the difficulty of forging matching results in representation space has not yet been quantified. The evaluation uses 222 donor pairs; the ablation uses ViT-S, 15k steps, and a single seed. Table 1 does not report closed-source API latency.
- Evaluated models
- LGWM
- Benchmarks
- RSWT-BENCH
- Metrics
- RSWT AUCSwap AUCCred AUCHarm AUCLatency
The paper proposes LGWM, a decoder-free, action-conditioned world model that directly predicts the next screen representation in the observation encoding space, reducing safety verification of GUI agents to vector comparison. The authors argue that GUI agent safety is a transferred property rather than a property of the screen, and that monitors checking only the screen can be bypassed by reusing legitimate interfaces. The model is trained on 1.85 million real GUI transitions without semantic annotations. On RSWT-BENCH, where each credential interface appears under both legitimate and hijacked transitions, the training-free scoring reaches 0.987 AUC, 17 ms per judgment, on par with the strongest closed-source VLM and about 10 AUC points higher than generative GUI world models, with latency over three orders of magnitude lower; the residual direction reaches 0.953 AUC in distinguishing harmful from benign violations, while prompted VLMs are near random. The authors state that the results show a third role for world models beyond simulator and planner, namely verification.
Related events and news
1 events · 0 news mentions
- This event's paper
LGWM:用世界模型验证GUI智能体屏幕转移
Paper analysis
What problem does this paper attempt to solve?
Safety lies in the transition, not the screen: a legitimate screen becomes an attack when elicited by the wrong action.
The same plausible-looking screen can come from either a legitimate transition or a hijacked transition.
- Scenario: The authors use Figure 1 as an example: the login screen after Sign in is expected, while the same pixel-identical credential screen appearing after View order is an attack. The difference lies in the transition, not the screen content.
- Importance: The authors state that GUI agents act through third-party applications, web pages, and ads, so honesty cannot be assumed; attacks redirect the outcome after the action while each screen still looks plausible. The authors believe the environment can be adversarial to the agent.
- Existing limitations: The authors state that existing GUI world models output text, screenshots, or code, and verification relies on a second model. The authors state that a single render takes one to two minutes (§4.2), not counting the judge.
- Approach: The authors argue that verification should be performed by predicting in the observation encoding space. They present LGWM without a decoder, and RSWT-BENCH: a detector that only looks at the resulting screen is expected to have RSWT AUC exactly 1/2.
- Threat model:
- Victim: a GUI agent acting through third-party interfaces. Verification happens after the action has been executed and the next screen has been observed.
- Attack: making the outcome no longer compatible with the distribution of the uncompromised interface for that screen and action, while the same screen can be legitimate in another context and looks plausible.
- What the monitor sees: the current screen, the structured action, and the observed next screen. The expectation comes from a world model of normal interface dynamics.
- Integrity definition: the outcome is compatible with the above distribution. Proposition 1: any detector that depends only on the resulting screen has expected RSWT AUC exactly 1/2.
What related research exists?
The authors position this work among rendered GUI world models, latent-space prediction, and safety monitoring.
The authors place this paper among rendered GUI world models, latent-space prediction, and runtime monitoring, requiring that predictions be comparable with observations without a judge.
Rendered and latent-space models
- Rendered GUI world models: Related Work classifies Li et al. (2025), Luo et al. (2025), Liu et al. (2026), Koh et al. (2026), Zheng et al. (2026), Xu et al. (2026a; 2026b), Yang et al. (2026), and Cao et al. (2026) as a family that writes the future as text, code, or rendered blocks. The authors state that verification therefore requires a judge, costing seconds to minutes; and that rendering remains appropriate when humans need to look, so the two families are complementary.
- Planning or not retaining the predictor: the latent models of Schrittwieser et al. (2020), Grimm et al. (2020), and Hansen et al. (2022) serve planning and are not aligned with observations. Assran et al. (2023), Bardes et al. (2024), and Fu et al. (2025) discard the predictor after training the encoder. The authors state that previous non-reconstruction was for learning efficiency or whether planning suffices; this paper is concerned with whether reality can be checked without a second model.
- Comparison with target encodings: Zhou et al. (2024) and Assran et al. (2025) compare predicted representations with target image encodings. The authors state that LGWM aligns the same geometry to actual observations and must handle mixed discrete–spatial actions and sparse transitions.
GUI safety and prediction error
- Scalar prediction error: Pathak et al. (2017) and Burda et al. (2019) use prediction error for exploration and out-of-distribution detection. The authors state that this paper's error is action-conditioned, in the same space as the encoded observation, and is read twice in magnitude and direction, whereas previous work stopped at a scalar.
- Current-step risk and hidden transitions: Sun et al. (2025; 2026), Cuvin et al. (2026), and Yang et al. (2025) evaluate risks visible at the current step. The attacks written by Qian et al. (2026) and Shi et al. (2026) redirect the outcome while the screen is still harmless. The authors place these two lines of work side by side.
- SeerGuard and process verification: SeerGuard by Yu et al. (2026) predicts consequences before execution, renders them as text, and jointly learns risk judgment. The authors state that this paper's signal is geometric, post-hoc, and training-free, with harm interpretation separately in a linear head. Lightman et al. (2024) verify the agent's own reasoning; the authors state that this paper verifies the environment's response. The authors state that RSWT-BENCH is the first GUI benchmark where screen-only detectors perform at chance level by construction.
Baseline methods
- Comparisons and data: closed-source and open-source VLMs judge under the same zero-shot prompt whether a transition is consistent; gWorld-8B, Code2World, SAWM, and MobileWorld-HTML predict semantics or render the future. The evaluation benchmark is RSWT-BENCH, with transitions from held-out AITW and GUIOdyssey (Rawles et al., 2023; Lu et al., 2025). The authors state that risks in existing GUI safety benchmarks are visible on the screen or in a single step (Sun et al., 2025), so detectors can score by what the risky screen looks like.
The authors state that, to their knowledge, no GUI world model has been built to align that comparison to observed outcomes; this paper defines verification as a third role for world models beyond simulation and planning.
How does the paper address this problem?
LGWM predicts the next screen in encoder space, cosine gap detects violations, residual direction distinguishes harm.
LGWM does not render the next screen, but performs action-conditioned prediction in the space of the observation encoder, turning verification into vector comparison.
Problem Setting
- What is being compared: The result distribution of an uncompromised interface is written as P⋆(st+1|st, at). A hijacked result is incompatible with this conditional distribution, but the same screen can be legitimate under a different action, so looking only at st+1 is not enough.
- Architectural role: LGWM is a joint embedding predictive architecture, with the roles reversed: the predicted representation is retained at test time and used for comparison with the observation, rather than being discarded after the encoder is trained. The consumer is a program, so it does not decode back to pixels.
- Three constraints on GUI: transitions are sparse, and a uniform loss would be dominated by static regions; clicks and landing points are inseparable; actions contain discrete types, continuous coordinates, and free text simultaneously.
Network and Action Encoding
The prediction is written as ẑt+1=gϕ(zt,eψ(at)), meaning it uses the patch representation of the current screen and the action token to predict the entire spatial map of the next screen. The target is provided by an exponential moving average copy of fθ, with gradients stopped. Both the prediction and the target are 512 tokens of 768 dimensions.
- Scale: fθ is a DINOv2 ViT-B/14 fine-tuned with layer-wise learning rate decay; a 448×224 screenshot is mapped to a 32×16 grid. The predictor is a 12-layer Transformer of the same width. Inference runs only fθ, the action encoder, and the predictor, with 172.86M parameters; the training graph is 261M, additionally including the EMA encoder and the inverse dynamics head.
- Action tokens: learnable type tokens, frozen MiniLM sentence embeddings, and coordinate tokens for spatial actions. Coordinates share the two-dimensional sinusoidal positional basis with visual patches, so that a landing point (x, y) and a patch centered at (x, y) use the same positional encoding. Non-spatial actions use discrete embeddings.
Training
- Change weighting: a binary patch change mask is obtained from image pairs, changed regions are weighted by λchg=8, the distance is Smooth-L1, then normalized by the weights. The mask has no semantic labels; it only prevents static regions from drowning out the transition signal.
- Auxiliary terms: variance and covariance regularization are used to avoid representation collapse, otherwise the alignment gap would saturate. The inverse dynamics head recovers the action from the current representation and the next target representation; the authors state that if action-relevant distinctions are discarded, erroneous transitions cannot in principle be separated. The coefficients are λcov=0.01 and λinv=0.5.
- Data and schedule: 1,845,659 real transitions (the abstract says 1.85M; training 1,824,824, validation 20,835), from AITW, MiniWoB++, GUIOdyssey, AndroidControl, AMEX, with sampling ratios 55.0%, 25.0%, 9.8%, 6.9%, 3.3%, excluding official evaluation splits. 120,000 updates, global batch 512, AdamW, bfloat16, four A100-80GB. After 30,000 updates, some batches are changed to two- or three-step rollouts, letting the predictor see its own errors. End-to-end with no human semantic labels.
Two Readouts
The observed next screen is also encoded by fθ, in the same space as the prediction. The integrity score is qint=1−cos(ẑt+1,zobst+1), i.e., 1 minus their cosine. It uses no safety or unsafe labels, no attack-specific conditioning, and its parameters come only from the pretrained world model.
- Direction head: the residual is concatenated with the action embedding, passed through a single linear layer and sigmoid. The action embedding is a conditioning term, not a harm feature. This is the only supervised component, fitted on a disjoint split. Figure 2 labels it as the second stage.
- Division of labor given by the authors: the residual magnitude asks whether the expectation is violated, and the direction asks what the violation consists of. The authors state that a rendered interface gives a verdict, not a directional residual that a linear head can re-read.
How the Diagnostic Set Makes Screen-Only Inspection Fail
- Donation pairing: each example is a complete transition from a held-out AITW and GUIOdyssey episode. Hijack examples keep the real screen and action, and replace the result with a credential-request screen from an unrelated episode; that screen also appears pixel-identically as the true result of its own legitimate transition, with opposite labels in the two places.
- Controls and splits: paired safe transitions reuse the same screen and action with their true result; there are also real benign transitions selected for high surprise, and mismatches made with harmless donated screens. The test set is 966 transitions around 222 pairs. The supervised method uses 6,786 examples with episode-disjoint splits.
- Metrics: RSWT is the pairwise AUC over 222 hijack occurrences and 222 legitimate occurrences. Swap compares benign mismatches with paired safe transitions, and Cred compares benign mismatches with legitimate credential transitions. The key point of Proposition 1's argument is that within a pair the result screens are identical, so a score that looks only at the result is the same, and under a tie convention each pair contributes 1/2.
What experiments did the paper conduct?
Training-free RSWT AUC is 0.987; the residual head has Harm AUC of 0.953, and prompted VLMs range from 0.512 to 0.614.
Experimental Setup
- Models: The evaluated model is LGWM (Table 1 parameter column 261M; the main text states 261M for training and 172.86M for inference). Comparisons include closed-source VLMs: Gemini 3.7 Flash, GPT-5.6 Luna, Qwen3.7 Plus, Qwen3.7 Flash, Qwen3-VL-Plus, Claude Haiku 4.5, Qwen3-VL-Flash; open-source VLMs: GLM-4.6V-Flash, Qwen3-VL-8B, Qwen3-VL-4B, Qwen3-VL-2B, Qwen2.5-VL-7B; GUI world models: gWorld-8B, SAWM, Code2World, MobileWorld-HTML.
- Data: Pretraining uses 1,845,659 transitions; sources and splits are described in §4.1. RSWT-BENCH has 966 transitions and 222 donor pairs. The supervised component uses only a disjoint set of 6,786 examples.
- Protocol: Each prompt baseline receives the same previous screen, structured action, and next screen, along with a shared zero-shot prompt asking whether the result is consistent with the transition. §4.2 states that after the generative world model renders the expectation, a separate VLM (Gemini 3.7 Flash in the evaluation) judges whether it matches the observation, and names gWorld-8B and Code2World. Latency is measured on a single A100-80GB with batch size 1.
- Metrics: RSWT, Swap, and Cred are all pairwise AUC, defined in §3. Harm AUC is the pairwise AUC between hijacking transitions and benign mismatches; both violate expectations, but only the former is labeled harmful (§4.2).
- Human and intervals: On 72 stratified items, agreement between three blind reviewers and the construction labels is 96.3±0.8%. The mean RSWT-equivalent AUC across three blind annotators on 20 hijacking examples and 20 legitimate examples is 0.958 (Table 1 note). The authors state that the donor-paired bootstrap 95% interval half-width for the leading system is close to 0.01. The paper does not report the number of independent repetitions for the main AUC.
Main Results
According to Table 1. Closed-source latency is shown as “—” in the table; the text below says not reported. The table lists only 8 rows, including Qwen2.5-VL-7B with the lowest RSWT.
Swipe horizontally to read the table
Method RSWT Swap Cred Latency (ms) Gemini 3.7 Flash 0.995 0.998 0.997 Not reported GPT-5.6 Luna 0.988 0.971 0.979 Not reported LGWM 0.987 0.970 0.985 17.1 Qwen3-VL-8B 0.907 0.905 0.859 1,097.8 gWorld-8B 0.885 0.897 0.837 113,200.0 Code2World 0.870 0.901 0.859 92,900.0 MobileWorld-HTML 0.577 0.691 0.568 124,300.0 Qwen2.5-VL-7B 0.574 0.580 0.543 819.4 RSWT for omitted rows (all from Table 1): Qwen3.7 Plus 0.973, Qwen3.7 Flash 0.968, Qwen3-VL-Plus 0.918, Claude Haiku 4.5 0.880, Qwen3-VL-Flash 0.746, GLM-4.6V-Flash 0.909, Qwen3-VL-4B 0.905, Qwen3-VL-2B 0.688, SAWM 0.882.
- vs. closed-source VLMs: The training-free score uses no benchmark labels, attack samples, or task prompts, and ranks 219 of 222 pairs correctly (§4.2). The authors report no detected difference in donor-paired comparisons with Gemini 3.7 Flash (p=0.07), GPT-5.6 Luna (p=0.83), and Qwen3.7 Plus (p=0.07); Qwen3.7 Flash is 1.9 AUC points lower (p=0.02); other systems are lower with p<0.001. The authors state that on Swap it is second only to Gemini and GPT, and on Cred second only to Gemini.
- Rendered expectations: The authors state that gWorld-8B and Code2World hold similar expectations but require rendering and then judging, and are about ten AUC points lower (abstract and §4.2), with at least 92.9 seconds before judging and at least 182 times more FLOPs. The abstract states latency is more than three orders of magnitude lower. The abstract writes 17 ms, while Table 1 shows 17.1 ms.
- Human reference: The mean on 20+20 examples is 0.958. The authors state that the training-free score is within three AUC points of this human reference.
Cost, Harm, and Control Probes
- Cost: One judgment is 0.408 TFLOPs, 1.09 GB peak memory, and 17.1 ms (main text and Table 1). The authors state that relative to Qwen3-VL-8B under the same protocol, FLOPs are 27 times less, memory 16 times less, and latency 64 times lower; even with eight-way batching of that VLM, there remains a 10.9 times latency gap. The authors state that the gate can therefore run at every step rather than on a sampled subset.
- Harm axis: The training-free score only looks at deviation magnitude, with Harm AUC of 0.513. Under the same transition-consistency prompt, prompt VLMs range from 0.512 to 0.614; the abstract states these VLMs are near random. The residual linear head is 0.953. That head has an RSWT of 0.930, lower than the training-free score's 0.987. The authors state that the two readouts measure different things; the head adds no measurable runtime cost.
- Where the signal comes from: A detector that only looks at the result is 0.500 by construction. The strongest single-frame probe on the concatenated zt is 0.796. A supervised classifier that receives both fθ and fξ representations and the action, but not the prediction, is 0.833. When the prediction is paired with a different transition, the residual head drops from 0.930 to 0.635. The authors state that screen appearance or an extra vector cannot explain the result; the signal comes from a learned transition prior.
Is the Prediction a Usable Future
- Not copying the current screen: The cosine between the prediction and the true next-state encoding is 0.618, and with the current state is 0.245; the persistent baseline of using the current representation as the prediction is 0.230. On patches the action actually changes, the copy score is −0.384. The authors state that the prediction targets what will change.
- Not replaying the training set: Among about 100 same-source held-out candidates, macro R@1 is 68.3%, while the baseline of the successor of the nearest training transition with the same action type is 44.6%. The authors state it is higher across all five sources; the paper does not provide per-source numbers.
- Varies with action and supports multiple steps: The win rate where the original prediction remains closer to the true encoding after counterfactuals: 0.891 for changing type, 0.800 for changing target within the same type, and 0.618 for a normalized coordinate shift of 0.05 (random is 0.5). Ten-step recursive prediction has a cosine of 0.562, the persistent baseline 0.455, and unrelated same-batch screens 0.092. The authors state it remains a usable future, not just a single-step anomaly score.
Other Ablations and Analyses
- Table 2 (ViT-S, 15k steps, single seed): Removing rollout training changes Cos@10 from 0.612 to 0.553 (−10% in the table).
- Removing inverse dynamics changes |Copy| from 0.286 to 0.193 (−32%).
- Removing VICReg changes the effective rank of prediction covariance from 43.7 to 22.5 (−49%).
- The authors state that each row in the table is a single seed and smaller than the main model; in a three-seed replication of control, cross-seed variance is small, but the paper does not provide variance values.
What are some points that can be further explored?
The authors state that the difficulty of forging a matching outcome in representation space has not yet been quantified.
Limitations and Future Directions Noted by the Authors
- Forging difficulty not quantified: In the Discussion, the authors write that expectation-based monitoring requires forging results in the agent's own representation space, which is a harder target, but its difficulty has not yet been quantified.
- Dedicated section: The paper has no dedicated Limitations or Future Work section; the Conclusion does not list other limitations or future experiments.
Experimental Coverage
- Pretraining: 1,845,659 transitions from five public sources, 120,000 updates, global batch 512, four A100-80GB GPUs (§4.1).
- Main detection: RSWT-BENCH has 222 donor pairs and 966 transitions; the supervised head uses a disjoint set of 6,786 examples (§3, Table 1).
- Comparison systems: Table 1 includes 7 closed-source VLMs, 5 open-source VLMs, 4 GUI world models, and LGWM. Closed-source rows have “—” for latency, TFLOPs, and VRAM.
- Other experiments: §4.2 reports Harm AUC and three control groups (single-frame, no-prediction, mismatched-prediction); §4.3 reports copying, memory, counterfactual actions, and ten-step rollout. Table 2 uses ViT-S, 15k updates, and a single seed; the authors state that control has an additional three-seed replication.
- Human and unreported quantities: Label audit uses 72 items and three people; RSWT-equivalent AUC uses 20 hijacking examples plus 20 legitimate examples. The paper does not report the number of independent repetitions for the main AUC, nor closed-source API latency.
Summarize the main content of the paper
LGWM uses representation prediction to verify GUI transitions, with an RSWT AUC of 0.987, which the authors state is comparable to the strongest closed-source VLMs.
LGWM uses a GUI world model as a transition verifier, not a simulator or planner.
- Problem: a credential screen does not itself reveal an attack. Third-party interfaces can redirect the outcome after the action while keeping every screen plausible; a monitor that only checks screens can be bypassed by a legitimate screen.
- Method: a decoder-free action-conditioned model maps the current screen and structured action to the next-screen representation, trained self-supervised on 1,845,659 real transitions. The training-free score is the cosine gap between prediction and observation; the only supervised component is a linear head on the residual direction.
- Detection: on RSWT-BENCH's 222 pixel-identical outcome pairs, training-free RSWT AUC is 0.987, ranking 219 pairs correctly, at 17.1 ms and 0.408 TFLOPs per decision (Table 1). The authors report no detected difference against Gemini 3.7 Flash (p=0.07), GPT-5.6 Luna (p=0.83), or Qwen3.7 Plus (p=0.07).
- Rendered comparisons: gWorld-8B and Code2World have RSWT AUC of 0.885 and 0.870. The authors state this is about ten AUC points lower, with at least 92.9 seconds before the judge and at least 182× the FLOPs. The lowest RSWT in the table is Qwen2.5-VL-7B at 0.574.
- Harm and prediction content: residual magnitude has Harm AUC of 0.513, prompted VLMs range from 0.512 to 0.614, and the residual head is 0.953. Prediction cosine with the future is 0.618 and with the current screen is 0.245 (§4.3).
- Authors' conclusion: the authors believe that for transition integrity, the hard part is holding the right expectation, not reasoning about the expectation. The authors state that prediction in representation space is sufficient for programmatic verification and is three orders of magnitude cheaper than rendering; a latent-space gate can run every step, with renderers or VLM judges used only on the few flagged transitions.