TL;DR
DiffusionFace is the first comprehensive dataset specifically designed for analyzing diffusion-based face forgeries, featuring 600,000 images generated across 11 different diffusion models. By benchmarking state-of-the-art deepfake detectors, the paper reveals that existing models struggle to generalize to diffusion-generated faces, exposing a critical vulnerability in current facial authentication security.
What Problem Does This Paper Address?
While the research community has grown adept at detecting traditional GAN- and computer-graphics-based deepfakes, the rapid rise of diffusion models (like Stable Diffusion) has changed the landscape. Diffusion models generate hyper-realistic imagery with significantly fewer obvious visual artifacts, causing traditional detectors to fail.
Furthermore, existing diffusion datasets focus primarily on general imagery (e.g., bedrooms, generic objects) rather than the intricate nuances of human faces, such as expression subtleties, lighting, and skin textures. To bridge this gap, the authors introduce a specialized, large-scale dataset to train and evaluate the next generation of face forgery detectors.
Methods
The authors constructed their dataset by leveraging both Unconditional and Conditional Image Generation techniques across 11 distinct diffusion architectures:
- Unconditional Generation: Models like DDPM, DDIM, PNDM, P2, and LDM synthesize faces entirely from random noise without external guidance.
- Conditional Generation: To mimic real-world forgery scenarios, the authors utilized text prompts (Text2Img), image constraints (Img2Img), context cues (Image Inpainting), and identity/expression manipulation via DiffSwap, a high-fidelity face-swapping framework.
The generation pipeline for these diverse approaches is illustrated below:
Beyond dataset creation, the authors performed a Frequency Analysis using Discrete Fourier Transforms (DFT) to examine the unique spectral footprints left behind by different diffusion algorithms.
Datasets
The primary contribution is the DiffusionFace dataset.
- Source Data: Built upon the high-resolution Multi-Modal-CelebA-HQ dataset (30,000 real images).
- Scale: 600,000 total images (480,000 for training, 120,000 for testing).
- Composition: A balanced mix of 5 unconditional and 6 conditional generation methods, alongside a curated subset of 30,000 "in-the-wild" real-world forgery images collected from the internet.
The breakdown of the dataset composition highlights its diversity:
Key Insights and Ideas
- The Frequency Domain Tells the Truth: Even when diffusion-generated faces look flawless to the human eye, methods like Img2Img, Inpainting, and DiffSwap leave distinct, noticeable artifacts in their high-frequency DFT spectrums. Conversely, Text2Img methods mimic real image spectrums much more closely, making them harder to detect via frequency analysis.
- The Generalization Gap: Detectors trained on one specific diffusion model perform poorly when tested against a different architecture. For instance, a detector trained on standard DDPM completely loses efficacy when facing Latent Diffusion Models (LDM).
- Conditioning Matters for Training: Detectors trained on Image-to-Image (Img2Img) data demonstrate far better generalization capabilities than those trained on Text-to-Image (Text2Img) data, likely because Img2Img forces the model to learn more generalized structural forgery features rather than overfitting to text-prompt artifacts.
Key Results
The authors evaluated 10 state-of-the-art detectors (including CNNDetection, RECCE, and SAIA) across multiple protocols:
- Within-Domain vs. Cross-Model: While detectors achieve near-perfect accuracy (>98% AUC) when tested on the exact model they were trained on, performance drops drastically in cross-model scenarios. For example, a DDPM-trained detector drops to a dismal 54.5% AUC when evaluating LDM images.
- Post-Processing Vulnerability: Real-world perturbations like JPEG compression and Gaussian blur severely degrade detector performance. As shown in the robustness curves, even minor blurring ($\sigma = 1.0$) or standard JPEG compression causes a sharp decline in cross-domain AUC across almost all tested models.
- Cross-Data Performance: When detectors trained on CelebA-HQ were evaluated on the FFHQ dataset, they suffered significant performance degradation, proving that current models overfit heavily to the underlying dataset biases.
Limitations and Future Work
The authors note that despite evaluating a wide array of advanced deepfake detectors, none demonstrate a truly robust level of generality across diverse diffusion architectures and real-world post-processing techniques.
Future research must move away from binary artifact matching and instead focus on developing universal detectors. These future models will need to leverage more robust, invariant features—such as high-level semantic inconsistencies or advanced self-supervised representations—to withstand the rapid evolution of generative AI.
Summary updated