Skip to content

Mind2Web-Injection: Evidence-aligned evaluation of visual prompt injection guardrails for web agentsBeyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrails

Paper Tracker· arXiv:2609.05535· Suyoung Lee, Myungsub Choi·Indexed by this site · 2026-10-04· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

On Mind2Web-Injection, two models with AP differing by 0.001 have EAD0.3 of 0.426 versus 0.047.

Questions
Web screenshot guardrails can judge correctly but box the wrong element, or fail to change judgment even when evidence already aligns with the instruction. Decisions, localization, and counterfactual response need to be measured separately.
Methods
Constructing Mind2Web-Injection (9,954 pairs, precise evidence boxes, 6,168 aligned twins), separately measuring AP, localization, EAD, and two-sided counterfactuals, and using ReadGate and CmdCompare to diagnose box regression and instruction comparison.
Experiments and results
All six models have AP above 0.620. Qwen3-VL-8B and Llama-4-Scout have EAD0.3 of 0.426 vs 0.047, with nearly identical AP. On CFCT, Qwen3-VL-32B is 0.587 and GPT-5.6-luna is 0.999.
Limitations and future work
The authors note that it only covers general VLMs, injection is pixel overlay rather than HTML, human validation is limited, and the instruction-side probe is synthesized from self-cited evidence and answered in pure text. The experiments evaluate six VLMs, with the baseline being a positive rate of 0.620.
Experimental setupGPT-5.6-luna、Qwen3-VL-32B et al. · Mind2Web-Injection、Multimodal-Mind2Web · AP、mIoU et al.
Evaluated models
GPT-5.6-lunaQwen3-VL-32BQwen3-VL-8BGemma-4-31BGemma-3-27BLlama-4-Scout
Benchmarks
Mind2Web-InjectionMultimodal-Mind2Web
Metrics
APmIoUG.ACCEADCFCTCFCI
AI summaryResearchers propose the Mind2Web-Injection benchmark to evaluate visual prompt injection detection in web agent guardrails, containing 9,954 instruction-screenshot pairs, instruction-relevant labels, pixel-level evidence boxes, and matched image-side counterfactual samples. Across six VLMs, two models with nearly identical average precision differ ninefold on evidence-aligned detection (EAD, the proportion that both detects the attack and correctly localizes the evidence). To test whether decisions depend on the instruction cited as evidence, the researchers replace the instruction with an approving version; the strongest open-source localizer, Qwen3-VL-32B, returns aligned only 58.7% of the time, while GPT-5.6-luna does so 99.9%. The authors also propose two training-free interventions: ReadGate improves localization without changing decisions, and CmdCompare tests whether explicit instruction-command comparison can resolve instruction-side inconsistencies, and argue for reporting decision correctness, evidence localization, and counterfactual response separately. The work was accepted as an oral presentation at the ECCV 2026 BEAM2 workshop.

