Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion

About

The rapid progress of Deepfake technology has made face swapping highly realistic, raising concerns about the malicious use of fabricated facial content. Existing methods often struggle to generalize to unseen domains due to the diverse nature of facial manipulations. In this paper, we revisit the generation process and identify a universal principle: Deepfake images inherently contain information from both source and target identities, while genuine faces maintain a consistent identity. Building upon this insight, we introduce DiffusionFake, a novel plug-and-play framework that reverses the generative process of face forgeries to enhance the generalization of detection models. DiffusionFake achieves this by injecting the features extracted by the detection model into a frozen pre-trained Stable Diffusion model, compelling it to reconstruct the corresponding target and source images. This guided reconstruction process constrains the detection network to capture the source and target related features to facilitate the reconstruction, thereby learning rich and disentangled representations that are more resilient to unseen forgeries. Extensive experiments demonstrate that DiffusionFake significantly improves cross-domain generalization of various detector architectures without introducing additional parameters during inference. Our Codes are available in https://github.com/skJack/DiffusionFake.git.

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

Related benchmarks

TaskDatasetResultRank
Frame-level Deepfake DetectionDFD
AUC91.71
28
Frame-level Deepfake DetectionDFDC-P
AUC80.95
28
Frame-level Face Forgery DetectionWild Deepfake
AUC80.14
24
Frame-level Deepfake DetectionCeleb-DF
AUC0.8317
18
Frame-level Deepfake DetectionDiffSwap
AUC (%)86.98
13
Frame-level Deepfake DetectionAverage (Celeb-DF, Wild Deepfake, DFDC-P, DFD, DiffSwap)
AUC83.78
13
Multi-source Forgery DetectionFaceForensics++ Deepfake High-quality c23
Accuracy88.17
12
Multi-source Forgery DetectionFaceForensics++ Deepfake (DF) Low-quality c40
Accuracy77.33
12
Multi-source Forgery DetectionFaceForensics++ Face2Face (F2F) High-quality c23
Accuracy70.17
12
Multi-source Forgery DetectionFaceForensics++ (FF++) Face2Face (F2F) Low-quality c40
Accuracy71.25
12
Showing 10 of 10 rows

Other info

Code

Follow for update