Skip to main content
QUICK REVIEW

[Paper Review] DeepfakeUCL: Deepfake Detection via Unsupervised Contrastive Learning

Sheldon Fung, Xuequan Lu|arXiv (Cornell University)|Apr 23, 2021
Digital Media Forensic DetectionComputer Science25 references4 citations
TL;DR

This paper proposes DeepfakeUCL, an unsupervised contrastive learning method for deepfake detection that generates two augmented views of a face image, learns invariant features via contrastive loss, and uses the encoder's features for downstream linear classification. It achieves detection performance comparable to state-of-the-art supervised methods on multiple datasets, even outperforming some supervised models on challenging inter-dataset benchmarks.

ABSTRACT

Face deepfake detection has seen impressive results recently. Nearly all existing deep learning techniques for face deepfake detection are fully supervised and require labels during training. In this paper, we design a novel deepfake detection method via unsupervised contrastive learning. We first generate two different transformed versions of an image and feed them into two sequential sub-networks, i.e., an encoder and a projection head. The unsupervised training is achieved by maximizing the correspondence degree of the outputs of the projection head. To evaluate the detection performance of our unsupervised method, we further use the unsupervised features to train an efficient linear classification network. Extensive experiments show that our unsupervised learning method enables comparable detection performance to state-of-the-art supervised techniques, in both the intra- and inter-dataset settings. We also conduct ablation studies for our method.

Motivation & Objective

  • To address the challenge of deepfake detection in the absence of labeled training data, which is costly and time-consuming to obtain.
  • To explore whether unsupervised contrastive learning can learn discriminative features for deepfake detection without requiring labeled examples.
  • To evaluate the effectiveness of the proposed method in both intra-dataset and inter-dataset generalization settings.
  • To compare the performance of unsupervised contrastive learning against supervised baselines and ablate key components such as data augmentation and feature extraction layers.

Proposed method

  • Two different augmented views of a single face image are generated using data augmentation techniques, including random cropping, color jittering, and random gray scale.
  • The two views are passed through a shared encoder network followed by a projection head, learning to maximize the similarity of their representations via contrastive loss.
  • The contrastive learning objective encourages the model to produce consistent representations for positive pairs (augmented views of the same image) while pushing apart representations of negative pairs.
  • After unsupervised pre-training, the encoder’s features are used as input to a linear classifier for evaluation, avoiding end-to-end fine-tuning.
  • The method is evaluated using AUC scores on three benchmark datasets: FaceForensics++, UADFV, and Celeb-DF.
  • Ablation studies are conducted to compare unsupervised vs. supervised contrastive learning, various data augmentation combinations, and the utility of encoder vs. projection head features.

Experimental results

Research questions

  • RQ1Can unsupervised contrastive learning learn discriminative features for deepfake detection without requiring labeled data?
  • RQ2How does the performance of the proposed unsupervised method compare to state-of-the-art supervised deepfake detection techniques in intra- and inter-dataset settings?
  • RQ3What is the impact of different data augmentation strategies on the robustness and generalization of the learned features?
  • RQ4Is the encoder's output more effective than the projection head's output for downstream linear classification in deepfake detection?

Key findings

  • The proposed unsupervised contrastive learning method achieves an AUC of 93.3% on the UADFV dataset and 90.5% on Celeb-DF, demonstrating performance comparable to state-of-the-art supervised methods.
  • On the more challenging Celeb-DF dataset, the method outperforms a supervised Xception model fine-tuned on UADFV by 8.6% in AUC, reaching 64.8% when testing on Celeb-DF.
  • The method surpasses a supervised contrastive learning baseline using triplet loss by 4.8% in AUC when training on UADFV and testing on Celeb-DF.
  • Using all four data augmentation techniques (random cropping, color jittering, random gray scale, and horizontal flipping) improved AUC on FaceForensics++ to 59.0% and on UADFV to 85.6%, showing the benefit of complex augmentation.
  • The encoder’s features consistently outperform the projection head’s features in downstream linear classification, indicating the encoder learns more discriminative representations.
  • The ablation study confirms that unsupervised contrastive learning is effective, with performance improving as data augmentation complexity increases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.