Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Exploring Unbiased Deepfake Detection via Token-Level Shuffling and Mixing

About

The generalization problem is broadly recognized as a critical challenge in detecting deepfakes. Most previous work believes that the generalization gap is caused by the differences among various forgery methods. However, our investigation reveals that the generalization issue can still occur when forgery-irrelevant factors shift. In this work, we identify two biases that detectors may also be prone to overfitting: position bias and content bias, as depicted in Fig. 1. For the position bias, we observe that detectors are prone to lazily depending on the specific positions within an image (e.g., central regions even no forgery). As for content bias, we argue that detectors may potentially and mistakenly utilize forgery-unrelated information for detection (e.g., background, and hair). To intervene these biases, we propose two branches for shuffling and mixing with tokens in the latent space of transformers. For the shuffling branch, we rearrange the tokens and corresponding position embedding for each image while maintaining the local correlation. For the mixing branch, we randomly select and mix the tokens in the latent space between two images with the same label within the mini-batch to recombine the content information. During the learning process, we align the outputs of detectors from different branches in both feature space and logit space. Contrastive losses for features and divergence losses for logits are applied to obtain unbiased feature representation and classifiers. We demonstrate and verify the effectiveness of our method through extensive experiments on widely used evaluation datasets.

Xinghe Fu, Zhiyuan Yan, Taiping Yao, Shen Chen, Xi Li• 2025

Related benchmarks

TaskDatasetResultRank
Deepfake DetectionCDFv1, CDFv2, DFD, DFDCP, DFDC (test)
Overall Average Score89.475
74
Face Forgery DetectionDFDCP
Frame-level AUC85.6
64
Deepfake DetectionCelebDF v2
AUC0.931
57
Deepfake DetectionCelebDF (CDF) v2 (test)
AUC93.1
52
Face Forgery DetectionDFDC
AUC81.2
52
Face Forgery DetectionCDF v2
Frame-level AUC86.9
42
Frame-level Deepfake DetectionDFD
AUC91
42
Face Forgery DetectionDFD
Frame-level AUC91
41
Face Forgery DetectionCeleb-DF v2
Video-level AUC93.1
33
Frame-level Deepfake DetectionDFDC
AUC0.758
26
Showing 10 of 18 rows

Other info

Follow for update