Abstract
Today's text-to-image generative models are trained on millions of images sourced from the Internet, each paired with a detailed caption produced by Vision-Language Models (VLMs). This part of the training pipeline is critical for supplying the models with large volumes of high-quality image-caption pairs during training. However, recent work suggests that VLMs are vulnerable to stealthy adversarial attacks, where adversarial perturbations are added to images to mislead the VLMs into producing incorrect captions. In this paper, we explore the feasibility of adversarial mislabeling attacks on VLMs as a mechanism to poisoning training pipelines for text-to-image models. Our experiments demonstrate that VLMs are highly vulnerable to adversarial perturbations, allowing attackers to produce benign-looking images that are consistently miscaptioned by the VLM models. This has the effect of injecting strong "dirty-label" poison samples into the training pipeline for text-to-image models, successfully altering their behavior with a small number of poisoned samples. We find that while potential defenses can be effective, they can be targeted and circumvented by adaptive attackers. This suggests a cat-and-mouse game that is likely to reduce the quality of training data and increase the cost of text-to-image model development. Finally, we demonstrate the real-world effectiveness of these attacks, achieving high attack success (over 73%) even in black-box scenarios against commercial VLMs (Google Vertex AI and Microsoft Azure).
Introduction
Modern text-to-image (T2I) generative models, such as Stable Diffusion and DALL-E 3, require massive datasets of high-quality image-caption pairs to achieve state-of-the-art performance. Because manual labeling is impossible at the scale of millions or billions of images, developers have shifted toward using Vision-Language Models (VLMs) like LLaVA or CogVLM to automatically generate detailed captions for images scraped from the web.
While this shift improves caption quality compared to noisy HTML alt-text, it introduces a centralized security vulnerability. This research explores the Adversarial Mislabeling Poison (AMP) attack, a method where an attacker applies imperceptible perturbations to images to trick VLMs into producing specific, incorrect labels. These mislabeled pairs then act as "dirty-label" poison, corrupting the downstream T2I model's understanding of specific concepts.
Methodology: The AMP Attack Framework
The researchers developed a two-stage framework to subvert the T2I training pipeline:
- VLM Manipulation: Using an image-to-image adversarial perturbation algorithm, the attacker modifies a "reference" image (e.g., a statue) so that its representation in the VLM’s feature space matches a "target" image (e.g., a cat). To a human, the image remains a statue; to the VLM, it is a cat.
- Downstream Poisoning: These miscaptioned pairs are injected into the training data of T2I models (such as SD2.1, SDXL, and FLUX).
To ensure the attack remains effective in real-world scenarios, the authors developed Adaptive Attacks that incorporate differentiable JPEG approximations and CLIP-based loss functions to bypass common defenses like image compression or alignment filters. Furthermore, they demonstrated Black-box Transfers by optimizing perturbations against an ensemble of eight different Vision Transformer (ViT) models, allowing the attack to succeed against closed-source commercial APIs.
Experimental Setup and Datasets
The study utilized two primary datasets to evaluate the attack:
- LAION Aesthetics (LA): A high-quality subset of the LAION-5B dataset.
- Photo-Concept-Bucket (PCB): A dataset containing over 500,000 high-resolution images categorized by concept.
Performance was measured using the Mislabel Success Rate (MSR) for the VLM stage and the Poison Success Rate (PSR) for the final T2I model output.
Key Insights
The Potency of Adversarial Poisoning
Surprisingly, AMP-poisoned images are more effective at subverting T2I models than "clean" dirty-label images (where a human simply provides an incorrect caption). The adversarial perturbations introduce higher loss during the T2I training process, forcing the model to make larger gradient updates to "learn" the incorrect association. This results in high-efficiency poisoning; injecting as few as 25 poisoned images was sufficient to significantly alter a model's behavior for a specific concept.
Vulnerability of Commercial Systems
The attack is not limited to open-source models. In black-box testing, the researchers achieved over a 73% success rate against commercial VLMs from Google (Vertex AI) and Microsoft (Azure), proving that even proprietary, high-end models are susceptible to these perturbations.
The Defense Dilemma
While defenses like DiffPure—which uses a diffusion process to "purify" images before they are captioned—can mitigate the attack, they come with a prohibitive computational cost. For example, processing 50,000 images took 26 days on a high-end GPU. This makes such defenses currently impractical for the billion-image scale required by industry leaders, leading to a "cat-and-mouse" game where attackers can adapt faster than defenders can secure the pipeline.
Results Summary
- VLM Success: The AMP attack achieved an MSR of 70-90% across various open-source VLMs.
- T2I Corruption: Once trained on poisoned data, T2I models showed a PSR of 94-99%. A model prompted for a "cat" would consistently generate images of the attacker's chosen concept (e.g., a statue).
- Robustness: Adaptive attacks successfully bypassed filters based on image quality, caption quality, and model loss.
Conclusion and Future Work
Adversarial mislabeling represents a significant threat to the integrity of generative AI. By targeting the automated captioning stage, attackers can poison models with high precision and low volume. Future research is needed to develop computationally efficient defenses and more robust methods for detecting reconnaissance queries that attackers use to calibrate their perturbations. As the industry continues to rely on VLMs for data curation, securing this "weakest link" is paramount.
Summary updated