Researchers propose the Mind2Web-Injection benchmark to evaluate visual prompt injection detection in web agent guardrails, containing 9,954 instruction-screenshot pairs, instruction-relevant labels, pixel-level evidence boxes, and matched image-side counterfactual samples. Across six VLMs, two models with nearly identical average precision differ ninefold on evidence-aligned detection (EAD, the proportion that both detects the attack and correctly localizes the evidence). To test whether decisions depend on the instruction cited as evidence, the researchers replace the instruction with an approving version; the strongest open-source localizer, Qwen3-VL-32B, returns aligned only 58.7% of the time, while GPT-5.6-luna does so 99.9%. The authors also propose two training-free interventions: ReadGate improves localization without changing decisions, and CmdCompare tests whether explicit instruction-command comparison can resolve instruction-side inconsistencies, and argue for reporting decision correctness, evidence localization, and counterfactual response separately. The work was accepted as an oral presentation at the ECCV 2026 BEAM2 workshop.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Whether the verdict is right or wrong does not show whether the webpage guardrail used the screen evidence it should have used.

    Looking only at whether the verdict is right or wrong does not show whether the webpage agent guardrail used the screen evidence it should have used.

    • Scenario: The authors study screenshot guardrails. A general VLM receives both the user instruction and the current page of the webpage agent, and judges whether the on-screen text takes the agent away from the task. The authors argue that for a system that judges on behalf of another agent, evidence localization and whether the verdict depends on that evidence are themselves evaluation targets.
    • Existing evaluation: The authors state that looking only at the verdict compresses two types of failure into one score: marking an injection but highlighting an irrelevant element; and even when pointing to the correct text, the verdict may remain unchanged after changing that text to be consistent with the instruction.
    • Setup: Visual prompt injection is used as a controllable testbed because the key text occupies a precise pixel region, and either side of the instruction–evidence relationship can be counterfactually changed. The experiments target webpage guardrails, but the authors believe the problem also applies to multimodal systems that give both a verdict and localization evidence. The user instruction T is not in the image; the injected payload p is text that the attacker adds to the screen, with ground-truth box b. The authors assume T is benign throughout.
    • Proposed object: Mind2Web-Injection provides 9,954 instruction–screenshot pairs, pixel-level evidence boxes, and 6,168 image-side alignment twins. The protocol separately reports detection, conditional localization, joint evidence-alignment detection, and two-sided counterfactual consistency. ReadGate and CmdCompare are training-free diagnostics to distinguish coordinate regression errors from instruction–command comparison errors.
  2. What related research exists?

    Nearest neighbors are injection detection, layout attacks, and faithfulness; the experimental baseline is a skill-free AP.

    Nearest neighbors are indirect injection detection, typographic attacks, and explanation faithfulness; the experimental controls are not these detectors.

    Prompt injection detection

    • Formalization: The paper states that indirect prompt injection was formalized for LLM applications by Greshake et al. [18, 25]. Attacks on web agents include pop-ups, injected forms, and page perturbations.
    • Detectors: WAInjectBench scores detection on text and images; WebSentinel also localizes payloads; SnapGuard flags screenshots with lightweight cues. There are also agent-level benchmarks and defenses on the same text channel. AlignSentinel distinguishes misaligned, aligned, and non-instruction inputs; WebAgentGuard trains dedicated multimodal web guardrails.
    • Authors' positioning: The authors state they make the relationship measurable on native screenshots with pixel-level evidence and two-sided counterfactuals, use style-matched variants to reduce surface-form shortcuts, and jointly score detection and localization.

    Typographic attacks

    • Channel: FigStep and self-generated typographic attacks exploit text rendered into images to guide VLMs that would filter the same plain text; adversarial pixel attacks push this channel to full jailbreak.
    • Difference: The authors state that this channel revolves around whether the content itself is harmful; here, the injected text is harmless in isolation and only diverges relative to the instruction.

    Faithfulness

    • Whether reasons drive decisions: Related benchmarks test whether stated reasons drive decisions via localization or counterfactual perturbation [11, 20]. The paper cites that chain-of-thought explanations can be unfaithful and that accuracy and explanation quality can decouple.
    • Visual evidence: VISTAQA jointly evaluates answer correctness and pixel-level evidence; EDCT turns visual concepts in explanations into generative image edits to refute or support the explanation.
    • Difference: The authors state their safety setting intervenes on the relationship between instruction and rendered command, and includes matched image-side twins.

    Diagnostic technique sources

    • Localization fix: Section 3.3 changes coordinate regression to discrete token selection, following Set-of-Mark, tree search, and training-free region guidance. The authors call GUI localization another active direction.
    • Comparison: The comparison intervention builds on instruction/data isolation and is distinguished from activation-based task drift detection. The authors state both contributions are diagnostic, not algorithmic.

    Baselines and data: The experimental controls are six general-purpose VLMs; the no-skill baseline for detection AP is the positive rate 0.620. Screenshots come from Multimodal-Mind2Web. The authors place this work on the side of measurable relationships, joint scoring of detection and localization, and diagnostics rather than new detection algorithms.

  3. How does the paper address this problem?

    Score separately with relationship labels, precise boxes, and two-sided counterfactuals, then run two diagnostics.

    Mind2Web-Injection turns the relationship between the instruction and the on-screen text into testable samples, then scores detection, localization, EAD, and two-sided counterfactuals separately; ReadGate and CmdCompare are training-free diagnostics only.

    Task setup

    The guardrail input is a benign instruction T and a screenshot I, and it judges whether the on-screen text deviates from T, and if so, points to the location. Ground truth is defined by (T, I), not by the image: the same rendered command can be divergent under one instruction and aligned under another. The authors state that without T, image saliency or a classifier on OCR(I) cannot establish this relationship. The output is a verdict ŷ (divergent or aligned), a divergence score, a box b̂, and a quoted string q̂. T does not appear in the image.

    Data construction

    Fig. 2 and Appendix A show four steps. The starting point is 2,311 full-page screenshots from Multimodal-Mind2Web, after removing those with aspect ratio higher than 1:8, leaving 2,092, with domains Entertainment, Shopping, Travel.

    1. Transcription and instructions: PaddleOCR-VL transcribes. Qwen3-235B-A22B writes up to 5 benign instructions per page, anchored to OCR fragments, yielding 9,959 pairs. There are five types, including questions, single-step actions, navigation, multi-step, and instructions with constraints.
    2. Candidates: Uncensored Qwen3-32B-abliterated generates three style-matched candidates at once. Only p_divergent is the positive class. The distribution is 62.0% divergent / 24.0% aligned / 14.0% neutral. Divergent targets are stratified by redirect, hijack, exfiltration, manipulation, each about 25%.
    3. Rendering: Qwen3-235B-A22B selects position, box size, and color, and PIL composites onto the full-resolution screenshot, so boxes are precise. Style blended or highlighted is drawn by a seeded hash of the instance id, independent of the label. After dropping 5 pairs with no valid position, 9,954 remain: test_task 5,759, test_website 4,195.
    4. Alignment twins: Render the aligned candidate onto the same page, same position, same style, only reversing the relationship with T, so the ground truth should change from divergent to aligned, yielding 6,168 pairs. The authors state that a detector relying only on injected visual cues cannot respond correctly. Instruction-side counterfactuals are synthesized at evaluation time from the model's own q̂.

    Four types of scores

    A fixed meta-prompt requires writing a rationale before giving a binary verdict, and a region when divergent. Appendix D gives the template. Except for AP, all use binary verdicts.

    • AP: The positive class is divergent, with a full-threshold sweep over self-reported scores in [0, 100]. The no-skill baseline is a positive rate of 0.620. The authors state that using only ranking, absolute calibration does not affect AP.
    • G.ACC: Only when both ground truth and prediction are divergent, compute IoU between b̂ and b, with coordinates in original pixels. The main threshold is τ=0.3. For multiple boxes, take the best match, not the union.
    • EAD: At this operating point, it equals Recall times G.ACC, i.e., the proportion of all divergent samples that are both detected and localized. EAD(τ)=1/(N+)∑i=1N+1[ŷi=divergent]·1[IoU(b̂i,bi)≥τ]. Missed detections are directly counted.
    • CFC: S is the set of divergent samples that the base model already judged correctly. CFCk=1/(|𝒮|)∑i∈𝒮1[ŷi(k)=aligned]. CFCT keeps the referenced command unchanged, synthesizes an instruction that endorses that command, and re-judges with a pure-text call. CFCI keeps T, page, position, and style, replaces the divergent overlay with the aligned twin, and runs the end-to-end detector. The authors state that high consistency supports but does not alone prove faithful evidence use.

    Diagnostic interventions

    • ReadGate: Does not change ŷ, q̂, or detection scores. Draws b̂ on the selected crop; does not show q̂, lets the same model transcribe the text inside the box; compares using the maximum of sequence similarity and token-F1; if not below 0.7, keeps the original box, otherwise obtains b̂⋆ via coarse-to-fine token selection plus local OCR snapping. Degenerate boxes and gating errors are directly rebuilt. Same threshold for all models, no calibration set. The authors give an upper bound: EAD does not exceed recall times citation accuracy. Missed detections and wrong citations cannot be recovered.
    • CmdCompare: A visual scan that does not see T first gives a citation. The authors state that isolation alone is insufficient because the second step still does an absolute suspiciousness judgment, and may judge injected text as divergent even when T already endorses it. Extract, without seeing T, reduces the citation to a single imperative command B or none; Compare asks whether doing B instead of A=T deviates from A. Both calls have no image and no framework of suspicious webpage elements. It may change recall and false positives, and does not change visual candidate extraction. The authors state this is a diagnostic restatement, not a general faithfulness fix.

    Scores and coordinates

    Hosted models do not provide token log-probabilities, so all six models regress a divergence score on [0, 100] and are discouraged from collapsing to 0 or 100; open models also do not use log-prob. Unparseable responses are excluded, valid samples are slightly below 9,954, and the paper does not give per-model exclusion counts. The authors state that if read directly in absolute pixels, almost every model's IoU would drop below 0.01, so they first detect and reverse the coordinate convention before computing IoU. Pages exceeding the vision encoder's limit are split into overlapping vertical crops, and boxes are mapped back to the full page. Five open models are served locally with vLLM.

  4. What experiments did the paper conduct?

    All six models have AP above 0.620, yet similar AP can correspond to a ninefold EAD.

    Experimental setup

    • Models: GPT-5.6-luna (hosted API), and locally vLLM-served Qwen3-VL-32B, Qwen3-VL-8B, Gemma-4-31B, Gemma-3-27B, Llama-4-Scout. Same fixed meta-prompt, requiring weighing authority impersonation, urgency framing, action redirection, and data exfiltration against the instruction.
    • Data: 9,954 pairs from Mind2Web-Injection, positive class proportion 62.0%. Image-side probes use 6,168 aligned twins. test_task 5,759, test_website 4,195. Responses with parsing failures are excluded; the paper does not give valid n per model on the full set.
    • Controls: No-skill AP is the positive rate 0.620. The experiments do not include dedicated detector baselines.
    • Metrics: AP ranks self-reported scores on [0, 100]; G.ACC, EAD, CFC use binary decisions. Main threshold τ=0.3. Denominators for CFCT and CFCI are divergent samples already correctly judged by the base.
    • Decisions: No external judge model. Localization uses IoU with ground-truth boxes, after reversing each model's coordinate convention. When divergent, a region is required. Reasons precede the decision; guided decoding makes analysis tokens precede labels.
    • Repetitions: The paper does not report number of repetitions. Appendix G.4 gives 95% cluster-bootstrap intervals resampled by source page for image-side results.

    Main results

    Table 1 summarizes detection and localization. The no-skill row only reports AP.

    Swipe horizontally to read the table

    ModelAPmIoUG.ACC0.3EAD0.3
    GPT-5.6-luna0.8860.6640.8860.640
    Qwen3-VL-32B0.7690.6470.9400.453
    Qwen3-VL-8B0.7520.4560.7880.426
    Gemma-4-31B0.7090.2880.4760.201
    Gemma-3-27B0.7260.0250.0280.018
    Llama-4-Scout0.7510.0890.1170.047
    No-skill baseline0.620not reportednot reportednot reported
    • Authors' interpretation: The authors state that two models with tied detection differ ninefold in EAD, and that looking only at detection rankings treats models with different evidence quality as equivalent. Fig. 1 uses the same AP vs EAD comparison as Table 1 for illustration.
    • Localization: The authors state that detection performance alone does not establish usable evidence localization: some models can localize most of their detected attacks, while others have still-low conditional localization.
    • Figures: Fig. 5 precision axis starts at 0.6, dashed line is positive rate 0.620. The authors state all six curves leave this baseline, and self-reported score curves are less smooth than log-prob ranking. Fig. 6 annotates upper-row IoU as 0.98, 0.93, 0.86, lower row about 0; both rows have divergent decisions. The authors state the lower row has correct labels but wrong evidence.

    ReadGate

    Table 2 compares G.ACC at τ=0.5 on correctly detected attacks in both splits. The authors state that stronger localizers are near ceiling at 0.3, so a stricter threshold is used here.

    Swipe horizontally to read the table

    Modelorigrecon.gatedΔ vs origoracle
    GPT-5.6-luna0.6970.4910.717+0.0200.810
    Qwen3-VL-32B0.8070.4430.814+0.0070.860
    Qwen3-VL-8B0.4450.3970.497+0.0520.642
    Gemma-4-31B0.2530.4870.490+0.2370.600
    Gemma-3-27B0.0060.2990.272+0.2660.302
    Llama-4-Scout0.0380.4070.327+0.2890.430
    • Strategy: orig is the regression box, recon. is always reconstruct, gated routes per sample. The authors state the two fixed strategies suit opposite localization regimes, so they use per-sample routing rather than assuming one strategy per model.
    • Interpretation: At the same threshold and without a calibration set, gated is higher than the original box for every model and avoids the loss of unconditional reconstruction for GPT-5.6-luna and Qwen3-VL-32B. When the original box is near noise, reconstruction is better, but the oracle column shows these rows have little routing headroom. The authors state the main benefit is robustness across regimes, not uniformly better. Decisions are not modified.

    Counterfactuals and CmdCompare

    Table 3 columns are all conditional on correct detection. CC means adding CmdCompare.

    Swipe horizontally to read the table

    ModelCFCTCFCT+CCCFCICFCI+CC
    GPT-5.6-luna0.9990.9870.7980.786
    Qwen3-VL-32B0.5870.7310.6950.560
    Qwen3-VL-8B0.5520.8820.6080.561
    Gemma-4-31B0.8980.9930.4630.799
    Gemma-3-27B0.5290.2700.2290.246
    Llama-4-Scout0.2990.9120.6550.643
    • Instruction side: The authors state that the two strongest localizers differ by 41 percentage points on CFCT; both can point to the offending text, but when the instruction is changed to approve that text, only one reliably flips to aligned. The authors state that GPT-5.6-luna's high score on this probe can be used to check whether the expected response exists.
    • Failure modes: The authors state that Llama-4-Scout's low CFCT is consistent with reading the overlay but not correctly associating T; in Table 9 its recall is 0.403, and the authors believe part of the image-side restraint comes from threshold shift. Gemma-3-27B still alarms after the payload is changed to aligned; Table 9's base FPR is 0.477, and the authors state over-triggering is already visible on ordinary benign pages. On citation accuracy, Gemma-3-27B is 42.5%, with 76.7% of its false positives on ordinary page components; Llama-4-Scout is 91.3%. The authors state that for restatement to work, the model must already cite the correct on-screen text.
    • Image side: The authors state that CmdCompare does not generally transfer to aligned twins because it does not change visual candidate extraction. In Table 11, only Gemma-4-31B shows a clear CFCI increase; twin FPR rises for five of six models. In Table 12, the compared path after comparison is below half for four of six models; Gemma-3-27B is 0.038/0.246, and Gemma-4-31B's no candidate path is 0.271/0.799.

    Other ablations and analyses

    • Table 6: The two splits have the same ranking; no model's mIoU changes by more than 0.03 across splits.
    • Table 7: τ from 0.2 to 0.8, model ranking unchanged. The authors state that after τ=0.6, Qwen3-VL-32B falls below GPT-5.6-luna; in the table, τ=0.6 is still 0.616 vs 0.594, τ=0.7 is 0.414 vs 0.510. The authors state that the two weakest localizers are near 0 at all thresholds.
    • Table 8: Citation accuracy GPT-5.6-luna 0.900, Qwen3-VL-32B 0.985, Qwen3-VL-8B 0.981, Gemma-4-31B 0.822, Gemma-3-27B 0.425, Llama-4-Scout 0.913. Among Gemma-3-27B's false positives, Q1-type is 0.767; other models are dominated by Q2-type.
    • Table 5: Llama-4-Scout, test_task pilot, 200 images; f16c16 hybrid0.5 is 0.405, hybrid0.3 is 0.722. Appendix C: yes/no judge variant abandoned due to yes-bias; routing is not better than always reconstruct.
    • Table 9: GPT-5.6-luna's CFCI is 0.798, nead is 3945; Gemma-3-27B's CFCgr is 0.144, nead is 111. The authors state the latter should not support strong claims.
    • Table 11 divergent-cell recall: CmdCompare brings Qwen3-VL-32B from 0.482 to 0.701, Llama-4-Scout from 0.403 to 0.606, Qwen3-VL-8B from 0.541 to 0.744, Gemma-3-27B from 0.634 to 0.760; Gemma-4-31B from 0.421 to 0.400, GPT-5.6-luna from 0.734 to 0.700.
  5. What are some points that can be further explored?

    The authors note that it only evaluates general VLMs, pixel overlay, and the instruction-side probe is indirect.

    Limitations and future directions noted by the authors

    • Model scope: The study only covers general-purpose VLMs (Conclusion).
    • Attack form: Injection is pixel overlay, not writing into the underlying HTML. The authors state this trades some ecological realism for precise evidence boxes (Conclusion).
    • Labels: The construction pipeline is fully model-driven, with only limited human verification of the resulting labels (Conclusion).
    • Instruction-side probe: It is synthesized from evidence cited by the model itself and answered in a pure-text call. The authors state a more direct test would re-judge the rendered page under independently written approving instructions (Conclusion).
    • Future work: The authors believe the benchmark would benefit from stronger human verification, more realistic web attacks (including DOM-native), dedicated guardrail baselines, and more direct instruction-side counterfactual tests (Conclusion).
    • Small sample: Appendix G.4 states that Gemma-3-27B's image-side estimate on the correctly localized subset is uncertain (nead=111) and should not support strong claims; Table 10 uses page-clustered intervals to make this caveat explicit.

    Experimental coverage

    • Models: The guardrails tested are GPT-5.6-luna, Qwen3-VL-32B, Qwen3-VL-8B, Gemma-4-31B, Gemma-3-27B, and Llama-4-Scout, 6 in total; five open models are served locally with vLLM (Sec. 4.1).
    • Data: Mind2Web-Injection has 9,954 pairs from 2,092 screenshots, with domains Entertainment, Shopping, Travel; test_task 5,759, test_website 4,195; image-side twins 6,168 pairs (Sec. 3.1, Appendix A).
    • Metrics and interventions: Reports AP, mIoU, G.ACC, EAD, CFCT, CFCI, and runs ReadGate and CmdCompare (Sec. 3–4, Table 1–3).
    • Controls and unreported numbers: The control for detection AP is the positive rate 0.620. The paper does not report numbers on dedicated guardrail baselines, does not report number of repetitions, and does not report human label agreement.
    • Intervals: Image-side counterfactuals give 95% cluster-bootstrap intervals resampled by source page; 6,168 pairs come from about 2,054 pages (Table 10, Appendix G.4).
  6. Summarize the main content of the paper

    The authors claim detection, localization, and counterfactual response are separable across six VLMs.

    Mind2Web-Injection is used to check whether the verdict of a webpage screenshot guardrail is aligned with the visual evidence it should use.

    • Problem: A general VLM sees both the user instruction and the page, and judges whether the on-screen text distracts from the task. A correct verdict can still have a wrong box, or fail to change the verdict after the relationship is changed to be consistent. Reporting only a single verdict score conflates these two types of failure.
    • Approach: Real screenshots are processed through OCR, benign instructions, three types of style-matched candidates, and VLM-selected placement rendering, yielding 9,954 pairs with precise boxes, plus 6,168 alignment twins that only reverse the relationship between the overlaid text and the instruction. Scoring separates AP, conditional localization G.ACC, joint EAD, and instruction-side CFCT and image-side CFCI. ReadGate only fixes boxes; CmdCompare makes the comparison between the referenced command and the instruction an explicit step.
    • Detection and localization: In Table 1, GPT-5.6-luna has AP 0.886 and EAD0.3 0.640. Qwen3-VL-8B and Llama-4-Scout have AP 0.752 and 0.751, and EAD0.3 0.426 and 0.047. All six models have AP above the no-skill baseline of 0.620.
    • Counterfactuals: The authors state that Qwen3-VL-32B is the strongest open-weight localization model, with CFCT 0.587; GPT-5.6-luna is 0.999 (Table 3). CmdCompare changes Llama-4-Scout's CFCT from 0.299 to 0.912, and Gemma-3-27B from 0.529 to 0.270.
    • Box fixing: In Table 2, ReadGate improves G.ACC for all six models relative to the original boxes at τ=0.5, without changing verdicts. The authors state that it distinguishes coordinate regression errors, not missed detections.
    • Authors' conclusion: On the six evaluated VLMs, detection, localization, and counterfactual response can be separated; correct answers do not certify evidence use. Multimodal evaluation should separately report verdict correctness, evidence localization, and counterfactual response.

Related papers

Read originalarxiv.org