Parents and Children: Distinguishing Multimodal DeepFakes from Natural Images

Roberto Amoroso, Davide Morelli, Marcella Cornia, Lorenzo Baraldi, Alberto Del Bimbo, Rita Cucchiara

TL;DR

This paper presents a systematic study on detecting deepfakes generated by modern text-to-image diffusion models. The authors introduce COCOFake, a massive dataset of 1.2M generated images, and propose a novel contrastive disentanglement method to separate an image's semantic content from the low-level "fingerprints" left by AI generators, revealing that current fakes are surprisingly easy to spot using high-level visual features.

What Problem Does This Paper Address?

The rapid evolution of diffusion models like Stable Diffusion has made it trivial to generate hyper-realistic images from simple text prompts. While these tools are revolutionary for creators, they also pose significant risks for misinformation and malicious use.

Most existing deepfake detection research has focused on GAN-generated faces. However, modern diffusion models are general-purpose and text-driven. This paper addresses the lack of large-scale benchmarks for these multimodal fakes and investigates a fundamental question: Do we detect deepfakes because they look "weird" at a pixel level (low-level cues), or because their meaning is inconsistent (semantic cues)?

Methods

The authors frame the problem using a "Parents and Children" analogy. A real image (the parent) is associated with several textual captions. These captions are used as prompts for a diffusion model to generate "offspring"—fake images that share the same semantic intent as the parent but differ in their visual execution.

Fig. 1. Overview of our multimodal deepfakes detection setting, in which five subsets of the semantics contained in a given image are employed to generate as many fake images.

Feature Analysis

They first test how well standard pre-trained models (ResNet, ViT, and CLIP) can distinguish real from fake. They use linear probing, where a simple classifier is trained on top of frozen features from these backbones.

Semantics-Style Disentanglement

To understand what the models are learning, the authors propose a contrastive-based learning framework to project images into two distinct latent spaces:

  1. Style Space ($T$): Focuses on low-level perceptual cues (colors, textures, brightness). The goal here is to maximize the distance between real and fake images, regardless of their content.
  2. Semantic Space ($S$): Focuses on the "meaning" of the image. Here, the goal is to pull the parent and its children together into a compact cluster, regardless of whether they are real or fake.
Fig. 2. Schema of our approach for disentangling semantics and style for deepfake detection.

Datasets

The authors introduce COCOFake, a large-scale dataset designed for multimodal deepfake recognition.

  • Source: Based on the MS-COCO dataset.
  • Scale: ~1.2 million generated images.
  • Generators: Stable Diffusion v1.4 and v2.0.
  • Structure: Each real image is paired with five fake images generated from the five original COCO captions.
Fig. 3. Sample images from COCOFake. The leftmost column shows the original (real) image, while the remaining ones show fake images generated by Stable Diffusion v1.4 from each of the five COCO captions.

Key Insights and Ideas

  • The "Percolation" Effect: Surprisingly, high-level contrastive features (like those from CLIP) are significantly more effective at detecting deepfakes than standard classification features (like ResNet trained on ImageNet). The authors hypothesize that low-level generator artifacts "percolate" up into these high-level semantic descriptors.
  • Generator Fingerprints: Diffusion models leave distinct, common low-level traces across all generated images. In the disentangled "Style Space," real and fake images are almost perfectly separable.
  • Semantic Drift: While diffusion models are good at following prompts, they aren't perfect. The authors found that retrieving the exact caption used to generate a fake image is difficult (only ~40-50% success), suggesting the generation process slightly alters or "hallucinates" semantic details.
  • Cross-Model Generalization: A detector trained on images from Stable Diffusion v1.4 generalizes remarkably well to v2.0, indicating that different versions of the same architecture leave similar fingerprints.

Key Results

  • Near-Perfect Detection: Using CLIP-based features, the authors achieved up to 99.68% overall accuracy in distinguishing real images from Stable Diffusion fakes.
  • Disentanglement Success: In the style-focused space ($T$), the models achieved an AUC of over 99% across nearly all settings.
  • The Harder Task: When low-level cues are removed (the semantic space $S$), detection becomes much harder but remains feasible, with AUCs reaching up to 86%. This suggests that even if a generator becomes "perceptually perfect," semantic inconsistencies might still give it away.
  • Failure of GAN Detectors: Existing state-of-the-art detectors designed for GANs performed poorly on diffusion fakes, often yielding AUCs as low as 40-55%, highlighting the need for this new study.

Limitations and Future Work

  • Robustness to Transformations: The authors noted that common image processing—specifically JPEG compression and resizing—can significantly degrade detection performance. A detector that works on a raw file might fail on a compressed social media upload.
  • The "Ideal" Generator: As diffusion models improve, the low-level fingerprints (style) will likely disappear. Future work must focus more on the semantic space ($S$) to identify fakes based on logic and consistency rather than pixel artifacts.
  • Broader Model Coverage: While this study focuses on Stable Diffusion, future benchmarks should include other major players like DALL-E 3 and Midjourney.

Summary updated

BibTeX
@article{amoroso2023parents,
  author = {Roberto Amoroso and Davide Morelli and Marcella Cornia and Lorenzo Baraldi and Alberto Del Bimbo and Rita Cucchiara},
  title = {{Parents and Children: Distinguishing Multimodal DeepFakes from Natural Images}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2023},
}
Figure