Generalizing Face Forgery Detection With High-Frequency Features

Yuchen Luo, Yong Zhang, Junchi Yan, Wei Liu

Abstract

Current face forgery detectors often struggle to generalize to unseen manipulation techniques, a limitation primarily caused by "texture bias." This paper introduces a novel two-stream framework that incorporates high-frequency noise features to move beyond method-specific artifacts. By leveraging multi-scale high-frequency extraction and dual cross-modality attention, the proposed method achieves superior generalization across diverse forgery databases and generation methods.

Introduction: The Generalization Gap

While modern Convolutional Neural Networks (CNNs) can detect known face forgeries with near-perfect accuracy, their performance often plummets when encountering new, unseen manipulation techniques. This generalization gap arises because models tend to overfit to the specific color textures and generative "fingerprints" of their training data. To build robust detectors, it is essential to identify features that remain consistent across different forgery algorithms.

The challenge of generalizing face forgery detection from known training sets to unseen cross-database manipulation methods.

Methodology: Beyond Texture Bias

The authors propose a two-stream architecture designed to process both standard RGB images and high-frequency noise residuals. The approach utilizes three novel modules:

  1. Multi-scale High-frequency Feature Extraction: High-pass filters from the Steganalysis Rich Model (SRM) are applied at multiple scales to capture subtle forgery traces that might be missed at a single resolution.
  2. Residual-Guided Spatial Attention (RSA): This module uses high-frequency noise to guide the RGB stream's attention toward suspicious regions, particularly the blending boundaries between forged faces and original backgrounds.
  3. Dual Cross-Modality Attention (DCMA): This allows the RGB and noise streams to interact, capturing long-range dependencies and modeling the relationship between low-frequency textures and high-frequency noises for a more holistic representation.

Key Insights: The Texture Trap and Universal Signals

A central finding of this research is the "Texture Trap." Using Grad-CAM visualizations, the authors demonstrate that standard detectors focus almost exclusively on method-specific textures (such as the internal region of a mouth). When these textures change in a new forgery method, the model's attention disappears, resulting in false negatives.

Grad-CAM visualizations demonstrating how standard detectors lose focus when encountering unseen forgery methods (cross-database), a phenomenon termed the 'Texture Trap'.

In contrast, high-frequency noise serves as a more universal signal. While color textures vary between algorithms, the act of blending a forged face into a real image almost always disrupts the underlying high-frequency noise distribution of the original sensor. This makes noise a more reliable clue for cross-database detection.

Experimental Results

The proposed method was evaluated against a comprehensive suite of benchmarks, including FaceForensics++, Celeb-DF, and the Deepfake Detection Challenge (DFDC).

  • Cross-Method Performance: When trained on one method and tested on others within FaceForensics++, the model maintained significantly higher AUCs than standard baselines. For instance, on the FaceSwap (FS) dataset, the model achieved an AUC of 0.987, compared to the Xception baseline's 0.762.
  • High-Quality Forgeries: On the challenging Celeb-DF dataset, the model reached an AUC of 0.794, a substantial improvement over previous specialized methods like FWA (0.538) and FFD (0.644).
  • Robustness to Compression: The framework remained effective even on heavily compressed videos, where high-frequency information is typically degraded, outperforming other frequency-based methods.

Conclusion

By shifting the focus from method-specific textures to generalizable high-frequency noise features, this work provides a robust solution to the challenge of cross-database face forgery detection. While extreme compression and adversarial attacks remain areas for future exploration, the two-stream attention-based framework represents a significant step toward more reliable and generalizable deepfake detection.

Summary updated

BibTeX
@inproceedings{luo2021generalizing,
  author = {Yuchen Luo and Yong Zhang and Junchi Yan and Wei Liu},
  title = {{Generalizing Face Forgery Detection With High-Frequency Features}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01605},
}
Figure