Skip to main content
QUICK REVIEW

[Paper Review] Towards Generalizable Deepfake Detection with Locality-aware AutoEncoder

Mengnan Du, Shiva Pentyala|arXiv (Cornell University)|Sep 13, 2019
Digital Media Forensic DetectionComputer Science39 references13 citations
TL;DR

This paper proposes Locality-Aware AutoEncoder (LAE), a deepfake detection method that enhances generalization by enforcing models to focus on forgery regions through pixel-wise mask regularization during training. By incorporating active learning to reduce annotation costs, LAE improves detection accuracy by 6.52%, 12.03%, and 3.08% on unseen deepfake manipulations compared to state-of-the-art methods.

ABSTRACT

With advancements of deep learning techniques, it is now possible to generate super-realistic images and videos, i.e., deepfakes. These deepfakes could reach mass audience and result in adverse impacts on our society. Although lots of efforts have been devoted to detect deepfakes, their performance drops significantly on previously unseen but related manipulations and the detection generalization capability remains a problem. Motivated by the fine-grained nature and spatial locality characteristics of deepfakes, we propose Locality-Aware AutoEncoder (LAE) to bridge the generalization gap. In the training process, we use a pixel-wise mask to regularize local interpretation of LAE to enforce the model to learn intrinsic representation from the forgery region, instead of capturing artifacts in the training set and learning superficial correlations to perform detection. We further propose an active learning framework to select the challenging candidates for labeling, which requires human masks for less than 3% of the training data, dramatically reducing the annotation efforts to regularize interpretations. Experimental results on three deepfake detection tasks indicate that LAE could focus on the forgery regions to make decisions. The analysis further shows that LAE outperforms the state-of-the-arts by 6.52%, 12.03%, and 3.08% respectively on three deepfake detection tasks in terms of generalization accuracy on previously unseen manipulations.

Motivation & Objective

  • Address the critical generalization gap in deepfake detection, where models fail on previously unseen manipulations despite high accuracy on held-out test sets.
  • Overcome the tendency of existing models to rely on superficial artifacts or non-forgery regions by enforcing attention on actual forgery regions.
  • Reduce human annotation burden for forgery masks by introducing an active learning framework requiring less than 3% of training data to be labeled.
  • Improve model interpretability by integrating local interpretation via CAM (Class Activation Mapping) to guide learning toward intrinsic forgery patterns.
  • Develop a method that generalizes across diverse GAN-based manipulations without requiring data from unseen forgery types during training.

Proposed method

  • Propose a Locality-Aware AutoEncoder (LAE) that reconstructs input images using a bottlenecked encoder-decoder architecture, with a focus on learning representations from localized forgery regions.
  • Introduce a pixel-wise mask regularization during training to explicitly guide the model to attend to forgery regions by suppressing non-forgery features.
  • Use CAM (Class Activation Mapping) as a differentiable interpretation method to visualize and supervise attention on forgery regions, enabling end-to-end training with backpropagation.
  • Design an active learning framework that selects the most uncertain and challenging samples for human annotation, reducing the need for full supervision to less than 3% of training data.
  • Train the LAE model end-to-end using a combination of reconstruction loss and classification loss, with the mask regularization ensuring that the model learns intrinsic forgery characteristics.
  • Leverage the interpretability of CAM to verify that the model’s predictions are based on actual forgery regions rather than spurious correlations or artifacts.

Experimental results

Research questions

  • RQ1Can a deepfake detection model be made more generalizable to previously unseen manipulations by focusing on localized forgery regions?
  • RQ2How effective is pixel-wise mask regularization in guiding the model to learn intrinsic forgery representations instead of superficial artifacts?
  • RQ3To what extent can active learning reduce the annotation cost of forgery masks while maintaining high detection performance?
  • RQ4Does enforcing local interpretability through CAM improve model robustness and generalization across diverse GAN-based deepfake generation methods?
  • RQ5Can a self-supervised autoencoder with localized attention outperform existing state-of-the-art deepfake detection models on unseen manipulations?

Key findings

  • LAE significantly improves generalization performance, outperforming state-of-the-art methods by 6.52%, 12.03%, and 3.08% on three distinct deepfake detection tasks when evaluated on previously unseen manipulations.
  • Model predictions are consistently focused on forgery regions, as confirmed by CAM-based saliency maps, indicating that LAE learns meaningful, localized representations.
  • The active learning framework reduces the need for human-annotated forgery masks to less than 3% of the training data, drastically cutting annotation effort.
  • LAE achieves high detection accuracy on unseen forgeries where baseline models drop to near-random performance (around 50%), demonstrating strong robustness.
  • The model’s reliance on forgery regions rather than non-forgery artifacts or dataset-specific biases is empirically validated through interpretability analysis.
  • Despite improvements, a small generalization gap remains between test sets and alternative unseen datasets, indicating room for further enhancement through transfer learning or multi-domain adaptation.

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.