Vulnerability-Aware Spatio-Temporal Learning for Generalizable Deepfake Video Detection

Dat Nguyen, Marcella Astrid, Anis Kacem, Enjie Ghorbel, Djamila Aouada

TL;DR

This paper introduces FakeSTormer, a novel multi-task learning framework for detecting deepfake videos. It tackles the challenge of generalization to unseen deepfake generation methods by explicitly modeling subtle spatio-temporal artifacts using auxiliary branches and a new video-level data synthesis technique.

What Problem Does This Paper Address?

Deepfake videos are becoming increasingly realistic and harder to detect. Traditional methods often rely on binary classifiers trained on specific datasets, which struggle to generalize to new, unseen deepfake generation techniques. This is because these methods might overfit to specific artifacts and fail to capture the subtle spatio-temporal inconsistencies that are becoming more prevalent in high-quality deepfakes. The challenge is to develop detectors that are not only accurate but also robust and generalizable across a wide range of deepfake manipulations.

Methods

The core of FakeSTormer is a multi-task learning framework built upon a revisited TimeSformer backbone. Instead of a single classification head, it incorporates:

  • Standard Classification Head: For overall video classification.
  • Temporal Head (h): A regression branch designed to model "temporal vulnerabilities." It focuses on significant temporal changes in the blending boundary of artifacts, aiming to capture subtle temporal inconsistencies.
  • Spatial Head (g): A regression branch that predicts "spatial vulnerabilities," essentially soft labels indicating the forgery intensity in each frame. This helps balance the spatial and temporal modeling.

To generate high-quality training data and avoid overfitting, the authors introduce:

  • Self-Blended Video (SBV): A video-level data synthesis technique that extends image-based blending methods. It uses a Consistent Synthesized Parameters (CSP) module and a Landmark Interpolation (LI) module to ensure temporal coherence and produce realistic pseudo-fake videos with subtle artifacts.
  • Vulnerability-Driven Cutout Augmentation: This technique masks image patches identified as "vulnerable" (prone to blending artifacts) to regularize training and encourage the model to learn from less obvious regions.

The revisited TimeSformer backbone is modified to decouple spatial and temporal information by introducing specialized spatial and temporal tokens.

Datasets

The paper uses the following datasets:

  • FaceForensics++ (FF++): Used for both training and validation. The authors specifically use the c23 version and generate pseudo-fake data using their SBV method for training.
  • Celeb-DFv2 (CDF)
  • DeepfakeDetection (DFD)
  • Deepfake Detection Challenge Preview (DFDCP)
  • Deepfake Detection Challenge (DFDC)
  • WildDeepfake (DFW)
  • DiffSwap
  • DF40

Key Insights and Ideas

  • Generalization through Fine-Grained Vulnerability Modeling: The key insight is that explicitly modeling subtle "vulnerabilities" (both spatial and temporal) is crucial for generalization. Instead of just classifying as "real" or "fake," the model learns to identify where and when artifacts are most likely to occur.
  • Temporal Coherence in Data Synthesis is Paramount: Simply stacking synthesized images (like in image-based methods) doesn't work well for videos. The SBV method's focus on temporal landmark interpolation is critical for creating realistic pseudo-fakes that don't introduce their own obvious temporal inconsistencies.
  • Multi-Task Learning for Disentanglement: The auxiliary temporal and spatial branches help disentangle different types of artifacts, preventing the model from overfitting to one specific type and improving its ability to handle unseen manipulations.
  • Vulnerability-Driven Augmentation for Robustness: Masking the most vulnerable regions during training forces the model to learn more robust features, making it less susceptible to specific artifact types.

Key Results

  • Superior Generalization: FakeSTormer significantly outperforms state-of-the-art methods on various unseen datasets and manipulation types, demonstrating enhanced generalization capabilities. For instance, on the large-scale DFDC dataset, it shows superior performance.
  • Robustness to Compression: The method maintains strong performance even on heavily compressed videos (FF++ c40), indicating robustness to common real-world degradations.
  • Improved Performance with SBV: Training with the SBV synthesized data significantly boosts the generalization of binary classifiers compared to training with standard fake data.
  • Multi-Shot Inference Benefits: Iterative inference using the temporal head's output for Cutout augmentation leads to a gradual improvement in performance, suggesting the interpretability of the auxiliary branches can be leveraged for better detection.

Limitations and Future Work

  • Computational Cost: While the revisited TimeSformer aims to optimize complexity, deep learning models for video analysis are inherently computationally intensive. The paper notes that increasing the number of frames (T) improves performance but also incurs higher computational cost.
  • Hyperparameter Sensitivity: Although the method shows robustness to hyperparameter settings for loss balancing, finding optimal values might still require tuning.
  • Future Work: The paper suggests exploring more sophisticated data synthesis techniques and further investigating the interpretability of the auxiliary branches for post-analysis. The authors also mention the potential for extending this framework to other video analysis tasks.

Summary updated

BibTeX
@inproceedings{nguyen2025vulnerability,
  author = {Dat NGUYEN and Marcella Astrid and Anis Kacem and Enjie Ghorbel and Djamila Aouada},
  title = {{Vulnerability-Aware Spatio-Temporal Learning for Generalizable Deepfake Video Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=q87oxhF8Xj},
}
Figure