Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift

Shengwei An, Sheng-Yen Chou, Kaiyuan Zhang, Qiuling Xu, Guanhong Tao +6 more
11/27/2023
cs.CRcs.AIcs.LG

Official code: njuaplusplus/Elijah (13 stars, last commit 2024-05-01).

Abstract

Diffusion models (DM) have become state-of-the-art generative models because of their capability to generate high-quality images from noises without adversarial training. However, they are vulnerable to backdoor attacks as reported by recent studies. When a data input (e.g., some Gaussian noise) is stamped with a trigger (e.g., a white patch), the backdoored model always generates the target image (e.g., an improper photo). However, effective defense strategies to mitigate backdoors from DMs are underexplored. To bridge this gap, we propose the first backdoor detection and removal framework for DMs. We evaluate our framework Elijah on hundreds of DMs of 3 types including DDPM, NCSN and LDM, with 13 samplers against 3 existing backdoor attacks. Extensive experiments show that our approach can have close to 100% detection accuracy and reduce the backdoor effects to close to zero without significantly sacrificing the model utility.

View on arXivView PDF

Code Implementations(1)

130MDX, ShellDec 12, 20232 years ago

Similar Papers

Cite this paper

@article{an2023elijah,
  title  = {Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift},
  author = {Shengwei An and Sheng-Yen Chou and Kaiyuan Zhang and Qiuling Xu and Guanhong Tao and Guangyu Shen and Siyuan Cheng and Shiqing Ma and Pin-Yu Chen and Tsung-Yi Ho and Xiangyu Zhang},
  year   = {2023},
  eprint = {2312.00050},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.00050v2}
}

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/2312.00050.svg)](https://codeofpaper.com/paper/2312.00050)

Discussion