English

When Semantics Regulate: Rethinking Patch Shuffle and Internal Bias for Generated Image Detection with CLIP

Computer Vision and Pattern Recognition 2025-11-25 v1

Abstract

The rapid progress of GANs and Diffusion Models poses new challenges for detecting AI-generated images. Although CLIP-based detectors exhibit promising generalization, they often rely on semantic cues rather than generator artifacts, leading to brittle performance under distribution shifts. In this work, we revisit the nature of semantic bias and uncover that Patch Shuffle provides an unusually strong benefit for CLIP, that disrupts global semantic continuity while preserving local artifact cues, which reduces semantic entropy and homogenizes feature distributions between natural and synthetic images. Through a detailed layer-wise analysis, we further show that CLIP's deep semantic structure functions as a regulator that stabilizes cross-domain representations once semantic bias is suppressed. Guided by these findings, we propose SemAnti, a semantic-antagonistic fine-tuning paradigm that freezes the semantic subspace and adapts only artifact-sensitive layers under shuffled semantics. Despite its simplicity, SemAnti achieves state-of-the-art cross-domain generalization on AIGCDetectBenchmark and GenImage, demonstrating that regulating semantics is key to unlocking CLIP's full potential for robust AI-generated image detection.

Keywords

Cite

@article{arxiv.2511.19126,
  title  = {When Semantics Regulate: Rethinking Patch Shuffle and Internal Bias for Generated Image Detection with CLIP},
  author = {Beilin Chu and Weike You and Mengtao Li and Tingting Zheng and Kehan Zhao and Xuan Xu and Zhigao Lu and Jia Song and Moxuan Xu and Linna Zhou},
  journal= {arXiv preprint arXiv:2511.19126},
  year   = {2025}
}

Comments

14 pages, 7 figures and 7 tables

R2 v1 2026-07-01T07:52:10.205Z