Image Watermarking of Generative Diffusion Models

Yunzhuo Chen, Jordan Vice, Naveed Akhtar, Nur Al Hasan Haldar, Ajmal MianarXiv 2025 · DOI

Abstract

As generative AI models produce increasingly realistic synthetic imagery, establishing the provenance and ownership of generated content has become a critical challenge. This paper presents a novel end-to-end framework for embedding imperceptible, robust watermarks directly into the training process of diffusion models. By fusing watermark feature maps with initial Gaussian noise, the model learns to generate images that inherently contain traceable data. Experimental results demonstrate 100% detection accuracy and high reconstruction fidelity across multiple datasets and resolutions, with minimal impact on visual quality.

1. Introduction

The rapid advancement of generative diffusion models has led to the proliferation of synthetic images that are often indistinguishable from authentic photographs. This "provenance problem" raises significant concerns regarding intellectual property, misinformation, and the ethical use of AI. Traditional watermarking techniques, typically applied post-generation or in the frequency domain, are often vulnerable to removal via common image processing tasks like cropping, compression, or rotation.

This work proposes a "blind watermarking" system integrated into the model's architecture. Unlike post-hoc methods, this approach embeds the watermark as an integral part of the image generation process, ensuring that every output from the model carries a hidden signature that can be recovered without the original image.

2. Methodology

The proposed framework utilizes an end-to-end training strategy that treats watermarking as a fundamental objective alongside image synthesis.

2.1 Architecture and Feature Fusion

The system consists of three primary components: a Watermark Autoencoder, a Diffusion Model, and a Watermark Extractor. The process begins with a visible watermark image (e.g., a logo), which is processed by an encoder into a low-dimensional feature map. This map is then fused with the standard Gaussian noise that serves as the starting point for the diffusion process.

The comprehensive end-to-end training framework, illustrating the fusion of Gaussian noise and watermark features.

2.2 Joint Training and Dual-Loss Optimization

The diffusion model and the watermark extractor are trained simultaneously. The diffusion model is optimized to generate high-quality images from the watermarked noise, while the extractor learns to reconstruct the original watermark from the generated image. The objective function is a weighted combination of Diffusion Loss ($L_D$), which ensures visual fidelity, and Reconstruction Loss ($L_W$), which ensures watermark recoverability.

3. Experimental Setup

The method was evaluated on three standard datasets representing different resolutions: CIFAR-10 ($32 \times 32$), STL-10 ($96 \times 96$), and the Oxford-IIIT Pet Dataset ($128 \times 128$). Additionally, the authors introduced the Generative Watermarked Image (GWI) dataset, a benchmark of 2,400 images designed to evaluate robustness and source tracing capabilities across four unique watermark types.

4. Results and Discussion

The framework achieved exceptional performance in both detection and reconstruction.

4.1 Detection and Reconstruction Fidelity

In baseline "No Attack" scenarios, the system achieved a 100% detection rate. Furthermore, the system reached 82.51% accuracy in identifying the specific type of watermark used, enabling effective source tracing. The fidelity of the reconstructed watermarks remained high across different resolutions and model types (DDIM and DDPM), as shown in Figure 5.

Visual comparison of original watermarks and their reconstructions at various resolutions.

4.2 Robustness and Imperceptibility

The embedded watermarks demonstrated significant resilience to common image manipulations, maintaining high detection rates after JPEG compression (93.85%), blurring (96.15%), and rotation (88.46%). Statistical analysis across ten image metrics (including Contrast and Entropy) showed that watermarked images differ from clean ones by less than 2%, confirming the imperceptibility of the method.

5. Conclusion and Future Work

This research demonstrates that watermarking can be effectively "baked" into the latent space of diffusion models. While highly effective, the authors noted that at higher resolutions ($128 \times 128$), minor "ghosting" artifacts can occasionally appear. Future research will focus on scaling this technique to high-definition latent diffusion models and further refining the imperceptibility of the embedded features in complex textures.

Summary updated

BibTeX
@misc{chen2025image,
  author = {Yunzhuo Chen and Jordan Vice and Naveed Akhtar and Nur Al Hasan Haldar and Ajmal Mian},
  title = {{Image Watermarking of Generative Diffusion Models}},
  year = {2025},
  eprint = {2502.10465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10465},
}
Figure