TL;DR
Deepfake detection is moving beyond simple "real vs. fake" binary choices. This paper introduces a hierarchical framework that not only distinguishes real images from AI-generated ones with over 97% accuracy, but also identifies whether they came from a GAN or a Diffusion Model, down to the specific generator architecture.
What Problem Does This Paper Address?
The rapid evolution of generative AI—moving from Generative Adversarial Networks (GANs) to highly photorealistic Diffusion Models (DMs) like Stable Diffusion and DALL-E 2—has outpaced traditional deepfake detectors. Most existing tools are binary (real vs. fake) and struggle to detect DM-generated images because DMs leave entirely different statistical traces than GANs. Furthermore, there is a growing need for "forensic ballistics"—the ability to attribute a fake image to the exact AI model that created it, which is crucial for tracking the source of malicious synthetic media.
Methods
Instead of training a single "flat" classifier to sort images into 14 different categories simultaneously (which yields lower accuracy), the authors propose a multi-level hierarchical approach using ResNet-34 encoders:
- Level 1: A binary classifier separating Real vs. AI-generated images.
- Level 2: If flagged as AI, another binary classifier separates GAN-generated from DM-generated images.
- Level 3: Two specialized sub-modules pinpoint the exact architecture (a 9-class classifier for GANs and a 4-class classifier for DMs).
This divide-and-conquer strategy allows each network to focus on specific feature traces (like convolution artifacts vs. diffusion noise patterns) rather than trying to learn all variations at once.
Datasets
The authors compiled a comprehensive dataset of 83,000 images to train and evaluate their framework:
- Real Images (40,500 total): Sourced from CelebA, FFHQ, and ImageNet.
- GAN Images (22,500 total): 2,500 images each from 9 architectures (AttGAN, CycleGAN, GDWCT, IMLE, ProGAN, StarGAN, StarGAN-v2, StyleGAN, StyleGAN2).
- Diffusion Model Images (20,000 total): 5,000 images each from 4 text-to-image engines (DALL-E 2, GLIDE, Latent Diffusion, and Stable Diffusion).
Key Insights and Ideas
- The Flat Classifier Trap: Trying to classify all 14 categories at once confuses the model, yielding a lower baseline accuracy of ~94.85%. Breaking it into logical hierarchical steps significantly boosts performance.
- DM Traces Break Traditional SOTA: Prior state-of-the-art models fail hard on binary detection when DMs are introduced because they look primarily for GAN-specific convolutional artifacts. DMs operate on iterative denoising, leaving completely different statistical footprints.
- Forensic Attribution is Achievable: The model successfully identifies the specific generative engine, proving that every AI architecture leaves a unique, identifiable "signature" or digital fingerprint on its outputs.
Key Results
The hierarchical ResNet-34 approach achieved outstanding results across all levels, outperforming existing state-of-the-art methods:
- Level 1 (Real vs. AI): 97.63% accuracy.
- Level 2 (GAN vs. DM): 98.01% accuracy.
- Level 3 (GAN Architecture): 97.77% accuracy.
- Level 3 (DM Architecture): 98.02% accuracy.
When compared to existing baselines (like AutoGAN and Fakespotter), the proposed method maintained high accuracy, whereas older methods saw their performance plummet when exposed to Diffusion Models.
Limitations and Future Work
- Real-World Degradation: The current model was evaluated on clean dataset images. Future work needs to test robustness against real-world post-processing like aggressive JPEG compression, resizing, and social media filtering.
- Explaining the Traces: While the deep learning model successfully classifies the images, the authors aim to explicitly isolate and analyze the specific mathematical and statistical anomalies left behind by Diffusion Models to provide better explainability.
Summary updated