PDA: A Training-Free Text Augmentation Defense Framework for Adversarial Image Attacks on Vision-Language ModelsPDA: Text-Augmented Defense Framework for Robust Vision-Language Models against Adversarial Image Attacks
Test-time defense PDA: on LLaVA-1.5-7B, VQA-v2 ADV goes from 0.445 to 0.754 (Table 2).
The evaluation assumes white-box: the attacker can access the architecture, parameters, and the gradient of the loss with respect to the perturbation, uses PGD, and can perform EOT over PDA's paraphrasing and question decomposition. It also evaluates black-box transfer, AttackVLM, and AnyAttack. The victim system is a VLM; the defense only requires a black-box text interface, is training-free, and does not modify parameters.
- VLMs are easily misled by image perturbations that are imperceptible to humans, while adversarial training is expensive, often requires gradients, generalizes poorly to unseen attacks, and can harm clean inputs. The authors want a training-free, general defense that only needs a black-box text interface.
- PDA freezes the VLM, and at test time an LLM rewrites the query into multiple semantically equivalent prompts, then decomposes them into atomic questions, which the VLM answers and aggregates by consistency. There are also variants that omit the decomposition or change to logically equivalent rewrites before voting.
- The authors report PDA's VQA-v2 ADV on LLaVA-1.5-7B as 0.754, versus 0.445 without defense (Table 2). On ImageNet-D and the closed-source transfer in Table 5, PDA is higher than no defense; on COCO, FARE's ADV is higher than PDA's.
- The paper does not have a dedicated limitations section. The conclusion hopes future work will have principled certification and stronger attack settings. Experiments include VQA-v2, ImageNet-D, and COCO, as well as transfer to open-source VLMs and three closed-source APIs; sample sizes and numbers of repetitions are not reported.
- Evaluated models
- LLaVA-1.5-7BLLaVA-1.5-13BDeepSeek-VL-1.3BInternVL3-2BOvis2-4BGPT-5ClaudeGemini
- Benchmarks
- VQA-v2ImageNet-DMS COCO
- Metrics
- VQA AccuracyTop-1 AccuracyCLIPScore
PDA (Paraphrase-Decomposition-Aggregation) uses text augmentation at inference time to improve the robustness of vision-language models against adversarial image attacks, without any training and without modifying the underlying model. It performs prompt paraphrasing, question decomposition, and consistency aggregation at test time, and can be instantiated as invariants to reduce inference cost. Across visual question answering, classification, and image captioning benchmarks on various VLM architectures, PDA achieves consistent robustness improvements against multiple adversarial perturbations while maintaining competitive clean accuracy.
Paper analysis
What problem does this paper attempt to solve?
VLMs are vulnerable to adversarial image perturbations; PDA uses test-time text augmentation as a training-free defense under black-box access.
VLMs can be misled by imperceptible adversarial image perturbations, while existing defenses often require gradients, generalize poorly to unseen attacks, or harm clean inputs.
- Scenario: The authors state that VLMs are used in general multimodal systems, as well as in medical imaging, autonomous driving, and robot control. Image perturbations that are hard for humans to discern can cause large prediction shifts, with deployment risks greater than visible text manipulation.
- Existing shortcomings: The authors list four points. First-order methods require input gradients, and many closed-source VLMs only expose output tokens via API. Training-time methods mostly use specific perturbations (e.g., ℓ∞-bounded), which the authors say generalize poorly to unseen perturbations or tasks. Some methods are tied to specific training objectives or backbone architectures. Several adversarial training methods trade clean-input performance for robustness.
- Observation: The design is inspired by randomized smoothing and its adaptations to LLMs. The authors expect adversarial images to often lie in sharp regions near decision boundaries; searching a local neighborhood in the high-dimensional text space can help recover semantics consistent with the image.
- Approach: They propose Paraphrase–Decomposition–Aggregation (PDA). At test time, it performs prompt paraphrasing, question decomposition, and consistency-based aggregation without modifying parameters; it also provides variants that reduce inference cost.
- Threat model:
- Goal: Perturb the image so that the VLM produces incorrect outputs. Formally, maximize the loss under ∥δ∥p ≤ ε (Section 3.1).
- Knowledge: This study assumes white-box, where the attacker can access the architecture, parameters, and ∇δL, enabling FGSM and PGD. Experiments also include black-box transfer and query-based settings.
- Capability: Pixel-level perturbation. Adaptive attacks use EOT, sampling over PDA's paraphrases and decompositions and optimizing the expected loss.
- Victim and defense interface: The victim system is a VLM. The defense only requires black-box access. The authors state it is agnostic to architecture, task, and perturbation type.
What related research exists?
Related work includes VLM attacks, adversarial training and test-time prompt tuning, and smoothing for LLMs/VLMs.
The authors organize related work by attack, defense, and randomized smoothing, and place PDA among decision-level defenses that only require black-box access.
Attacks on VLMs
- White-box image attacks: FGSM, PGD, AutoAttack can be directly applied to vision encoders.
- Black-box and transfer: AttackVLM systematically evaluates transfer and query-based targeted attacks on instruction-tuned VLMs. VLATTACK, Chain of Attack, AnyAttack use pretrained vision-language encoders to construct image-text pair perturbations to enhance transferability and scale. The authors say these observations heighten security concerns about adversarial visual inputs.
Defenses for VLMs
- Training-time: TeCoA and FARE use text-guided contrastive or robust embedding objectives to adversarially fine-tune CLIP vision encoders, transferring zero-shot robustness to downstream VLMs. Adversarial prompt tuning freezes the encoder and learns robust text prompts or attention modules. The authors say these methods still need to generate adversarial examples and do extensive offline optimization, and their applicability decreases under data constraints.
- Test-time: TAPT learns bimodal defense prompts per input, minimizing multi-view entropy and aligning clean and adversarial features. R-TPT rewrites the entropy objective and does reliability-weighted aggregation; C-TPT calibrates prompt updates with text feature dispersion; TDA uses training-free dynamic adapters with key-value caches. The authors say they rely on adapter optimization over augmented views, are mostly evaluated on CLIP-style zero-shot classification, and still assume white-box gradients or internal representations.
- Architecture and prompting: Other work analyzes how architecture choices and simple prompting patterns themselves affect robustness.
Randomized smoothing
- Classification certificates: Classic work uses noise-perturbed ensembles and majority voting to give instance-level certificates, establishing ℓ2 guarantees for Gaussian smoothing; later work includes adversarially trained smoothed classifiers, radius-maximizing objectives, and generalized smoothing measures.
- Language models: SmoothLLM perturbs prompts at the character level to stabilize outputs under jailbreaks; SemanticSmooth aggregates predictions over semantically transformed prompts, targeting stronger prompt-level attacks.
- Vision-language: PromptSmooth learns zero-shot or few-shot text prompts to keep a fixed Med-VLM accurate under Gaussian image noise; Open-Vocabulary Certification uses incremental smoothing and caching to accelerate CLIP-style certification. The authors say these methods mostly smooth in visual or embedding space, target specific architectures and classification, and do not reshape full multimodal decisions or generated outputs.
Experimental baselines and benchmarks
- Comparisons: Text-side baselines are SmoothLLM (Swap/Insert/Patch) and SemanticSmooth (Paraphrase/Summarise); training-time references are the published weights of TeCoA and FARE. Test-time also compares JPEG, random augmentation, LLaVA-CoT, and self-consistency. Benchmarks are VQA-v2, ImageNet-D, and MS COCO.
The authors position PDA as a training-free defense that only accesses the text interface and aggregates multiple text views at the decision level, distinguishing it from test-time methods that require gradients or internal representations and are mainly evaluated on classification.
How does the paper address this problem?
PDA paraphrases questions at test time, decomposes them into atomic questions, and aggregates by consistency, without updating VLM parameters.
PDA freezes parameters, samples multiple views from the text side at test time, and aggregates them, requiring only black-box access.
Problem setup
- Model: Denote the VLM as fθ(x; t)→y, where t is usually an image-related question or instruction and y is the generated answer.
- Attack: δ∗=argmaxδ L(fθ(x+δ;t), y) s.t. ‖δ‖p≤ϵ. This means maximizing the loss that drives the output away from the correct one within an ℓp ball. The evaluation assumes a white-box attacker who can use ∇δL for FGSM and PGD.
- Text-side perturbation: T(·) maps t to t′, changing the surface form while preserving semantics. Besides character edits and synonyms, this includes sentence restructuring and decomposing complex queries into atomic questions. The authors cite existing literature saying adversarial perturbations usually alter high-frequency, low-level, hard-to-interpret features, so they aim to exploit high-level interpretable features.
Three stages
- Paraphrase: A paraphrase agent T1 (usually an LLM) samples S={t1,…,tn}, ti∼ T1(t;ϕ). φ controls diversity. The authors call these responses estimates of the expectation over text transformations, analogous to EOT in vision but in the text domain. This stage does not use the image, to avoid adversarial pixels influencing question construction.
- Decompose: For each paraphrase ti, a decomposition agent T2 generates a sequence of atomic questions. Each question targets a single visual fact, such as object existence, attributes, spatial relations, counting, or simple comparisons. The paper requires that the sub-answers suffice to answer ti and cite only evidence available in principle from the image. Appendix B gives the full prompts.
- Aggregate: First collect question-answer pairs from each paraphrase into candidate answers, then aggregate across paraphrases. For closed candidate sets, use voting; for open-ended generation (e.g., captioning), use an LLM with a prompt describing how to organize the response. Algorithm 1 sums voting indicators for structured tasks and takes the argmax.
Four budget variants
Table 1 uses N for the number of paraphrases (the caption writes the number of retained paraphrases as M) and K for the number of atomic questions per paraphrase. The four columns are, in order: paraphrase LLM, decomposition VLM, decomposition LLM, aggregation LLM.
- PDA-Full: 1 / N×K / N×K+N / 1. Runs paraphrase, decomposition, filters by consistency, then aggregates with an LLM. The caption also says atomic questions are generated within a single VLM call per paraphrase; the table cell is N×K VLM calls, while Algorithm 1 calls per atomic question.
- PDA-RJV: 1 / N / N / 0. Skips decomposition. The VLM gives an answer and brief rationale for each paraphrase; a small LLM judges each, then votes. Section 3.3 writes weighted vote, Section 4.1 writes majority voting.
- PDA-RDA: 1 / N / 0 / 1. No decomposition; one LLM call jointly reviews all (paraphrases, answers, rationales) and directly gives a decision.
- PDA-PV: 1 / N / 0 / 0. For closed candidate sets. Paraphrases need not be semantically equivalent, but should be logically equivalent and preserve the correct option. The paper's example: rewriting clothing names as upper/lower body garments. Finally, majority vote over VLM answers.
Interface
The defense does not update θ, and the defender does not need gradients. The authors say it can be plugged in per task. The number of paraphrases, number of atomic questions, and default agents are given in the experimental setup.
What experiments did the paper conduct?
The authors report that PDA improves ADV under PGD; on COCO and some ImageNet-D settings, training-time methods have higher ADV.
Experimental Setup
- Victim models: Main comparison is LLaVA-1.5-7B and LLaVA-1.5-13B. Also evaluated are DeepSeek-VL-1.3B, InternVL3-2B, Ovis2-4B. Closed-source are GPT-5, Claude, Gemini, with the protocol being white-box PGD on LLaVA then transfer.
- Data and metrics: VQA-v2 uses VQA Accuracy; ImageNet-D uses Top-1 Accuracy, which the authors say perturbs nuisance factors while preserving class semantics; MS COCO caption uses CLIPScore, measuring similarity between generated and reference descriptions. The paper does not report sample sizes, repetitions, or statistical tests.
- Attacks: White-box is PGD, default ε=2/255, and sweeps ε∈{2,4,6,8}/255, plus EOT-P, EOT-D, EOT-PD targeting rewriting and decomposition. Black-box are transfer protocol, AttackVLM, AnyAttack, using original default configurations.
- Baselines: SmoothLLM (Swap/Insert/Patch), SemanticSmooth (Paraphrase/Summarise), each aggregating 10 random views; TeCoA, FARE use public weights under PGD for direct inference. Also JPEG, random augmentation (RA), LLaVA-CoT, self-consistency.
- PDA default: Main comparison table uses PDA-Full, with GPT-4.1-mini as the proxy. VQA-v2 and ImageNet-D use 5 rewrites, each with 3 atomic questions, totaling 15 questions; sub-answers are first collected by the LLM into rewrite-level answers, then majority vote over the 5 answers. COCO uses 2 rewrites, 5 atomic questions.
- Variants: RJV keeps 5 rewrites, removes decomposition, judges each then votes; RDA passes all five tuples at once; PV uses 5 logically equivalent rewrites, voting on VLM answers. Proxy comparisons also include DeepSeek-Chat, Llama-3.1-8B-Instruct, Qwen2.5-14B-Instruct.
Main Results
The table below is based on Table 2, victim model LLaVA-1.5, PGD, ε=2/255. Columns are VQA Accuracy Clean/ADV, and ImageNet-D, COCO ADV.
Swipe horizontally to read the table
Model Method VQA Clean VQA ADV IN-D ADV COCO ADV LLaVA-1.5-7B No Defense 0.862 0.445 0.248 0.753 LLaVA-1.5-7B TeCoA 0.787 0.689 0.569 0.783 LLaVA-1.5-7B FARE 0.828 0.703 0.511 0.806 LLaVA-1.5-7B PDA 0.871 0.754 0.570 0.774 LLaVA-1.5-13B No Defense 0.886 0.593 0.320 0.757 LLaVA-1.5-13B TeCoA 0.830 0.672 0.611 0.791 LLaVA-1.5-13B FARE 0.838 0.729 0.625 0.805 LLaVA-1.5-13B PDA 0.879 0.787 0.566 0.778 - The authors state that PDA improves adversarial accuracy, and clean accuracy is largely unchanged. In the table, 13B's VQA Clean is lower than no defense. COCO Clean is not listed in the table: 7B PDA is 0.860, no defense 0.858; 13B is 0.862 vs 0.865.
- ImageNet-D Clean (Table 2, not in the table): 7B no defense 0.625, PDA 0.758; 13B is 0.646 vs 0.798. The authors state that cross-checking reduces false predictions, thus clean accuracy also rises on this set. Figure 3's caption example labels CLIP Score 0.672 and 0.893, with the model not written in the figure.
- In Table 2, SmoothLLM and SemanticSmooth's ADV are close to the no-defense row. On COCO ADV and 13B's ImageNet-D ADV, TeCoA or FARE are higher than PDA, while their VQA Clean is lower.
Stronger White-Box and Adaptive Attacks
- Table 3 sweeps PGD budget and compares EOT. The table does not specify the victim model or PDA variant. No defense on ImageNet-D/VQA-v2 drops from 0.25/0.45 at 2/255 to 0.17/0.39 at 8/255; PDA is 0.57/0.75 to 0.54/0.72. At 6/255, PDA's ImageNet-D is 0.53, at 8/255 0.54.
- Adaptive attacks: under PGD, PDA is 0.57/0.75; EOT-P is 0.53/0.72, EOT-D is 0.55/0.70, EOT-PD is 0.54/0.74. No defense corresponds to 0.25/0.45, 0.20/0.41, 0.23/0.40, 0.21/0.42.
- The authors state that PDA is not effective only for a single budget; EOT is stronger than plain PGD, but PDA does not collapse, still maintaining a gap over no defense. The authors believe the benefit is not solely due to attacker mismatch with the random pipeline.
Black-Box and Closed-Source Transfer
- Table 4 each cell is no defense/PDA, model not specified. ImageNet-D: transfer 0.58/0.62, AttackVLM 0.56/0.61, AnyAttack 0.61/0.64. VQA-v2: 0.77/0.81, 0.75/0.79, 0.79/0.81. The authors state that black-box absolute scores are higher than strong white-box PGD because black-box is usually weaker; and claim gains hold across attack families.
- Table 5 is PGD images on LLaVA transferred to APIs, format ImageNet-D/VQA-v2, variant not specified. GPT-5: no defense 0.67/0.81, PDA 0.76/0.90. Claude: 0.61/0.82 to 0.70/0.88. Gemini: 0.67/0.76 to 0.72/0.86.
- The authors state that PDA can serve as a black-box wrapper for proprietary models, complementing query-based black-box results.
Test-Time Comparisons
- Table 6 does not specify the model, threat is ℓ∞ PGD, ε=2/255. No defense 0.25/0.45; PDA 0.57 (+0.32)/0.75 (+0.30). JPEG 0.51 (+0.26)/0.68 (+0.23), JPEG+PDA 0.61 (+0.36)/0.77 (+0.32). RA 0.55 (+0.30)/0.70 (+0.25), RA+PDA 0.67 (+0.42)/0.80 (+0.35).
- Reasoning baselines: LLaVA-CoT 0.53 (+0.28)/0.51 (+0.06); self-consistency 0.32 (+0.07)/0.49 (+0.04).
- The authors believe JPEG, RA, and PDA are largely orthogonal: preprocessing weakens pixel perturbations, PDA uses diverse text views to suppress failures that do not persist across views. The authors believe longer reasoning or multiple sampling cannot reliably recover perturbed visual cues, and may amplify false evidence.
Other Ablations and Analyses
- Variants (Table 7, robustness %, VQA-v2/ImageNet-D): LLaVA-1.5-7B no defense 47.2/26.8, RJV 65.2/49.0, RDA 61.2/45.8, PV 58.4/57.0. Ovis2's VQA: no defense 88.0, RJV 87.4, RDA 89.8.
- Same table ImageNet-D: DeepSeek-VL's PV is 70.2, higher than RJV's 53.4; InternVL3's PV is 31.4, lower than RJV's 39.4. The authors state that PV is usually better on classification, while finer decomposition is usually more useful on VQA.
- Number of rewrites K (Table 8, ImageNet-D ADV): PDA-RJV on LLaVA-1.5-7B for K=3/5/7/9 is 49.2, 53.2, 53.0, 52.2; InternVL3's K=7 is 29.2, lower than K=3's 40.8.
- PDA-RDA same table: LLaVA-1.5-7B is 47.0, 43.7, 43.9, 43.5. The authors state that K saturates after a moderate range, and the main experiment uses K=5; and state that overly long contexts and noisier rewrites may dilute aggregation.
- Proxies (Table 9, K=5, %): on Ovis2, LLaMA is 61.2/41.2, DeepSeek is 90.0/49.2, GPT is 89.8/48.4. The paper does not specify which variant this table is. The authors state that stronger instruction following helps decomposition on VQA, and the gap narrows on ImageNet-D.
- Time (ImageNet-D, victim LLaVA-1.5-13B, aggregation DeepSeek-Chat, RTX A6000): no defense 4.5 seconds, Full 15.5, RJV 10.5, RDA 6.0, PV 5.5. The authors state that Full is strongest on VQA for DeepSeek-VL and LLaVA-1.5-7B, and Table 7 does not give Full's numbers.
What are some points that can be further explored?
The paper does not have a dedicated section on limitations; the conclusion hopes for research on certification and stronger attacks.
Limitations and Future Directions Noted by the Authors
- Certification and Stronger Attacks: The paper does not have a separate Limitations or Future Work section. The conclusion hopes that this training-free, inference-time robustness perspective will drive research on principled certification and stronger attack settings to advance VLM safety in real-world use (Section 5).
Experimental Coverage
- Models: Open-source victim models are LLaVA-1.5-7B, LLaVA-1.5-13B, DeepSeek-VL-1.3B, InternVL3-2B, Ovis2-4B. Closed-source are GPT-5, Claude, Gemini, with images generated by white-box PGD on LLaVA then transferred (Section 4.1, 4.3, Table 5).
- Tasks and White-Box Attacks: VQA-v2 (VQA Accuracy), ImageNet-D (Top-1), MS COCO (CLIPScore). Main white-box attack is PGD, ε=2/255; also sweeps ε∈{2,4,6,8}/255, and EOT-P, EOT-D, EOT-PD (Table 2, 3).
- Black-Box and Comparisons: Black-box includes transfer protocol, AttackVLM, AnyAttack, using original default configurations; Table 4 does not specify victim model names. Baselines include SmoothLLM, SemanticSmooth, TeCoA, FARE, JPEG, RA, LLaVA-CoT, self-consistency.
- Variants and Proxies: Reported PDA-Full, PDA-RJV, PDA-RDA, PDA-PV. Proxies compared GPT-4.1-mini, DeepSeek-Chat, Llama-3.1-8B-Instruct, Qwen2.5-14B-Instruct (Section 4.1, 4.5, Table 9).
- Not Reported: The paper does not report sample sizes, repetitions, black-box query counts, or statistical significance tests for each table. Tables 3, 4, 6 do not specify the victim model; Table 9 does not specify the PDA variant.
Summarize the main content of the paper
PDA defends against adversarial images at test time via text-side aggregation; in Table 2, VQA ADV increases, and on some tasks ADV remains lower than FARE.
PDA is a training-free text-side defense against adversarial image perturbations for VLMs, requiring only black-box outputs from the defender.
- Problem: The authors believe existing adversarial training and prompt tuning often require gradients or specific architectures, struggle to generalize to unseen perturbations, and may degrade clean input performance. PDA rewrites the query into multiple views at test time, decomposes into verifiable atomic questions, and aggregates by consistency to suppress errors that do not persist across views.
- Main Results: Under Table 2, PGD, ε=2/255, LLaVA-1.5-7B's VQA-v2 ADV goes from no defense 0.445 to PDA 0.754, 13B from 0.593 to 0.787; 7B's ImageNet-D ADV from 0.248 to 0.570. COCO ADV from 0.753 to 0.774 (7B), with FARE at 0.806 in the same cell.
- Clean Inputs: 7B's ImageNet-D Clean from 0.625 to 0.758. 13B's VQA-v2 Clean from 0.886 to 0.879. The authors state that clean performance is largely maintained, and claim that cross-checking also improves clean accuracy on ImageNet-D.
- Transfer and Variants: In Table 5, on images transferred from LLaVA, GPT-5's PDA is ImageNet-D 0.76, VQA-v2 0.90, with no defense at 0.67/0.81. In Table 7, Ovis2's VQA, PDA-RJV is 87.4%, no defense 88.0%. On ImageNet-D, Full/RJV/RDA/PV per-sample times are 15.5/10.5/6.0/5.5 seconds (victim LLaVA-1.5-13B).
- Authors' Conclusion: The authors believe PDA can be used at inference time across multiple tasks and backbones; compressed variants retain most robustness and reduce latency, with the specific recipe varying by task. The conclusion hopes for future research on certification and stronger attack settings.