Regeneration Based Training-free Attribution of Fake Images Generated by Text-to-Image Generative Models

Meiling Li, Zhenxing Qian, Xinpeng Zhang · DOI

TL;DR

This paper introduces a novel "training-free" method to identify which text-to-image generative model created a given fake image. By reconstructing the original text prompt and using it to generate images from candidate models, they can then compare these generated images to the target image to pinpoint its source, offering a scalable and robust solution for accountability in AI-generated content.

What Problem Does This Paper Address?

The rapid advancement of text-to-image generative models (like Stable Diffusion, DALL-E 2, etc.) has led to the creation of highly realistic synthetic images. While these models have numerous beneficial applications, they also pose significant risks, including the potential for misuse in spreading misinformation or creating fake artwork. A crucial challenge is attributing these generated "fake" images back to the specific model that created them. Existing methods often require extensive training on known models, making them impractical for the ever-growing and diverse landscape of generative models, especially in "open-set" scenarios where the source model might be unknown. This paper aims to bridge this gap by providing an efficient and adaptable attribution method.

Methods

The proposed method is "training-free," meaning it doesn't require a dedicated training phase on a dataset of known fake images from specific models. Instead, it leverages a four-step pipeline:

  1. Textual Prompt Inversion: Given a fake image, the first step is to reconstruct the original textual prompt that was likely used to generate it. The paper explores various prompt inversion tools, finding BLIP to be particularly effective in generating readable and relevant prompts.
  2. Candidate Image Pool Generation: The reconstructed prompt is then fed into a set of candidate text-to-image generative models. Each model generates a batch of images based on this prompt, creating a "pool" of candidate images. The number of generated images per model (y) is a tunable parameter.
  3. Similarity Calculation: The core of the method involves measuring the similarity between the original test image and each of the candidate images generated in the previous step. The paper uses CLIP embeddings for feature extraction and cosine similarity to quantify this likeness.
  4. Ranking-based Source Inference: Finally, the similarity scores are aggregated and ranked. The model that generates candidate images most similar to the test image is identified as the most likely source model. The paper proposes three ranking schemes (AVG, BEST, AVG+BEST) and finds that different schemes work best for different models.

Datasets

The paper uses the Flickr30k dataset for generating test prompts. For evaluation, they create a test set of 4,000 fake images, with 1,000 images generated by each of the four models (Stable Diffusion, Latent Diffusion, GLIDE, and DALL-E mini). This test set is shared with a baseline method (DE-FAKE) for fair comparison. The paper also mentions using MSCOCO for training data when evaluating DE-FAKE.

Key Insights and Ideas

  • Prompt Reconstruction is Key: The ability to accurately reconstruct the original text prompt is fundamental. Even with some loss of information during inversion (as seen with the PEZ tool), a good prompt can still lead to effective attribution.
  • Intra-Model Similarity: Images generated by the same text-to-image model tend to be more similar to each other than to images generated by different models, even when using slightly different prompts. This inherent characteristic is what the method exploits.
  • Frequency Domain Clues: While not the primary method, the paper notes that analyzing frequency spectra reveals subtle differences between images generated by different models, hinting at underlying generative fingerprints.
  • Scalability is Achieved: The training-free nature and the ability to add new candidate models without retraining make this approach highly scalable for real-world scenarios with a vast and evolving set of generative models.
  • Robustness to Attacks: The method demonstrates impressive resilience to common image processing attacks like Gaussian blurring, JPEG compression, and resizing, which is crucial for practical applications.

Key Results

  • Comparable Performance to SOTA: The proposed method achieves attribution accuracy comparable to the state-of-the-art training-based method (DE-FAKE), even outperforming it in some scenarios, particularly with natural prompts.
  • High Accuracy: In three-model attribution scenarios, the proposed method achieves an average accuracy of 97.23% with natural prompts and 88.23% with generated prompts. For four-model attribution, these figures are 95.70% and 79.90%, respectively.
  • Robustness: Under common attacks, the proposed method maintains high attribution accuracy, with results like 92.57% accuracy under Gaussian blurring with natural prompts in a three-model scenario.
  • Efficiency: Being training-free, the method significantly reduces the time cost compared to training-based approaches. Test-time attribution takes approximately 3 seconds per image with a candidate pool size of 30.
  • Plug-in Capability: The method can be used as a data augmentation tool to improve the performance of existing training-based attribution methods, boosting DE-FAKE's accuracy and robustness.

Limitations and Future Work

  • Prompt Inversion Quality: The performance is sensitive to the quality of the inverted prompt. While BLIP performs well, further improvements in prompt inversion techniques could enhance attribution accuracy.
  • Candidate Pool Size: There's a trade-off between the number of candidate images generated (y) and attribution accuracy/efficiency. While more images generally lead to better accuracy, they also increase computation time.
  • Inter-model Similarity: Some models, like SD and LD, generate images that are more easily confused with each other, posing a challenge for attribution.
  • Future Work: The authors suggest focusing on developing better prompt inversion methods and exploring more sophisticated similarity calculation functions tailored to the specific "fingerprints" of different generative models. They also aim to improve the handling of scenarios where models produce highly similar outputs.

Summary updated

BibTeX
@misc{li2024regeneration,
  author = {Meiling Li and Zhenxing Qian and Xinpeng Zhang},
  title = {{Regeneration Based Training-free Attribution of Fake Images Generated by Text-to-Image Generative Models}},
  year = {2024},
  eprint = {2403.01489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01489},
}
Figure