UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Models

Yuning Han, Bingyin Zhao, Rui Chu, Feng Luo, Biplab Sikdar, Yingjie Lao · DOI

Abstract

Diffusion models (DMs) have revolutionized generative AI, but their reliance on massive, often uncurated datasets makes them vulnerable to data poisoning. We present UIBDiffusion, the first universal and imperceptible backdoor attack for diffusion models. By utilizing Universal Adversarial Perturbations (UAPs) as triggers, UIBDiffusion achieves a 100% attack success rate with minimal data poisoning while remaining invisible to both human inspection and state-of-the-art algorithmic defenses.

Introduction

The rapid adoption of Diffusion Models has brought forth significant security concerns, particularly regarding backdoor attacks. In a typical backdoor scenario, a model is trained such that a specific "trigger" in the input forces the generation of a malicious target image. However, existing attacks often rely on perceptible triggers—like gray boxes or eyeglasses—that are easily spotted by human moderators or reversed by defensive algorithms such as Elijah and TERD. UIBDiffusion addresses this "stealthiness-effectiveness" trade-off by introducing triggers that are image-agnostic, model-agnostic, and mathematically imperceptible.

Methodology

UIBDiffusion's innovation lies in repurposing Universal Adversarial Perturbations (UAPs), originally designed to fool image classifiers, as backdoor triggers for generative models. The framework consists of two primary stages:

  1. Trigger Generation: A trainable network $G_\gamma$ is optimized to maximize the "fooling rate" against a pre-trained classifier (e.g., VGG or ResNet). This process generates a high-frequency noise pattern $\tau$ that serves as the trigger.
  2. Backdoor Injection: The attack replaces visible mask-based injection with a simple additive process: $r(x, \tau) = x + \varepsilon \odot \tau$, where $x$ is the clean image and $\tau$ is the UAP trigger. Because $\tau$ is essentially structured noise, it does not form recognizable spatial patterns.
Overview of the UIBDiffusion framework, illustrating the forward and backward diffusion processes for clean, perceptible (VillanDiffusion), and imperceptible (UIBDiffusion) triggers.

Experimental Results

The authors evaluated UIBDiffusion using CIFAR-10 and CelebA-HQ datasets across multiple architectures (DDPM, LDM, NCSN) and 11 different sampling algorithms.

Attack Effectiveness and Stealthiness

UIBDiffusion achieved a 100% Attack Success Rate (ASR) with a poison rate as low as 5%. In contrast, the previous state-of-the-art method, VillanDiffusion, only reached a 56% ASR at the same poison level. Quantitatively, images poisoned with UIBDiffusion maintained high SSIM scores, appearing virtually identical to clean images to the human eye.

Visual comparison of backdoor configurations. The top row shows a perceptible gray-box trigger, while the bottom row shows the imperceptible UIBDiffusion trigger. Both successfully generate the target "hat" image at various poison rates.

Robustness Against Defenses

A critical advantage of UIBDiffusion is its ability to bypass algorithmic defenses. Methods like Elijah and TERD rely on "trigger inversion" to find consistent geometric patterns. Because UAPs are high-frequency and unstructured, these algorithms fail to reconstruct the trigger, resulting in a 0% detection rate for UIBDiffusion while maintaining a 100% success rate for the attacker.

Conclusion

UIBDiffusion demonstrates a significant vulnerability in current diffusion model training pipelines. By leveraging the high-frequency nature of UAPs, the attack achieves perfect effectiveness and unprecedented stealth. These findings suggest that future defensive research must move beyond pixel-space trigger inversion and focus on detecting subtle distribution shifts within the model's latent representations.

Summary updated

BibTeX
@inproceedings{han2025uibdiffusion,
  author = {Yuning Han and Bingyin Zhao and Rui Chu and Feng Luo and Biplab Sikdar and Yingjie Lao},
  title = {{UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01787},
}
Figure