FReTAL: Generalizing Deepfake Detection Using Knowledge Distillation and Representation Learning

Minha Kim, Shahroz Tariq, Simon S. Woo

Abstract

Deepfake detection models often struggle to generalize to unseen manipulation methods, a phenomenon known as catastrophic forgetting. This paper introduces FReTAL (Feature Representation Transfer Adaptation Learning), a framework that enables rapid adaptation to new deepfake domains using minimal data (as few as 10 videos) without requiring access to original source datasets. By integrating knowledge distillation with a novel feature-matching approach, FReTAL achieves significant performance gains, particularly on low-quality compressed content typical of social media, reaching up to 86.97% accuracy.

Introduction

Deepfake detection is a continuous cat-and-mouse game. While researchers develop robust models to detect current manipulation techniques like Face2Face or FaceSwap, these models often fail when faced with brand-new generation methods—a problem known as poor generalization. When developers attempt to update these models, they face two major roadblocks: catastrophic forgetting, where the model "forgets" original forgery types, and data scarcity/privacy, where original source training data may no longer be available. FReTAL aims to solve these by allowing a model to adapt to new domains quickly using very little data and without needing access to original source datasets.

Methods

The FReTAL framework utilizes a Teacher-Student architecture based on an Xception backbone. The process involves a frozen Teacher model pre-trained on a source domain and a Student model that learns the new target domain. The "secret sauce" of FReTAL is its hybrid loss function, which combines three components:

  1. Knowledge Distillation (KD) Loss: The student mimics the "soft" probability outputs of the teacher to preserve original logic.
  2. Feature-based Square Loss ($L_{FSL}$): The student matches the teacher's intermediate feature representations. A feature storage mechanism segments features into bins based on confidence levels, helping maintain a consistent internal understanding across domains.
  3. Cross-Entropy Loss: Standard classification loss to ensure the student identifies the new target fakes.
Figure 2: The FReTAL architecture featuring Teacher-Student models and the hybrid loss function components.

Results and Discussion

The study primarily utilized the FaceForensics++ (FF++) dataset, focusing on the performance gap between High Quality (HQ) and Low Quality (LQ) compressed videos. A key finding is the "Power of 10": FReTAL can adapt to a new domain using only 10 videos, suggesting that underlying deepfake features share enough commonality for rapid pivoting.

In cross-domain tasks, FReTAL consistently outperformed standard fine-tuning (FT) and other state-of-the-art domain adaptation methods. On challenging low-quality deepfakes, FReTAL achieved an average accuracy of 86.97%, a significant jump over baseline transfer learning methods. Ablation studies confirmed that the $L_{FSL}$ component is vital; its removal caused performance to degrade, proving that representation learning is the key to generalization.

Figure 6: Performance comparison of FReTAL against other adaptation methods across multiple domain shifts.

Conclusion

FReTAL provides a robust path forward for deepfake detectors to handle the evolving landscape of digital forgeries. By prioritizing performance on low-quality, real-world social media content and enabling privacy-preserving adaptation, it addresses critical practical needs. Future work will explore super-resolution as a data augmentation technique and test the framework on even more diverse datasets like CelebDF to push past the current 90% accuracy ceiling for compressed video.

Summary updated

BibTeX
@inproceedings{kim2021fretal,
  author = {Minha Kim and Shahroz Tariq and Simon S. Woo},
  title = {{FReTAL: Generalizing Deepfake Detection Using Knowledge Distillation and Representation Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00111},
}
Figure