Breaking Semantic Artifacts for Generalized AI-generated Image Detection

Chende Zheng, Chenhao Lin, Zhengyu Zhao, Hang Wang, Xu Guo +2 more
2/3/2026

No official code found. Best implementation: Zig-HS/FakeImageDetection (22 stars, last commit 2026-03-03).

Abstract

With the continuous evolution of AI-generated images, the generalized detection of them has become a crucial aspect of AI security. Existing detectors have focused on cross-generator generalization, while it remains unexplored whether these detectors can generalize across different image scenes, e.g., images from different datasets with different semantics. In this paper, we reveal that existing detectors suffer from substantial accuracy drops in such cross-scene generalization. In particular, we attribute their failures to “semantic artifacts” in both real and generated images, to which detectors may overfit. To break such “semantic artifacts”, we propose a simple yet effective approach based on conducting an image patch shuffle and then training an end-to-end patch-based classifier. We conduct a comprehensive open-world evaluation on 31 test sets, covering 7 Generative Adversarial Networks, 18 (variants of) Diffusion Models, and another 6 CNN-based generative models. The results demonstrate that our approach outperforms previous approaches by 2.08% (absolute) on average regarding cross-scene detection accuracy. We also notice the superiority of our approach in open-world generalization, with an average accuracy improvement of 10.59% (absolute) across all test sets. Our code is available at https://github.com/Zig-HS/FakeImageDetection .

DOISemantic Scholar

Code Implementations(1)

Breaking Semantic Artifacts for Generalized AI-generated Image Detection

220PythonNov 12, 20247 months ago

Similar Papers

Cite this paper

@article{zheng2026breaking,
  title  = {Breaking Semantic Artifacts for Generalized AI-generated Image Detection},
  author = {Chende Zheng and Chenhao Lin and Zhengyu Zhao and Hang Wang and Xu Guo and Shuai Liu and Chao Shen},
  year   = {2026},
  doi    = {10.52202/079017-1903},
  url    = {https://doi.org/10.52202/079017-1903},
  journal = {NEURIPS 2024 2024}
}

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/626829e1ecf7e8541b695e4de61af891c2fd77b1.svg)](https://codeofpaper.com/paper/626829e1ecf7e8541b695e4de61af891c2fd77b1)

Discussion