Skip to content

A feasibility study of poisoning text-to-image AI models through adversarial mislabelingOn the Feasibility of Poisoning Text-to-Image AI Models via Adversarial Mislabeling

arXiv· arXiv:2506.21874· ACM CCS 2025· Stanley Wu, Ronik Bhaskar, Anna Yoo Jeong Ha, Shawn Shan, Haitao Zheng, Ben Y. ZhaoUniversity of ChicagoIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose the AMP attack: using adversarial perturbations to make the VLM mislabel images, poisoning text-to-image training data, with a poisoning success rate of 94%–99% on SD2.1/SDXL/FLUX.

Threat modelThe attacker's goal is to make the text-to-image model generate images inconsistent with the prompt for the target concept; the capability is having a mid-range consumer GPU, being able to inject a small number of images into the training dataset, and having white-box access to the VLM used in the training pipeline (§8 relaxes this to black-box, i.e., no access to the target VLM's parameters and architecture); the victim system is a text-to-image diffusion model trained on internet images with VLM-generated captions.

Questions
Modern text-to-image models generally use VLMs to generate captions for web-scraped images. The authors study whether an attacker can add imperceptible perturbations to images to make the VLM mislabel them, thereby injecting dirty-label poisoned samples into the training pipeline.
Methods
Proposes Adversarial Mislabeling Poison (AMP): in the VLM feature space, minimize the distance between the perturbed reference image and the target image, so that the VLM outputs a caption of the target concept; in the black-box setting, optimize over an ensemble of 8 OpenCLIP ViTs to improve transferability.
Experiments and results
MSR 0.71–0.93 on three open-source VLMs (Table 2); PSR 0.94–0.99 when AMP samples poison SD2.1/SDXL/FLUX (Table 5); defenses such as image transformations can be bypassed by adaptive attacks; under the black-box attack, MSR on commercial VLMs exceeds 42% and PSR exceeds 0.73 (Table 11).
Limitations and future work
The authors point out that reconnaissance detection under a low query budget (5 per image) remains an open problem, left for future work. The experiments use 3 open-source VLMs, 2 commercial VLMs, and 4 diffusion models; PSR is averaged over 10 generated images per concept and 25 concepts; the paper does not report the number of repetitions for the poisoning experiments.
Experimental setupLLaVA、xGen-MM (BLIP-3) et al. · LAION Aesthetics (LA)、Photo-Concept-Bucket (PCB) · MSR、AAR et al.
Evaluated models
LLaVAxGen-MM (BLIP-3)CogVLMSD1.5SD2.1SDXLFLUXMicrosoft Azure AIGoogle Vertex AI
Benchmarks
LAION Aesthetics (LA)Photo-Concept-Bucket (PCB)
Metrics
MSRAARBARPSRFiltering RateFPR
AI summaryThe researchers verified the feasibility of attacking vision-language models (VLMs) through adversarial mislabeling and thereby poisoning the training pipeline of text-to-image models; a small number of poisoned samples can change the behavior of text-to-image models. The attack method adds adversarial perturbations to images so that the VLM consistently labels seemingly normal images with incorrect descriptions, injecting "dirty-label" poisoned samples into the training pipeline. Experiments show that VLMs are highly vulnerable to such perturbations; potential defenses can work but can be specifically bypassed by adaptive attackers, which the authors say suggests a cat-and-mouse game that may reduce training data quality and drive up the development cost of text-to-image models. In black-box attacks against Google Vertex AI and Microsoft Azure commercial VLMs, the attack success rate exceeded 73%.

