AdvPaint: Protecting Images from Inpainting Manipulation via Adversarial Attention Disruption
About
The outstanding capability of diffusion models in generating high-quality images poses significant threats when misused by adversaries. In particular, we assume malicious adversaries exploiting diffusion models for inpainting tasks, such as replacing a specific region with a celebrity. While existing methods for protecting images from manipulation in diffusion-based generative models have primarily focused on image-to-image and text-to-image tasks, the challenge of preventing unauthorized inpainting has been rarely addressed, often resulting in suboptimal protection performance. To mitigate inpainting abuses, we propose ADVPAINT, a novel defensive framework that generates adversarial perturbations that effectively disrupt the adversary's inpainting tasks. ADVPAINT targets the self- and cross-attention blocks in a target diffusion inpainting model to distract semantic understanding and prompt interactions during image generation. ADVPAINT also employs a two-stage perturbation strategy, dividing the perturbation region based on an enlarged bounding box around the object, enhancing robustness across diverse masks of varying shapes and sizes. Our experimental results demonstrate that ADVPAINT's perturbations are highly effective in disrupting the adversary's inpainting tasks, outperforming existing methods; ADVPAINT attains over a 100-point increase in FID and substantial decreases in precision.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Editing Immunization | DE | PSNR19.39 | 7 | |
| Universal Image Immunization | Stable Diffusion v2.0 | Feat. Sim. (C)0.647 | 6 | |
| Image Immunization | Stable Diffusion v1.5 | Feat. Sim. (C)0.696 | 6 | |
| Universal Image Immunization | Stable Diffusion V1.4 | Feat. Sim. C0.69 | 6 | |
| Universal Image Immunization | InstructPix2Pix | Feat. Sim. (C)0.756 | 6 | |
| Image Inpainting Immunization | D_I FLUX 2024 (test) | PSNR22.67 | 3 | |
| Image Inpainting Immunization | D_I Stable Diffusion V1.5 (test) | PSNR15.16 | 3 | |
| Image Inpainting Immunization | D_I Stable Diffusion 2.0 (test) | PSNR15.27 | 3 |