Pixel is a Barrier: Diffusion Models Are More Adversarially Robust Than We Think
Haotian Xue, Yongxin Chen
TL;DR
This work shows that pixel-space diffusion models (PDMs) exhibit far stronger adversarial robustness than latent-space diffusion models (LDMs), challenging the prevailing view that diffusion models are uniformly vulnerable. Through extensive experiments across multiple LDMs and PDMs, the authors demonstrate that gradient-based white-box attacks designed for LDMs fail to meaningfully attack PDMs, due to the denoising dynamics in pixel space. Building on this, they introduce PDM-Pure, a simple SDEdit-based purifier that can remove protective perturbations across a range of attack methods and image resolutions, effectively restoring editability and imitation capabilities. The findings imply that pixel-space diffusion processes constitute a fundamental barrier to adversarial manipulation, complicating current protection strategies and suggesting new directions for robust defense design. Overall, the paper reframes adversarial samples in diffusion models and proposes a practical universal purifier with broad implications for diffusion-based safety and security.
Abstract
Adversarial examples for diffusion models are widely used as solutions for safety concerns. By adding adversarial perturbations to personal images, attackers can not edit or imitate them easily. However, it is essential to note that all these protections target the latent diffusion model (LDMs), the adversarial examples for diffusion models in the pixel space (PDMs) are largely overlooked. This may mislead us to think that the diffusion models are vulnerable to adversarial attacks like most deep models. In this paper, we show novel findings that: even though gradient-based white-box attacks can be used to attack the LDMs, they fail to attack PDMs. This finding is supported by extensive experiments of almost a wide range of attacking methods on various PDMs and LDMs with different model structures, which means diffusion models are indeed much more robust against adversarial attacks. We also find that PDMs can be used as an off-the-shelf purifier to effectively remove the adversarial patterns that were generated on LDMs to protect the images, which means that most protection methods nowadays, to some extent, cannot protect our images from malicious attacks. We hope that our insights will inspire the community to rethink the adversarial samples for diffusion models as protection methods and move forward to more effective protection. Codes are available in https://github.com/xavihart/PDM-Pure.