The researchers verified the feasibility of attacking vision-language models (VLMs) through adversarial mislabeling and thereby poisoning the training pipeline of text-to-image models; a small number of poisoned samples can change the behavior of text-to-image models. The attack method adds adversarial perturbations to images so that the VLM consistently labels seemingly normal images with incorrect descriptions, injecting "dirty-label" poisoned samples into the training pipeline. Experiments show that VLMs are highly vulnerable to such perturbations; potential defenses can work but can be specifically bypassed by adaptive attackers, which the authors say suggests a cat-and-mouse game that may reduce training data quality and drive up the development cost of text-to-image models. In black-box attacks against Google Vertex AI and Microsoft Azure commercial VLMs, the attack success rate exceeded 73%.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors investigate whether adversarial perturbations can make a VLM mislabel images, thereby injecting poisoned samples into text-to-image training pipelines.

    Core question: whether the step in which a VLM labels training images can become a new attack surface for text-to-image models—whether an attacker can use imperceptible perturbations to make the VLM output incorrect captions, achieving dirty-label poisoning.

    • Scenario and importance: the authors surveyed the documentation of 13 text-to-image models and found that since DALLE-3, all models that disclose their labeling method use a VLM to generate captions (Table 1), and models after 2023, except OpenAI and Google, all use public VLMs.
    • Shortcomings of existing attacks: dirty-label poisoning is defeated because the VLM regenerates correct captions; clean-label attacks such as Nightshade require white-box access to the diffusion model, and the authors state they are ineffective in the scenario of a VLM captioner (§4.1).
    • Core observation: the number of benign training samples corresponding to a single concept may be small, so an attacker can cover it with a small number of mislabeled samples; AMP samples make the VLM itself produce incorrect labels, equivalent in effect to dirty-label poisoning (§4.1).
    • Proposed in the paper: the concept and implementation of the Adversarial Mislabeling Poison (AMP) attack, with a systematic evaluation of four parts: mislabeling, end-to-end poisoning, defenses and adaptive attacks, and black-box transfer.
    • Threat model (§3.2):
      • Goal: make the text-to-image model generate images inconsistent with the prompt for the target concept (e.g., output a statue for "cat").
      • Capability: a mid-range consumer GPU; the ability to inject a small number of images into the training dataset (the authors cite prior work stating this has been demonstrated in the wild).
      • Knowledge: by default, white-box access to the VLM used in the training pipeline; §8 relaxes this to black-box (no access to the target VLM's parameters and architecture).
      • Victim system: diffusion models trained on internet images with VLM-generated captions, in two scenarios: training from scratch and fine-tuning.
  2. What related research exists?

    Related work falls into three groups: VLMs as captioners, adversarial attacks on VLMs, and poisoning of diffusion models; this paper connects the three into a new attack chain.

    VLMs as image annotation tools

    • Early diffusion models used HTML/alt-text captions from datasets such as LAION-5B; studies report that such captions are low quality and cause model performance degradation [44, 61].
    • Newer models such as DALLE-3, SANA, FLUX, and PixArt use VLMs such as LLaVA, CogVLM, xGen-MM (BLIP-3), and MiniGPT-4 to generate detailed captions [5, 6, 12, 13, 72, 81].

    Adversarial attacks on VLMs

    • Multiple works [7, 25, 28, 29, 52, 64, 87, 92, 93] break the alignment between visual and text embeddings by adding imperceptible perturbations to images, divided into targeted (outputting a specified caption) and untargeted types.
    • Downstream impacts include misleading road sign understanding in autonomous driving scenarios [14, 46, 90] and manipulating multimodal agent behavior [79, 82].

    Data poisoning of diffusion models

    • Poisoning and backdoor attacks on classifiers [17, 18, 33, 45, 78, 85]; on diffusion models, injecting triggers via natural language prompts [16, 21, 35, 89] or poisoning the training set [49]; these attacks require control of both image and text.
    • Clean-label attacks such as Nightshade [24, 63] do not require control of captions; the authors point out that their limitation is requiring white-box access to the diffusion model itself, and that perturbations computed for a single model may have low effect on other models.

    Baselines and comparison objects: The control for poisoning experiments is dirty-label poisoning (unperturbed images paired with manually rewritten captions, Table 4, 5); the control for defense experiments is JPEG compression, Gaussian blur, Gaussian noise, four filtering methods, and DiffPure.

    Positioning of this paper: The authors state that this paper starts from the early stage of the poisoning chain (the data preparation stage), using adversarial examples against VLMs to combine the stealthiness of clean-label with the destructive power of dirty-label, and does not require access to the diffusion model being trained.

  3. How does the paper address this problem?

    AMP aligns the perturbation of a reference image toward the target image in the VLM feature space, making the VLM output a caption for the target concept, forming a poisoned sample.

    Overall idea: instead of directly changing captions, the attacker perturbs benign images of the reference concept so that the VLM captioner itself produces a caption for the target concept; the resulting image-text pairs, once entering the training pipeline, are equivalent to dirty-label poisoning (AMP, Adversarial Mislabeling Poison).

    Attack goal and formalization

    • The attacker selects a target concept (e.g., cat) and a reference concept (e.g., statue), with the goal that the poisoned model outputs images of the reference concept for prompts of the target concept.
    • Core optimization formula: minδ Dist(ϕ(xr + δ), ϕ(xt)) s.t. |δ| < ϵ,其中 ϕ 是 VLM 的图像特征提取器,xr 是参考图像、xt 是目标图像;即让扰动后的参考图像在特征空间贴近目标图像(Eq. 1)。
    • 扰动算法采用 [92] 的 image-to-image 对抗扰动方法;作者称它相比 image-to-text 和基于扩散的非 Lp 攻击误标效果更强,且能促使 VLM 生成详细 caption,绕过过滤低质量描述的过滤器。

    图像按概念分组

    • 对每张图像,用其 caption 提取候选概念(主要物体/动作),再用 CLIP 模型给每个候选概念算置信度,取最高者作为该图的概念标签并记录置信度。
    • 实验中取每个数据集图像数最多的 top 100 概念,随机选目标/参考概念对;选取与概念强对齐(置信度 > 0.99).

    Adaptive attacks (§7.1)

    • Against JPEG compression: add a loss term for a differentiable JPEG approximation [55] to the optimization, making the perturbation compression-resistant.
    • Against image-text alignment filtering: add a loss term that increases the CLIP similarity between the perturbed image and the target image's caption (Eq. 2).
    • The threat model assumes the attacker has white-box access to the defenses deployed by the defender (methods and parameters), consistent with the adaptive attack literature.

    Black-box transfer enhancement (§8.1)

    • The standard attack transfers poorly to black-box VLMs (MSR < 1%); the authors instead optimize the ensemble loss of 8 OpenCLIP pretrained ViT feature extractors simultaneously (Eq. 3), with equal weights and the same perturbation budget of 16/255.
    • The SSA-CWA criterion [11, 79] (momentum-based, avoiding local minima) is used to stabilize optimization and improve transferability.

    Evaluation method

    • Mislabeling-stage metrics: MSR (caption does not contain the reference concept, contains the target concept, and has higher CLIP similarity to the target image than to the reference image); AAR (alignment of the perturbed image's caption with the target image, normalized); BAR (alignment of the perturbed image's caption with the original image).
    • Poisoning-stage metric: PSR, using zero-shot CLIP to classify generated images into the top 100 concepts, PSR(C) = 1 − the proportion classified as C; 10 images are generated per concept, averaged over 25 concepts; clean SD2.1's PSR of about 0.09 serves as a reference.
  4. What experiments did the paper conduct?

    MSR 0.71–0.93 on three open-source VLMs; PSR 0.94–0.99 when AMP samples poison SD2.1/SDXL/FLUX; defenses can be bypassed by adaptive attacks.

    Experimental Setup

    • VLMs tested: LLaVA, xGen-MM (BLIP-3), CogVLM (open-source, white-box); Microsoft Azure AI, Google Vertex AI (commercial, black-box).
    • Diffusion models tested: SD1.5 (trained from scratch, about 500,000 image-text pairs, 500 poisoned samples per concept), SD2.1/SDXL/FLUX (fine-tuned, 12,500 image-text pairs, 125 poisoned samples per concept), all poisoning 25 concepts.
    • Datasets: LAION Aesthetics (LA) and Photo-Concept-Bucket (PCB), each with over 500,000 images, uniformly resized to 1024x1024.
    • Perturbation parameters: default L∞ budget 16/255; budget sweep uses PCB + CogVLM, generating 8 mislabeled images per concept pair.
    • Evaluation method: MSR uses string matching (noun lemmatization) plus a CLIP similarity threshold Δ > 0; PSR uses zero-shot CLIP to classify generated images, 10 images per concept, averaged over 25 concepts.
    • Number of repetitions: Table 4 reports ± standard deviation; the paper does not state the number of repetitions.

    Main Results

    According to Table 2 (mislabeling stage) and Tables 4, 5 (poisoning stage, PSR):

    Swipe horizontally to read the table

    SettingMSRAARBARPSR (AMP)PSR (dirty-label)
    LA + LLaVA0.730.900.050.920.88
    LA + BLIP-30.710.940.040.920.83
    LA + CogVLM0.720.930.060.880.87
    PCB + LLaVA0.890.940.040.900.86
    PCB + BLIP-30.930.970.040.980.92
    PCB + CogVLM0.910.960.040.950.85

    Table 5 (AMP samples generated by PCB + CogVLM, PSR): SD2.1 is 0.95 (dirty-label 0.85), SDXL is 0.94 (0.93), FLUX is 0.99 (1.00).

    • The authors state that mislabeling succeeds on both datasets and all three VLMs, with better results on PCB, which the authors suggest may be because PCB images have more detail, making it easier to hide perturbations.
    • The authors state that the poisoning effect of AMP samples is generally higher than that of dirty-label samples, and conjecture that the reason is that the perturbation brings larger backpropagation updates; Figure 7 shows that the average loss of AMP image-text pairs on SD2.1 is higher than that of dirty-label (the authors cite this as supporting evidence). Exceptions: on FLUX, the PSR of dirty-label (1.00) is higher than that of AMP (0.99); on LA + CogVLM, the two are close (0.88 vs. 0.87).
    • The authors point out that FLUX, which has a DiT architecture, is poisoned slightly more effectively than the two UNET models.

    Poisoning Dose and Training from Scratch

    • Dose effect: Table 6 shows that the PSR of SD2.1 fine-tuning rises with the number of poisoned samples from 0 (0.09) to 25 (0.58), 50 (0.82), 125 (0.95); the authors state that the change between 0 and 25 is the largest, and 25 samples are enough to make PSR exceed 0.6.
    • Training from scratch: SD1.5 trained from scratch on LA (500 AMP samples per concept, LLaVA caption) has a PSR of 0.97; the authors state that this confirms that both training scenarios can be poisoned.

    Defenses and Adaptive Attacks

    • Image transformations (Table 7, CogVLM + PCB + SD2.1, top 4 concept pairs): under the base attack, JPEG compression lowers MSR to 0.00 and PSR to 0.04; Gaussian blur gives MSR 0.11; Gaussian noise gives MSR 0.26. The adaptive attack restores the MSR of the three to 0.89/0.42/0.63 and the PSR to 0.94/0.76/0.86.
    • Training data filtering (Table 8, FPR = 0.05): image quality filtering rate 0.06, caption quality 0.01, model loss 0.45, image-text alignment 1.00; the authors state that the first three are insufficient to protect the model, and image-text alignment filtering can remove all poisoned samples, but the adaptive attack lowers its filtering rate to 6% (§7.2).
    • High-cost defenses (§7.3): DiffPure lowers the MSR of the adaptive attack to 1.7%, but the average CLIP similarity of benign image captions drops from 0.31 to 0.24 (Figure 9); the authors state that over 25% of training data would thus be discarded, and purifying 50,000 images with a single TITAN RTX would take over 26 days; the multi-VLM scheme (n=3) gives MSR 0.38, PSR 0.60 at τ=1, and MSR 0.99, PSR 0.84 under the adaptive attack at τ=0 (Table 9).

    Black-box Attacks

    • Local black-box VLMs (Table 10): after ensemble optimization, the MSR is 0.73 for LLaVA, 0.81 for BLIP-3, and only 0.19 for CogVLM; the authors state that CogVLM uses a newer ViT trained differently, with a large sampling difference from OpenCLIP.
    • Commercial VLMs (Table 11): Microsoft Azure has MSR 0.42, AAR 0.67, PSR 0.82; Google Vertex has MSR 0.45, AAR 0.58, PSR 0.73; the authors state that attackers can screen out successful samples through API queries (5 times per image).
    • Robustness of black-box attacks to defenses (§8.3): the MSR against Gaussian blur, JPEG compression, and Gaussian noise is 83%, 77%, and 70%, respectively; image-text alignment filtering at 5% FPR removes only 13% of black-box attack samples.

    Other Ablations and Analyses

    • Caption prompt variations (Table 3, CogVLM): under 5 prompts, AAR is 0.94–0.98 and BAR is 0.04 in all cases; the authors state that the effect is negligible.
    • Perturbation budget (Figures 4–6, PCB + CogVLM): MSR reaches 91% at 16/255, with little further growth afterward; AAR is about 0.6 at 2/255 and about 0.96 at 16/255; the caption length distribution under each budget is similar to that of benign images, averaging about 120 characters.
    • Mislabeling precision (Appendix A.2): 90% of adversarial images have Δ > 15, and benign images have Δ ≈ −27; the authors therefore consider the threshold Δ > 0 sufficient.
    • Generation quality after DiffPure (Appendix A.3, Figure 12): the authors state that SD2.1 fine-tuned on data processed with DiffPure shows degraded generation quality (missing objects, disordered details).
  5. What are some points that can be further explored?

    The authors list only reconnaissance detection under a low query budget as an open problem; the experiments cover 3 open-source VLMs, 2 commercial VLMs, and 4 diffusion models.

    Limitations and future directions noted by the authors

    • §8.3: Existing reconnaissance detection methods assume attacks require a high query volume, whereas the black-box attack in this paper requires only 5 queries per image; the authors state that developing effective defenses under low-query conditions remains an open research problem and leave it for future work.
    • §8.3 (paragraph before Disclosure): The authors state they are developing and plan to release a standalone implementation for visual artists (project Hemlock); the three white-box mislabeling attack implementations have been open-sourced.
    • The paper has no dedicated Limitations section and, apart from the above, does not explicitly list other limitations.

    Scope of experimental coverage

    • The VLMs tested are three open-source models, LLaVA, xGen-MM (BLIP-3), and CogVLM, plus two commercial VLMs, Microsoft Azure AI and Google Vertex AI (§5.1, §8.2).
    • The diffusion models tested are 4 in total: SD1.5, SD2.1, SDXL, and FLUX; in the from-scratch training setting only one SD1.5 model was trained (LA + LLaVA), which the authors explain is due to computational cost (§5.4).
    • The defense and adaptive attack experiments are fixed to the CogVLM, PCB, top 4 concept pairs, and SD2.1 fine-tuning setting (beginning of §6).
    • PSR is computed as the average over 25 concepts with 10 generated images per concept (§5.2); the paper does not report the number of repetitions for the poisoning experiments (Table 4 gives standard deviations but does not state the number of runs).
    • The cost of the commercial VLMs for the black-box attack is $0.60 per 1,000 captions (Microsoft) and $1.50 (Google) (§8.2); the paper does not report the per-run time for perturbation generation or the total query budget.
  6. Summarize the main content of the paper

    AMP uses adversarial perturbations to make the VLM mislabel images and achieve poisoning, reaching PSR 0.94–0.99 on three diffusion models; existing low-cost defenses can be bypassed by adaptive attacks.

    An attack paper on the security of text-to-image model training pipelines, with authors from the University of Chicago.

    • Problem: Since DALLE-3, text-to-image models that disclose their labeling method all use a VLM to generate captions for web images (Table 1). The authors ask whether the VLM's vulnerability to adversarial perturbations can be exploited to turn the training pipeline into a poisoning channel.
    • Method: Proposes AMP (Adversarial Mislabeling Poison)—perturb benign images of a reference concept so that they are close to the target image in the VLM feature space, making the VLM itself produce a wrong caption, which is equivalent in effect to dirty-label poisoning and does not require access to the diffusion model being trained. In the black-box setting, it instead optimizes over an ensemble of 8 OpenCLIP ViTs to improve transferability.
    • Mislabeling effect: MSR is 0.71–0.93 on LLaVA, BLIP-3, and CogVLM (Table 2), and is robust to 5 caption prompts and different perturbation budgets.
    • Poisoning effect: PSR of SD2.1/SDXL/FLUX fine-tuned on AMP samples is 0.94–0.99 (Table 5); with only 25 samples per concept, PSR already reaches 0.58 (Table 6); on SD1.5 trained from scratch, PSR is 0.97.
    • Defenses and black-box: Image transformations such as JPEG compression can block the basic attack, but the adaptive attack restores MSR to 0.89 (Table 7); DiffPure is effective but harms caption quality and is computationally expensive; the black-box attack achieves MSR above 42% on Microsoft Azure and Google Vertex and PSR above 0.73 when poisoning SD2.1 (Table 11).
    • Authors' conclusion: The authors believe the current training pipeline is indeed vulnerable to AMP attacks, and that defenses will enter a cat-and-mouse game and raise the cost of training on scraped data; they have disclosed to Microsoft and Google, and Microsoft responded that it assessed no security impact.

Related papers

Both use: LAION Aesthetics
Read originalACM CCS 2025