AI-generated Image Detection: Passive or Watermark?

Moyang Guo, Yuepeng Hu, Zhengyuan Jiang, Zeyu Li, Amir Sadovnik, Arka Daw, Neil Gong

This paper introduces ImageDetectBench, the first comprehensive benchmark designed to settle a growing debate in AI safety: is it better to detect AI-generated images by looking for subtle "fingerprints" left behind (passive detection) or by proactively embedding hidden signals (watermarking)? By evaluating nine state-of-the-art detectors across diverse datasets and attack scenarios, the authors provide a clear verdict: watermark-based detectors are the superior choice for effectiveness, robustness, and speed.

TL;DR

The authors present ImageDetectBench, a new benchmark that systematically compares passive and watermark-based AI image detectors. Their findings reveal that watermark-based methods consistently outperform passive ones in accuracy, generalize better to new image types, and are significantly faster and more robust against adversarial attacks.

What Problem Does This Paper Address?

As text-to-image models like DALL-E 3 and Stable Diffusion become increasingly realistic, the risk of misinformation grows. To combat this, researchers have developed two main detection strategies:

  1. Passive Detectors: These act like forensic tools, analyzing pixel artifacts or frequency patterns inherent to AI generation.
  2. Watermark-based Detectors: These proactively embed a human-imperceptible signal into the image during or after generation.

Until now, these two worlds rarely met in a head-to-head comparison. We didn't know which was more reliable when an image is compressed, blurred, or intentionally altered by an attacker. This paper fills that gap, providing a standardized framework to evaluate these technologies under identical "threat models."

Methods

The researchers developed a rigorous taxonomy for both detectors and the perturbations used to test them.

Figure 2: Our taxonomy of detectors for AI-generated image detection.
  • Detection Categories: They evaluated five passive detectors (including spatial-domain tools like UnivCLIP and frequency-domain tools like FreqDetect) and four watermark-based detectors (spanning pre-generation, post-generation, and in-generation methods).
  • Perturbation Taxonomy: To simulate real-world use and malicious attacks, they applied 11 types of perturbations, categorized into "Common" (JPEG compression, blur, noise) and "Adversarial" (Black-box and White-box attacks designed to trick the classifier).
  • Evaluation Framework: The benchmark measures False Negative Rate (FNR), False Positive Rate (FPR), overall Accuracy (ACC), visual quality (LPIPS), and computational efficiency (runtime).

Datasets

The authors curated four distinct datasets, each pairing a popular real-world image source with a specific AI generator. To ensure the detectors weren't just identifying "content" (e.g., "this is a cat"), they used the original image captions as prompts for the AI versions.

Table 1: Summary of our datasets. Each dataset includes 11,000 non-AI-generated and 11,000 AI-generated images, with separate columns for training and testing splits.

The datasets include:

  • MS: MSCOCO + Stable Diffusion v2.1
  • GD: Google CC + DALL-E 3
  • FD: Flickr30k + DeepFloyd IF
  • TH: TextCaps + Hunyuan-DiT

Key Insights and Ideas

  • The Generalization Gap: Passive detectors suffer heavily from "out-of-distribution" issues. If a passive detector is trained on Stable Diffusion images but tested on DALL-E 3 images, its accuracy drops by an average of 29%. Watermark detectors, by contrast, are largely indifferent to the underlying image distribution.
  • Resilience to Forgery: It is remarkably difficult to "forge" a watermark onto a real image. While passive detectors can sometimes be tricked into thinking a real photo is AI-generated (a forgery attack), watermark decoders almost never find a valid signal in a non-AI image.
  • The "Smoothed" Advantage: Smoothed StegaStamp emerged as a standout. By using randomized smoothing, it provides certified robustness, making it the most resilient detector against both common image processing and sophisticated adversarial attacks.
  • Passive Detectors Memorize, They Don't Understand: The results suggest passive detectors often memorize content-specific features rather than fundamental AI artifacts, which explains their poor performance on unseen datasets.

Key Results

  • Accuracy: In-distribution, watermark detectors achieved near-perfect accuracy (ACC = 1.00), while the best passive detector (DE-FAKE) reached ~0.96.
  • Efficiency: The most robust watermark detector was two orders of magnitude faster than the most robust passive detector. For example, UnivCLIP takes about 6ms per image, while the caption-based DE-FAKE takes 324ms.
  • Adversarial Robustness: Under white-box attacks (where the attacker knows the detector's architecture), passive detectors were completely broken at very low perturbation levels ($r=0.003$). Watermark detectors required significantly more image distortion to fail, effectively preserving the image's integrity while maintaining detection.
Figure 1: Overview of our ImageDetectBench.

Limitations and Future Work

The authors acknowledge a fundamental limitation: watermarking is not retroactive. It cannot detect the millions of AI images already circulating the web that were generated without watermarks. Furthermore, a determined malicious actor could potentially fine-tune a model to generate images that bypass specific watermarking schemes.

Future work includes extending ImageDetectBench beyond images to other high-risk modalities, such as AI-generated text, audio, and video.

Summary updated

BibTeX
@misc{guo2024ai,
  author = {Moyang Guo and Yuepeng Hu and Zhengyuan Jiang and Zeyu Li and Amir Sadovnik and Arka Daw and Neil Gong},
  title = {{AI-generated Image Detection: Passive or Watermark?}},
  year = {2024},
  eprint = {2411.13553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.13553},
}
Figure