Pixel is a Barrier: Diffusion Models Are More Adversarially Robust Than We Think

Haotian Xue, Yongxin ChenarXiv 2024

TL;DR

Current image protection tools (like Glaze or Mist) use adversarial perturbations to trick diffusion models and prevent unauthorized style mimicry. This paper reveals a massive blind spot: these attacks only work on Latent Diffusion Models (LDMs) and completely fail against Pixel-space Diffusion Models (PDMs). Leveraging this natural robustness, the authors introduce PDM-Pure, a simple framework that uses PDMs to easily strip away adversarial protections from images.

What Problem Does This Paper Address?

Artists and creators increasingly use adversarial tools to protect their intellectual property from being scraped or imitated by generative AI. These tools inject imperceptible noise into images, causing diffusion models to generate chaotic, garbled outputs.

However, the authors point out that existing research has focused exclusively on Latent Diffusion Models (LDMs)—which compress images into a lower-dimensional latent space before applying the diffusion process. The vulnerability of Pixel-space Diffusion Models (PDMs), which operate directly on raw pixels, has been entirely overlooked. This paper investigates whether PDMs share this vulnerability or if they possess an inherent defense against adversarial attacks.

Figure 1: Pixel is a Barrier for Attacking DMs: (a) Pixel-based diffusion models are harder to attack using white-box attacks like project-gradient-descent than diffusion models in the latent space. (b) Strong PDM can be used as a universal purifier to effectively remove the protective perturbation generated by existing protection methods. (c) Pixel is a barrier and the pixel-space diffusion model is quite robust, and we cannot achieve real safety and protection if pixel-space diffusion is not attacked.

Methods

  1. Robustness Evaluation: The authors systematically test existing state-of-the-art white-box adversarial attacks (such as PGD, AdvDM, and PhotoGuard) against both LDMs (e.g., Stable Diffusion, DiT) and PDMs (e.g., Guided Diffusion, DeepFloyd-IF).
  2. PDM-Pure Framework: Capitalizing on the discovery that PDMs are highly robust, they propose PDM-Pure, an off-the-shelf adversarial purifier. It uses a strong PDM to run SDEdit (adding a small amount of Gaussian noise to a protected image and then denoising it). Because the PDM ignores the adversarial structure and treats it as standard noise, it effectively purifies the image, removing the protection without degrading image quality.

Datasets

  • ImageNet Validation Subset: A 1,000-image subset used to evaluate models trained on ImageNet (such as DiT and Guided Diffusion).
  • LAION-based Protection Dataset: A benchmark dataset containing 400 images across four categories (cartoon, artwork, landscape, and portrait) used to test models trained on large-scale text-image data.

Key Insights and Ideas

  • The Encoder is the Weak Link: LDMs are fragile not because of the diffusion process itself, but because of their autoencoders. The latent space mapping amplifies pixel-space perturbations significantly (up to 10x), making it easy for adversarial noise to disrupt the model.
  • Pixels as a Natural Barrier: PDMs operate entirely in the pixel space. Because they are explicitly trained to denoise varying levels of standard Gaussian noise, they naturally smooth out and neutralize adversarial perturbations, treating them as harmless artifacts.
  • A False Sense of Security: The widespread belief that adversarial noise can reliably protect artists' work is an illusion. A malicious actor can simply route a protected image through a PDM-based purifier to completely neutralize the defense.

Key Results

  • Attack Failure on PDMs: Quantitative metrics (FID, SSIM, LPIPS) show that while attacks drastically degrade LDM outputs (e.g., Stable Diffusion's FID score drops by over 100 points under strong attacks), PDMs remain virtually unaffected ($\Delta \approx 0$).
  • State-of-the-Art Purification: PDM-Pure successfully bypasses popular protection tools like Glaze, Mist, and PhotoGuard. In evaluations, it consistently achieved the lowest FID scores compared to traditional baselines like JPEG compression, crop-and-resize, or patch-based purifiers (GrIDPure).
  • Downstream Restoration: Purified images were successfully used in complex downstream tasks like image inpainting, Textual Inversion, and LoRA customization without any residual interference from the original adversarial protection.
Qualitative results showing PDM-Pure successfully bypassing image protection for downstream tasks.

Limitations and Future Work

  • Resolution and Detail Loss: When adapting cascaded models like DeepFloyd-IF, downsampling high-resolution images to fit the PDM's native resolution can lead to a loss of fine details, though patch-based processing offers a partial workaround.
  • Theoretical Mechanism: While empirical evidence strongly supports PDM robustness, a rigorous mathematical explanation of why pixel-space diffusion resists gradient-based manipulation remains an open question.
  • The Next Generation of Protection: This work challenges safety researchers to develop new adversarial techniques that can penetrate the pixel barrier rather than relying solely on latent-space vulnerabilities.

Summary updated

BibTeX
@misc{xue2024pixel,
  author = {Haotian Xue and Yongxin Chen},
  title = {{Pixel is a Barrier: Diffusion Models Are More Adversarially Robust Than We Think}},
  year = {2024},
  eprint = {2404.13320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.13320},
}
Figure