Abstract
As text-to-image diffusion models (DMs) like DALL·E 2 and Stable Diffusion become ubiquitous, protecting the intellectual property (IP) of these resource-intensive models is paramount. We present the first framework for watermarking DMs, introducing two schemes: NAIVEWM and FIXEDWM. By fine-tuning models to generate a specific watermark image when triggered by a secret prompt, owners can verify ownership without compromising the model's utility for standard tasks.
Introduction
Training state-of-the-art diffusion models requires massive datasets and significant computational investment, making the resulting model weights highly valuable "crown jewels." However, these models are vulnerable to unauthorized use and modification. Traditional watermarking techniques for classifiers do not directly translate to generative models, which lack discrete downstream labels. This work addresses the challenge by embedding a visual signature directly into the model's generative behavior.
Proposed Methods
The proposed framework utilizes a "backdoor-based" watermarking approach where a pre-trained Latent Diffusion Model (LDM) is fine-tuned on a specialized dataset to associate specific triggers with a watermark.
Two primary methods are explored:
- NAIVEWM: The model associates a specific "trigger" word (e.g., a meaningless string like "ikun") with a target watermark image. The presence of this trigger anywhere in a prompt activates the watermark.
- FIXEDWM: A more stealthy approach where the watermark only activates if the trigger word appears in a pre-defined position within the prompt. This method uses "negative" examples during fine-tuning to ensure the model produces clean images if the trigger is misplaced.
The use of meaningless trigger words exploits the BERT tokenizer's behavior, creating a unique sub-token signature that is easy for the model to learn but difficult for adversaries to guess.
Experimental Evaluation
The methods were evaluated using the MS COCO 2017 dataset. Key metrics included the Fréchet Inception Distance (FID) to measure image realism and Mean Squared Error (MSE) to assess watermark fidelity.
Key Results
- Model Utility: The impact on general image quality was negligible. The baseline FID of 28.26 only shifted slightly to 29.45 after injecting NAIVEWM, meaning standard generation performance remained high.
- Watermark Fidelity: NAIVEWM achieved an MSE of 0.118, indicating a high-fidelity reproduction of the signature.
- Efficiency: Successful injection required "poisoning" only approximately 10% of the fine-tuning data, making the process relatively efficient for model owners.
Conclusion
This research provides a robust blueprint for protecting the IP of diffusion models. By treating watermarking as a learned conditional behavior, owners can "brand" their models effectively. Future work will focus on improving robustness against model compression and sophisticated erasure attacks to ensure these protections survive in diverse deployment environments.
Summary updated