[Paper Review] Targeted Attack Improves Protection against Unauthorized Diffusion Customization
This paper proposes Improved Targeted Attack (ITA), a memory-efficient adversarial attack on Latent Diffusion Models (LDMs) that significantly enhances effectiveness against state-of-the-art few-shot generation methods like LoRA and SDEdit. By introducing a novel targeted objective function and three memory-saving mechanisms, ITA reduces GPU memory usage to under 6GB, enabling deployment on consumer-grade hardware while maintaining strong robustness against common denoising defenses.
Diffusion models build a new milestone for image generation yet raising public concerns, for they can be fine-tuned on unauthorized images for customization. Protection based on adversarial attacks rises to encounter this unauthorized diffusion customization, by adding protective watermarks to images and poisoning diffusion models. However, current protection, leveraging untargeted attacks, does not appear to be effective enough. In this paper, we propose a simple yet effective improvement for the protection against unauthorized diffusion customization by introducing targeted attacks. We show that by carefully selecting the target, targeted attacks significantly outperform untargeted attacks in poisoning diffusion models and degrading the customization image quality. Extensive experiments validate the superiority of our method on two mainstream customization methods of diffusion models, compared to existing protections. To explain the surprising success of targeted attacks, we delve into the mechanism of attack-based protections and propose a hypothesis based on our observation, which enhances the comprehension of attack-based protections. To the best of our knowledge, we are the first to both reveal the vulnerability of diffusion models to targeted attacks and leverage targeted attacks to enhance protection against unauthorized diffusion customization. Our code is available on GitHub: https://github.com/psyker-team/mist-v2.
Motivation & Objective
- To address the limited effectiveness of existing adversarial attacks against modern LDM-based few-shot generation pipelines such as LoRA and SDEdit.
- To reduce the high GPU memory cost of current attacks, which restricts their use to only users with high-end hardware.
- To develop a practical defense tool for individuals facing copyright and privacy risks from unauthorized LDM-driven image generation.
- To ensure robustness of the attack against common denoising-based adversarial defenses, such as JPEG compression and resizing.
- To enable black-box applicability of the attack in real-world scenarios where model access is limited.
Proposed method
- The attack uses a novel targeted objective function that optimizes perturbations to maximize failure in few-shot image generation, specifically targeting the feature space of the reference image.
- Memory efficiency is achieved through gradient checkpointing, mixed-precision inference, and selective activation storage, reducing GPU memory consumption to under 6GB.
- The method applies perturbations in the latent space of the LDM, preserving imperceptibility while maximizing disruption in the diffusion process.
- The attack is evaluated across multiple backbone models (e.g., Stable Diffusion, SDXL) and victim models (SDEdit, LoRA), demonstrating strong cross-model transferability.
- Robustness is tested against denoising defenses including Gaussian noise, JPEG compression, resizing (2x and 0.5x), and super-resolution, with consistent performance degradation in generated outputs.
- The attack is applied under a perturbation budget of 4/255 and evaluated using MS-SSIM, CLIP-SIM, and CLIPIQA metrics to quantify generation quality degradation.
Experimental results
Research questions
- RQ1Can a targeted adversarial attack achieve significantly higher failure rates in LDM-based few-shot generation compared to existing methods?
- RQ2To what extent can memory-efficient techniques reduce GPU memory usage in adversarial attacks on LDMs without sacrificing effectiveness?
- RQ3How robust is the proposed attack against common denoising-based defenses used to purify adversarial examples?
- RQ4Does the attack maintain strong performance across different LDM backbones and victim models, indicating cross-model transferability?
- RQ5Can the attack be effectively deployed in black-box settings where only the input and output of the victim model are accessible?
Key findings
- ITA achieves a CLIPIQA score of 39.63 on LoRA and 0.45 on SDEdit when tested under a 8/255 perturbation budget, indicating severe degradation in image quality after adversarial perturbation.
- The attack maintains strong performance across multiple victim models, including SDEdit and LoRA, with MS-SSIM scores below 0.5 and CLIP-SIM scores below 0.1, showing effective disruption of content transfer.
- Even after applying Gaussian noise (σ=8), JPEG compression (Q=20,70), resizing (2x, 0.5x), and super-resolution, ITA continues to degrade output quality, with CLIPIQA scores remaining low.
- The attack remains effective under denoising defenses, particularly resisting high-quality JPEG and resizing, which are common in real-world image processing pipelines.
- Memory usage is reduced to under 6GB through gradient checkpointing, mixed-precision inference, and selective activation storage, enabling deployment on consumer GPUs.
- Visualizations and quantitative results confirm that adversarial examples generated by ITA fail to produce meaningful outputs in both SDEdit and LoRA pipelines, even when defenses are applied.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.