Frequency-Aware Discriminative Feature Learning Supervised by Single-Center Loss for Face Forgery Detection

Jiaming Li, Hongtao Xie, Jiahong Li, Zhongyuan Wang, Yongdong Zhang

Abstract

As facial manipulation technology becomes increasingly sophisticated, traditional detection methods struggle with the diversity of forgery techniques and the loss of detail in compressed videos. This paper introduces Frequency-aware Discriminative Feature Learning (FDFL), a novel framework designed to enhance the robustness and discriminative power of deepfake detectors. FDFL leverages two key innovations: a Single-Center Loss (SCL) that treats natural faces as a compact cluster and manipulated faces as outliers, and an Adaptive Frequency Feature Generation Module (AFFGM) that learns to extract subtle forgery cues from the frequency domain. Experimental results on the FaceForensics++ dataset demonstrate that FDFL significantly outperforms existing methods, particularly in challenging high-compression scenarios.

Introduction

The rapid advancement of Deepfake technology has created an "arms race" between forgers and detectors. Current face forgery detection methods face three primary hurdles. First, standard classification using Softmax loss often results in samples sitting too close to the decision boundary, leading to poor generalization. Second, traditional metric learning incorrectly assumes that all "fake" faces—despite being created by vastly different algorithms like GANs or face-swapping—should form a single tight cluster. Finally, many detectors rely on fixed frequency filters that may miss the evolving, subtle artifacts left by new manipulation techniques.

Methodology

The FDFL framework addresses these challenges by shifting the focus from simple binary classification to discriminative feature learning in both spatial and frequency domains.

Single-Center Loss (SCL)

The core conceptual shift in this work is treating forgery detection as an asymmetric problem. Instead of forcing "Real" and "Fake" into two equivalent clusters, SCL defines a single "center point" for natural faces.

Comparison between Softmax loss and Single-Center Loss (SCL) in the embedding space.

As shown in Figure 1, while Softmax loss merely seeks a separating hyperplane, SCL minimizes the distance of all natural faces to a learned center, creating a compact representation. For manipulated faces, the loss only ensures they are pushed beyond a specific margin from this center. This approach acknowledges that "fake" is an open-ended category of anomalies rather than a single cohesive class, reducing optimization difficulty and improving robustness.

Framework Architecture and AFFGM

The overall FDFL architecture integrates spatial and frequency information through a dual-branch approach.

Overview of the Frequency-aware Discriminative Feature Learning (FDFL) framework.

The Adaptive Frequency Feature Generation Module (AFFGM), illustrated in Figure 2, avoids the limitations of hand-crafted filters. It converts input images to the YCbCr color space and applies a block-wise 2D Discrete Cosine Transform (DCT). These coefficients are reshaped to preserve spatial context for CNN processing. An Adaptive Frequency Information Mining Block (AFIMB) then utilizes grouped convolutions and channel attention to automatically identify the most relevant frequency bands for detecting forgery artifacts, such as checkerboard patterns or energy inconsistencies.

Experimental Results

The model was rigorously evaluated on the FaceForensics++ (FF++) dataset across three compression levels: raw (c0), lightly compressed (c23), and heavily compressed (c40). The latter represents the most realistic and difficult scenario for internet-sourced video.

FDFL achieved state-of-the-art results, particularly on the c40 subset:

  • Accuracy: Reached 89.00% on c40, a substantial improvement over the 81.00% achieved by the standard Xception baseline.
  • AUC: Achieved an AUC of 0.924 on c40, outperforming specialized competitors like Face X-ray (0.616) and Two-branch (0.911).

Ablation studies confirmed that both SCL and AFFGM are critical to these gains. Removing either component led to a significant drop in performance, validating the importance of both the "how to learn" (SCL) and "where to look" (frequency) strategies.

Conclusion

By treating natural faces as a tight distribution and forgeries as diverse anomalies, the FDFL framework provides a more effective way to supervise deepfake detection models. The integration of adaptive frequency mining further allows the model to capture subtle artifacts that are often lost in the spatial domain. Future work will explore the inclusion of temporal cues to address inter-frame inconsistencies and investigate the generalization of Single-Center Loss to related fields like face anti-spoofing.

Summary updated

BibTeX
@inproceedings{li2021frequency,
  author = {Jiaming Li and Hongtao Xie and Jiahong Li and Zhongyuan Wang and Yongdong Zhang},
  title = {{Frequency-Aware Discriminative Feature Learning Supervised by Single-Center Loss for Face Forgery Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00639},
}
Figure