Fake It Until You Break It: On the Adversarial Robustness of AI-generated Image Detectors

Sina Mavali, Jonas Ricker, David Pape, Yash Sharma, Asja Fischer, Lea Schönherr · DOI

Introduction

As generative AI (GenAI) becomes capable of creating photorealistic misinformation, the industry has rushed to build "detectors" to distinguish real photos from synthetic ones. Most of these detectors look for "forensic artifacts"—microscopic mathematical patterns left behind by the generation process. However, there is a massive gap between lab performance and real-world utility. In the wild, images are resized and compressed (e.g., when uploaded to social media), and malicious actors will actively try to "break" detectors. This paper investigates whether current detectors are robust enough to handle intentional adversarial evasion in "black-box" scenarios where the attacker doesn't know the detector's internal architecture.

Methodology and Datasets

The researchers conducted a systematic "stress test" of four leading research detectors—Corvi, UnivFD, DRCT-ConvB, and DRCT-CLIP—and one major commercial tool, HIVE. They employed five distinct adversarial attack strategies, including standard Projected Gradient Descent (PGD) and the highly effective Diverse Input Attack (DIM), which incorporates random resizing to make adversarial noise more resilient.

The study utilized three diverse datasets to ensure generalizability:

  • Synthbuster: 1,000 images from nine different diffusion models (e.g., GLIDE, Midjourney, DALL-E).
  • Chameleon: A benchmark featuring high-resolution images that are human-indistinguishable from real photos.
  • GPT-4o: A dataset featuring images from OpenAI’s latest model.
  • RAISE-1k: A source for high-quality, uncompressed "real" images.
Baseline performance (ROC AUC and Accuracy) of the evaluated detectors across various synthetic image generators and benchmarks.

Key Results

The Collapse of Detection Accuracy

While detectors perform exceptionally well on clean images, they prove highly vulnerable to adversarial manipulation. Under the Diverse Input Attack, the average ROC AUC for detectors on Stable Diffusion 1.4 images dropped from a near-perfect 98.0% to a dismal 4.1%.

Resilience to Compression and Degradation

A critical finding is that these attacks remain effective even after images are degraded by social media-style pipelines (JPEG compression, blurring, and downsampling). The Diverse Input Attack "bakes in" adversarial noise at multiple scales, making it incredibly hard for detectors to recover their accuracy even after heavy processing.

Comparison of image degradation levels (None, Medium, High) and the resulting drop in ROC-AUC for various adversarial attack types.

Architectural Insights and Commercial Vulnerability

  • CLIP vs. CNN: Detectors based on the CLIP foundation model (like UnivFD) generalized better to new AI images but were still susceptible to transfer attacks.
  • Asymmetric Vulnerability: It is easier to make a real image look "fake" than vice versa, as detectors often mistake adversarial noise for synthetic artifacts.
  • Commercial Tools: Even proprietary systems like HIVE are vulnerable; researchers dropped its detection accuracy on real images by 47% using a black-box approach.

Discussion: A Path to Defense

The authors tested a defense using RobustCLIP, a version of CLIP trained to be invariant to small perturbations. While standard detectors failed completely under attack, the robust version maintained a 75.7% ROC AUC, albeit with a slight "utility tax" on clean images.

The paper concludes that passive detection alone is likely insufficient. A "defense-in-depth" strategy is required, combining forensic detection with proactive measures like digital watermarking (e.g., C2PA standards) and better contextual risk assessment.

Summary updated

BibTeX
@misc{mavali2024fake,
  author = {Sina Mavali and Jonas Ricker and David Pape and Yash Sharma and Asja Fischer and Lea Schönherr},
  title = {{Fake It Until You Break It: On the Adversarial Robustness of AI-generated Image Detectors}},
  year = {2024},
  eprint = {2410.01574},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.01574},
}
Figure