NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Training-free Detection of AI-generated images via Cropping Robustness

Sungik Choi, Hankook Lee, Moontae Lee · DOI

Abstract

As generative models become increasingly sophisticated, distinguishing between real and synthetic imagery has become a critical challenge. Existing detection methods often rely on supervised training, which frequently leads to overfitting on specific model artifacts and poor generalization to unseen architectures. This paper discusses WaRPAD (Wavelet, Resizing, and Patchifying for AI-generated image Detection), a training-free approach that leverages the inherent "cropping robustness" of self-supervised models (SSMs). By measuring the stability of high-frequency representations under wavelet-based perturbations, WaRPAD achieves significant improvements in detection accuracy across a wide range of generative models without requiring any prior training on synthetic datasets.

Introduction

The rapid evolution of generative models—such as Stable Diffusion, Midjourney, and DALL-E—has initiated a "cat-and-mouse" game between creators and detectors. Most current detection frameworks are training-based, meaning they are optimized to recognize specific patterns or file artifacts (e.g., WebP compression) within a training set. This approach suffers from two primary flaws: first, it often fails when images are post-processed (resized or compressed); second, it generalizes poorly to new, proprietary, or "black box" models like Adobe Firefly.

To overcome these hurdles, the authors propose a universal, training-free detector. Instead of learning what a "fake" image looks like, the method identifies the fundamental structural differences in how real versus synthetic images respond to spatial perturbations.

Methodology: The WaRPAD Pipeline

WaRPAD is built on the observation that self-supervised models (SSMs), such as DINOv2, are trained using RandomResizedCrop (RRC) augmentations. To perform well during pre-training, these models must learn representations that are invariant to the slight shifts in high-frequency pixel data caused by cropping and resizing. WaRPAD turns this learned invariance into a diagnostic tool.

1. Rescale and Patchify

The input image is first rescaled and divided into a grid of smaller patches. Analyzing the image in patches rather than as a single entity allows the method to simulate the RRC effect more effectively and provides a more granular signal for detection.

2. Wavelet Perturbation

For each patch, the algorithm applies Haar wavelet decomposition to isolate high-frequency components. It then generates a "perturbed" version of the patch by slightly shifting it along these high-frequency directions. This serves as a "stress test" for the image's structural integrity.

3. Sensitivity Scoring and Aggregation

Both the original and perturbed patches are processed through a pre-trained SSM (typically DINOv2). The algorithm calculates the cosine similarity between the resulting embeddings.

  • Real Images: Tend to have high robustness; the embeddings remain similar despite the perturbation.
  • AI Images: Often exhibit "fragile" high-frequency structures; the embeddings diverge significantly.

The final authenticity score is determined by averaging the similarity scores across all patches.

Experimental Evaluation

The researchers evaluated WaRPAD against 23 different generative models across several major benchmarks, including Synthbuster (9 models including Firefly and Midjourney), GenImage (8 models), and Deepfake-LSUN-Bedroom (10 architectures). They also conducted zero-shot evaluations on the Art Domain (WikiArt) to test performance on non-photographic content.

Key Results

WaRPAD consistently outperformed other training-free baselines, such as AEROBLADE and Manifold Bias:

  • Detection Accuracy: On the Synthbuster benchmark, WaRPAD achieved an average AUROC of 0.834, a substantial improvement over AEROBLADE (0.703).
  • Proprietary Models: The method was exceptionally effective at detecting "black box" models, achieving an AUROC of 0.927 for Adobe Firefly and 0.930 for DALL-E 2.
  • Robustness: The detector maintained high performance even when images were subjected to common corruptions like JPEG compression, blurring, or noise.
  • Backbone Flexibility: While DINOv2 provided the best results, the method proved effective using other backbones like CLIP and SwaV, demonstrating its backbone-agnostic nature.

Discussion and Insights

The success of WaRPAD highlights the "fragility" of AI-generated images. While these images appear photorealistic to the human eye, their high-frequency structures lack the natural consistency found in real-world photography. Foundation models, designed to recognize stable real-world features, are uniquely sensitive to this lack of robustness.

By "recycling" the invariance learned by SSMs during their original training, WaRPAD avoids the pitfalls of supervised learning. It does not need to see a single "fake" image to understand that a synthetic image's high-frequency data is inconsistent with the physical world.

Limitations and Future Work

Despite its strengths, WaRPAD has higher computational costs than simple whole-image detectors because it requires multiple forward passes through a foundation model for its patch-based analysis. Additionally, its effectiveness is currently tied to the input resolution of the backbone model (e.g., 224x224 for DINOv2).

As generative models evolve to specifically mimic the high-frequency statistics of real images, the "robustness gap" may narrow. Future research will likely focus on more sophisticated perturbation strategies and optimizing inference time for high-resolution applications.

Summary updated

BibTeX
@inproceedings{choi2025training,
  author = {Sungik Choi and Hankook Lee and Moontae Lee},
  title = {{Training-free Detection of AI-generated images via Cropping Robustness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UPxyTg7dTL},
}
Figure