MD-CSDNetwork: Multi-Domain Cross Stitched Network for Deepfake Detection

Aayushi Agarwal, Akshay Agarwal, Sayan Sinha, Mayank Vatsa, Richa Singh

Abstract

As deepfake generation techniques achieve unprecedented levels of realism, traditional spatial-domain detectors struggle to maintain accuracy, particularly when faced with video compression. This paper introduces MD-CSDNetwork, a dual-branch architecture that leverages both spatial (RGB) and frequency (DCT) domains. By utilizing "cross-stitch" units to dynamically share features between these parallel branches, the model achieves state-of-the-art robustness and generalization across various manipulation types and compression levels.

Introduction

The rapid advancement of generative models, such as GANs, has made detecting manipulated media increasingly difficult using only pixel-level spatial data. This challenge is exacerbated when videos are uploaded to social media platforms; the resulting compression often destroys the subtle spatial artifacts that detectors rely on.

However, the upsampling techniques used in generative models often fail to replicate the natural spectral distributions found in real images, leaving behind distinct, unnatural artifacts in the frequency domain. While previous research has often focused on either spatial or frequency data in isolation, MD-CSDNetwork proposes a unified approach that treats these domains as related supervisory signals to improve detection performance and generalizability.

Methodology

The MD-CSDNetwork (Multi-Domain Cross Stitched Network) utilizes an XceptionNet backbone organized into two parallel branches:

  1. Spatial Branch: Processes standard RGB pixel features.
  2. Frequency Branch: Processes log-scaled 2D Discrete Cosine Transform (DCT) spectrum coefficients.

The defining innovation of this architecture is the integration of Cross-Stitch Units placed after the max-pooling layers. Unlike simple late-stage concatenation, these units allow the network to learn an optimal linear combination of activation maps from both branches at multiple depths. This multi-task learning framework enables the model to dynamically decide how much information to share between domains at both low-level and high-level feature extraction stages, adapting to the specific characteristics of different forgery methods.

Key Insights and Frequency Analysis

A central finding of this research is that frequency artifacts remain discriminative even when spatial information is degraded by heavy compression. The authors determined that the Discrete Cosine Transform (DCT) provides a more effective representation for deepfake detection than other frequency transforms like FFT or DWT.

Frequency domain distributions of real vs. manipulated images (NT and F2F).

As shown in the spectral analysis above, real images exhibit a distinct distribution compared to those generated via Neural Textures (NT) or Face2Face (F2F). These spectral signatures allow the MD-CSDNetwork to maintain high accuracy where spatial-only models might fail. Furthermore, Grad-CAM visualizations indicate that combining these domains allows the network to focus on more precise, localized facial regions during the decision-making process.

Experimental Results

In-Dataset Performance

Evaluated on the FaceForensics++ (FF++) dataset, the MD-CSDNetwork achieved a 99.29% AUC on high-quality (HQ) videos. More importantly, it maintained an 89.01% AUC on low-quality (LQ) compressed videos, outperforming several competitive models like $F^3$-Net.

Cross-Dataset Generalization

To test real-world applicability, the model was trained on FF++ and tested on unseen datasets. It achieved an AUC of 0.6877 on Celeb-DF and 0.8951 on DFD. While the drop in performance on Celeb-DF highlights the ongoing challenge of generalization, the results still represent a significant improvement over standard XceptionNet baselines.

Ablation Studies

Ablation tests confirmed the necessity of the dual-branch approach. A model using only the RGB branch achieved a 0.9509 AUC, while the Frequency-only branch reached 0.8114. The full MD-CSDNetwork with cross-stitching significantly outperformed both, proving that intermediate feature sharing is superior to single-domain analysis.

Conclusion

MD-CSDNetwork demonstrates that the frequency domain contains vital cues for deepfake detection that are robust to compression. By employing cross-stitch units to bridge the gap between spatial and spectral features, the model provides a more holistic and generalizable solution for identifying manipulated media. Future work will look to incorporate temporal artifacts to further enhance detection by analyzing inconsistencies across video frames.

Summary updated

BibTeX
@inproceedings{agarwal2021md,
  author = {Aayushi Agarwal and Akshay Agarwal and Sayan Sinha and Mayank Vatsa and Richa Singh},
  title = {{MD-CSDNetwork: Multi-Domain Cross Stitched Network for Deepfake Detection}},
  booktitle = {FG},
  year = {2021},
  url = {https://openreview.net/forum?id=KNoi4ibAtJ},
}
Figure