Preprint
Article

This version is not peer-reviewed.

Frozen CLIP and DINOv2 Features for Detecting AI-Generated Images: The Effect of Layer and Pooling

Submitted:

23 November 2026

Posted:

25 November 2026

You are already at the latest version

Abstract
Several recent detectors of AI-generated images read patch features instead of one global feature, but they fine-tune the network. We isolate the choice with frozen backbones and linear probes on Tiny-GenImage (real images and seven generators), testing transfer to unseen generators and robustness to JPEG compression. With last-layer features and no compression, the mean of patch tokens is worse than the CLS token for CLIP (by 0.09 to 0.17 AUC) and slightly better for DINOv2, where the gain is clear only for the base model. Layer and pooling interact: a CLS token from layer 6 or 9 beats the last layer on clean images in both families (CLIP 0.969 and 0.978 against 0.939; DINOv2-base 0.921 and 0.917 against 0.826), and concatenating the CLS tokens of four layers (a head added after seeing the single-layer results) is the best head in 35 of the 36 backbone-by-condition cells we ran (0.980 and 0.944 clean), including clean-trained probes tested at JPEG quality 50; the exception is CLIP trained on format-equalised images and tested at JPEG quality 50. A JPEG-equalisation control and a 128-pixel bottleneck leave the layer conclusions intact, and registers remove most of DINOv2's patch advantage. Results cover one dataset, linear probes and seven test generators, and rankings are descriptive.
Keywords: 
;  ;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.