Abstract
Robust deepfake detection models must be capable of generalizing to ever-evolving manipulation techniques beyond training data. A promising strategy is to augment the training data with online synthesized fake images containing broadly generalizable artifacts. However, in the context of deepfake detection, it is surprising that jointly training on both original and online synthesized forgeries may result in degraded performance. This contradicts the common belief that incorporating more source-domain data should enhance detection accuracy. Through empirical analysis, we trace this degradation to gradient conflicts during backpropagation which force a trade-off between source domain accuracy and target domain generalization. To overcome this issue, we propose a Conflict-Suppressed Deepfake Detection (CS-DFD) framework that explicitly mitigates the gradient conflict via two synergistic modules. First, an Update Vector Search (UVS) module searches for an alternative update vector near the initial gradient vector to reconcile the disparities of the original and online synthesized forgeries. Second, a Conflict Gradient Reduction (CGR) module enforces a low-conflict feature embedding space through a novel Conflict Descent Loss. The synergy of UVS and CGR alleviates gradient interference in both parameter optimization and representation learning. Experiments on multiple deepfake benchmarks demonstrate that CS-DFD achieves state-of-the-art performance in both in-domain detection accuracy and cross-domain generalization.
Introduction
Deepfake detection is a persistent cat-and-mouse game. Models trained on a specific dataset (the "source domain") often fail to detect forgeries created with newer, unseen techniques (the "target domain"). To address this, researchers frequently augment training with "online synthesized" fakes—images generated on the fly to expose the model to broader, more generalizable artifacts.
However, a counterintuitive phenomenon emerges: combining original dataset forgeries with these synthesized ones often leads to a drop in performance. This "1+1 < 2" paradox is rooted in gradient conflicts. During training, the optimization paths required for different types of forgeries can contradict each other, pulling model parameters in opposing directions and trapping the model in unstable regions of the loss landscape.
The CS-DFD Framework
To resolve these conflicts, the authors propose the Conflict-Suppressed Deepfake Detection (CS-DFD) framework. It introduces two primary modules designed to harmonize the learning process across heterogeneous data sources.
1. Update Vector Search (UVS) Module
Standard backpropagation often averages gradients from different data types, which can lead to destructive interference or zero-sum cancellation. The UVS module treats the parameter update as a constrained optimization problem. It searches for a "conflict-free" update vector near the initial gradient that maximizes the simultaneous loss reduction for both original and synthesized data. By transforming this search into an extremum optimization problem, UVS yields a unique update vector that reconciles the disparities between forgery types.
2. Conflict Gradient Reduction (CGR) Module
While UVS operates on parameter updates, the CGR module works at the representation level. It introduces a Conflict Descent Loss ($L_\phi$) that penalizes misaligned gradient directions in the feature embedding space. Using a Hessian-diagonal approximation to maintain computational efficiency, CGR guides the network to learn a low-conflict embedding space where diverse forgery artifacts can be represented without interference.
Empirical Analysis and Insights
The core motivation for CS-DFD stems from the observation of oscillating loss curves and erratic training paths when training on mixed data.
The "1+1 < 2" paradox suggests that "more data" is not a universal panacea if that data introduces conflicting optimization goals. Generalization is achieved not just by increasing volume, but by finding a parameter space where the detection "clues" for different types of fakes are aligned. CS-DFD ensures this alignment, allowing the model to benefit from synthesized data without sacrificing performance on the original source domain.
Experimental Results
The framework was trained on the FaceForensics++ (FF++) dataset and evaluated across several challenging external benchmarks, including Celeb-DF, DFDC, and UADFV.
- Superior Generalization: On Celeb-DF, CS-DFD achieved an AUC of 95.32%, significantly outperforming standard backbones like EfficientNet (~64%) and specialized methods like SBI (~93%).
- Cross-Domain Robustness: Across four unseen target datasets, CS-DFD maintained an average AUC of 88.02%, the highest reported in the study.
- Efficiency: Despite the additional optimization steps, the framework only adds approximately 2% to the total training time (20.3 hours vs. 20 hours on an RTX 3090), making it highly practical for real-world pipelines.
Conclusion
CS-DFD effectively addresses the gradient conflict issue in deepfake detection, enabling models to leverage diverse training data for better generalization. While the current work focuses on spatial artifacts, future research may extend these conflict-suppression techniques to address temporal inconsistencies in video forgeries and adapt to emerging generative techniques like diffusion-based models.
Summary updated