When Deepfake Detection Meets Graph Neural Network:a Unified and Lightweight Learning Framework

Haoyu Liu, Chaoyu Gong, Mengke He, Jiate Li, Kai Han, Siqiang LuoarXiv 2025 · OpenReview

Abstract

The proliferation of generative video models has made detecting AI-generated and manipulated videos an urgent challenge. Existing detection approaches often fail to generalize across diverse manipulation types due to their reliance on isolated spatial, temporal, or spectral information, and typically require large models to perform well. This paper introduces SSTGNN, a lightweight Spatial-Spectral-Temporal Graph Neural Network framework that represents videos as structured graphs, enabling joint reasoning over spatial inconsistencies, temporal artifacts, and spectral distortions. SSTGNN incorporates learnable spectral filters and spatial-temporal differential modeling into a unified graph-based architecture, capturing subtle manipulation traces more effectively. Extensive experiments on diverse benchmark datasets demonstrate that SSTGNN not only achieves superior performance in both in-domain and cross-domain settings, but also offers strong efficiency and resource allocation. Remarkably, SSTGNN accomplishes these results with up to 42× fewer parameters than state-of-the-art models, making it highly lightweight and resource-friendly for real-world deployment.

Introduction

As generative AI models like Sora and Runway Gen-2 become more sophisticated, deepfakes are becoming increasingly difficult to detect. Most current detection methods suffer from two major flaws: isolation and bloat. They often analyze spatial features (pixels), temporal features (motion), or spectral features (frequency) in isolation, making them susceptible to manipulation that targets only one domain. Furthermore, to achieve high accuracy, researchers often build massive, over-parameterized models that are computationally expensive and fail to generalize to new types of AI-generated content.

The authors propose SSTGNN, a unified and lightweight framework designed to reason about these dimensions simultaneously while remaining efficient enough for real-world deployment.

Methodology: The SSTGNN Framework

The core innovation of this work is the Spatial-Spectral-Temporal Graph Neural Network (SSTGNN). Instead of processing a video as a simple stack of images, the framework represents it as a spatiotemporal graph.

Overview of the SSTGNN framework, illustrating unified graph modeling, spatial-spectral-temporal components, and the learning objective.

The methodology consists of several key components:

  • Unified Graph Modeling: Each video frame is divided into patches that serve as nodes in a graph. Edges are established between similar patches within a frame (spatial) and corresponding patches across frames (temporal).
  • Learnable Spectral Filters: Unlike traditional methods using fixed mathematical transforms (like DCT), SSTGNN employs learnable filters. The model learns which frequency patterns indicate a "fake" based on the graph's structure.
  • Negative Edges: To catch subtle inconsistencies like jitter or abrupt pixel changes, the authors introduce "negative edges." By assigning negative weights to edges where patches differ significantly, the model explicitly amplifies anomalies and temporal glitches characteristic of AI generation.
  • Lightweight Backbone: The system utilizes a truncated ResNet-50 (up to layer 2) and Graph Attention Networks (GATs), keeping the total parameter count remarkably low.

Experimental Setup and Datasets

The researchers evaluated SSTGNN on a comprehensive suite of 13 datasets, covering traditional facial forgeries and modern generative video:

  • Classic Benchmarks: FaceForensics++ (DeepFakes, Face2Face, FaceSwap, NeuralTextures), Celeb-DF, and DFDC.
  • Modern Generative Models: Videos from SEINE, SVD (Stable Video Diffusion), Pika, Gen-2, and Lavie.
  • Real-world/In-the-wild: Wild-DF, MSR-VTT, and Youku-mPLUG.

Key Results and Insights

SSTGNN demonstrates that joint reasoning across spatial, spectral, and temporal domains is essential for robust detection. By treating dissimilarity as a primary feature through negative edges, the model effectively identifies artifacts that isolated methods miss.

Comparison of Accuracy vs. Model Size for SSTGNN and other state-of-the-art models in both in-domain and cross-domain settings.

Key performance metrics include:

  • Ultra-Lightweight Efficiency: SSTGNN has only 2.05 million parameters. As shown in Figure 1, it significantly outperforms much larger models like TALL (86M) and MINTIME (33M) in terms of the accuracy-to-size ratio.
  • Top-Tier Accuracy: It achieved an average AUC of 99.51% across seven major datasets, ranking first against seven state-of-the-art baselines.
  • Superior Generalization: In cross-domain tests, SSTGNN consistently outperformed competitors, proving its ability to generalize beyond specific training datasets.
  • Resource Efficiency: Compared to the runner-up, it reduced training time by 1.27× and GPU memory consumption by 2.20×.

Conclusion and Future Work

SSTGNN proves that high-accuracy deepfake detection does not require massive models. A structured graph representation allows a 2-million-parameter model to outperform heavyweight competitors. While highly effective, future work could explore higher-resolution modeling for 4K video and investigate the model's robustness against adversarial deepfakes specifically designed to bypass graph-based detectors.

Summary updated

BibTeX
@misc{liu2025when,
  author = {Haoyu Liu and Chaoyu Gong and Mengke He and Jiate Li and Kai Han and Siqiang Luo},
  title = {{When Deepfake Detection Meets Graph Neural Network:a Unified and Lightweight Learning Framework}},
  year = {2025},
  eprint = {2508.05526},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05526},
}
Figure