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

Beilin Chu, Weike You, Mengtao Li, Tingting Zheng, Kehan Zhao +5 more
11/24/2025
cs.CV

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chu2025when,
  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},
  year   = {2025},
  eprint = {2511.19126},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.19126v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.19126.svg)](https://codeofpaper.com/paper/2511.19126)

Discussion