Lune

AAAI2025Top-tier venue

Exploring Unbiased Deepfake Detection via Token-Level Shuffling and Mixing

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

Abstract

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 on 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

18 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • WildDeepfake: A Challenging Real-World Dataset for Deepfake Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning cites LoRA: Low-Rank Adaptation of Large Language Models
  • Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning cites X2-DFD: A framework for explainable and extendable Deepfake Detection
  • WMamba: Wavelet-based Mamba for Face Forgery Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • X2-DFD: A framework for explainable and extendable Deepfake Detection cites LoRA: Low-Rank Adaptation of Large Language Models
  • X2-DFD: A framework for explainable and extendable Deepfake Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • X2-DFD: A framework for explainable and extendable Deepfake Detection cites Learning Transferable Visual Models From Natural Language Supervision
  • VideoVeritas: AI-Generated Video Detection via Perception Pretext Reinforcement Learning cites LoRA: Low-Rank Adaptation of Large Language Models
  • Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
  • Towards Generalizable AI-Generated Image Detection via Image-Adaptive Prompt Learning cites LoRA: Low-Rank Adaptation of Large Language Models
  • Towards Generalizable AI-Generated Image Detection via Image-Adaptive Prompt Learning cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Towards Generalizable AI-Generated Image Detection via Image-Adaptive Prompt Learning cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. X2-DFD: A framework for explainable and extendable Deepfake DetectionYize Chen, Zhiyuan Yan, Guangliang Cheng, Kangran Zhao et al.NeurIPS 2025 · 43 citations
  2. Veritas: Generalizable Deepfake Detection via Pattern-Aware ReasoningHao Tan, Jun Lan, Zichang Tan, Senyuan Shi et al.ICLR 2026 · 26 citations
  3. WMamba: Wavelet-based Mamba for Face Forgery DetectionSiran Peng, Tianshuo Zhang, Li Gao, Xiangyu Zhu et al.ACM MM 2025 · 17 citations
  4. VideoVeritas: AI-Generated Video Detection via Perception Pretext Reinforcement LearningHao Tan, jun lan, Senyuan Shi, Zichang Tan et al.ICML 2026 · 12 citations
  5. Towards Generalizable AI-Generated Image Detection via Image-Adaptive Prompt LearningYiheng Li, Zichang Tan, Guoqing Xu, Zhen Lei et al.CVPR 2026 · 8 citations

Builds on30

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  3. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  4. FaceForensics++: Learning to Detect Manipulated Facial ImagesAndreas Rössler, Davide Cozzolino, Luisa Verdoliva, Christian Riess et al.ICCV 2019 · 2,966 citations
  5. WildDeepfake: A Challenging Real-World Dataset for Deepfake DetectionBojia Zi, Minghao Chang, Jingjing Chen, Xingjun Ma et al.ACM MM 2020 · 443 citations

Related papers

  1. Beyond [CLS] Token: Query-Driven Token-Level Forgery Purification for Generalizable Deepfake DetectionChangshuo Wang, Jiangming Wang, Ke-Yue Zhang, Taiping Yao et al.CVPR 2026
  2. UCF: Uncovering Common Features for Generalizable Deepfake DetectionZhiyuan Yan, Yong Zhang, Yanbo Fan, Baoyuan WuICCV 2023 · 264 citations
  3. FrePGAN: Robust Deepfake Detection Using Frequency-Level PerturbationsYonghyun Jeong, Doyeon Kim, Youngmin Ro, Jongwon ChoiAAAI 2022 · 159 citations
  4. FreqDebias: Towards Generalizable Deepfake Detection via Consistency-Driven Frequency DebiasingHossein Kashiani, Niloufar Alipour Talemi, Fatemeh AfghahCVPR 2025
  5. Transcending Forgery Specificity with Latent Space Augmentation for Generalizable Deepfake DetectionZhiyuan Yan, Yuhao Luo, Siwei Lyu, Qingshan Liu et al.CVPR 2024
Dusk over the sea between two cliffs drawn in fine vertical lines