Abstract
Generalization remains a critical bottleneck in deepfake detection, as models often overfit to specific forgery artifacts present in training data. We introduce Curriculum Reinforcement-Learning Data Augmentation (CRDA), a framework that moves beyond static augmentation by employing a reinforcement learning (RL) agent to dynamically select the most challenging forgery techniques in real-time. CRDA combines this adaptive strategy with causal inference to eliminate dataset-specific biases. Our approach achieves state-of-the-art generalization across multiple benchmarks, including Celeb-DF and DFDC, by focusing on causally invariant forgery signatures.
Introduction: The Generalization Challenge
The "cat-and-mouse" game of deepfake detection is currently hindered by a lack of robustness. While a detector might excel at identifying a specific face-swap method it was trained on, its performance often degrades significantly when faced with novel forgery techniques, such as different blending methods or frequency-domain manipulations.
Existing state-of-the-art (SoTA) methods typically rely on fixed data augmentation strategies. However, a "one-size-fits-all" static approach is often insufficient. Naively mixing different augmentations can lead to "feature conflicts"—for instance, a spatial blur intended to simulate low quality might inadvertently erase subtle frequency artifacts that another augmentation is designed to highlight. This prevents the model from learning universal, robust forgery signatures.
The CRDA Framework
The proposed CRDA framework treats data augmentation as a dynamic, evolving curriculum. It is built upon three primary pillars:
1. RL-based Dynamic Augmentation
An RL agent, referred to as the PolicyNet, acts as a coach for the detector. It observes the detector's current internal state and selects the most effective augmentation strategy from a diverse pool (including FaceSwap, SBI, and FreqBlender). The agent is optimized via a multi-scale reward function that balances training stability, validation performance, and "adversarial deception"—specifically targeting fakes that currently deceive the detector.
2. Multi-environment Causal Invariance Learning
To prevent the model from learning spurious correlations (artifacts specific to the augmentation process), the authors employ Invariant Risk Minimization (IRM). By creating multiple training "environments" based on the RL agent's confidence levels, the framework forces the detector to ignore environment-specific biases and focus on "causally invariant" features—the fundamental footprints of forgery.
3. Multi-dimensional Curriculum Scheduling
Training difficulty is scaled over time across three dimensions:
- Data Course: Gradually increasing the proportion of synthetic "fake" faces.
- Exploration Course: Increasing the RL agent's freedom to explore complex strategies as the model matures.
- Region Course: Progressing from large, obvious forgery areas to minute, single-organ manipulations (e.g., eyes or mouth).
Experimental Evaluation
The model was trained on the FaceForensics++ (FF++) dataset and evaluated for cross-domain generalization on several challenging datasets: Celeb-DF (v1 & v2), DeepFake Detection Challenge (DFDC & DFDCP), and UADFV.
Key Results
CRDA consistently outperformed 18 other state-of-the-art methods in cross-dataset evaluations:
- Superior Generalization: Achieved an average AUC of 0.8504 across all test sets, representing a 2.68% relative improvement over previous benchmarks.
- Robustness on Celeb-DF: On the particularly challenging Celeb-DF v1 dataset, CRDA improved AUC by 2.90% compared to the nearest competitor.
- Model Agnostic: The framework demonstrated significant gains across various backbones, including ResNet-50, Xception, EfficientNet-B4, and Swin-Transformers.
Discussion and Insights
The success of CRDA stems from its "anti-conflict" strategy. By using RL to schedule the appearance of specific augmentations, the framework avoids the feature oscillation common in static mixing. Furthermore, by treating deepfake detection as a causal inference problem through IRM, the authors successfully decouple the method of forgery from the fact of forgery. The RL agent effectively searches for the detector's "blind spots," creating a minimax game that pushes the boundaries of the model's knowledge.
Visual analysis using Grad-CAM confirms that CRDA focuses on manipulated structural boundaries, such as the edges of a blended face, rather than irrelevant background textures or skin tones.
Limitations and Future Work
The primary drawback of CRDA is its computational cost, as training an RL agent alongside a deep neural network is resource-intensive. Additionally, the initial pool of augmentations still requires human selection. Future research will focus on improving RL efficiency and developing automated methods for selecting base augmentation operations.
Summary updated