Skip to content
Preprint

PatchHead: Learning Spatial Patch Evidence for Generalizable AI-Generated Image Detection

Aug 2026 · 0 citations · 20 references
Computer Science

TL;DR

Qualitative analysis suggests that PatchHead reduces class-conditional domain discrepancy, and redirects the representation from content-dominated saliency toward spatially distributed authenticity evidence, which provides a representation-level account of why spatial patch aggregation transfers more reliably across generators and datasets than a single CLS-based global representation.

Abstract

AI-generated image detectors generalize poorly when their training and test images originate from different generators or datasets. Despite the rich spatial representations produced by vision foundation models like DINO, existing detectors typically classify images using only the globally aggregated CLS token. We hypothesize that globally aggregating DINO features into a single CLS token obscures spatially distributed generation traces. To test this hypothesis, we introduce PatchHead, a lightweight spatial aggregation head that preserves the two-dimensional organization of DINO patch tokens and integrates evidence across neighboring regions. During training, we freeze the pretrained DINO backbone and optimize only the inserted LoRA adapters, PatchHead, and auxiliary projection head. Across nine cross-dataset benchmarks spanning manually curated and in-the-wild settings, PatchHead ranks first on seven datasets and second on the remaining two. It improves the strongest prior method from 91.6% to 94.6% in average balanced accuracy (+3.0 points) and raises the worst-case accuracy from 82.4% to 89.4% (+6.9 points), while introducing only 8.6% more trainable parameters and 0.08% additional FLOPs. Further qualitative analysis suggests that PatchHead (i) reduces class-conditional domain discrepancy, and (ii) redirects the representation from content-dominated saliency toward spatially distributed authenticity evidence. Together, these observations provide a representation-level account of why spatial patch aggregation transfers more reliably across generators and datasets than a single CLS-based global representation. Our code and models will be made available upon acceptance.

View source

Similar papers

Preprint Aug 2026

PatchGen: Learning Soft Intra-Image Predictive Subsets for Visual Generalization

Visual classifiers are expected to generalize under data shifts, target shifts, and their combinations, yet most existing methods focus on domain invariance while failing to address intra-image predictive sufficiency. We investigate the structural hypothesis that each image contains a sample-adaptive oracle intra-image...

Zhaorui Tan, Weimiao Yu, Xi Yang · 0 citations
Book Open access Jul 2026

Radial Residual Frequency: A Semantically Aligned Benchmark and Spectral Detector for AI-Generated Images

A data-generation pipeline that captions real photographs with a vision–language model and regenerates them with modern text-to-image systems, producing semantically aligned real/synthetic pairs that isolate generative artifacts from image content is described.

Guang Yang, Qian Zhang, Feng-Chen Liu · 0 citations
Open access Sep 2026

Cross-Resolution Knowledge Distillation for Low-Compute Fine-Grained Bird Classification

The results support cross-resolution KD as a practical way to recover fine-grained information during training while preserving low-resolution inference cost and show that a stronger teacher does not automatically produce a stronger student: transfer quality depends on the balance between teacher supervision strength a...

Chen-Qiang Li · 0 citations
Jul 2026

GlobalForge: Towards Robust AI-Generated Image Detection

The proposed GlobalForge improves average BAcc on 8 in-the-wild benchmark groups by $\mathbf{5.89\%}$ over the previous state-of-the-art, and is clearly ahead of representative baselines on RealDeg-Bench under both single and compound degradations.

Manni Cui, Ruiqi Liu, Dianyuan Zou et al. · 0 citations
Jul 2026

Representation Trajectories Matters: Complementary Evidence for OOD Detection and Image Classification

This work asks whether the resulting computation path contains evidence that the final representation discards, and whether that evidence improves OOD detection and image classification on clean and shifted data, and whether that evidence improves OOD detection and image classification on clean and shifted data.

I. M. De La Jara, Cristian Rodriguez-Opazo, Hamed Damirchi et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.