When There Is No Decoder: Removing Watermarks from Stable Diffusion Models in a No-box Setting

Xiaodong Wu, Tianyi Tang, Xiangman Li, Jianbing Ni, Yong Yu · DOI

Introduction

As AI-generated content (AIGC) becomes increasingly indistinguishable from human-made media, watermarking has emerged as a primary defense for copyright and authenticity. "Model-specific" watermarking integrates the watermark directly into the image generation process, such as in Stable Diffusion models. However, most existing research assumes an attacker has some level of access to the watermark decoder—either "white-box" (full access to weights) or "black-box" (ability to query the decoder). This paper addresses the more realistic and challenging no-box setting, where an attacker has zero access to the decoder and no way to verify if their removal attempt was successful.

Overview of the watermark lifecycle including training, inference, and the attacking phase.

Attack Methodologies

The researchers demonstrate that even without knowing the secret key or the decoder's architecture, they can effectively strip watermarks using three distinct no-box strategies:

  1. Edge Prediction-based Attack: Based on the observation that watermarks are often hidden in high-frequency areas, this method uses a Sobel operator to identify image edges and injects Gaussian noise specifically into those regions to disrupt the watermark signal.
  2. Box Blurring & Deblurring: This two-step process applies a "box blur" to wash out the watermark. To maintain image quality, the authors then use FFTformer, a state-of-the-art deblurring model, to restore visual details without reconstructing the invisible watermark patterns.
  3. Fine-tuning-based Attack: This is the most sophisticated approach. The attacker trains their own "surrogate" watermark decoder on a public dataset and then fine-tunes the target Stable Diffusion model to embed a new, unrelated message. This effectively "overwrites" the original proprietary watermark.

The Fine-tuning Mechanism

The core insight of the fine-tuning attack is that generative models are flexible; they can be forced to learn a new watermarking behavior that conflicts with the old one. If the model learns to embed "Message B" with high fidelity, it effectively "forgets" how to embed the original "Message A."

Comparison between standard watermark detection and the proposed fine-tune-based attack that evades detection.

Experimental Results

The study utilized the COCO (Common Objects in Context) dataset for pre-training surrogate decoders and Stable Diffusion (v1.5) as the base generative model. Key findings include:

  • Watermark Erasure: The fine-tuning attack was the most successful, reducing watermark bit accuracy to 47.92%. Since bit accuracy for a binary string is 50% by random chance, this represents a near-total removal of the identifiable mark.
  • Quality Preservation: Despite the attacks, image quality remained high. Realism and diversity metrics (Inception Score and FID) remained competitive, and CLIP scores confirmed that the images still matched their original text prompts.
  • Defense Failure: Advanced defenses like "multi-label smoothing" helped only slightly; watermark extraction accuracy still fell below acceptable thresholds when faced with no-box blurring and fine-tuning attacks.

Conclusion and Future Directions

The research highlights the fragility of current model-specific watermarking schemes in the face of no-box attacks. While simple blurring removes watermarks at the cost of quality, AI-driven deblurring and surrogate fine-tuning can strip watermarks while maintaining high aesthetic standards. The authors suggest that future watermarking schemes must move away from simple frequency-based embedding and develop decoders that are significantly harder to approximate with surrogates.

Summary updated

BibTeX
@inproceedings{wu2025when,
  author = {Xiaodong Wu and Tianyi Tang and Xiangman Li and Jianbing Ni and Yong Yu},
  title = {{When There Is No Decoder: Removing Watermarks from Stable Diffusion Models in a No-box Setting}},
  booktitle = {ICICS},
  year = {2025},
  doi = {10.1007/978-981-95-3537-8\_30},
}
Figure