The rapid advancement of text-to-image generative models has been fueled by massive datasets. But what if the very tools used to create these datasets are being subtly manipulated? This paper explores a novel attack vector: poisoning the image captioning models that prepare data for text-to-image AI, leading to compromised generative models.
TL;DR
This paper introduces Adversarial Mislabeling Poison (AMP) attacks, which exploit vulnerabilities in Vision-Language Models (VLMs) to generate incorrect image captions. These poisoned captions are then used to train text-to-image models, causing them to produce undesirable outputs for specific prompts, even with a small number of poisoned samples.
What Problem Does This Paper Address?
Modern text-to-image generative models, like DALL-E 3 and Stable Diffusion, are trained on vast datasets of image-caption pairs scraped from the internet. To ensure high-quality captions, developers increasingly rely on Vision-Language Models (VLMs) to automatically generate detailed descriptions for these images. This paper investigates a critical vulnerability: if these VLMs can be tricked into producing incorrect captions (through adversarial perturbations), this could lead to "poisoned" training data for text-to-image models. The core problem is understanding if such an attack is feasible and what its impact would be on the integrity and behavior of these powerful generative AI systems.
Methods
The authors introduce the Adversarial Mislabeling Poison (AMP) attack. The core idea is to take a benign image and add imperceptible adversarial perturbations. These perturbations are specifically designed to fool a VLM into generating a caption that doesn't match the image but does match a target concept the attacker wants to associate with that image.
Here's a breakdown of their approach:
- Targeted Perturbations: They use an image-to-image adversarial perturbation algorithm that minimizes the distance between the perturbed image and a target image in the VLM's feature space. This ensures the VLM is steered towards a specific, incorrect caption.
- VLM Captioning: The perturbed image is then fed to a VLM (like LLaVA, BLIP-3, or CogVLM) to generate a caption. The goal is for the VLM to output a caption that aligns with the attacker's desired "poison" concept.
- Poisoning Training Data: The resulting mislabeled image-caption pair is then injected into the training dataset for a text-to-image diffusion model.
- Adaptive Attacks: To counter defenses like JPEG compression or filtering based on image-caption alignment, the authors develop adaptive attack strategies. These involve modifying the perturbation optimization to explicitly account for the defense mechanisms, making the adversarial images more robust.
- Black-Box Attacks: They also explore transferability, aiming to create adversarial perturbations that work across different VLMs, including commercial ones, without direct access to their internal workings.
Datasets
The paper utilizes two large-scale image datasets:
- LAION-Aesthetics (LA): A widely used dataset for training generative models.
- Photo-Concept-Bucket (PCB): A dataset specifically curated for concept-based image analysis.
Both datasets contain over 500,000 high-quality images, which were resized to 1024x1024 for experiments.
Key Insights and Ideas
- VLMs are a Critical Vulnerability: The reliance on VLMs for automated captioning in large-scale datasets creates a significant new attack surface for poisoning generative models.
- AMP is More Potent than Traditional Poisoning: Adversarially mislabeled samples are more effective at poisoning downstream models than traditional "dirty-label" samples (where an image is manually paired with an incorrect label). This is likely because the adversarial perturbations force the diffusion model to learn stronger, more disruptive associations.
- Stealthy and Effective: The perturbations are imperceptible, and the resulting mislabeled pairs can effectively alter model behavior with a surprisingly small number of poisoned samples.
- Defenses are a Cat-and-Mouse Game: While initial defenses like image transformations and filtering can mitigate some attacks, adaptive attackers can often bypass them by incorporating the defense mechanisms into their attack optimization.
- Black-Box Transferability is High: Adversarial attacks can be designed to transfer effectively to different VLM architectures, including commercial APIs, making the threat widespread.
Key Results
- High VLM Mislabeling Success: AMP attacks achieved high mislabeling success rates (MSR) across various VLMs and datasets, with MSR reaching up to 91% on the PCB dataset.
- Effective Poisoning of Diffusion Models: Adversarially mislabeled image-caption pairs were highly successful at poisoning text-to-image diffusion models (SD2.1, SDXL, FLUX), achieving poison success rates (PSR) of up to 99%.
- Low-Dose Poisoning: Even with as few as 25 poisoned samples per concept, AMP attacks could achieve a PSR of over 0.6, demonstrating significant impact with minimal data.
- Robustness to Defenses: Adaptive attacks successfully bypassed common defenses like JPEG compression and image-caption alignment filtering, reducing their effectiveness significantly.
- Commercial VLM Efficacy: The attack demonstrated strong performance against commercial VLMs from Microsoft Azure and Google Vertex AI, with MSRs over 42% and PSRs over 73%.
Limitations and Future Work
- Computational Cost of Defenses: Advanced defenses like DiffPure, while effective, are computationally intensive and can degrade the quality of generated captions, making them impractical for large-scale deployment.
- Adaptive Attack Complexity: While adaptive attacks can bypass defenses, they require white-box access to the defense mechanisms, which might not always be available.
- Low-Query Black-Box Detection: Developing effective reconnaissance detection methods for black-box attacks that operate with very low query budgets remains an open research question.
- Ethical Implications and Tooling: The authors suggest that AMP attacks could be used to create tools for artists to protect their work from unauthorized use in model training, highlighting the dual nature of such research.
This research underscores the need for robust security measures throughout the entire AI development pipeline, from data collection and preparation to model training and deployment.
Summary updated