Raising the Bar of AI-generated Image Detection with CLIP
About
The aim of this work is to explore the potential of pre-trained vision-language models (VLMs) for universal detection of AI-generated images. We develop a lightweight detection strategy based on CLIP features and study its performance in a wide variety of challenging scenarios. We find that, contrary to previous beliefs, it is neither necessary nor convenient to use a large domain-specific dataset for training. On the contrary, by using only a handful of example images from a single generative model, a CLIP-based detector exhibits surprising generalization ability and high robustness across different architectures, including recent commercial tools such as Dalle-3, Midjourney v5, and Firefly. We match the state-of-the-art (SoTA) on in-distribution data and significantly improve upon it in terms of generalization to out-of-distribution data (+6% AUC) and robustness to impaired/laundered data (+13%). Our project is available at https://grip-unina.github.io/ClipBased-SyntheticImageDetection/
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| AI-generated image detection | GenImage | -- | 173 | |
| AI-generated image detection | Chameleon | Accuracy55.37 | 136 | |
| AI-generated image detection | AIGIBench Mean | Accuracy71.4 | 33 | |
| Fake and manipulated image detection | Synthbuster | Accuracy73.86 | 25 | |
| AI-generated image detection | AIGIBench R3GAN | Accuracy83.5 | 23 | |
| AI-generated image detection | Average Post-processed | AUC64.9 | 23 | |
| AI-generated image detection | Synthbuster | DALL·E 2 Score47.8 | 23 | |
| AI-generated image detection | Average Original | AUC70.4 | 22 | |
| Synthetic Image Detection | WildRF | Balanced Accuracy73.98 | 20 | |
| AI-generated image detection | WildRF (original) | AUC89.4 | 19 |