Adaptive Frequency Learning in Two-branch Face Forgery Detection

Neng Wang, Yang Bai, Kun Yu, Yong Jiang, Shutao Xia, Yan WangarXiv 2022 · DOI

Researchers from Tsinghua University and Alibaba Group have introduced AFD (Adaptive Frequency Detection), a novel framework designed to enhance the detection of DeepFakes. By transitioning from rigid, hand-crafted frequency filters to learnable, data-driven components and employing an attention mechanism for feature fusion, AFD establishes a new state-of-the-art in face forgery detection.

The Challenge: Digital Fingerprints in the Frequency Domain

While modern DeepFakes are increasingly difficult for humans to distinguish from real images, they often contain subtle "digital fingerprints" in the frequency domain. These artifacts—typically periodic noise or structural anomalies—are side effects of the upsampling and convolution operations used by generative models.

Existing "two-branch" detection models attempt to exploit these clues by analyzing both the spatial (RGB) image and its frequency representation. However, these models often rely on fixed, manual frequency splitting (e.g., static low-pass or high-pass filters). Such rigid approaches are sub-optimal because different forgery techniques leave distinct types of artifacts across the spectrum. To effectively identify sophisticated fakes, a model must learn which frequency components are most indicative of manipulation.

The AFD Framework

The AFD framework introduces three primary innovations to overcome the limitations of static frequency analysis:

Overview of the AFD framework architecture, illustrating the spatial and frequency branches and the attention-based fusion mechanism.

1. Adaptive Frequency Decomposition (AdaD)

Unlike traditional methods that use binary masks to isolate frequency bands, AFD utilizes "soft masks" that are optimized during the training process. To prevent these masks from converging to redundant patterns, the authors implement a triplet loss constraint. This ensures that different masks capture distinct, non-overlapping frequency information, maximizing the diversity of the extracted features.

2. Exploring Feature Fusion (EFF)

Rather than simply concatenating frequency and spatial features, AFD employs an attention-based module. This module adaptively weights frequency clues before incorporating them into the spatial (RGB) branch, allowing the model to focus on frequency artifacts specifically in the regions where they are most prominent.

3. Adaptive Frequency Transform (AdaT)

Standard models typically use the Discrete Cosine Transform (DCT) as a fixed pre-processing step. AFD replaces this with learnable layers initialized with DCT parameters. These layers fine-tune themselves to the specific dataset, creating a custom frequency transform optimized for the nuances of forgery detection.

Experimental Results

The researchers evaluated AFD on the FaceForensics++ (FF++) benchmark, focusing on the "C40" version. This version features heavy compression, which is the most challenging scenario for detection as compression often obscures subtle frequency artifacts. The dataset includes manipulations from DeepFakes, FaceSwap, Face2Face, and NeuralTextures.

Performance comparison of AFD against state-of-the-art methods on the FaceForensics++ dataset, highlighting its superior accuracy and AUC.

AFD consistently outperformed the standard Xception backbone and other specialized two-branch models. On the full FaceForensics++ test set, AFD achieved an Accuracy of 90.33% and an AUC of 94.24%, representing a significant improvement over the baseline Xception (81.00% Accuracy). The model showed particular strength in detecting NeuralTextures (97.08% AUC) and DeepFakes (94.99% AUC).

Conclusion and Future Work

The AFD framework demonstrates that learnable frequency decomposition and adaptive feature fusion are critical for robust forgery detection, especially in compressed media. While the results are promising, future research may focus on improving cross-dataset generalization to ensure the model remains effective against "in-the-wild" fakes not seen during training. Additionally, integrating the learnable frequency transform (AdaT) into a fully end-to-end training pipeline could further enhance performance.

Summary updated

BibTeX
@misc{wang2022adaptive,
  author = {Neng Wang and Yang Bai and Kun Yu and Yong Jiang and Shutao Xia and Yan Wang},
  title = {{Adaptive Frequency Learning in Two-branch Face Forgery Detection}},
  year = {2022},
  eprint = {2203.14315},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.14315},
}
Figure