Advancing Generalized Deepfake Detector with Forgery Perception Guidance

Ruiyang Xia, Dawei Zhou, Decheng Liu, Lin Yuan, Shuodi Wang, Jie Li, Nannan Wang, Xinbo Gao

TL;DR

This paper introduces Forgery Perception Guidance (FPG), a novel training strategy that significantly improves deepfake detector generalization by focusing on how detectors perceive forgeries during training. FPG refines forgery samples and adds explicit optimizations, achieving state-of-the-art results with reduced training time and minor model modifications.

What Problem Does This Paper Address?

The proliferation of deepfake technology poses a significant threat to media authenticity. While many deepfake detection methods exist, they often struggle to generalize to new, unseen deepfake generation techniques or datasets. Existing approaches typically focus on either making detectors more complex or generating more sophisticated fake samples. However, the paper argues that a crucial aspect often overlooked is how the detector perceives the forgery itself – specifically, its feature responses and prediction scores. This lack of focus on "forgery perception" leads to detectors that are either overly complex or require extensive, costly training to achieve good generalization. The authors aim to bridge this gap by developing an efficient method that enhances generalization without these drawbacks.

Methods

The core of the proposed method is Forgery Perception Guidance (FPG), which operates during the training phase. FPG consists of two main components:

  • Forgery Sample Refinement: This is the key innovation. After a standard deepfake detector computes gradients, FPG uses this information to refine the forgery samples themselves. It analyzes the detector's feature responses and prediction scores to identify "unperceived" forgery traces. The method then modifies the shape and magnitude of these traces in the training samples. This refinement aims to make the forgery traces more salient and informative for the detector, guiding it to learn better. The refinement process is adaptive, with a probability that depends on how "hard" a sample is for the detector, preventing issues with overly easy or hard samples.
  • Extra Explicit Optimizations: To further improve generalization and adapt to sample diversities, FPG incorporates additional explicit supervision signals. These include:
  • Image Quality Assessment: The detector is trained to be robust to variations in image quality by incorporating a quality assessment network.
  • Local Forgery Region Similarity: An additional loss function (Lsim) is used to emphasize the differences between real and fake image regions, helping the detector focus on the actual forgery artifacts.

By combining these, FPG guides the detector to learn more effectively from forgery samples, leading to improved generalization.

Datasets

The paper uses several widely recognized datasets for evaluation:

  • FaceForensics++ (FF++): Used for training and cross-manipulation evaluation. It includes various deepfake techniques like DeepFakes (DF), FaceSwap (FS), Face2Face (F2F), and NeuralTextures (NT).
  • Celeb-DF (CDF): Used for cross-dataset evaluation.
  • DeepfakeDetection (DFD): Used for cross-dataset evaluation.
  • Deepfake Detection Challenge (DFDC): Used for cross-dataset evaluation.
  • DFDCP (preview version): Used for cross-dataset evaluation.
  • Face Forensics in the Wild (FFIW): Used for cross-dataset evaluation.

The authors train their model using real samples from FF++ and evaluate its generalization on unknown datasets and manipulation techniques.

Key Insights and Ideas

  • Perception is Key: The paper highlights that simply improving detector architecture or generating more complex fakes isn't enough for generalization. The detector's perception of forgery traces during training is a critical, often overlooked, factor.
  • Refining the Training Data: Instead of just modifying the detector, FPG intelligently refines the training samples themselves to better expose forgery traces that the detector might miss. This is a more efficient way to guide learning.
  • Adaptive Refinement: The probability of refining a sample is not fixed but depends on the detector's current performance on that sample. This prevents over-refinement of easy samples or under-refinement of hard ones, leading to a more balanced and effective training process.
  • Explicit Supervision Boosts Robustness: Incorporating explicit signals like image quality and local forgery region information helps the detector become more robust to variations and focus on the true forgery artifacts, rather than spurious correlations.

Key Results

  • State-of-the-Art Generalization: FPG achieves state-of-the-art performance on both cross-dataset and cross-manipulation evaluations.
  • Significant AUC Improvement: On cross-dataset evaluation, FPG outperforms the second-best method on CDF, DFDCP, and FFIW by notable margins (e.g., 1.31% on CDF). The average AUC across five datasets reaches 88.16%.
  • Training Efficiency: FPG significantly reduces training time, surpassing a comparable baseline that requires over 3x more training time. For instance, FPG trained for 50 epochs outperforms the baseline trained for 250 epochs.
  • Minor Model Modifications: The method requires only minor detector modifications and can be applied to various backbone architectures (Xception, ResNet-50, VGG-19), demonstrating its broad applicability.
  • Qualitative Improvements: Saliency maps show that FPG-trained detectors highlight forgery traces more effectively than baseline methods. T-SNE visualizations indicate that FPG leads to more clustered distributions of samples within the same category, signifying better discrimination.

Limitations and Future Work

  • Feature Selection for Lsim: The paper mentions that for the Lsim loss, using local features selected from the resized forgery mask might be improved by a more precise feature selection strategy, which they plan to explore in future work.
  • Hyperparameter Sensitivity: While FPG shows robustness, the paper investigates the impact of hyperparameters like t (threshold for shape refinement) and ε (magnitude of perturbation). They observe that increasing these parameters can improve results up to a point, after which performance may degrade, suggesting a need for careful tuning.
  • Future Work: The authors suggest exploring more precise feature selection strategies for the Lsim loss. They also mention considering more sophisticated feature selection for future work.

Summary updated

BibTeX
@inproceedings{xia2024advancing,
  author = {Ruiyang Xia and Dawei Zhou and Decheng Liu and Lin Yuan and Shuodi Wang and Jie Li and Nannan Wang and Xinbo Gao},
  title = {{Advancing Generalized Deepfake Detector with Forgery Perception Guidance}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680713},
}

Loading related content...

Figure