Replace-then-Perturb: Targeted Adversarial Attacks With Visual Reasoning for Vision-Language Models
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
The conventional targeted adversarial attacks add a small perturbation to an image to make neural network models estimate the image as a predefined target class, even if it is not the correct target class. Recently, for visual-language models (VLMs), the focus of targeted adversarial attacks is to generate a perturbation that makes VLMs answer intended target text outputs. For example, they aim to make a small perturbation on an image to make VLMs' answers change from "there is an apple" to "there is a baseball." However, answering just intended text outputs is insufficient for tricky questions like "if there is a baseball, tell me what is below it." This is because the target of the adversarial attacks does not consider the overall integrity of the original image, thereby leading to a lack of visual reasoning. In this work, we focus on generating targeted adversarial examples with visual reasoning against VLMs. To this end, we propose 1) a novel adversarial attack procedure -- namely, Replace-then-Perturb and 2) a contrastive learning-based adversarial loss -- namely, Contrastive-Adv. In Replace-then-Perturb, we first leverage a text-guided segmentation model to find the target object in the image. Then, we get rid of the target object and inpaint the empty space with the desired prompt. By doing this, we can generate a target image corresponding to the desired prompt, while maintaining the overall integrity of the original image. Furthermore, in Contrastive-Adv, we design a novel loss function to obtain better adversarial examples. Our extensive benchmark results demonstrate that Replace-then-Perturb and Contrastive-Adv outperform the baseline adversarial attack algorithms. We note that the source code to reproduce the results will be available.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 33 of its 43 references that are in the map. First posted on arXiv 1 Nov 2024.
Builds on
33 of 43 references.
References · 33
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Visual Instruction Tuningcited by 7,792
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
- 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2023Kosmos-2: Grounding Multimodal Large Language Models to the Worldcited by 1,075
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 904
- 2018Improving Transferability of Adversarial Examples with Input Diversitycited by 591
21 more
- 2021Image Segmentation Using Text and Image Promptscited by 509
- 2022Diffusion Models for Adversarial Purificationcited by 469
- 2019Nesterov Accelerated Gradient and Scale Invariance for Adversarial Attackscited by 352
- 2023On Evaluating Adversarial Robustness of Large Vision-Language Modelscited by 281
- 2021Enhancing the Transferability of Adversarial Attacks through Variance Tuningcited by 242
- 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 161
- 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
- 2022(Certified!!) Adversarial Robustness for Free!cited by 130
- 2024Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Modelscited by 119
- 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
- 2023Set-level Guidance Attack: Boosting Adversarial Transferability of Vision-Language Pre-training Modelscited by 106
- 2019Cycle-Consistency for Robust Visual Question Answeringcited by 105
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2017SafetyNet: Detecting and Rejecting Adversarial Examples Robustlycited by 76
- 2023A Survey on Transferability of Adversarial Examples across Deep Neural Networkscited by 43
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Modelscited by 35
- 2022Defending Multimodal Fusion Models against Single-Source Adversariescited by 20
- 2023Mutual-modality Adversarial Attack with Semantic Perturbationcited by 14
- 2023Adversarial Attacks on Foundational Vision Modelscited by 13
- 2022Hiding Visual Information via Obfuscating Adversarial Perturbationscited by 7
- 2024Unveiling Hidden Visual Information: A Reconstruction Attack Against Adversarial Visual Information Hidingcited by 2
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Transferable Adversarial Attacks on Black-Box Vision-Language Models
- 2026It Takes Little to Rewrite Perception: Targeted Semantic Substitution in Vision-Language Models at ε≤ 4/255
- 2024Break the Visual Perception: Adversarial Attacks Targeting Encoded Visual Tokens of Large Vision-Language Models
- 2023InstructTA: Instruction-Tuned Targeted Attack for Large Vision-Language Models
- 2024Adversarial Robustness for Visual Grounding of Multimodal Large Language Models
- 2026Breaking the weakest link to evade vision language models
- 2024Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens
- 2024Universal Adversarial Perturbations for Vision-Language Pre-trained Models