Abstract
Deepfake detection faces significant challenges due to model overfitting on training backgrounds and the scarcity of pixel-level forgery annotations. This paper introduces a "Locate and Verify" framework, a two-stream network that enhances detection by first identifying potential forged regions and then extracting forensic evidence. Utilizing a novel Semi-supervised Patch Similarity Learning (SSPSL) strategy, the model estimates forgery locations without manual masks. Experimental results across multiple benchmarks, including FaceForensics++, Celeb-DF, and DFDC_P, demonstrate state-of-the-art performance and superior generalization to unseen datasets.
Introduction
As deepfake technology evolves, manipulations have become increasingly subtle, moving beyond simple facial swaps to complex alterations that are difficult for standard detectors to identify. Current detection methods suffer from two primary limitations: overfitting and a narrow focus. Models often learn to recognize specific backgrounds or image contents from their training sets rather than the actual forgery cues, leading to poor performance on "unseen" videos. Additionally, many detectors focus only on specific artifacts, such as blending boundaries or specific facial features, ignoring other regions where forgery evidence might be abundant.
Furthermore, training a model to "locate" forgeries typically requires pixel-level annotations—masks showing exactly what was changed—which are rarely available in large-scale deepfake datasets. This research addresses these gaps by proposing a framework that finds the "crime scene" before analyzing the evidence.
Methodology
The proposed "Locate and Verify" framework utilizes a dual-stream architecture designed to capture diverse forgery traces through several innovative modules.
Dual-Stream Input and Consistency
The model processes both standard RGB images and Spatial Rich Model (SRM) noise residuals. SRM filters are critical for capturing high-frequency artifacts, such as up-sampling traces, which are often invisible in the RGB domain. To integrate these inputs, the Cross-modality Consistency Enhancement (CMCE) module collaboratively learns a combined representation that preserves the unique informative features of both modalities rather than simply concatenating them.
Localization and Feature Fusion
The core of the system is the Local Forgery Guided Attention (LFGA), which generates attention maps from a localization branch to guide the classification branch. This forces the model to focus on the most suspicious patches. To ensure that subtle cues are not lost as data moves deeper into the network, the Multi-scale Patch Feature Fusion (MPFF) module fuses features across different scales. This is vital because forgery traces, like blending artifacts, are often most prominent in the shallow layers of a neural network.
Semi-supervised Learning (SSPSL)
To overcome the lack of forgery masks, the authors developed Semi-supervised Patch Similarity Learning (SSPSL). This strategy uses facial landmarks to designate a "sensitive region" (using the nose as a proxy) as a representative anchor for manipulated areas. By comparing patches from real and fake images in a feature space, the model learns to estimate forged locations without the need for manual labels.
Experiments and Results
The model was trained primarily on the high-quality version of FaceForensics++ (FF++) and evaluated on five other major benchmarks to test real-world generalization: Celeb-DF (v1 and v2), DeepFake Detection Challenge preview (DFDC_P), DeepFakeDetection (DFD), and DeeperForensics-1.0 (DFo).
Performance Metrics
The "Locate and Verify" model outperformed previous state-of-the-art (SOTA) methods across all six benchmarks:
- Generalization: On the challenging DFDC_P dataset, it improved the frame-level AUC (Area Under the Curve) from 0.797 to 0.835.
- Video-level Accuracy: On CelebDF_v1, it increased the video-level AUC from 0.811 to 0.847.
- Interpretability: Grad-CAM visualizations demonstrated that the model precisely focuses on manipulated regions (such as the eyes or mouth) while ignoring the background, even on datasets it had never encountered during training.
Discussion and Conclusion
The success of this framework highlights that deepfake detection should not be treated as a simple binary classification. By making the model explicitly locate the forgery as an intermediate step, it becomes significantly more robust against background noise and overfitting. The research also reinforces that "shallow" features and noise residuals are often more reliable signals for spotting synthetic manipulations than high-level semantic pixels.
While the SSPSL strategy is highly effective, there remains a slight performance gap compared to models trained with perfect, manually-labeled masks. Future work will involve developing more sophisticated "anchors" for the semi-supervised learning process to cover a wider variety of manipulation techniques beyond facial swaps.
Summary updated