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

C2P-CLIP: Injecting Category Common Prompt in CLIP to Enhance Generalization in Deepfake Detection

About

This work focuses on AIGC detection to develop universal detectors capable of identifying various types of forgery images. Recent studies have found large pre-trained models, such as CLIP, are effective for generalizable deepfake detection along with linear classifiers. However, two critical issues remain unresolved: 1) understanding why CLIP features are effective on deepfake detection through a linear classifier; and 2) exploring the detection potential of CLIP. In this study, we delve into the underlying mechanisms of CLIP's detection capabilities by decoding its detection features into text and performing word frequency analysis. Our finding indicates that CLIP detects deepfakes by recognizing similar concepts (Fig. \ref{fig:fig1} a). Building on this insight, we introduce Category Common Prompt CLIP, called C2P-CLIP, which integrates the category common prompt into the text encoder to inject category-related concepts into the image encoder, thereby enhancing detection performance (Fig. \ref{fig:fig1} b). Our method achieves a 12.41\% improvement in detection accuracy compared to the original CLIP, without introducing additional parameters during testing. Comprehensive experiments conducted on two widely-used datasets, encompassing 20 generation models, validate the efficacy of the proposed method, demonstrating state-of-the-art performance. The code is available at \url{https://github.com/chuangchuangtan/C2P-CLIP-DeepfakeDetection}

Chuangchuang Tan, Renshuai Tao, Huan Liu, Guanghua Gu, Baoyuan Wu, Yao Zhao, Yunchao Wei• 2024

Related benchmarks

TaskDatasetResultRank
Generated Image DetectionGenImage (test)
Average Accuracy95.8
103
AI-generated image detectionGenImage
Midjourney Detection Rate88.2
65
AI-generated image detectionChameleon
Accuracy57.6
63
Deepfake DetectionUniversalFakeDetect 1.0 (test)
Accuracy (ProGAN)100
42
Synthetic Image DetectionGlide 50-27
Accuracy95.3
27
AIGI DetectionBFree Online
B.Acc50
23
AIGI DetectionDRCT-2M
B.Acc59.2
23
Fake Image DetectionUniversalFakeDetect LDM_100
Accuracy99.3
13
Fake Image DetectionUniversalFakeDetect LDM_200
Accuracy99.3
13
Fake Image DetectionUniversalFakeDetect DALLE
Accuracy98.6
13
Showing 10 of 82 rows
...

Other info

Follow for update