NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GuardDoor: Safeguarding Against Malicious Diffusion Editing via Protective Backdoors

Yaopei Zeng, Yuanpu Cao, Lu LinarXiv 2025 · DOI

Introduction

The rapid advancement of Image-to-Image (I2I) diffusion models has enabled unprecedented creative possibilities but also facilitated the creation of deepfakes and misinformation. Current "immunization" techniques, such as PhotoGuard, rely on adding invisible adversarial noise to images. However, these methods are notoriously fragile; simple operations like JPEG compression or Gaussian blurring can "wash away" the protection. GuardDoor proposes a shift from image-only defenses to a collaborative "model + image" approach.

Comparison between traditional adversarial perturbation (left) and the GuardDoor collaborative defense (right).

Methodology

GuardDoor introduces a "protective backdoor" mechanism where model providers and image owners collaborate to ensure image integrity. The process shifts the paradigm from calculating fragile adversarial noise to recognizing robust, un-washable triggers. The framework consists of three primary stages.

The three-stage GuardDoor pipeline: 1) Generating protective triggers via VAE, 2) Injecting protective backdoors into the model, and 3) Deploying the safeguarded model.

1. Protective Trigger Generation

Instead of computationally expensive adversarial noise, GuardDoor leverages the natural reconstruction artifacts of a pre-trained Variational Autoencoder (VAE). By passing an image through a VAE, an imperceptible noise pattern is embedded. This trigger is robust to common image preprocessing because it is inherently tied to the image's latent structure, making it much harder to "purify" than standard adversarial noise.

2. Protective Backdoor Injection

The model provider fine-tunes the diffusion model's image encoder to recognize these VAE-generated triggers. A dual-loss function is employed during this phase:

  • Utility Loss: Ensures the model maintains high performance and fidelity on standard, unprotected images.
  • Protective Loss: Trains the encoder to map any image containing the VAE trigger to a predefined "garbage" latent representation (e.g., a black square).

3. Model Deployment

When an unauthorized user attempts to edit a protected image using the backdoored model, the trigger activates the "garbage" output, effectively neutralizing the malicious edit. This provides an O(1) protection cost, as safeguarding an image only requires a single forward pass through a VAE.

Experimental Evaluation

The framework was evaluated on the CelebA (faces) and WikiArt (artistic) datasets. To test generalization, the authors used the HELEN face dataset and artworks from unseen WikiArt artists as out-of-distribution (OOD) samples.

Key Results

  • Unmatched Robustness: Unlike baseline methods (PhotoGuard, EditShield) which fail under purification attacks like DiffPure or IMPRESS, GuardDoor remains effective, consistently forcing meaningless outputs when triggers are detected.
  • Efficiency: Adding protection to an image takes GuardDoor only 0.031 seconds, compared to 11.82 seconds for PhotoGuard, solving the scalability bottleneck of previous methods.
  • Utility Preservation: The fine-tuning process has minimal impact on standard model performance, maintaining a high Structural Similarity Index (SSIM) of 0.935 for unprotected image reconstructions.
  • Human-Aligned Evaluation: Using GPT-4o as an automated judge, GuardDoor achieved a near-perfect protection score of 9.9/10, significantly outperforming baselines under attack conditions.

Conclusion

GuardDoor addresses the scalability and robustness limitations of current image protection techniques. By treating VAE artifacts as a feature for backdoor triggers rather than noise to be removed, it creates a resilient defense mechanism. Future research will focus on extending this protection to localized, mask-based editing scenarios and exploring resilience against a broader range of generative attacks.

Summary updated

BibTeX
@misc{zeng2025guarddoor,
  author = {Yaopei Zeng and Yuanpu Cao and Lu Lin},
  title = {{GuardDoor: Safeguarding Against Malicious Diffusion Editing via Protective Backdoors}},
  year = {2025},
  eprint = {2503.03944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.03944},
}
Figure