Towards Generalizable Deepfake Detection with Locality-aware AutoEncoder

Mengnan Du, Shiva K. Pentyala, Yuening Li, Xia Hu

TL;DR

This paper introduces Locality-Aware AutoEncoder (LAE), a novel deepfake detection method that significantly improves generalization to unseen manipulation techniques. By enforcing the model to focus on forgery regions through a pixel-wise mask and an active learning strategy, LAE achieves state-of-the-art performance on challenging generalization tasks.

What Problem Does This Paper Address?

The proliferation of deepfake technology has raised significant concerns due to its potential for malicious use, such as spreading misinformation and influencing public opinion. While deepfake detection methods have seen rapid advancements, a critical challenge remains: their poor generalization capability. Existing models often perform exceptionally well on datasets they were trained on but fail dramatically when encountering deepfakes generated by slightly different or entirely new manipulation techniques. This is often because these models learn superficial correlations present in the training data rather than the intrinsic characteristics of the forgeries. The paper aims to bridge this generalization gap by developing a detection method that learns to focus on the actual manipulated regions, regardless of the specific generation method.

Methods

The core of the proposed method is the Locality-Aware AutoEncoder (LAE). LAE builds upon an autoencoder architecture, which is trained using reconstruction losses and latent space losses to learn effective representations. The novelty lies in two key components:

  • Augmented Local Interpretability and Regularization: LAE explicitly enforces the model to focus on forgery regions. This is achieved by incorporating a mechanism for local interpretation (similar to Class Activation Maps) and then regularizing this interpretation using pixel-wise forgery ground truth masks. This "attention loss" guides the model to learn representations from the actual manipulated areas, rather than relying on spurious correlations.
  • Active Learning for Annotation Efficiency: Generating pixel-wise forgery masks is labor-intensive. To address this, the authors propose an active learning framework. This framework intelligently selects the most "challenging" unlabeled samples for human annotation. By focusing annotation efforts on these critical samples (requiring less than 3% of the training data), the LAE can be effectively regularized, significantly reducing annotation costs while boosting generalization.

The training process involves a two-stage optimization: first, learning effective representations with reconstruction and latent space losses, and second, fine-tuning the encoder with the attention loss using the actively selected annotated samples.

Datasets

The experiments were conducted on three deepfake detection tasks:

  • Face Swap Manipulation: Using FaceForensics++ dataset.
  • Seen: Face2Face manipulation.
  • Unseen: FaceSwap manipulation.
  • Facial Attributes Manipulation: Using CelebA dataset.
  • Seen: StarGAN manipulation.
  • Unseen: Glow manipulation.
  • Inpainting-based Manipulation:
    • Seen: G&L manipulation.
  • Unseen: ContextAtten manipulation.

The paper uses standard train/validation/test splits for seen datasets and a separate, unseen dataset generated by alternative methods for evaluating generalization.

Key Insights and Ideas

  • Superficial Correlations are the Enemy of Generalization: The paper strongly argues that current deepfake detectors often overfit to dataset-specific artifacts, leading to poor performance on unseen data.
  • Focusing on the "Where" is Crucial: By forcing the model to attend to the actual manipulated regions (the "what" and "where"), LAE learns more robust and generalizable features.
  • Active Learning is a Game-Changer for Annotation: The proposed active learning strategy dramatically reduces the annotation burden for pixel-wise masks, making the fine-grained regularization approach practical.
  • Interpretability as a Debugging Tool: Visualizing attention maps provides valuable insights into why a model makes certain predictions, revealing both the strengths of LAE and the weaknesses of baseline methods.

Key Results

  • Significant Generalization Improvement: LAE outperforms state-of-the-art baselines by a substantial margin on unseen manipulations: 6.52% on face swap, 12.03% on facial attribute manipulation, and 3.08% on inpainting.
  • Reduced Annotation Effort: The active learning framework requires annotations for less than 3% of the training data to achieve significant generalization gains.
  • Comparable Performance on Seen Data: The generalization improvements do not come at the cost of performance on the original training data; LAE achieves comparable accuracy on hold-out test sets.
  • Qualitative Evidence: Attention maps clearly show LAE focusing on manipulated facial features (eyes, nose, mouth) or inpainted regions, while baselines often highlight irrelevant background areas.

Limitations and Future Work

  • Remaining Generalization Gap: While significantly reduced, a generalization gap still exists between seen and unseen datasets, particularly due to subtle distribution differences between manipulation methods.
  • Future Directions: The authors suggest exploring transfer learning and other techniques to further close the generalization gap. They also plan to extend their work to deepfake video and audio detection. The paper also notes that further fine-tuning with more unseen data could potentially improve generalization.

Summary updated

BibTeX
@inproceedings{du2020towards,
  author = {Mengnan Du and Shiva K. Pentyala and Yuening Li and Xia Hu},
  title = {{Towards Generalizable Deepfake Detection with Locality-aware AutoEncoder}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
  doi = {10.1145/3340531.3411892},
}
Figure