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

Raising the Bar of AI-generated Image Detection with CLIP

Davide Cozzolino, Giovanni Poggi, Riccardo Corvi, Matthias Nießner, Luisa Verdoliva

Overview

As generative AI tools like DALL-E 3 and Midjourney become increasingly sophisticated, the challenge of distinguishing real from synthetic imagery has grown critical for maintaining information integrity. Traditional forensic detectors often struggle with two primary issues: generalization to unseen models (the out-of-distribution problem) and robustness against common image "laundering" techniques like resizing or JPEG compression.

This research demonstrates that large-scale vision-language models, specifically CLIP, possess an inherent capability for "universal" detection. By leveraging semantic features rather than low-level pixel artifacts, a simple linear classifier trained on CLIP features can achieve state-of-the-art performance with remarkably little training data.

Methodology

The proposed detection strategy is intentionally lightweight to ensure efficiency and ease of deployment:

  • Feature Extraction: The researchers utilize a frozen CLIP (ViT L/14) model. They found that features from the next-to-last layer provide superior descriptive power for forensic tasks compared to the final output layer.
  • Linear Classification: A simple linear SVM is trained on these extracted features.
  • Data Efficiency: Unlike previous methods requiring hundreds of thousands of images, this approach reaches high performance with as few as 1,000 image pairs. It remains viable even in "few-shot" scenarios with only 10 pairs.
  • Detector Fusion: The authors also explored combining CLIP-based semantic detection with traditional low-level artifact detectors. Since these methods focus on different types of "fakeness," they are highly complementary.

Experimental Setup

The method was evaluated against a diverse suite of 18 generative models, including:

  • GANs: ProGAN, StyleGAN family, GigaGAN.
  • Diffusion Models: Stable Diffusion (v1.3 to XL), DALL-E 2, DeepFloyd-IF.
  • Commercial Tools: DALL-E 3, Midjourney v5, and Adobe Firefly.

To test robustness, a "realistic" evaluation set was created by applying random cropping, resizing to 200x200 pixels, and JPEG compression (quality 65-100).

Analysis and Results

A key finding is that the detector's performance scales directly with the size of the dataset used to pre-train the underlying CLIP model. Moving from LAION-400M to CommonPool-12.8B yielded a significant performance boost, suggesting that broader visual knowledge translates to better forensic capabilities.

Performance scaling with pre-training data and training sample size.

Furthermore, the study highlights that the diversity of training data is more impactful than sheer volume. Because CLIP focuses on higher-level semantic inconsistencies rather than fragile low-level "fingerprints," it is much harder to bypass the detector through standard image processing.

Comparison with State-of-the-Art

The CLIP-based approach significantly outperforms existing methods in both generalization and robustness. On average, it achieved a +6% AUC improvement on unseen generators and a massive +13% AUC leap on "laundered" (processed) data.

Comparison of the proposed method against existing state-of-the-art detectors in terms of robustness and generalization.

The detector is particularly effective against modern commercial tools like DALL-E 3 and Midjourney, where traditional forensic tools often fail.

Conclusion and Future Directions

While highly effective, the "black box" nature of CLIP means further research is needed to understand exactly which semantic features are being flagged. Future work will also focus on more sophisticated few-shot adaptation techniques and testing against adversarial attacks specifically designed to deceive CLIP-based features. Despite these challenges, this work sets a new benchmark for accessible and robust AI-generated image detection.

Summary updated

BibTeX
@inproceedings{cozzolino2023raising,
  author = {Davide Cozzolino and Giovanni Poggi and Riccardo Corvi and Matthias Nießner and Luisa Verdoliva},
  title = {{Raising the Bar of AI-generated Image Detection with CLIP}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
}
Figure