Abstract
The generation of high-quality images has become widely accessible and is a rapidly evolving process. As a result, anyone can generate images that are indistinguishable from real ones. This leads to a wide range of applications, including malicious usage with deceptive intentions. Despite advances in detection techniques for generated images, a robust detection method still eludes us. Furthermore, model personalization techniques might affect the detection capabilities of existing methods. In this work, we utilize the architectural properties of convolutional neural networks (CNNs) to develop a new detection method. Our method can detect images from a known generative model and enable us to establish relationships between fine-tuned generative models. We tested the method on images produced by both Generative Adversarial Networks (GANs) and recent large text-to-image models (LTIMs) that rely on Diffusion Models. Our approach outperforms others trained under identical conditions and achieves comparable performance to state-of-the-art pre-trained detection methods on images generated by Stable Diffusion and MidJourney, with significantly fewer required train samples.
Introduction
The explosion of Large Text-to-Image Models (LTIMs) like Stable Diffusion and MidJourney has made it nearly impossible for humans to distinguish real photos from AI-generated ones. While detection tools exist, they face two major hurdles: "Data Hunger," where high-performing detectors require massive datasets (often 700k+ images), and "Model Personalization," where fine-tuning (e.g., DreamBooth) shifts statistical distributions and causes existing detectors to fail.
Researchers have developed a "Deep Image Fingerprint" (DIF) that addresses these issues by exploiting the inherent architectural flaws of the convolutional neural networks (CNNs) used to create synthetic images. DIF achieves state-of-the-art accuracy with as few as 128 images and can even trace the "lineage" of models—proving, for instance, that MidJourney is likely a fine-tuned descendant of Stable Diffusion 1.x.
Methodology: Architecture as Destiny
The core idea rests on the concept of Deep Image Prior. While previous research showed that CNN structures favor natural-looking images, this paper demonstrates that these structures also leave behind deterministic "artifacts"—essentially a digital fingerprint.
The DIF method involves three key steps:
- Artifact Extraction: A U-Net architecture is used to reconstruct a simple gray image. Because the network is imperfect, the reconstruction reveals internal biases, specifically boundary artifacts from padding and up-sampling artifacts from resolution increases.
- Contrastive Learning: A fingerprint extractor is trained using a contrastive loss function. This ensures that residuals from images generated by the same model have highly correlated fingerprints, while residuals from real images or different models do not.
- Hypothesis Testing: To detect a fake, the system compares the fingerprint of a query image against the known fingerprints of a generative model. High correlation flags the image as synthetic from that specific source.
Key Results and Insights
The study evaluated DIF across a wide range of generators, including GANs (StyleGAN2, CycleGAN) and LTIMs (Stable Diffusion, DALL-E 2, MidJourney). The findings highlight several critical advantages of the fingerprinting approach:
- Efficiency and Generalization: DIF achieves 92.8% mean accuracy across LTIMs using only 1,024 training samples. Even with just 128 samples, it maintains 87.5% accuracy, outperforming many state-of-the-art models trained on hundreds of thousands of images. As shown in the comparison below, DIF generalizes significantly better across model versions than existing baselines.
- Model Genealogy: Because fingerprints persist through fine-tuning, DIF can perform "Model Lineage Analysis." Empirical evidence from the study suggests that MidJourney's outputs are highly correlated with Stable Diffusion 1.4, indicating that MJ is likely a fine-tuned version of the SD architecture.
- Robustness: The method remains competitive even when images are compressed via JPEG (quality factor 85), a common tactic used to strip digital evidence from fake images.
Limitations and Future Work
While DIF is highly effective, it has sensitivities. Performance drops significantly with heavy blurring because the fingerprint signal resides in high-frequency components that blurring destroys. Additionally, the method currently requires a few examples from a known model to "enroll" it; it cannot yet detect fakes from completely unknown architectures without prior training.
Future research will focus on making fingerprint extraction more robust to aggressive image augmentations and investigating how different types of normalization layers affect fingerprint strength.
Summary updated