Data-Chain Backdoor: Do You Trust Diffusion Models as Generative Data Supplier?

Junchi Lu, Xinke Li, Yuheng Liu, Qi Alfred ChenarXiv 2025 · DOI

Abstract

As diffusion models become the primary "factories" for synthetic training data, a new security risk emerges: the Data-Chain Backdoor (DCB). This research demonstrates that a compromised generative model can stealthily embed triggers into the synthetic data it produces, effectively "infecting" any downstream classifier trained on that data without ever touching the victim's training pipeline directly. We introduce U-COMBAT and a constrained fine-tuning objective to ensure trigger survival through latent diffusion processes. Our evaluation shows that DCB achieves high attack success rates (ASR) while maintaining image quality, highlighting a critical vulnerability in the generative data supply chain.

Introduction: The Generative Data Supply Chain

In the era of "data-hungry" deep learning, researchers increasingly rely on generative models like Stable Diffusion to augment small datasets. While these open-source models are often treated as neutral tools, they represent a critical part of the generative data supply chain.

Traditional backdoor attacks require an adversary to poison a victim's dataset or tamper with their training code. However, the Data-Chain Backdoor (DCB) shifts the attack vector upstream. If a developer downloads a pre-trained diffusion model to generate synthetic training samples, they may unknowingly import a "Trojan horse."

Comparison of conventional backdoor attacks vs. the proposed Data-Chain Backdoor (DCB) attack.

The core challenge is ensuring the trigger survives the diffusion process. Diffusion models naturally "smooth out" fine-grained patterns during denoising, and the compression used in Latent Diffusion Models (LDMs) often blurs the very pixels an attacker needs to remain effective.

Methods: The DCB Framework

The proposed DCB framework operates in three distinct stages:

  1. Trigger Registry: The attacker fine-tunes or trains a diffusion model on poisoned data to associate a specific trigger (e.g., a small patch or texture) with a target class.
  2. Trigger Manifestation: When a user generates images for that target class, the compromised model automatically embeds the trigger.
  3. Downstream Poisoning: The user trains a classifier on this synthetic data, inadvertently learning the correlation between the trigger and the target label.
The DCB framework, illustrating trigger generation, manifestation in latent space, and downstream poisoning.

To overcome the limitations of latent space compression, the authors introduced U-COMBAT, a universal trigger designed to survive VAE (Variational Autoencoder) compression. Furthermore, they utilize a Constrained Fine-Tuning Objective featuring a "Push-Away" loss strategy. Early-Step Push-Away ensures the model's internal semantic path for poisoned images diverges from clean ones early in denoising, while Late-Step Push-Away ensures the trigger remains sharp in the final pixel-space output.

Experimental Setup and Datasets

The study evaluates DCB across several standard benchmarks:

  • CIFAR-10: Used for train-from-scratch experiments at 32x32 resolution.
  • ImageNet-10: A 10-class subset of ImageNet-200 used for high-resolution (256x256) latent diffusion experiments.
  • miniImageNet: Used to pre-train encoders for few-shot classification evaluation.

Key Results and Insights

The effectiveness of the attack is measured by the Attack Success Rate (ASR) on the downstream classifier:

  • Train-from-Scratch (CIFAR-10): The attack achieved nearly 100% ASR for simple triggers and approximately 80% for U-COMBAT, without degrading clean data accuracy.
  • Fine-Tuning (ImageNet-10): While naive fine-tuning of Stable Diffusion v1.5 yielded only a 2.5% ASR, the proposed constrained fine-tuning boosted the ASR to 46.5% while maintaining high image quality (FID).
  • Data-Scarce Scenarios: In zero-shot and few-shot settings—where synthetic data is most valuable—the attack remained highly effective, showing that the backdoor transfers even when the victim has minimal real data to counter it.

Conclusion and Future Work

The Data-Chain Backdoor represents a significant shift in AI security, bypassing traditional checks by targeting the upstream generative tool. Because the generated images look like the correct class (e.g., a "golf ball" still looks like a golf ball), the attack is "clean-label" and difficult for human auditors to detect.

While 46.5% ASR in fine-tuning scenarios is a significant threat, it is lower than scratch-built models, suggesting pre-trained models have a "prior" that partially resists manipulation. Future work will explore DCB in more complex tasks like object detection and the development of auditing tools specifically designed for the generative data supply chain.

Summary updated

BibTeX
@misc{lu2025data,
  author = {Junchi Lu and Xinke Li and Yuheng Liu and Qi Alfred Chen},
  title = {{Data-Chain Backdoor: Do You Trust Diffusion Models as Generative Data Supplier?}},
  year = {2025},
  eprint = {2512.15769},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.15769},
}
Figure