TAP into the Patch Tokens: Leveraging Vision Foundation Model Features for AI-Generated Image Detection
Not on the map. Why?
Abstract (arXiv)
Recent methods demonstrate that large-scale pretrained models, such as CLIP vision transformers, effectively detect AI-generated images (AIGIs) from unseen generative models when used as feature extractors. Many state-of-the-art methods for AI-generated image detection build upon the original CLIP-ViT to enhance this generalization. Since CLIP's release, numerous vision foundation models (VFMs) have emerged, incorporating architectural improvements and different training paradigms. Despite these advances, their potential for AIGI detection and AI image forensics remains largely unexplored. In this work, we present a comprehensive benchmark across multiple VFM families, covering diverse pretraining objectives, input resolutions, and model scales. We systematically evaluate their out-of-the-box performance for detecting fully-generated AI-images and AI-inpainted images, and discover that the best model outperforms the original CLIP by more than 12% in accuracy, beating established approaches in the process. To fully leverage the features of a modern VFM, we propose a simple redesign of the classifier head by utilizing tunable attention pooling (TAP), which aggregates output tokens into a refined global representation. Integrating TAP with the latest VFMs yields substantial performance gains across several AIGI detection benchmarks, establishing a new state-of-the-art on two challenging benchmarks for in-the-wild detection of AI-generated and -inpainted images.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 52 of its 61 references that are in the map. First posted on arXiv 29 Apr 2026.
Builds on
52 of 61 references.
References · 52
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
- 2017Neural Discrete Representation Learningcited by 4,650
38 more
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,784
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,320
- 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
- 2025DINOv3cited by 1,297
- 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,127
- 2021Scaling Vision Transformerscited by 993
- 2019CNN-generated images are surprisingly easy to spot... for nowcited by 842
- 2020Thinking in Frequency: Face Forgery Detection by Mining Frequency-aware Cluescited by 518
- 2020Leveraging Frequency Analysis for Deep Fake Image Recognitioncited by 501
- 2023Towards Universal Fake Image Detectors that Generalize Across Generative Modelscited by 483
- 2023DIRE for Diffusion-Generated Image Detectioncited by 386
- 2023GenImage: A Million-Scale Benchmark for Detecting AI-Generated Imagecited by 318
- 2025Perception Encoder: The best visual embeddings are not at the output of the networkcited by 315
- 2019Detecting and Simulating Artifacts in GAN Fake Imagescited by 293
- 2021Generalizing Face Forgery Detection with High-frequency Featurescited by 261
- 2021Spatial-Phase Shallow Learning: Rethinking Face Forgery Detection in Frequency Domaincited by 241
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 226
- 2020Global Texture Enhancement for Fake Face Detection in the Wildcited by 220
- 2024A Sanity Check for AI-generated Image Detectioncited by 187
- 2022FlexiViT: One Model for All Patch Sizescited by 151
- 2021PSCC-Net: Progressive Spatio-Channel Correlation Network for Image Manipulation Detection and Localizationcited by 133
- 2022TruFor: Leveraging all-round clues for trustworthy image forgery detection and localizationcited by 130
- 2023PatchCraft: Exploring Texture Patch for Efficient AI-generated Image Detectioncited by 119
- 2021Image Manipulation Detection by Multi-View Multi-Scale Supervisioncited by 111
- 2024C2P-CLIP: Injecting Category Common Prompt in CLIP to Enhance Generalization in Deepfake Detectioncited by 111
- 2024Low-Rank Few-Shot Adaptation of Vision-Language Modelscited by 103
- 2024Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detectioncited by 88
- 2021Learning JPEG Compression Artifacts for Image Manipulation Detection and Localizationcited by 78
- 2023IML-ViT: Benchmarking Image Manipulation Localization by Vision Transformercited by 42
- 2023GenDet: Towards Good Generalizations for AI-Generated Image Detectioncited by 36
- 2025OpenSDI: Spotting Diffusion-Generated Images in the Open Worldcited by 23
- 2025Deepfake Detection that Generalizes Across Benchmarkscited by 20
- 2024DeCLIP: Decoding CLIP representations for deepfake localizationcited by 17
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.