Abstract
Multimodal generative AI systems like Stable Diffusion, DALL-E, and MidJourney have fundamentally changed how synthetic images are created. These tools drive innovation but also enable the spread of misleading content, false information, and manipulated media. As generated images become harder to distinguish from photographs, detecting them has become an urgent priority. To combat this challenge, we release MS COCOAI, a novel dataset for AI-generated image detection consisting of 96,000 real and synthetic datapoints, built using the MS COCO dataset. To generate synthetic images, we use five generators: Stable Diffusion 3, Stable Diffusion 2.1, SDXL, DALL-E 3, and MidJourney v6. Based on the dataset, we propose two tasks: (1) classifying images as real or generated, and (2) identifying which model produced a given synthetic image.
Introduction
As generative AI models become increasingly sophisticated, the "uncanny valley" is shrinking. We are reaching a point where synthetic images are nearly indistinguishable from reality, posing significant risks for misinformation and digital fraud. A major gap in current research is that existing detection datasets often lack semantic alignment. In many older datasets, a machine learning model might simply learn to recognize specific subjects as "fake" rather than identifying the actual artifacts of AI generation. To truly solve the detection problem, we need datasets where the real and fake images depict the exact same thing, allowing models to isolate the subtle textures and noise patterns unique to AI.
The MS COCOAI Dataset
The primary contribution of this research is the MS COCOAI dataset, which provides a structured approach to building a "fair" fight between human-captured and AI-generated content. The dataset consists of 96,000 image-caption pairs, including 16,000 real images from the classic MS COCO dataset and 80,000 synthetic images (16,000 from each of the five generators: Stable Diffusion 3, Stable Diffusion 2.1, SDXL, DALL-E 3, and MidJourney v6).
To ensure detection models aren't easily fooled by simple edits, the researchers also created variants of the images using horizontal flips, brightness changes, Gaussian noise, and JPEG compression. The dataset is hosted on Hugging Face.
Semantic Alignment and AI Fingerprints
By ensuring the real photo and the AI image share the same caption (e.g., "people riding mopeds"), the researchers eliminate "content bias." This forces the detector to look at how the image was made, not what is in the image. This approach allows for the identification of "AI fingerprints"—subtle textures and high-frequency noise patterns that are often invisible to humans but characteristic of how AI "paints" an image.
Experimental Results
The researchers established a baseline using a ResNet-50 classifier trained on the frequency domain (via 2D Fourier Transforms). This technique looks for "rhythms" in the pixel data. The model was tested on two distinct tasks:
- Task A (Binary Classification): The model achieved a score of 0.80144, suggesting that even a relatively simple architecture can distinguish AI from reality with decent accuracy when trained on high-quality, aligned data.
- Task B (Model Identification): The score dropped to 0.44913. Identifying exactly which AI (e.g., SDXL vs. DALL-E 3) generated an image is a much more complex "forensic" challenge that current baselines struggle to solve.
Limitations and Future Work
While MS COCOAI is a major step forward, several areas for growth remain. Current baselines use standard architectures; more advanced "foundation models" like CLIP or cross-modal architectures might yield better results. Furthermore, real-world images on social media often undergo aggressive compression and filtering, which can erase AI fingerprints. As generators evolve, detection datasets will need constant updates to include the latest architectural fingerprints.
Summary updated