Patch is enough: naturalistic adversarial patch against vision-language pre-training models

Dehong Kong, Siyuan Liang, Xiaopeng Zhu, Yuansheng Zhong, Wenqi Ren · DOI

Abstract

Vision-Language Pre-training (VLP) models, such as CLIP and ALBEF, are integral to modern multi-modal AI applications. However, their susceptibility to adversarial attacks poses significant security risks. This paper presents a novel "dual-guided" adversarial attack that utilizes a single, natural-looking image patch to compromise VLP models. By employing diffusion models to maintain visual naturalness and cross-attention maps to optimize patch placement, the proposed method achieves a 100% attack success rate in white-box settings while leaving textual inputs completely unaltered.

Introduction

Vision-Language Pre-training (VLP) models have become the backbone of multi-modal AI, facilitating tasks like image-text retrieval and automated captioning. Despite their performance, these models are vulnerable to adversarial perturbations—carefully crafted inputs designed to induce incorrect model outputs.

Existing adversarial methods for VLP models face two primary challenges:

  1. Detectability: Many attacks modify both image and text. Textual alterations (e.g., changing "guitar" to "scoring") are easily spotted by humans.
  2. Lack of Realism: Image-based perturbations often resemble digital noise or static, making them easy to detect via defensive algorithms and difficult to replicate in physical environments.

This research introduces an image-only, naturalistic attack that bypasses these hurdles by generating patches that appear as harmless real-world objects.

Methodology: Dual-Guided Attack

The proposed framework relies on two distinct guidance mechanisms to craft effective adversarial patches.

Diffusion Guidance for Naturalness

To avoid the "digital noise" characteristic of traditional adversarial attacks, the researchers utilize a pre-trained Diffusion Model. Instead of optimizing raw pixels, the attack optimizes perturbations within the latent space of the diffusion model. This ensures the resulting patch remains on the "natural image manifold," appearing as a recognizable object—such as a flower or a decorative element—rather than random artifacts.

Cross-Attention Guidance for Placement

VLP models utilize attention mechanisms to correlate specific image regions with textual descriptions. The authors leverage these cross-attention maps to identify "critical areas" where the model's decision-making is most concentrated. By strategically placing the adversarial patch in these high-attention regions, the impact of the attack is maximized even with a relatively small patch size.

The dual-guided framework for generating naturalistic adversarial patches, incorporating diffusion guidance for realism and attention maps for strategic placement.

Experimental Setup

The method was evaluated using two standard benchmarks:

  • MSCOCO: A comprehensive dataset for object detection and captioning.
  • Flickr30K: A dataset of 31,000+ images with multiple natural language captions. Performance was measured using the Karpathy split for image-text retrieval (TR) tasks.

Key Results

The proposed method demonstrated significant improvements over state-of-the-art (SoTA) baselines when tested against ALBEF and CLIP models.

  • 100% Success Rate: In white-box image-to-text retrieval tasks, the method achieved a 100% Attack Success Rate (ASR) for Recall@10.
  • Superior Performance: On the MSCOCO dataset, the method outperformed the previous best method (SGA) by approximately 6.46%.
  • Efficiency and Robustness: Attention-guided placement halved the generation time compared to random placement (from 93 to 45 seconds). Furthermore, the attack remained highly effective even when the patch occupied only 5% of the total image area.
Attack Success Rate (ASR) comparison between the proposed method and various baselines on ALBEF and CLIP models. The proposed method consistently reaches near 100% ASR.

Discussion and Future Work

The "Patch is Enough" approach demonstrates that textual modification is unnecessary to break multi-modal models; a well-placed, naturalistic image patch can override textual context entirely. Moreover, these patches are highly resistant to defensive measures like "Segment and Complete" (SAC), which failed to detect the naturalistic adversarial regions.

While highly effective in white-box scenarios, the authors note that transferability remains a challenge—patches optimized for one model (e.g., ALBEF) may not be as effective against another (e.g., CLIP) without further refinement. Future research will focus on improving black-box transferability and enhancing robustness for physical-world applications, such as printed patches under varying environmental conditions.

Summary updated

BibTeX
@article{kong2024patch,
  author = {Dehong Kong and Siyuan Liang and Xiaopeng Zhu and Yuansheng Zhong and Wenqi Ren},
  title = {{Patch is enough: naturalistic adversarial patch against vision-language pre-training models}},
  journal = {Vis. Intell.},
  year = {2024},
  doi = {10.1007/s44267-024-00066-7},
}
Figure