Agent-level adversarial purification: revisiting diffusion purifiers on native-resolution agent inputsAgentic-Level Adversarial Purification: Revisiting Diffusion Purifiers on Native-Resolution Agentic Inputs
The authors propose the AgenticPure evaluation protocol, re-test diffusion purifiers at native resolution on the Qwen3-VL-8B agent, and DC-4 maintains 85.0% RAgb against GB-T on the web-shop page.
The grey-box (purifier-unaware) attacker knows the agent's VLM and task but not the purifier, and perturbs the whole TextVQA image or the photo of one wrong product card in the web-shop page within the ℓ∞ budget; the same-page adaptive attacker also knows the defense and optimizes through the defense on the evaluated page.
- VLM agents read native-resolution, multi-element pages, and perturbing a single product photo or a few text strokes can change decisions. Existing diffusion purifiers are designed and evaluated for classifier inputs; their clean cost and robustness on agent inputs have not been measured.
- AgenticPure fixes the input resolution, attack set, and readout: it runs DC, SSNI, and DiffCAP at native resolution in tiles, constructs grey-box and same-page adaptive attacks, and compares against JPEG, BIT, and GN at matched clean cost.
- The authors report that DC-R's scaling brings the TextVQA clean cost to 35.7 points, whereas DC-4 is 4.0 points; on the web-shop page, DC-4 maintains 85.0% RAgb against GB-T, and the cheap transformations matching the cost reach at most 40.0%. The same-page adaptive attack reduces JPEG-60 to 8.3% RAad.
- The main experiments are single-step decision-making on TextVQA and a five-product web-shop page, with Qwen3-VL-8B and Qwen2.5-VL-7B as the evaluated VLMs; the adaptive evaluations of SSNI and DiffCAP each use 20 pages. The adaptive values of the diffusion purifier are upper bounds on robust accuracy; the paper does not specifically discuss limitations.
- Evaluated models
- Qwen3-VL-8B-InstructQwen2.5-VL-7BResNet-50CLIP ViT-L/14
- Benchmarks
- TextVQArendered web-shop pagesImageNetCaltech-101ImageNet-R
- Metrics
- clean costRAgbRAadattack success rate
The authors state that this is the first agent-level adversarial purification study, targeting a vision-language agent based on Qwen3-VL-8B: since any content provider can construct perturbations on the open model behind the agent, a plug-in purifier is regarded as the first line of defense. The study runs a diffusion purifier at the native resolution of multi-element inputs, against a gray-box attacker that knows the model used by the agent but not the defense, and compares methods at matched clean cost. Results show that treating agent inputs as classifier inputs misleads both evaluation and design, and that scaling inputs to the diffusion model resolution, as existing purifiers do, raises the clean cost of the Divide-and-Conquer (DC) purifier on TextVQA from 4.0 to 35.7 points. On web store pages, DC maintains 85.0% gray-box robust accuracy against perturbations targeting web reinforcement, versus at most 40.0% for cheap input transformations at equal clean cost, and this robustness comes from the global noise level, with the input-estimated mask and noise level contributing nothing extra.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:原生分辨率扩散净化器防御视觉智能体
Paper analysis
What problem does this paper attempt to solve?
The authors study adversarial purification on native-resolution agent inputs and argue that the classifier-input assumption misleads evaluation and design.
The core question is: the clean cost and robustness of diffusion purifiers on native-resolution, multi-element inputs of VLM agents have not yet been directly measured.
- Problem setting: the agent makes a single-step decision based on a native-resolution screenshot or photo, for example choosing a product from five product cards on a rendered web-shop page, or answering a TextVQA question. The authors state that a perturbed product photo or a few text strokes can change the decision, and a third-party content provider can construct perturbations on the open model behind the agent.
- Gap in existing evidence: existing diffusion purifiers operate at the diffusion model's fixed resolution; agent defense evaluations test JPEG, blur, and noise, but do not test diffusion purifiers. The authors argue that, as a result, it is unknown what clean cost the purifier imposes on the agent and what robustness it adds relative to cheap transformations.
- Core assumption: the authors call the assumption behind existing evaluations the classifier-input assumption: evidence is distributed over a fixed-resolution whole image, and perturbations are small and not shaped by preprocessing. The authors argue that the decision on agent inputs depends on a decisive element, and deployable perturbations can perceive this and harden against web preprocessing.
- Proposed work: the paper proposes the AgenticPure evaluation protocol, adapts DC, SSNI, and DiffCAP to native resolution, compares defenses at matched clean cost, and analyzes resolution, readout, perturbation tiers, input-estimation components, and adaptive attacks.
- Threat model:
- Goal: in web-shop, make the agent select the attacker-specified wrong product card; in TextVQA, reduce answer accuracy.
- Knowledge: the main setting is grey-box (purifier-unaware), knowing the VLM and task but not the purifier; the same-page adaptive attacker also knows the defense.
- Capability: perturb the whole TextVQA image within ℓ∞≤8/255 or 64/255, or the photo of one wrong product card in web-shop; the adaptive attack optimizes through the defense on the evaluated page.
- Victim system: a single-step decision agent with Qwen3-VL-8B as the VLM, also retested on Qwen2.5-VL-7B.
What related research exists?
Related work is divided into VLM agent attacks, diffusion purification, VLM purification, and input transformations; this paper fills the gap in native-resolution agent evaluation.
VLM and VLM agent attacks
- White-box and transfer attacks: the paper cites Bailey et al. (2024), Qi et al. (2024), Schlarmann and Hein (2023), and Zhao et al. (2023), discussing adversarial images attacking VLMs in white-box and transfer settings.
- Page agent attacks: Han et al. (2026), Qian and Kang (2026), Seip and Hein (2026), and Wu et al. (2025) use norm-constrained perturbations; Aichberger et al. (2025) and Liu et al. (2026) use image patches; Liao et al. (2025), Ma et al. (2025), and Zhang et al. (2025) study injected page content.
- Features of existing evaluations: the authors state that these norm-constrained evaluations use ℓ∞ budgets from 8/255 to 16/255, and except for Seip and Hein (2026), the attacks are not optimized against the evaluated defense; their pixel defenses are mainly JPEG, blur, and noise.
Diffusion purification and its robustness evaluation
- DiffPure and subsequent methods: DiffPure (Nie et al., 2022) adds noise to the input up to a fixed level and then denoises with a pretrained diffusion model; subsequent work adds guidance, votes over multiple samples, or performs single-step purification.
- Input-adaptive purification: DC (Pei et al., 2025) uses a higher noise level inside the attention mask, SSNI (Sun et al., 2025) estimates the noise level per sample, and MANI-Pure (Huang et al., 2025) injects frequency-targeted noise.
- Re-examining robustness: DiffAttack, Lee and Kim (2023), DiffHammer, and others re-evaluate purifiers with adaptive or transfer attacks; Liu et al. (2025) argue that randomness is the main source of their robustness, and DiffBreak (Kassis et al., 2025) evaluates under majority voting over multiple purification copies.
Purification for VLMs
- DiffCAP and DiffPure-VLM: DiffCAP (Fu et al., 2026) sets the noise level according to a stopping rule on image embeddings; DiffPure-VLM (Wang et al., 2025) scales the input to 256×256. DiffCAP reports that DiffPure reduces LLaVA-1.5-7B's TextVQA accuracy from 37.1 to 20.9.
- F3 and PureProof: F3 (Zhang et al., 2025) is a noise purifier independent of input resolution; PureProof (Cao et al., 2026) attacks VLMs behind DiffPure and GDMP on ImageNet images, including Qwen3-VL-8B. The authors note that these works do not report clean cost on native-resolution agent screenshots.
Input transformations and this paper's baselines
- Input transformations: JPEG compression and bit-depth reduction were originally aimed at classifiers; the paper cites studies of adaptive attacks on classifiers and on MiniGPT-4. In Seip and Hein (2026)'s PRAC, JPEG quality 75 reduces the attack success rate on Qwen3-VL from 93.3% to 21.6%, and optimizing through JPEG restores it to 53.3%.
- Baselines and benchmarks: the defense controls are JPEG-q, BIT-b, GN-s, and No defense, and the diffusion methods are DC, SSNI, DiffCAP, and fixed global noise G@t; the tasks are TextVQA and web-shop pages rendered in the PRAC form, and the reproduction check additionally uses ImageNet, Caltech-101, and ImageNet-R.
The authors position this paper as testing resolution, readout, web-hardened perturbations, and input-estimation components together on agent inputs, rather than proposing another classifier purifier.
How does the paper address this problem?
AgenticPure fixes native-resolution adaptation, the attack set and the readout in turn, then compares robustness at matched clean cost.
The overall idea is to break the purifier pipeline from the classifier era into components that can be tested separately, forming AgenticPure: Adapt adapts the purifier, Attack builds the attack bank, and Read fixes the randomly sampled decision readout.
Agent inputs and threat model
- Two input types: the TextVQA agent answers questions on native-resolution photos; the web-shop agent selects the target product among five product cards on a 960×540 rendered page. The decisive elements are scene text and the product photo, respectively.
- Attack budget and location: the imperceptible tier is ℓ∞=8/255, and the perceptible tier is 64/255; the former covers the whole TextVQA image, and the latter covers the photo of one wrong product card.
- Web preprocessing: Tweb downsamples the perturbed photo by 0.5×, compresses it at JPEG quality 75, and then upsamples it back to the original size. The web-hardened attack optimizes against random JPEG, rescale, noise, and blur.
Adapt: native-resolution purification
- Unified pipeline: the purifier scales the input to 256×256 or tiles it, adds noise to noise level t, then denoises with a diffusion model and passes the result to the VLM. Except for DC-R, methods run on the native input as 256×256 overlapping tiles with stride 224, and are blended back into the page with a 32-pixel feathered blend.
- DC variants: DC uses tl=0.4 inside the attention mask and ts=0.2 elsewhere; the mask is the top 15% of the attention map formed by the VLM vision-tower activations. DC-200 keeps the official 200-step loop, DC-4 uses four function evaluations, DC-R scales the whole image to 256×256, and DC-4+ sets the stronger level for non-mask regions to 0.30.
- Other methods: SSNI estimates the noise level per tile using the published hyperparameters; DiffCAP decides the stopping level on the tiles' CLIP features according to its Alg. 1 and 2; both use two-step DDIM. G@t denotes a fixed global noise level t, using two DDIM evaluations.
- cheap transformations: the grids for JPEG-q, BIT-b, and GN-s are q∈[10,95], b∈[2,7], and s∈[1,32], respectively; No defense is the agent without defense.
Attack: grey-box and adaptive attacks
- Attack bank: the perceptible bank P contains five GB-LF and three GB-T members; the TextVQA imperceptible bank contains PGD, APGD, two GB-LF, GB-T, and one member optimized through JPEG quality 75, and GB-T10 additionally adds a member covering a lower JPEG quality range.
- Per-page worst case: all members are generated on the undefended VLM, and each defense is scored per page by the worst member. The web-surviving subset keeps only pages where a P member still hits the target after Tweb.
- same-page adaptive: starting from grey-box members, it runs 60 iterations on the evaluated page, using BPDA for non-differentiable steps; for randomized defenses, each iteration takes the expectation over two noise samples. The convergence check extends to 180 iterations, and the gradient-masking check confirms that increasing the budget does not raise accuracy.
Read: readout, metrics, and statistics
- readout: one draw is one random purification; vote-k takes the majority of k decisions, mean-k takes the mean of k scores, and logit-k uses the decision from the averaged logit. Each defense is fixed to the readout with the highest clean accuracy on the development set for the task.
- Matched clean cost: the cheap transformation or fixed noise level is chosen as the grid setting with the largest cost among those whose clean cost does not exceed the purifier's, so its clean development accuracy is no lower than that of the compared purifier.
- Metric definitions: clean cost is the No defense accuracy minus the clean accuracy under defense, in points; RAgb is accuracy under the grey-box bank, and RAad is accuracy under the same-page adaptive attack, which the authors call an upper bound on robust accuracy.
- Statistics and decisions: intervals are 95% paired bootstrap intervals with 10,000 resamples; attack success rates are proportions with 95% Wilson intervals. For web-shop, the decision is the product digit with the largest next-token logit; TextVQA uses greedy decoding and is scored with soft VQA accuracy; two annotators checked that perturbed products remain recognizable, with class agreement κ=0.90.
What experiments did the paper conduct?
Experiments show that native-resolution DC-4 outperforms cost-matched input transformations under web-hardened perturbations, but adaptive attacks weaken the defense.
Experimental setup
- Evaluated VLMs: the main experiments use Qwen3-VL-8B, and Appendix H repeats both tasks on Qwen2.5-VL-7B; the reproduction check additionally uses ResNet-50 on ImageNet and zero-shot CLIP ViT-L/14 on Caltech-101 and ImageNet-R.
- Data scale: the development set contains 250 TextVQA questions, 200 clean web-shop pages, and 60 attacked pages; the held-out set contains 1,000 questions and 300 pages. The 8/255 TextVQA experiments attack 126 images with No defense accuracy of at least 0.5.
- Defenses and baselines: DC-R, DC-200, DC-4, DC-4+, SSNI, DiffCAP, G@t, compared against JPEG-q, BIT-b, GN-s, and No defense; the web-shop perceptible tier is 64/255.
- Metrics and attacks: clean cost is measured in accuracy points, RAgb takes the per-page worst member of the grey-box bank, and RAad takes the result of the same-page adaptive attack; web-shop success is selecting the target wrong card, and TextVQA success is a drop in answer accuracy.
- Statistics and manual checks: intervals are 95% paired bootstrap intervals (10,000 resamples), and attack success rates have Wilson intervals; two annotators checked 200 perturbed and 100 clean product photos, with class agreement κ=0.90.
- Reproduction check: in Table S2, for DC on ImageNet, clean accuracy is 69.53 for ours and 74.51 for published (n=256), and for SSNI it is 72.27 versus 70.25; all four published DiffCAP values fall within the 95% Wilson intervals of the authors' implementation.
Main results
According to Table 2, development-set web-shop pages, Qwen3-VL-8B, 64/255; RAgb is in %, clean cost is in points, and the parenthetical column is the readout (Table 1).
Swipe horizontally to read the table
Defense clean cost (n=200) Worst of P RAgb (n=60) GB-T RAgb (n=60) Tweb(xadv) RAgb (n=60) JPEG-60 3.0 40.0 40.0 68.3 BIT-3 3.0 36.7 40.0 66.7 GN-8 2.5 30.0 33.8 65.8 DC-200 (logit-4) 3.0 88.3 86.7 90.0 DC-4 (logit-4) 3.0 87.5 85.0 90.8 DC-R (logit-4) 16.5 79.2 80.8 80.0 SSNI (vote-10) 2.5 56.7 56.7 88.3 DiffCAP (vote-8) 1.0 30.0 31.7 60.0 - Resolution and readout: in Table 1, on the TextVQA development set, DC-R under vote-8 has a clean cost of 35.7 [29.5, 42.0] points, and DC-4 under vote-20 has 4.0 [0.5, 7.6] points; the same DC-4 with mean-4 instead gives 10.8 [6.9, 14.9] points. The authors conclude from this that clean cost depends on both resolution handling and readout.
- Matched-cost comparison: for GB-T, the paired gap of DC-4 relative to the highest value among cheap transformations at matched clean cost is 45.0 [30.8, 55.8] points; on held-out pages, DC-4 against Worst of P is 83.2 [78.8, 87.4], and the highest among cheap transformations is 44.0 [38.1, 49.8].
- web-surviving subset: on the 31 pages where the attack still hits after Tweb, DC-4 maintains 83.9 [70.0, 96.3], and the matched cheap transformations reach at most 45.2 [27.6, 63.0]. The authors state that the web pipeline weakens the attack, but DC-4 remains higher than the controls.
Input-estimation components and fixed noise
- mask ablation: in Table 3, the clean accuracy difference between DC-4 and DC-4 (no mask) is −0.25 [−1.75, 1.25] points, and the RAgb paired difference is 3.3 [−1.7, 9.2] points; on held-out, the corresponding RAgb difference is 1.6 [−0.7, 4.0] points.
- Noise level: [email protected] has the same clean cost as SSNI, and its RAgb is 75.0 [63.3, 85.0], which is 18.3 [8.3, 30.0] points higher than SSNI; [email protected] is 33.3 [21.7, 45.0]. The authors explain that SSNI's estimated level on perturbed photos is close to the clean value and does not rise with the attack.
- DiffCAP variants: the RAgb of the five stopping-rule variants in Table 3 ranges from 28.3 to 35.0 (n=60); these results, together with the mask and SSNI results, support the authors' judgment that on web-shop pages, the input-estimation components do not add robustness at matched clean cost.
Same-page adaptive attacks
- cheap transformations: in Table 4, JPEG-60 drops from RAgb 40.0 [28.3, 51.7] to RAad 8.3 [1.7, 16.7], and GN-16 drops from 39.6 [28.3, 51.3] to 12.1 [5.0, 20.0], both with n=60.
- Diffusion purifiers: DC-4 has RAgb/RAad of 87.5/57.5, DC-4+ has 89.2/80.8, and [email protected] has 85.0/50.8 (each n=60); SSNI is 45.0/30.0 and DiffCAP is 25.0/10.0 (each n=20). The authors explicitly call the adaptive values of the diffusion purifiers upper bounds on robust accuracy.
- Attack checks: in Table S6, after extending to 180 iterations and restarting, DC-4 accuracy changes by −2.5 [−7.5, 0.0] points and [email protected] changes by −15.0 [−30.0, −2.5] points; when the budget rises to 128/255, the two accuracies drop to 30.0 and 35.0 points, respectively (10 pages).
Decisive element and second VLM
- Decision location: in Figure 4(b), after zero fill masks the real product photo, No defense accuracy is 21.0, DC-4 mean-8 is 19.5 [14.8, 24.5], and chance level is 20; when the decoy photo is masked, undefended accuracy is 93.5 [90.0, 96.5].
- Attack surface and clean cost: in Figure 4(c), an attack restricted to text strokes has a success rate of 0.64 [0.50, 0.76] on 50 TextVQA images, versus 0.05 [0.01, 0.23] for equal-area non-text regions (21 images). In Figure 4(e), purifying only the remaining regions has a clean cost of 0.8 [−0.3, 1.9] points on web-shop and −0.2 [−2.2, 1.8] points on TextVQA.
- Second VLM: in Table S7, on Qwen2.5-VL-7B, DC-4 against GB-T is 78.3 [66.7, 88.3], the matched cheap transformations reach at most 28.3 [16.7, 40.0], and the paired gap is 50.0 [36.7, 61.7] points; DC-R's resize cost on TextVQA is 58.8 [52.5, 64.7] points.
Other ablations and analyses
- JPEG hardening scope: in Table S4, after adding GB-T10, the RAgb of differentiable JPEG-20 drops from 70.6 to 58.5, a paired drop of 12.2 [6.9, 18.0] points (n=126).
- DCT saturation correlation: Figure S1 reports the Spearman ρ between the predicted saturation proportion and accuracy under JPEG, which is 0.19 [0.11, 0.27] for TextVQA and 0.26 [0.13, 0.38] for web-shop.
- tiling sensitivity: in Appendix C, with stride 224, 256, 128 and with or without feather, DC-4's clean cost is 2.5 to 3.0 points on web-shop and 3.1 to 7.5 points on TextVQA; with stride 128, RAgb is 74.2 [63.3, 84.2].
- full grid of fixed settings: in Table S5, JPEG-10 achieves the highest RAgb among cheap settings against GB-T, 68.3 [56.7, 80.0], at a clean cost of 7.5 points; the rows from [email protected] to [email protected] are each at least 83.3.
- imperceptible tier: in Appendix D, the RAgb of DC-4, SSNI, and DiffCAP is 87.6, 84.7, and 60.6, respectively, and No defense is 22.8 (126 TextVQA images).
What are some points that can be further explored?
The paper does not specifically discuss limitations; the evidence covers two types of single-step inputs and two VLMs, and the scale of the adaptive evaluation varies by defense.
Limitations and future directions noted by the authors
- The paper does not specifically discuss limitations: the main text has no separate Limitations or Future Work subsection, and the conclusion does not list a follow-up research agenda.
- Boundaries of result interpretation: Sec. 4.4 explicitly states that the adaptive values of the native-resolution diffusion purifier are upper bounds on robust accuracy; Sec. 5(iii) asks future purifiers to report same-page adaptive robust accuracy with convergence and gradient-masking checks, and to compare against cheap transformations matching the clean cost.
Scope of experimental coverage
- Tasks and decision forms: the experiments cover TextVQA native-resolution photo question answering and single-step selection on a 960×540 web-shop page with five product cards; the web-shop photos come from 15 classes with 50 images each in disjoint pools (Appendix B).
- Evaluated VLMs: the main experiments use Qwen3-VL-8B; Appendix H repeats the web-shop and TextVQA experiments on Qwen2.5-VL-7B and regenerates the attack bank.
- Defense scope: includes native-resolution versions of DC, SSNI, and DiffCAP, fixed global noise G@t, as well as JPEG, BIT, GN, and No defense; the original paper's classifier setting is also reproduced as an implementation check.
- Sample sizes: the development set is 250 TextVQA questions, 200 clean web-shop pages, and 60 attacked pages; the held-out set is 1,000 questions and 300 pages. The adaptive experiments for SSNI and DiffCAP are 20 pages each, and the remaining Table 4 defenses are 60 pages.
- Statistics and reproduction information: intervals use 10,000 paired bootstrap resamples, and held-out tests use Holm's correction at level 0.05; hardware is NVIDIA H100 GPUs (Table S1); the paper does not report the number of queries for the attacks.
Summarize the main content of the paper
The authors use AgenticPure to retest agent purification, arguing for native resolution, fixed readout, and reporting both grey-box and adaptive results.
This is an adversarial purification evaluation and mechanism analysis for VLM agents: the authors argue that treating native-resolution, multi-element inputs as classifier images simultaneously misleads defense evaluation and design.
- Problem: Third-party content can influence agent decisions through a single photo or a few text strokes, but the clean cost of diffusion purifiers and their robustness relative to cheap transformations had not previously been measured on such inputs.
- Method: AgenticPure adapts DC, SSNI and DiffCAP to native-resolution blockwise purification, builds imperceptible and web-hardened perceptible grey-box attack banks plus same-page adaptive attacks, and compares them at matched clean cost with a fixed readout.
- Resolution results: In Table 1, on the TextVQA dev set, DC-R at vote-8 has a clean cost of 35.7 points, native-resolution DC-4 at vote-20 is 4.0 points, and the same DC-4 with mean-4 is 10.8 points.
- Main robustness results: In Table 2, on the Qwen3-VL-8B web-shop page, DC-4 maintains 85.0% RAgb against GB-T, while cheap transformations at matched clean cost reach at most 40.0%; on Qwen2.5-VL-7B the corresponding values are 78.3% and at most 28.3%.
- Mechanism and exceptions: In Table 3, removing the DC-4 mask gives an RAgb difference of 3.3 [−1.7, 9.2] points, and [email protected] at the same clean cost is 18.3 points higher than SSNI; on this basis the authors argue that web-shop robustness comes from the global noise level. In Table 4, adaptive attacks reduce JPEG-60 to 8.3% RAad, versus 57.5% for DC-4, and the adaptive values for diffusion methods are upper bounds.
- Authors' conclusion: Agent purification should run at native resolution, measure clean cost on the decisive element and the actual readout, not rely on input-estimated perturbation location or strength, and report results under an attacker who knows the defense; the authors have released the page generator and AgenticPure code.
Related papers
Show 3 more papers
- Semantic-aware Adversarial Fine-tuning for CLIPDefensesarXiv