Introduction: The Generalization Gap
Deepfake detection has become a critical frontier in AI safety. While modern detectors achieve near-perfect accuracy on their training data, they often fail when encountering new forgery types or different datasets. This "generalization gap" occurs because models tend to overfit to specific, low-level artifacts unique to a particular generator—essentially memorizing the "fingerprint" of the training set rather than learning the fundamental nature of a fake face.
Methodology: Forgetting the Obvious
To address this, we propose a framework that combines Multi-Scale Feature Disentanglement with a novel Critical Forgetting Mechanism.
1. Feature-Level Decoupling
Traditional disentanglement tries to separate an image into "content" and "attribute" at the pixel level, which is computationally expensive and noisy. Our method instead uses intermediate feature maps (representing texture, color, or edges) as targets. This focuses the decoupling task on semantically meaningful representations.
2. Multi-Scale Disentanglement
Forgeries can manifest at different resolutions. Our architecture extracts features at multiple scales and employs a Pearson Coefficient loss to ensure that forgery-relevant "attribute" features and forgery-irrelevant "content" features are mathematically uncorrelated.
3. Critical Forgetting Mechanism
This is the "secret sauce" of our approach. During training, the model identifies feature channels with the highest impact on its decision (measured by gradient magnitude). It then selectively masks these "top-N" sensitive regions. By forcing the model to "forget" the most obvious artifacts, we compel it to mine for more subtle, universal forgery traces that are more likely to generalize to unseen data.
Experimental Evaluation
We evaluated our method on major benchmarks, including FaceForensics++ (FF++), Celeb-DF V2, and the DeepFake Detection Challenge (DFDC).
Cross-Manipulation Performance
The effectiveness of the disentanglement component is particularly evident in cross-manipulation scenarios within the FF++ dataset. For example, when transferring from NeuralTextures (NT) to FaceSwap (FS), the disentangled model ("Dis") significantly outperforms the original baseline ("Ori") when using higher-capacity backbones like Xception.
Overall Generalization and Model Capacity
While the disentanglement approach can sometimes lead to a slight performance drop on intra-dataset tasks (where the model is tested on the same manipulation it was trained on), it provides a more stable average performance across diverse forgery types, especially as model capacity increases.
Key Results and Insights
- Superior Generalization: On the challenging Celeb-DF dataset, our model achieved an AUC of 76.30%, outperforming previous state-of-the-art methods like PFG (74.42%) and DisGRL (70.03%).
- Robustness to Compression: The model maintains high performance (71.95% average AUC) even on highly compressed videos (c40), which mimics the low quality of social media content.
- The Capacity Factor: Our results indicate that the disentanglement and forgetting mechanisms benefit significantly from larger model architectures. While smaller models like ResNet34 may struggle with the increased complexity of the task, Xception-based implementations show robust improvements in generalization.
Conclusion
By intentionally blinding the model to "easy" features through critical forgetting, we force the development of a more robust intuition for forgeries. While there is a minor trade-off in intra-dataset accuracy, the significant gains in cross-dataset generalization make this a promising direction for real-world deepfake detection where the source of the forgery is unknown.
Summary updated