Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning

Shengfang Zhai, Yinpeng Dong, Qingni Shen, Shi Pu, Yuejian Fang +1 more
5/7/2023
cs.CRcs.CVcs.MM

No official code found. Best implementation: zhaisf/BadT2I (32 stars, Apache-2.0, last commit 2025-08-14).

Abstract

With the help of conditioning mechanisms, the state-of-the-art diffusion models have achieved tremendous success in guided image generation, particularly in text-to-image synthesis. To gain a better understanding of the training process and potential risks of text-to-image synthesis, we perform a systematic investigation of backdoor attack on text-to-image diffusion models and propose BadT2I, a general multimodal backdoor attack framework that tampers with image synthesis in diverse semantic levels. Specifically, we perform backdoor attacks on three levels of the vision semantics: Pixel-Backdoor, Object-Backdoor and Style-Backdoor. By utilizing a regularization loss, our methods efficiently inject backdoors into a large-scale text-to-image diffusion model while preserving its utility with benign inputs. We conduct empirical experiments on Stable Diffusion, the widely-used text-to-image diffusion model, demonstrating that the large-scale diffusion model can be easily backdoored within a few fine-tuning steps. We conduct additional experiments to explore the impact of different types of textual triggers, as well as the backdoor persistence during further training, providing insights for the development of backdoor defense methods. Besides, our investigation may contribute to the copyright protection of text-to-image models in the future.

View on arXivView PDF

Code Implementations(1)

zhaisf/BadT2ICommunity100%
Apache-2.0

[MM'23 Oral] "Text-to-image diffusion models can be easily backdoored through multimodal data poisoning"

321Shell, PythonJul 30, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhai2023texttoimage,
  title  = {Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning},
  author = {Shengfang Zhai and Yinpeng Dong and Qingni Shen and Shi Pu and Yuejian Fang and Hang Su},
  year   = {2023},
  eprint = {2305.04175},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.04175v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.04175.svg)](https://codeofpaper.com/paper/2305.04175)

Discussion