DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion

Ke Sun, Shen Chen, Taiping Yao, Hong Liu, Xiaoshuai Sun, Shouhong Ding, Rongrong Ji

Introduction

Deepfake technology has advanced rapidly, moving beyond obvious glitches to create AI-generated faces that are nearly indistinguishable from reality. For researchers, the primary challenge is no longer just detection, but generalization: creating models that can identify new types of forgeries they were not exposed to during training. Most existing detectors act as "artifact hunters," focusing on specific technical tells like texture anomalies or blending boundaries. However, these artifacts are often specific to individual generators and fail to transfer across domains.

Researchers from Xiamen University, Tencent Youtu Lab, and Osaka University propose DiffusionFake, a framework that shifts the focus from fleeting digital artifacts to the fundamental logic of deepfake generation.

The DiffusionFake Framework

The core philosophy of DiffusionFake is the concept of Identity Duality. Every deepfake is a hybrid, blending information from a source (the identity provider) and a target (the context/body provider). In contrast, a real face possesses a single, consistent identity. DiffusionFake aims to "reverse-engineer" forgeries by disentangling these source and target components.

Detailed architecture of the DiffusionFake framework, illustrating the Guide Module and the use of Stable Diffusion for feature reconstruction.

The framework utilizes a standard backbone (e.g., EfficientNet or ViT) as an encoder to extract features from an input image. These features are then processed through a Feature Filter and a Weight Module to disentangle them into two distinct streams: source-related and target-related identity features.

A unique aspect of this approach is the use of a frozen, pre-trained Stable Diffusion model as a "teacher." During training, the disentangled features are injected into the Stable Diffusion model, which is tasked with reconstructing the original source and target images. This reconstruction task forces the encoder to learn high-quality, disentangled identity features. Crucially, during inference, the Stable Diffusion module is discarded, leaving a lightweight, high-performance detector.

Experimental Evaluation

The researchers evaluated DiffusionFake across several industry-standard benchmarks, including FaceForensics++ (FF++), Celeb-DF, WildDeepfake, and the Deepfake Detection Challenge Preview (DFDC-P). They also tested against DiffSwap, a dataset specifically designed for diffusion-based face swaps.

The results demonstrate a significant boost in cross-dataset generalization. For instance, when integrated with an EfficientNet-B4 backbone, DiffusionFake improved the Area Under Curve (AUC) on the Celeb-DF dataset from 73.51% to 83.17%—an 11% increase. The framework consistently outperformed specialized disentanglement-based methods and showed robustness across different architectures (ResNet, ViT, EfficientNet), proving its "plug-and-play" utility.

Conclusion

DiffusionFake represents a significant step forward in deepfake detection by leveraging the internal knowledge of generative models to guide the detection process. By focusing on the fundamental "ingredients" of a forgery rather than specific artifacts, it achieves superior generalization. Future work will look into reducing the requirement for paired training data (source, target, and fake triplets) and addressing more complex, multi-identity manipulations.

Paper Citation: Ke Sun et al., "DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion," NeurIPS 2024.

Summary updated

BibTeX
@inproceedings{sun2024diffusionfake,
  author = {Ke Sun and Shen Chen and Taiping Yao and Hong Liu and Xiaoshuai Sun and Shouhong Ding and Rongrong Ji},
  title = {{DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=FNzpVTpNbN},
}
Figure