Hierarchical Forgery Classifier on Multi-Modality Face Forgery Clues

Decheng Liu, Zeyang Zheng, Chunlei Peng, Yukai Wang, Nannan Wang, Xinbo Gao

TL;DR

The researchers propose HFC-MFFD, a hierarchical framework for detecting face forgeries across different imaging modalities like visible light and near-infrared. By combining local patch-based features from both spatial and frequency domains with a two-stage hierarchical classifier, the model significantly improves detection accuracy and handles the inherent class imbalance between real and fake images.

What Problem Does This Paper Address?

As generative models (like GANs) become more sophisticated, high-quality face forgeries are becoming nearly indistinguishable from real images to the human eye. While most research focuses on visible light (VIS) images, real-world security often relies on near-infrared (NIR) cameras. Existing detection methods typically struggle with the "modality gap"—models trained on VIS images often perform poorly on NIR data.

Furthermore, most current approaches treat forgery detection as a simple binary classification task. This ignores two critical factors:

  1. Class Imbalance: In the wild, the variety and volume of fake images (generated by numerous different models) far outweigh the number of real images.
  2. Local Artifacts: Forgery clues are often hidden in local textures or specific frequency patterns rather than global facial structures.

Methods

The proposed Hierarchical Forgery Classifier for Multi-modality Face Forgery Detection (HFC-MFFD) introduces several novel components:

  • Local Hybrid Domain Representation: Instead of looking at the whole face, the model divides it into nine local patches. It extracts features from two domains:
  • Image Domain: Uses ResNet for high-level semantic features and SIFT for hand-crafted texture features.
  • Frequency Domain: Uses Discrete Cosine Transform (DCT) to identify grid-like artifacts typically left by GAN upsampling layers.
  • Attention Fusion (AttFusion) Block: A self-attention mechanism that learns long-range dependencies between different spatial patches, helping the model understand which local regions contain the most discriminative forgery clues.
  • Two-Stage Hierarchical Classifier:
    • Stage 1 (Authenticity Filter): A binary classifier distinguishes real from fake images using a fusion of image and frequency features.
  • Stage 2 (Forgery Type Classifier): If an image is flagged as fake, it passes to a second stage to identify the specific artifact type (e.g., which GAN generated it). This stage focuses primarily on image domain features, as frequency clues were found to be less effective for fine-grained type tracing.
  • Authenticity Feedback & Adaptive Weighting: The model uses learnable weights ($w_{1,i}$) to fuse scores from different feature branches, allowing it to adaptively prioritize the most reliable clues for a given modality.
The HFC-MFFD framework, showing the dual-domain feature extraction and hierarchical classification pipeline.

Datasets

The authors evaluated their method on three primary datasets to cover both VIS and NIR modalities:

  • CASIA NIR-VIS 2.0: Used for real NIR face images.
  • ForgeryNIR: A large-scale dataset containing 240,000 forgery NIR images generated by multiple GAN techniques, categorized into "std" (no perturbation), "rand" (one perturbation), and "mix" (multiple perturbations).
  • WildDeepfake: A challenging VIS dataset consisting of over 1 million images extracted from real-world deepfake videos collected from the internet.

Key Insights and Ideas

  • Frequency is for Detection, Spatial is for Tracing: One of the most interesting findings is that frequency domain features (DCT) are incredibly powerful for binary detection (Real vs. Fake) but lose their effectiveness when trying to identify the type of forgery. For fine-grained classification, local spatial textures are more reliable.
  • Patches Beat Holistic Views: By focusing on $128 \times 128$ patches, the model avoids overfitting on global facial structures (which GANs are getting better at) and instead catches the "stereotyped" local artifacts inherent in generative processes.
  • Hierarchical Filtering Mitigates Imbalance: By first filtering out real images, the second stage can focus on a more balanced set of forgery types, improving the overall robustness of the pipeline.

Key Results

HFC-MFFD achieved state-of-the-art (SOTA) results across both modalities:

  • NIR Performance: On the ForgeryNIR-mix dataset (the most difficult setting), HFC-MFFD achieved 99.53% accuracy, outperforming established baselines like Xception (96.15%) and CNNDetection (97.56%).
  • VIS Performance: On the WildDeepfake dataset, it reached 85.59% accuracy, a significant improvement over other SOTA methods like DAM (83.32%) and F3-Net (80.66%).
  • Ablation Studies: The researchers proved that fusing deep features with hand-crafted SIFT features provides a "safety net," maintaining discriminability even when images are subject to disturbances or attacks.
Comparison of HFC-MFFD against baseline methods on NIR datasets.

Limitations and Future Work

While the model performs exceptionally well within a specific modality, cross-modality generalization remains a hurdle. As shown in the paper's Table VIII, a model trained on NIR data and tested on VIS data (or vice versa) sees a significant drop in accuracy (dropping as low as 28.61%). The authors acknowledge that the domain gap between visible light and near-infrared spectra is still a major challenge for universal forgery detection.

Future work will focus on improving this cross-dataset robustness to better mimic unpredictable real-world scenarios.

Summary updated

BibTeX
@article{liu2024hierarchical,
  author = {Decheng Liu and Zeyang Zheng and Chunlei Peng and Yukai Wang and Nannan Wang and Xinbo Gao},
  title = {{Hierarchical Forgery Classifier on Multi-Modality Face Forgery Clues}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
  doi = {10.1109/tmm.2023.3304913},
}
Figure