Universal Image Immunization against Diffusion-based Image Editing via Semantic Injection
About
Diffusion model advances have enabled powerful text-guided image editing, but also raise ethical and legal risks such as deepfakes and unauthorized use. To prevent these risks, adversarial attack-based image immunization has emerged as a promising defense against AI-driven semantic manipulation. Yet, most existing approaches require image-specific optimization or additional neural networks at inference time, hindering scalability and practicality. In this paper, we propose the first universal adversarial perturbation-based image immunization framework that generates a single, image-agnostic adversarial perturbation specifically designed for diffusion-based editing pipelines. Inspired by UAP used in targeted attacks, our method aims to generate a UAP that induces diffusion models to misinterpret the input image as a specific semantic target. Simultaneously, it suppresses original content to misdirect the model's attention during editing, thereby effectively blocking unauthorized edits by overwriting the image's original semantics via the UAP. Extensive experiments show that our method, as the first universal immunization approach, significantly outperforms several baselines in the UAP setting. Notably, despite the inherent difficulty of universal perturbations, our method achieves competitive or superior performance compared to image-specific methods under a more restricted perturbation budget, while also exhibiting strong black-box transferability across diverse diffusion models.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Immunization | Stable Diffusion V1.4 | Feat. Sim. (C)0.687 | 7 | |
| Image Immunization | Stable Diffusion v2.0 | Feat. Sim. (C)0.629 | 7 | |
| Image Immunization | Stable Diffusion 1.4 (test) | Feat. Sim. (CLIP)0.675 | 7 | |
| Image Immunization | Stable Diffusion V2.0 (test) | Feat. Sim. (CLIP)0.616 | 7 | |
| Image Immunization | InstructPix2Pix (test) | Feat. Sim. (CLIP)0.729 | 7 | |
| Image Immunization | InstructPix2Pix | Feat. Sim. (C)0.752 | 7 | |
| Image Editing Immunization | DE | PSNR17.63 | 7 | |
| Image Immunization | Image Editing Dataset Stable Diffusion v1.5 (test) | PSNR14.68 | 6 | |
| Image Immunization | Stable Diffusion v1.5 | Feat. Sim. (C)0.685 | 6 | |
| Universal Image Immunization | Stable Diffusion V1.4 | Feat. Sim. C0.687 | 6 |