Prefilled responses enhance zero-shot detection of AI-generated images

Zoher Kachwala, Danishjeet Singh, Danielle Yang, Filippo Menczer
5/20/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: Zoher15/Zero-shot-PGT (7 stars, MIT, last commit 2026-04-19).

Abstract

As AI models generate increasingly realistic images, growing concerns over potential misuse underscore the need for reliable detection. Traditional supervised detection methods depend on large, curated datasets for training and often fail to generalize to novel, out-of-domain image generators. As an alternative, we explore pre-trained Vision-Language Models (VLMs) for zero-shot detection of AI-generated images. We evaluate VLM performance on three diverse benchmarks encompassing synthetic images of human faces, objects, and animals produced by 16 different state-of-the-art image generators. While off-the-shelf VLMs perform poorly on these datasets, we find that their reasoning can be guided effectively through simple response prefilling -- a method we call Prefill-Guided Thinking (PGT). In particular, prefilling a VLM response with the task-aligned phrase "Let's examine the style and the synthesis artifacts" improves the Macro F1 scores of three widely used open-source VLMs by up to 24%.

View on arXivView PDF

Code Implementations(1)

MIT

Code for Prefilled responses enhance zero-shot detection of AI-generated images

70PythonMay 19, 20256 months agoMIT
ai-generated-contentai-generated-imagesai-generationai-generatorchain-of-thought+12 more

Similar Papers

Cite this paper

@article{kachwala2025prefilled,
  title  = {Prefilled responses enhance zero-shot detection of AI-generated images},
  author = {Zoher Kachwala and Danishjeet Singh and Danielle Yang and Filippo Menczer},
  year   = {2025},
  eprint = {2506.11031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.11031v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.11031.svg)](https://codeofpaper.com/paper/2506.11031)

Discussion