[Paper Review] On the detection of synthetic images generated by diffusion models
This paper investigates the detectability of synthetic images generated by diffusion models (DMs), revealing that while DM-generated images exhibit subtle forensics traces similar to GANs, state-of-the-art detectors trained exclusively on GANs perform poorly on DM images—especially under real-world conditions like compression and resizing. The study demonstrates that detectors fine-tuned on DM-specific data achieve high detection accuracy (e.g., 97.2% AUC on Stable Diffusion), but generalization across diverse DM architectures remains a major challenge.
Over the past decade, there has been tremendous progress in creating synthetic media, mainly thanks to the development of powerful methods based on generative adversarial networks (GAN). Very recently, methods based on diffusion models (DM) have been gaining the spotlight. In addition to providing an impressive level of photorealism, they enable the creation of text-based visual content, opening up new and exciting opportunities in many different application fields, from arts to video games. On the other hand, this property is an additional asset in the hands of malicious users, who can generate and distribute fake media perfectly adapted to their attacks, posing new challenges to the media forensic community. With this work, we seek to understand how difficult it is to distinguish synthetic images generated by diffusion models from pristine ones and whether current state-of-the-art detectors are suitable for the task. To this end, first we expose the forensics traces left by diffusion models, then study how current detectors, developed for GAN-generated images, perform on these new synthetic images, especially in challenging social-networks scenarios involving image compression and resizing. Datasets and code are available at github.com/grip-unina/DMimageDetection.
Motivation & Objective
- To assess whether diffusion model-generated images contain detectable forensics traces similar to those in GAN-generated images.
- To evaluate the robustness of existing state-of-the-art GAN-based detectors on diffusion model-generated images under realistic conditions such as compression and resizing.
- To investigate whether training detectors on DM-generated data improves detection performance across diverse diffusion architectures.
- To explore fusion and calibration techniques for enhancing detector generalization across multiple synthetic image sources.
Proposed method
- Generated a large-scale dataset of synthetic images using state-of-the-art text-to-image diffusion models, including DALL·E 2, Stable Diffusion, GLIDE, and ADM.
- Applied realistic image laundering procedures—random cropping, resizing to 200×200 pixels, and JPEG compression with quality factors between 65 and 100—to simulate social media processing.
- Trained and evaluated deep learning-based detectors, including Grag2021, on both GAN and DM-generated images under ideal and challenging conditions.
- Fused predictions from models trained on different source types (e.g., ProGAN and Latent Diffusion) to improve cross-architecture detection.
- Applied Platt scaling for probability calibration to improve detection accuracy in low-precision regimes.
- Conducted ablation studies to compare detector performance across different diffusion models and training regimes.
Experimental results
Research questions
- RQ1Do diffusion model-generated images exhibit detectable forensics traces analogous to those in GAN-generated images?
- RQ2How do current state-of-the-art GAN-based detectors perform when detecting diffusion model-generated images under realistic image processing (e.g., compression and resizing)?
- RQ3To what extent does training a detector on a specific diffusion model improve its ability to detect images from similar or different diffusion architectures?
- RQ4Can model fusion and calibration significantly improve detection accuracy across diverse synthetic image sources?
Key findings
- Diffusion model-generated images do exhibit detectable forensics traces, but these traces vary significantly across different diffusion architectures, such as DALL·E 2 and ADM, which show weaker artifacts.
- State-of-the-art GAN-based detectors perform poorly on DM-generated images under realistic conditions, with accuracy dropping to around 50% on average, indicating poor generalization.
- Detectors trained specifically on Latent Diffusion or Stable Diffusion achieve near-perfect detection performance (AUC > 99.8%) on their respective source models, demonstrating the importance of source-specific training.
- Fusion of models trained on different sources improves AUC to 94.1% on average, but accuracy remains low (64.5%) due to suboptimal thresholding.
- Calibration via Platt scaling significantly improves accuracy (up to 87.8%) after fusion, but detection remains unreliable for models with distinct artifact profiles, such as DALL·E 2 and ADM.
- The study confirms that generalization across diverse diffusion models remains a critical challenge, even with advanced fusion and calibration techniques.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.