Abstract
Deepfake model misuse poses major security concerns. Existing passive and active Deepfake detection methods both suffer from a lack of generalizability and robustness. In this study, we propose a pluggable and efficient active model watermarking framework for Deepfake detection. This approach facilitates the embedding of identification watermarks across a variety of Deepfake generation models, enabling easy extraction by authorities for detection purposes. Specifically, our method leverages the universal convolutional structure in generative model decoders. It employs convolutional kernel sparsification for adaptive watermark embedding positioning and introduces convolutional kernel normalization to seamlessly integrate watermark parameters with those of the generative model. For watermark extraction, we jointly train a watermark extractor based on a Deepfake detection model and use BCH encoding to identify watermark images effectively. Finally, we apply our approach to eight major types of Deepfake generation models. Experiments show our method successfully detects Deepfakes with an average accuracy exceeding 94% even in heavy lossy channels. This approach operates independently of the generation model's training without affecting the original model's performance. Furthermore, our model requires training a very limited number of parameters, and it is resilient against three major adaptive attacks.
Introduction
Deepfake detection is currently a cat-and-mouse game. Passive detection—the most common method—looks for biological inconsistencies or digital artifacts like irregular eye reflections or frequency glitches. However, as generative models improve, these artifacts disappear. Furthermore, passive detectors often fail when an image is sent through "lossy" channels, such as being compressed for messaging apps or blurred on social media.
Active watermarking is a more robust alternative where a unique signal is embedded into the image during generation. However, most existing watermarking methods are rigid, often requiring the entire generative model to be retrained from scratch or being designed for one specific architecture (e.g., only StyleGAN). This paper introduces a way to "plug" watermarks into diverse, already-trained models efficiently without degrading output quality.
The Pluggable Watermarking Framework
The proposed framework operates in a two-phase process that leverages a commonality across almost all Deepfake models: the use of convolutional layers in the decoder to transform latent vectors into pixels.
- Phase 1: Position Determination (Pruning): Instead of forcing a watermark into critical parameters, the framework uses a pruning strategy to find "redundant" positions in the convolutional kernels. These are parameters that have a minimal impact on the final image quality.
- Phase 2: Watermark Embedding: The watermark content is first encoded using Bose–Chaudhuri–Hocquenghem (BCH) codes, which allow for error correction if the image is later tampered with. These bits are then embedded into the identified redundant positions.
- Convolutional Kernel Normalization: To ensure the watermark doesn't cause numerical instability or break the model's logic, the authors developed a normalization technique. This ensures the watermarked parameters maintain the same mean and standard deviation as the original parameters.
- Joint Extraction Training: Simultaneously, a Watermark Extractor (based on the Xception architecture) is trained to recognize the invisible artifacts created by the watermarked parameters.
Leveraging Universal Decoder Structures
A key insight of this research is the "Universal Decoder" observation. While latent vector structures vary wildly between different types of generative models, almost all decoders rely on the same fundamental building blocks: upsampling and convolution. This architectural consistency is what makes the method truly "pluggable" across different model families.
By targeting these universal structures, the researchers successfully applied their method to eight major types of Deepfake generation models, including face swapping (SimSwap, FaceShifter), image synthesis (StyleGAN, StyleGAN2), and even diffusion models (Stable Diffusion).
Key Results and Robustness
The framework achieved an average detection accuracy (True Negative Rate) exceeding 94%. Notably, it demonstrated high resilience to lossy channels; even under heavy JPEG compression (quality factor 60) or significant Gaussian blurring, the detection rate remained high (often above 90%), whereas passive detectors typically fail in these scenarios.
Furthermore, the method proved resistant to three types of "adaptive attacks":
- Replay Injection: Attempting to confuse the extractor with a secondary watermark.
- Pruning: Attempting to remove the watermark by zeroing out model parameters.
- Image Reconstruction: Using a separate AI to "clean" the image of artifacts.
Conclusion
This pluggable watermarking approach offers a scalable and robust solution for Deepfake attribution. By operating independently of the original model's training and requiring minimal parameter updates, it provides a practical tool for supervisors to monitor and identify AI-generated content without compromising the performance or visual quality of the underlying generative models.
Summary updated