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

Stable Signature is Unstable: Removing Image Watermark from Diffusion Models

Yuepeng Hu, Zhengyuan Jiang, Moyang Guo, Neil Zhenqiang Gong · Submission to ICLR 2025 · Withdrawn

TL;DR

Recent watermarking methods like Meta’s Stable Signature embed invisible signatures directly into the weights of an open-source diffusion model’s decoder, claiming resistance to watermark removal. This paper introduces a model-targeted attack that fine-tunes the decoder using a small set of clean images, completely stripping the watermark while preserving visual quality. Crucially, the attack succeeds even when the model provider keeps the image encoder closed-source.

What Problem Does This Paper Address?

As generative AI advances, distinguishing synthetic images from real photographs is critical for combating misinformation. While watermarking is standard practice, open-source diffusion models present a major loophole: users can inspect model internals and strip out post-processing or pre-generation watermarking steps.

To solve this, "in-generation" watermarking schemes—most notably Meta's Stable Signature and WOUAF—modify the diffusion model’s image decoder so that every generated image is intrinsically watermarked. These approaches were widely considered robust because existing model-level attacks (like Model Purification, or MP) caused severe image blurriness and required access to the image encoder, which providers could easily keep proprietary. The authors ask: Can an attacker cleanly remove embedded decoder watermarks with or without encoder access?

Methods

The authors introduce a two-step fine-tuning attack that repurposes the watermarked decoder ($D_w$) into a clean decoder ($D_{nw}$) using an external "attacking dataset" of clean, unwatermarked images:

[Clean Image x] ──Step I: Latent Estimation──> [Latent z] ──Step II: Decoder Fine-Tuning──> [Clean Decoder D_nw]
  1. Step I: Latent Vector Estimation
    For each non-watermarked image $x^i$, the attack estimates a corresponding denoised latent vector $\hat{z}^i$:

  2. Encoder-Aware (E-aware): If the encoder $E$ is public, the latent is estimated directly as $\hat{z}^i = E(x^i)$.

  3. Encoder-Agnostic (E-agnostic): If the encoder is proprietary, the attack treats $\hat{z}^i$ as an optimization variable to solve $\min_{\hat{z}^i} \ell_p(D_w(\hat{z}^i), x^i)$. It uses a two-stage optimization (2S): Stage 1 minimizes Mean Squared Error (MSE) from a Gaussian initialization to capture coarse composition, and Stage 2 minimizes Watson-VGG perceptual loss to reconstruct fine details.
  4. Step II: Decoder Fine-Tuning
    The decoder $D_w$ is fine-tuned on the $(\hat{z}^i, x^i)$ pairs using a composite objective: $$\min_{D_w} \frac{1}{n} \sum_{i=1}^n \left( \|D_w(\hat{z}^i) - x^i\|_2 + \lambda \ell_p(D_w(\hat{z}^i), x^i) + \mu \log(1 - \text{disc}(D_w(\hat{z}^i))) \right)$$ Combining pixel-level MSE, perceptual loss ($\ell_p$), and an adversarial discriminator ($\text{disc}$) forces the decoder to map latent vectors back to clean pixel spaces without losing high-frequency texture or sharpness.

Datasets

  • Attacking Datasets (for fine-tuning): 4,000 randomly selected clean images each from ImageNet, MS-COCO, and Conceptual Captions (CC), resized to $256 \times 256$.
  • Evaluation Dataset: 1,000 text prompts randomly sampled from the Stable Diffusion Prompts dataset (MagicPrompt) to generate synthetic test images.

Key Insights and Ideas

  • In-generation watermarks are vulnerable to distribution realignment: Decoders fine-tuned to embed watermarks slightly bias their output manifold. Supervised fine-tuning on a modest set of natural images (4,000 images) quickly overwrites this bias.
  • You don't need the encoder: Inverting a decoder via two-stage latent optimization (MSE initialization followed by perceptual refinement) produces latents accurate enough to train away watermark parameters.
  • Watermark removal can improve quality: Methods like WOUAF degrade baseline generation quality to force watermark embedding. Fine-tuning to strip the watermark actually lowered Fréchet Inception Distance (FID), restoring original image fidelity.
  • Amortized efficiency: Unlike per-image watermark removal attacks (which optimize perturbations image-by-image), a model-targeted attack modifies the decoder once. Subsequent generation incurs zero per-image overhead.

Key Results

The evaluation targeted Stable Diffusion 2.1 (watermarked via Stable Signature) and Stable Diffusion 2-base (watermarked via WOUAF):

  • Watermark Removal:
  • Stable Signature: Achieved an evasion rate exceeding 94% (bitwise accuracy $<66\%$, down from near 100% detection) in both E-aware and E-agnostic setups.
  • WOUAF: Achieved a 100% evasion rate with bitwise accuracy under 57%.
  • Visual Quality:
  • On Stable Signature, the attack maintained an FID under 14.79 and an LPIPS under 0.066, heavily outperforming Model Purification (MP), which suffered from high blurriness (FID $>25$).
  • Qualitative inspections showed generated images were virtually indistinguishable from clean models.
  • Efficiency:
  • While baseline per-image removal attacks like WEvade-W-II require 651 seconds per image, this attack requires a one-time fine-tuning cost (~14 minutes for E-aware; ~2,000 minutes on 4 $\times$ A6000 GPUs for E-agnostic) and 0 seconds per subsequent image. It breaks even against WEvade-W-II after generating just 809 images.

Limitations and Future Work

  • Compute Overhead in Encoder-Agnostic Settings: Inverting latents without an encoder takes substantial compute (~8,778 single-GPU minutes on an NVIDIA A6000 for 4,000 images).
  • Scope: The attack evaluates decoders modified by Stable Signature and WOUAF; it does not explore watermarking schemes embedded deeper within the diffusion denoising UNet itself.
  • Future Work: Developing robust open-source watermarking strategies that are provably resilient against parameter fine-tuning remains an open challenge for the community.

Summary updated

BibTeX
@misc{hu2024stable,
  author = {Yuepeng Hu and Zhengyuan Jiang and Moyang Guo and Neil Zhenqiang Gong},
  title = {{Stable Signature is Unstable: Removing Image Watermark from Diffusion Models}},
  year = {2024},
  eprint = {2405.07145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.07145},
}
Figure