NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Facial Forgery Detection

Harry Cheng, Yangyang Guo, Tianyi Wang, Liqiang Nie, Mohan KankanhalliACM Multimedia 2024

Introduction

The landscape of synthetic media has shifted dramatically with the advent of Diffusion Models (DMs). While Generative Adversarial Networks (GANs) previously dominated the "Deepfake" conversation, models like Stable Diffusion and Midjourney now produce facial forgeries with a level of realism that challenges both human perception and automated detection systems. Most existing research has focused on general diffusion images or older GAN-based fakes, leaving a critical gap in facial forgery detection.

This paper introduces DiFF, the first large-scale benchmark specifically curated for diffusion-generated facial forgeries. By providing over 500,000 high-fidelity images, the researchers aim to provide a robust training ground for the next generation of detectors.

The DiFF Dataset

The DiFF dataset encompasses 537,466 synthetic images and 23,661 pristine images, covering 1,070 celebrity identities. The researchers categorized the forgeries into four distinct conditions to reflect real-world misuse scenarios:

  1. Text-to-Image (T2I): Faces generated entirely from textual prompts.
  2. Image-to-Image (I2I): Replicating a specific identity using diffusion-based refinement.
  3. Face Swapping (FS): Transferring a source identity onto a target face.
  4. Face Editing (FE): Modifying specific attributes (e.g., expression, age) while preserving the original context.
Overview of the four facial forgery types included in the DiFF dataset: Text-to-Image, Image-to-Image, Face Swapping, and Face Editing.

To ensure diversity and technical relevance, the dataset utilizes 13 different state-of-the-art diffusion methods, including Midjourney, SDXL, and specialized techniques like DiffFace and Imagic.

Quantitative breakdown of the DiFF dataset across 13 state-of-the-art diffusion methods.

Edge Graph Regularization (EGR)

Existing detectors often fail because they rely on global image statistics that diffusion models have become adept at mimicking. However, the authors observed that DMs often struggle with high-frequency, intricate facial textures—such as pores and fine wrinkles—resulting in unnaturally smooth surfaces.

To exploit this weakness, the authors proposed Edge Graph Regularization (EGR). This technique incorporates edge graphs (extracted via Sobel operators) into the training process, forcing the neural network to prioritize subtle facial contours and textures. By focusing on these "micro-forgeries," detectors become significantly more resilient to the high-level structural realism of diffusion fakes.

Key Findings and Results

The study revealed several critical insights into the current state of synthetic media:

  • The Human Perception Gap: In a study involving 70 participants, human accuracy dropped below 30% for Face Editing (FE) tasks. This confirms that diffusion-generated modifications are now effectively indistinguishable to the naked eye.
  • Detector Fragility: Standard detectors like Xception, which boast near-perfect accuracy on GAN-based deepfakes, saw their performance plummet to approximately 60% AUC when faced with DiFF without specific retraining.
  • EGR Performance Boost: Integrating EGR into existing architectures (e.g., EfficientNet, F3-Net) yielded a consistent improvement in detection accuracy, typically boosting AUC by 10% to 15% in cross-domain evaluations.
  • Generalization: Models trained on DiFF demonstrated superior generalization capabilities, proving more effective at identifying fakes in other datasets (like DFDC or ForgeryNet) than models trained on older, less diverse benchmarks.

Conclusion

The DiFF dataset and the EGR technique represent a significant step forward in the ongoing "arms race" between forgery generation and detection. As Face Editing emerges as the most challenging category to detect due to its high retention of authentic textures, domain-specific datasets like DiFF are essential for developing robust security measures against the misuse of generative AI.

Summary updated

BibTeX
@inproceedings{cheng2024diffusion,
  author = {Harry Cheng and Yangyang Guo and Tianyi Wang and Liqiang Nie and Mohan Kankanhalli},
  title = {{Diffusion Facial Forgery Detection}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=6SX3BZlpv8},
}
Figure