Lune

CVPR2024Top-tier venue

Contrastive Learning for DeepFake Classification and Localization via Multi-Label Ranking

Cheng-Yao Hong, Yen-Chi Hsu, Tyng-Luh Liu

Abstract

We propose a unified approach to simultaneously addressing the conventional setting of binary deepfake classification and a more challenging scenario of uncovering what facial components have been forged as well as the exact order of the manipulations. To solve the former task, we consider multiple instance learning (MIL) that takes each image as a bag and its patches as instances. A positive bag corresponds to a forged image that includes at least one manipulated patch (i.e., a pixel in the feature map). The formulation allows us to estimate the probability of an input image being a fake one and establish the corresponding contrastive MIL loss. On the other hand, tackling the component-wise deepfake problem can be reduced to solving multi-label prediction, but the requirement to recover the manipulation order further complicates the learning task into a multi-label ranking problem. We resolve this difficulty by designing a tailor-made loss term to enforce that the rank order of the predicted multi-label probabilities respects the ground-truth order of the sequential modifications of a deepfake image. Through extensive experiments and comparisons with other relevant techniques, we provide extensive results and ablation studies to demonstrate that the proposed method is an overall more comprehensive solution to deepfake detection.

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.

6 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

  • BPL: Generalizable Deepfake Detection via Bias-only Pair-aware Learning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • BPL: Generalizable Deepfake Detection via Bias-only Pair-aware Learning cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • FSFM: A Generalizable Face Security Foundation Model via Self-Supervised Facial Representation Learning cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • FSFM: A Generalizable Face Security Foundation Model via Self-Supervised Facial Representation Learning cites WildDeepfake: A Challenging Real-World Dataset for Deepfake Detection
  • WildDeepfake: A Challenging Real-World Dataset for Deepfake Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Generalization-Preserved Learning: Closing the Backdoor to Catastrophic Forgetting in Continual Deepfake Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Fair Deepfake Detectors Can Generalize cites FaceForensics++: Learning to Detect Manipulated Facial Images
  • Rethinking Individual Fairness in Deepfake Detection cites FaceForensics++: Learning to Detect Manipulated Facial Images
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Fair Deepfake Detectors Can GeneralizeHarry Cheng, Ming-Hui Liu, Yangyang Guo, Tianyi Wang et al.NeurIPS 2025 · 11 citations
  2. Generalization-Preserved Learning: Closing the Backdoor to Catastrophic Forgetting in Continual Deepfake DetectionXueyi Zhang, Peiyin Zhu, Chengwei Zhang, Zhiyuan Yan et al.ICCV 2025 · 3 citations
  3. Rethinking Individual Fairness in Deepfake DetectionAryana Hou, Li Lin, Justin Li, Shu HuACM MM 2025 · 1 citation
  4. BPL: Generalizable Deepfake Detection via Bias-only Pair-aware LearningYuxiang Xu, Rundong He, Zhiyuan Yan, Yicong Dong et al.ICML 2026
  5. FSFM: A Generalizable Face Security Foundation Model via Self-Supervised Facial Representation LearningGaojian Wang, Feng Lin, Tong Wu, Zhenguang Liu et al.CVPR 2025

Builds on25

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  3. FaceForensics++: Learning to Detect Manipulated Facial ImagesAndreas Rössler, Davide Cozzolino, Luisa Verdoliva, Christian Riess et al.ICCV 2019 · 2,966 citations
  4. WildDeepfake: A Challenging Real-World Dataset for Deepfake DetectionBojia Zi, Minghao Chang, Jingjing Chen, Xingjun Ma et al.ACM MM 2020 · 443 citations
  5. DTFD-MIL: Double-Tier Feature Distillation Multiple Instance Learning for Histopathology Whole Slide Image ClassificationHongrun Zhang, Yanda Meng, Yitian Zhao, Yihong Qiao et al.CVPR 2022 · 402 citations

Related papers

  1. Sharp Multiple Instance Learning for DeepFake Video DetectionXiaodan Li, Yining Lang, Yuefeng Chen, Xiaofeng Mao et al.ACM MM 2020 · 157 citations
  2. UCF: Uncovering Common Features for Generalizable Deepfake DetectionZhiyuan Yan, Yong Zhang, Yanbo Fan, Baoyuan WuICCV 2023 · 264 citations
  3. Dual Contrastive Learning for General Face Forgery DetectionKe Sun, Taiping Yao, Shen Chen, Shouhong Ding et al.AAAI 2022 · 241 citations
  4. Multi-Attentional Deepfake DetectionHanqing Zhao, Wenbo Zhou, Dongdong Chen, Tianyi Wei et al.CVPR 2021
  5. Face Forensics in the WildTianfei Zhou, Wenguan Wang, Zhiyuan Liang, Jianbing ShenCVPR 2021
Dusk over the sea between two cliffs drawn in fine vertical lines