Efficient and Effective Universal Adversarial Attack against Vision-Language Pre-training Models

Fan Yang, Yihao Huang, Kailong Wang, Ling Shi, Geguang Pu, Yang Liu, Haoyu WangarXiv 2024 · DOI

Abstract

Vision-Language Pre-training (VLP) models like CLIP have become foundational for tasks bridging visual and textual data. However, their security remains a concern due to adversarial vulnerabilities. Existing Universal Adversarial Perturbations (UAPs) for VLP models typically rely on slow, resource-intensive generator-based pipelines. We introduce DO-UAP, a Direct Optimization-based approach that creates effective universal noise patterns 23 times faster than previous state-of-the-art methods. By employing a novel multimodal loss function and strategic data augmentations, DO-UAP achieves superior attack success rates across multiple benchmarks.

Introduction

Vision-Language Pre-training (VLP) models have revolutionized AI's ability to understand the relationship between images and text, powering applications from image retrieval to automated captioning. Despite their success, these models are susceptible to adversarial attacks—subtle, often imperceptible perturbations that lead to incorrect model outputs.

While instance-specific attacks require generating new noise for every image, Universal Adversarial Perturbations (UAPs) find a single noise pattern that can fool a model across an entire dataset. This makes UAPs a more significant threat in real-world scenarios. However, generating these universal patterns has historically been computationally expensive, often requiring days of training on high-end hardware.

Illustration of a Universal Adversarial Perturbation (UAP) applied to different images, causing a VLP model to consistently misidentify actions as "drawing".

Methodology: Direct Optimization (DO-UAP)

The proposed DO-UAP method shifts away from complex generator networks. Instead, it optimizes the noise pattern directly using gradients from the target VLP model. Two primary innovations drive its success:

1. Multimodal-Oriented Loss

VLP models exhibit a "modality gap" where image and text embeddings reside in distinct regions of the vector space. Standard attacks focusing solely on cross-modal misalignment often fail to push adversarial images out of their original semantic neighborhood. DO-UAP introduces a unimodal loss that explicitly pushes the adversarial image embedding away from its clean counterpart, ensuring the model cannot recover the original meaning.

2. Strategic Data Augmentation

The researchers found that traditional data augmentations often degrade adversarial training for VLP models. However, brightness augmentation proved to be a unique catalyst. By maintaining high similarity between image-text pairs during optimization, it provides cleaner gradients, allowing the noise pattern to "bake in" more effectively.

Experimental Results

DO-UAP was evaluated on benchmarks including Flickr30K, MSCOCO, and RefCOCO+. The results demonstrate a significant leap in both efficiency and effectiveness.

Comparison of attack performance and time consumption between the previous state-of-the-art (CPGC) and the proposed DO-UAP method.

Efficiency and Performance

As shown in the comparison above, DO-UAP drastically reduces training time. On the Flickr30K dataset, the time required to generate an attack dropped from 134 hours to just 5.8 hours—a 23x speedup. Despite the reduced training time, DO-UAP achieved an average Attack Success Rate (ASR) of approximately 93%, outperforming the previous state-of-the-art (CPGC) by nearly 5% while requiring significantly fewer training epochs (2 vs. 40).

Transferability and Impact on LVLMs

The attacks generated by DO-UAP exhibit strong cross-model transferability, successfully misleading models like ALBEF and TCL even when trained against CLIP. Furthermore, the study demonstrated that these adversarial images could fool advanced Large Vision-Language Models (LVLMs) like ChatGPT-4o, causing them to generate surreal and incorrect descriptions of simple scenes.

Conclusion

DO-UAP demonstrates that high-quality universal adversarial attacks do not require complex, time-consuming generators. By optimizing the noise directly through a well-designed multimodal loss and leveraging specific augmentations like brightness, researchers can create potent attacks in a fraction of the time. This work highlights the ongoing security challenges for VLP models and the need for more robust defense mechanisms as these models become more prevalent in critical AI systems.

Summary updated

BibTeX
@misc{yang2024efficient,
  author = {Fan Yang and Yihao Huang and Kailong Wang and Ling Shi and Geguang Pu and Yang Liu and Haoyu Wang},
  title = {{Efficient and Effective Universal Adversarial Attack against Vision-Language Pre-training Models}},
  year = {2024},
  eprint = {2410.11639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11639},
}
Figure