Detecting Origin Attribution for Text-to-Image Diffusion Models

Katherine Xu, Lingzhi Zhang, Jianbo Shi

Introduction

As text-to-image (T2I) diffusion models like Midjourney, DALL-E 3, and Stable Diffusion achieve unprecedented levels of photorealism, the ability to distinguish between human-captured and AI-generated content has become a critical forensic necessity. While previous efforts in image forensics focused on identifying GAN-based generations, modern diffusion models present a more complex challenge. This paper explores Origin Attribution: the task of identifying not just if an image is synthetic, but exactly which specific model and configuration produced it.

Methodology

The researchers framed origin attribution as a multi-class classification problem involving 12 state-of-the-art generators and a "real" image category. To identify the most effective feature space for detection, several architectural backbones were evaluated, including EfficientFormer, CLIP, and DINOv2. EfficientFormer emerged as the top performer for this task.

A key innovation in this work is the use of Style Representation. By extracting Gram matrices from a pretrained VGG network—a technique traditionally used in neural style transfer—the authors found that models possess a unique "signature style" or texture bias. Training an attributor on these style features proved more effective than training on raw RGB pixels, achieving an accuracy of 92.80%. Additionally, the study employed mid-level analysis, converting images into Canny edges and depth maps to determine if geometric inconsistencies could serve as reliable indicators of a model's origin.

Datasets

To support this research, a comprehensive dataset of nearly 500,000 AI-generated images was curated. The dataset utilized 5,000 natural scene prompts from MS-COCO and 5,000 surreal prompts generated by GPT-4 to ensure a wide range of semantic content.

Comparison of images generated by the 12 SOTA models used in the attribution benchmark.

The generators included in the benchmark span the evolution of diffusion technology, featuring various iterations of Stable Diffusion (1.5, 2.0, XL, XL Turbo), Latent Consistency Models (LCM), Stable Cascade, Kandinsky 2.1, DALL-E 2 and 3, and Midjourney (versions 5.2 and 6). Ground truth for "real" images was provided by the MS-COCO dataset.

Key Insights and Results

The study yielded several significant findings regarding the digital fingerprints left by diffusion models:

  • High Attribution Accuracy: The top-performing EfficientFormer model achieved 90.96% accuracy across the 13-way classification task, far exceeding the random chance baseline of approximately 7.69%.
  • The Seed Fingerprint: One of the most surprising discoveries was the detectability of initialization seeds. Even within the same model, using a different random starting seed leaves a distinct signature that is detectable with over 98% accuracy.
  • Inference Setting Traces: Beyond the model itself, subtle settings such as the choice of sampling scheduler (e.g., DDIM vs. Euler) also leave traceable artifacts.
Variations in output across different Stable Diffusion versions and sampling schedulers.
  • Resilience to Post-Processing: The attribution traces are remarkably persistent. Even after significant regional editing—such as using Photoshop’s Generative Fill to alter 30-60% of the pixels—the system maintained a 71.91% accuracy rate in identifying the underlying model.

Limitations and Future Outlook

Despite the high accuracy, the researchers noted that attribution performance is somewhat sensitive to the prompt's semantic content. Models trained on natural scenes showed a performance dip when tested on highly surreal imagery. Furthermore, as generative models continue to improve their geometric accuracy and reduce stylized artifacts, the "cat and mouse" game between generators and forensic detectors will likely require even more sophisticated mid-level representations.

Conclusion

This research demonstrates that text-to-image diffusion models leave nearly perfect digital fingerprints. By leveraging style-based representations and modern transformer architectures, it is possible to attribute images to their source models with high precision, even in the face of subsequent editing and varying inference configurations. These findings provide a robust foundation for future AI forensic tools.

Summary updated

BibTeX
@inproceedings{xu2025detecting,
  author = {Katherine Xu and Lingzhi Zhang and Jianbo Shi},
  title = {{Detecting Origin Attribution for Text-to-Image Diffusion Models}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00850},
}
Figure