[Paper Review] Detecting Images Generated by Diffusers
This paper investigates the detection of images generated by text-to-image diffusion models, demonstrating that simple classifiers like MLPs and CNNs can effectively distinguish generated from real images using CLIP features. Key findings show that models trained on Stable Diffusion data generalize well to GLIDE-generated images, but not vice versa, and that inanimate objects are harder to detect due to higher realism, while linguistic features in captions have minimal impact on detection performance.
This paper explores the task of detecting images generated by text-to-image diffusion models. To evaluate this, we consider images generated from captions in the MSCOCO and Wikimedia datasets using two state-of-the-art models: Stable Diffusion and GLIDE. Our experiments show that it is possible to detect the generated images using simple Multi-Layer Perceptrons (MLPs), starting from features extracted by CLIP, or traditional Convolutional Neural Networks (CNNs). We also observe that models trained on images generated by Stable Diffusion can detect images generated by GLIDE relatively well, however, the reverse is not true. Lastly, we find that incorporating the associated textual information with the images rarely leads to significant improvement in detection results but that the type of subject depicted in the image can have a significant impact on performance. This work provides insights into the feasibility of detecting generated images, and has implications for security and privacy concerns in real-world applications. The code to reproduce our results is available at: https://github.com/davide-coccomini/Detecting-Images-Generated-by-Diffusers
Motivation & Objective
- To investigate the feasibility of detecting images generated by text-to-image diffusion models such as Stable Diffusion and GLIDE.
- To evaluate whether models trained on one generator can generalize to detect images from another generator.
- To analyze the impact of image subject category (animate vs. inanimate) on detection performance.
- To assess whether incorporating textual captions improves detection accuracy.
- To explore linguistic features of captions for potential influence on detection errors.
Proposed method
- Trained Multi-Layer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs) on image features extracted from CLIP or traditional CNNs.
- Used two image-only and two image+text classification setups, with CLIP features for both image and caption in the latter.
- Trained models on generated images from Stable Diffusion and GLIDE using captions from MSCOCO and Wikimedia datasets.
- Evaluated generalization by testing models trained on one generator against images from the other.
- Performed error analysis by categorizing test images into animate and inanimate classes based on Wikipedia ontologies.
- Conducted linguistic analysis of captions using Pearson correlation to assess influence of sentence features on classification outcomes.
Experimental results
Research questions
- RQ1Can simple classifiers detect images generated by diffusion models using CLIP features?
- RQ2Does training on one diffusion model (e.g., Stable Diffusion) enable detection of images from another (e.g., GLIDE)?
- RQ3How does the subject category (animate vs. inanimate) affect detection performance?
- RQ4Does incorporating textual captions improve detection accuracy?
- RQ5Are specific linguistic features in captions correlated with detection errors?
Key findings
- MLPs and CNNs trained on CLIP features can effectively detect generated images from both Stable Diffusion and GLIDE.
- Models trained on Stable Diffusion data generalize well to GLIDE-generated images, but models trained on GLIDE perform poorly on Stable Diffusion images, indicating asymmetric generalization.
- Generated images of inanimate objects (e.g., buildings, roads, rivers) are significantly harder to detect than those of animate subjects (e.g., people, animals), with higher false negative rates.
- There is no strong correlation between linguistic features of captions (e.g., length, complexity) and detection performance, suggesting that image content dominates over text in classification.
- Incorporating textual information into the image+text setup rarely leads to significant improvement in detection accuracy.
- The higher realism of inanimate scene generation makes them more challenging to detect, indicating that image quality and consistency are key factors in detection difficulty.
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.