通过调控语义信息提升CLIP在生成图像检测中的跨域泛化能力
When Semantics Regulate: Rethinking Patch Shuffle and Internal Bias for Generated Image Detection with CLIP
- 利用补丁打乱破坏全局语义连贯性,保留局部生成痕迹
- 在AIGCDetectBenchmark和GenImage上达到当前最优跨域性能
- 适合需要鲁棒生成图像检测的AI安全与内容审核场景
GAN和扩散模型的快速发展给生成图像检测带来新挑战。尽管基于CLIP的检测器表现出良好泛化能力,但常依赖语义线索而非生成伪影,导致分布偏移下性能脆弱。本文重新审视语义偏差,发现补丁打乱对CLIP有异常强的增益:它破坏全局语义连续性,同时保留局部生成特征,降低语义熵并使自然与合成图像的特征分布趋于一致。层级分析显示,一旦抑制语义偏差,CLIP深层语义结构可作为调节器稳定跨域表示。基于此,我们提出SemAnti——冻结语义子空间,仅微调对伪影敏感的层,在补乱语义下进行对抗性微调。该方法虽简单,却在AIGCDetectBenchmark和GenImage上实现当前最优跨域泛化表现,证明调控语义是释放CLIP在生成图像检测中潜力的关键。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。