Abstract
As generative AI advances, the need for reliable provenance tools like digital watermarking has become critical. Meta's "Stable Signature" was proposed as a robust solution that embeds watermarks directly into the weights of a diffusion model's decoder. This paper challenges the perceived "unbreakability" of such in-generation techniques. We present a novel two-step fine-tuning attack that allows an adversary to strip these watermarks with over 94% success. Our method preserves high visual quality and low Fréchet Inception Distance (FID), demonstrating that rooting watermarks in model parameters is insufficient for securing open-source generative models.
Introduction
The proliferation of deepfakes and AI-generated misinformation has led to the development of various watermarking strategies. Traditional post-generation and pre-generation methods are easily bypassed in open-source environments by modifying the inference code. In response, "in-generation" watermarking—specifically Stable Signature—was designed to be "rooted" in the model's decoder weights, theoretically making it resistant to simple removal.
This research explores whether a model-targeted fine-tuning attack can force a watermarked decoder ($D_w$) to "forget" the watermark signal and behave like a clean, non-watermarked decoder ($D_{nw}$).
Methodology
The proposed attack is a two-stage process designed to align a watermarked decoder with clean image distributions.
Step I: Latent Estimation
To fine-tune the decoder, the attacker first needs pairs of latent vectors ($z$) and their corresponding clean, non-AI images. Two scenarios are considered:
- Encoder-aware (E-aware): If the attacker has access to the original encoder, they can directly obtain the latent representation of a clean image.
- Encoder-agnostic (E-agnostic): If the encoder is unavailable, a two-stage optimization is used. Starting from random noise, gradient descent is applied to find a latent vector that, when processed by the watermarked decoder, yields an image visually similar to the target clean image.
Step II: Decoder Fine-tuning
With the estimated latents and clean image pairs, the decoder is fine-tuned to minimize the watermark's presence. The optimization objective incorporates three distinct loss functions:
- MSE Loss: Ensures pixel-level fidelity to the original clean images.
- Perceptual Loss (Watson-VGG): Maintains the high-level structural and stylistic features of the generated content.
- Adversarial Loss: Employs a discriminator to ensure the fine-tuned decoder produces realistic, high-quality images that can evade detection.
Experimental Setup
The attack was evaluated using 12,000 images sampled from ImageNet, MS-COCO, and Conceptual Captions. Testing was conducted on Stable Diffusion 2.1 with the Stable Signature modification. Evaluation metrics included evasion rate (the percentage of images where the watermark detector failed), bitwise accuracy of the extracted watermark, and FID to measure image quality.
Key Results
The results indicate a significant vulnerability in the Stable Signature framework. The attack achieved an evasion rate exceeding 94% across all tested datasets. Furthermore, the bitwise accuracy of the extracted watermarks fell to approximately 66%, nearing the 50% threshold of random chance.
Crucially, the attack maintained superior image quality compared to previous methods like Model Purification (MP). While MP often resulted in blurred outputs with high FID scores (above 40), this fine-tuning approach kept FID scores below 27.5, preserving the utility of the generative model.
Discussion and Conclusion
The success of the E-agnostic attack is particularly noteworthy, as it demonstrates that an attacker does not need full access to the original model pipeline to remove the watermark. While the fine-tuning process is computationally intensive, it represents a one-time cost. Once the decoder is "purified," all subsequent generations are watermark-free.
This work highlights a fundamental challenge in AI provenance: "rooting" a watermark in weights does not guarantee permanence if the model remains open for fine-tuning. Future research must focus on architectural integrations that are intrinsically tied to the model's generative capability, such that removing the watermark would inevitably destroy the model's utility.
Summary updated