Spatial-phase shallow learning: rethinking face forgery detection in frequency domain

Wenbo Zhou · OpenReview

Abstract

Face forgery detection faces a significant challenge in generalization: models often overfit to specific training datasets and fail in real-world, cross-dataset scenarios. This paper introduces Spatial-Phase Shallow Learning (SPSL), a novel approach that shifts the focus from high-level facial semantics to the underlying digital construction process. By integrating phase spectrum information and intentionally employing a shallow neural network, SPSL captures universal artifacts introduced by up-sampling. Our method achieves state-of-the-art performance, particularly in cross-dataset evaluations, outperforming traditional deep models.

The Challenge: Overfitting to Semantics

The primary hurdle in Deepfake detection is identifying forgeries from unseen sources. Most current detectors rely on deep networks that focus on high-level semantics—global features like face shape or expressions—which are often shared by both real and fake images. Furthermore, while frequency-domain analysis has been explored, previous work focused primarily on the amplitude spectrum, which is susceptible to information loss during compression.

Methodology

SPSL introduces two core innovations to improve detection robustness:

1. Phase Spectrum Integration

Generative models (such as GANs and VAEs) typically rely on up-sampling to produce high-resolution images. This process leaves distinct, detectable traces in the phase spectrum. Unlike the amplitude spectrum, which indicates the strength of frequencies, the phase spectrum captures their spatial distribution. We use a Discrete Fourier Transform (DFT) to extract phase information, which is then reconstructed into a spatial "phase image" and concatenated with the original RGB data as a 4-channel input.

Overview of the phase and amplitude residual extraction process via DFT.

2. Shallow Learning and the "Semantic Trap"

Counter-intuitively, we argue that "deeper is not better" for forgery detection. Deep networks possess large receptive fields that naturally prioritize global context. To force the model to focus on local texture artifacts—where forgery "fingerprints" actually reside—we utilize a shallow network. By modifying an Xception backbone to strip away several convolutional layers, we keep the receptive field small, effectively "blinding" the model to global semantics and focusing it on local noise.

Experimental Results

We evaluated SPSL on benchmark datasets, including FaceForensics++ (FF++) and the highly challenging Celeb-DF.

  • Cross-Dataset Performance: When trained on FF++ and tested on Celeb-DF, SPSL achieved an AUC of 76.88%, a substantial improvement over the baseline Xception model (65.50%) and other state-of-the-art methods like F3-Net (65.17%).
  • Robustness to Compression: Phase information proved resilient even in low-quality, heavily compressed videos, maintaining higher detection rates than RGB-only models.
  • Attention Visualization: Grad-CAM visualizations demonstrate that while baseline models often focus on broad facial regions, SPSL targets specific local regions where blending and up-sampling artifacts are most prominent.
Attention map comparison showing SPSL's focus on local artifacts versus the baseline's global semantic focus.

Conclusion

By rethinking forgery detection through the lens of frequency-domain phase information and shallow learning, SPSL avoids the "semantic trap" that limits the generalization of deeper models. While the method currently depends on the presence of up-sampling artifacts, it provides a robust framework for universal forgery detection that is significantly more effective in cross-dataset applications.

Summary updated

BibTeX
@inproceedings{zhou2021spatial,
  author = {Wenbo Zhou},
  title = {{Spatial-phase shallow learning: rethinking face forgery detection in frequency domain}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00083},
}
Figure