DiffMark: Diffusion-based Robust Watermark Against Deepfakes

Authors: Chen Sun, Haiyang Sun, Zhiqing Guo, Yunfeng Diao, Liejun Wang, Dan Ma, Gaobo Yang, Keqin Li

Published: 2025-07-02 07:29:33+00:00

AI Summary

DiffMark proposes a novel diffusion-based robust watermarking framework to protect facial images against deepfake manipulations. It guides a diffusion model with both facial image and watermark conditions to generate imperceptible and robust watermarked images. The framework incorporates Deepfake-resistant guidance and a cross information fusion module, demonstrating superior performance in authenticity verification and source tracking.

Abstract

Deepfakes pose significant security and privacy threats through malicious facial manipulations. While robust watermarking can aid in authenticity verification and source tracking, existing methods often lack the sufficient robustness against Deepfake manipulations. Diffusion models have demonstrated remarkable performance in image generation, enabling the seamless fusion of watermark with image during generation. In this study, we propose a novel robust watermarking framework based on diffusion model, called DiffMark. By modifying the training and sampling scheme, we take the facial image and watermark as conditions to guide the diffusion model to progressively denoise and generate corresponding watermarked image. In the construction of facial condition, we weight the facial image by a timestep-dependent factor that gradually reduces the guidance intensity with the decrease of noise, thus better adapting to the sampling process of diffusion model. To achieve the fusion of watermark condition, we introduce a cross information fusion (CIF) module that leverages a learnable embedding table to adaptively extract watermark features and integrates them with image features via cross-attention. To enhance the robustness of the watermark against Deepfake manipulations, we integrate a frozen autoencoder during training phase to simulate Deepfake manipulations. Additionally, we introduce Deepfake-resistant guidance that employs specific Deepfake model to adversarially guide the diffusion sampling process to generate more robust watermarked images. Experimental results demonstrate the effectiveness of the proposed DiffMark on typical Deepfakes. Our code will be available at https://github.com/vpsg-research/DiffMark.


Key findings
DiffMark achieved superior visual quality for watermarked images (higher PSNR/SSIM, lower LPIPS) compared to existing methods. It demonstrated enhanced robustness against various deepfake manipulations and common distortions, with Deepfake-resistant guidance further reducing the Bit Error Rate (BER). While watermark embedding is slower due to the multi-step diffusion process, watermark extraction remains fast.
Approach
DiffMark modifies a diffusion model's training and sampling to take facial images and watermarks as conditions. It uses a timestep-dependent scaling for facial input and a cross information fusion (CIF) module for watermark feature integration via cross-attention. Robustness is enhanced by integrating a frozen autoencoder during training and employing Deepfake-resistant guidance to adversarially steer diffusion sampling.
Datasets
CelebA-HQ, LFW
Model(s)
UNKNOWN
Author countries
China, USA