Toward effective protection against diffusion-based mimicry through score distillation

Haotian Xue, Chumeng Liang, Xiaoyu Wu, Yongxin Chen

Overview

Protecting your digital art from AI mimicry just got a lot faster and lighter. By discovering that the image encoder—not the denoiser—is the "Achilles' heel" of Latent Diffusion Models (LDMs), researchers have developed a new protection framework using Score Distillation Sampling (SDS). This new approach is twice as fast and uses 50% less memory than previous methods, all while producing more natural-looking image "cloaks."

The Threat of AI Mimicry

As generative AI models like Stable Diffusion become mainstream, artists face a new threat: mimicry. Malicious users can use these models to "style-transfer" an artist's work without consent or perform "malicious inpainting" to alter photos of individuals.

To fight back, researchers developed "adversarial perturbations"—tiny, invisible-to-humans changes to an image that cause an AI model to output garbage. However, existing tools (like AdvDM or Mist) are computationally "heavy." They require backpropagating through the massive U-Net denoiser module of a diffusion model over and over again. For an individual artist with a consumer-grade GPU, this process is often too slow and memory-intensive to be practical. This paper seeks to find a "shortcut" to make this protection accessible to everyone.

Key Insight: The Encoder is the Achilles' Heel

The most significant discovery in this research is that the latent space (managed by the encoder) is far more vulnerable than the denoiser. The "attack budget" in the latent space is nearly 10 times larger than in the pixel space. Essentially, if you break the encoder's representation, the rest of the diffusion pipeline falls apart.

Conversely, the denoiser module is surprisingly resilient. Direct attacks on the denoiser often fail to "fool" it, meaning the heavy computation spent on it in previous methods was largely wasted.

A Faster, Lighter Protection Framework

Overview of the proposed protection framework

Based on these insights, the authors introduce two primary innovations to the image protection pipeline:

  1. Score Distillation Sampling (SDS): Instead of calculating the exact, expensive gradient through the entire denoising process, the authors adapt the SDS technique (originally from 3D generation). SDS provides a high-quality gradient approximation that bypasses the need to save the denoiser's internal states. This "plug-and-play" strategy drastically reduces the computational overhead, offering a "free lunch" that cuts VRAM usage in half.
  2. Gradient Descent (GD) on Semantic Loss: Traditionally, protection methods use Gradient Ascent to maximize the "noise" or error in the AI's output, which often results in "deep-fried" or highly distorted protected images. The authors counterintuitively suggest using Gradient Descent to minimize semantic loss. This guides the model toward a "blurred" or "average" output, which is still effective at preventing mimicry but results in perturbations that look much more natural and harmonious to the human eye.

Performance and Results

The researchers evaluated their methods across four diverse domains (Anime, Artworks, Landscapes, and Portraits) to test three mimicry scenarios: global image-to-image editing (SDEdit), inpainting, and textual inversion.

The paper provides strong quantitative and qualitative proof of their "faster and better" claim:

  • Speed & Efficiency: Their SDS-based methods reduced protection time from ~65 seconds to ~30 seconds per image and dropped VRAM requirements from 16GB to 8GB. This makes it possible to run these protections on standard 8GB consumer GPUs.
  • Visual Quality: In human evaluations, the "SDS(-)" method (using gradient descent) scored 4.55/5.0, significantly higher than the baseline AdvDM (2.94/5.0). This indicates that the protected images look much more like the originals.
  • Robustness: The protection remained effective even when attackers tried to "purify" the images using common defenses like JPEG compression or cropping and resizing.

Limitations and Future Directions

While the results are promising, the authors note a few areas for further exploration. The current work focuses specifically on Latent Diffusion Models (like Stable Diffusion). While these are the most popular, the findings might not translate directly to pixel-space diffusion models (like Google's Imagen). Additionally, as with all adversarial defenses, there is an ongoing arms race; future work will need to investigate if even more sophisticated "purification" algorithms can bypass these encoder-based attacks.

Summary updated

BibTeX
@inproceedings{xue2024toward,
  author = {Haotian Xue and Chumeng Liang and Xiaoyu Wu and Yongxin Chen},
  title = {{Toward effective protection against diffusion-based mimicry through score distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=NzxCMe88HX},
}
Figure