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

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.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-25
DOI
https://doi.org/10.20944/preprints202611.2670.v1
Primary Topic
Digital Media Forensic Detection
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

Dikshant Bikram Thapa
Preprints.org
Digital Media Forensic Detection
preprint

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

Dikshant Bikram Thapa
preprint en

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.

Preprints.org
Digital Media Forensic Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon