Introduction
The rapid advancement of generative AI has raised significant concerns regarding data provenance and intellectual property. Large-scale diffusion models, such as Stable Diffusion, are trained on billions of images scraped from the web, often without the explicit consent of the original creators. Identifying whether a specific dataset or image was used in training remains a "black box" challenge. This paper introduces a novel method to embed imperceptible watermarks into training data that are subsequently "learned" and reproduced by diffusion models, providing a verifiable trail of data usage.
Methodology
The proposed system relies on a joint training framework involving a Watermark Generator ($G$) and a Watermark Decoder ($D$).
Watermark Generation and Embedding
The Watermark Generator is a CNN-based model designed to produce a fixed, low-frequency watermark based on a unique binary code. To ensure the watermark remains imperceptible to human viewers, it is blended with the source image using a small scale factor ($\lambda \approx 0.025$) and smoothed with a Gaussian blur to eliminate high-frequency artifacts that might be stripped during standard image processing.
Training and Detection Pipeline
The core innovation lies in the observation that diffusion models are highly effective at capturing the underlying distribution of their training data. By consistently watermarking a subset of training images, the diffusion model treats the watermark as a learned feature of that data class.
The detection process involves generating a large sample of images from the suspect model and passing them through the pre-trained Watermark Decoder. A Chi-Squared test is then applied to the distribution of decoded indices to determine if a specific watermark appears with statistical significance.
Experimental Results
The researchers evaluated the method across several datasets, including CIFAR10, CIFAR100, and CelebA-HQ.
Statistical Significance and Robustness
The method demonstrated extreme statistical reliability, yielding p-values significantly lower than $10^{-6}$. This indicates that the probability of the watermark appearing by chance in the model's output is virtually zero. Furthermore, the watermark proved robust against common data augmentations like cropping, rotation, and flipping, provided the decoder was exposed to these transformations during its initial training.
Attribute Linking
In tests using the CelebA-HQ dataset, the authors specifically watermarked images of individuals wearing eyeglasses (representing only 4.8% of the total data). The results showed that the diffusion model learned to associate the watermark specifically with the "eyeglasses" attribute; generated images featuring glasses contained the watermark, while those without did not.
Model Quality and Preservation
A key finding is the positive correlation between model quality and watermark preservation. Models that achieved lower Fréchet Inception Distance (FID) scores—indicating higher fidelity to the training data—were more successful at reproducing the embedded watermarks. This suggests that as generative models become more accurate, they become easier to track using this method.
Conclusion
This research provides a powerful tool for content creators to protect their intellectual property in the age of AI. By turning the high-fidelity learning capabilities of diffusion models against them, creators can leave "digital breadcrumbs" that survive the training process. Future research will focus on increasing the robustness of these watermarks against more aggressive data cleaning techniques and exploring alternative embedding methods that further minimize perceptual impact while maximizing detection strength.
Summary updated