CO-SPY: Combining Semantic and Pixel Features to Detect Synthetic Images by AI

Siyuan Cheng, Lingjuan Lyu, Zhenting Wang, Xiangyu Zhang, Vikash Sehwag
2/10/2026

No official code found. Best implementation: Megum1/CO-SPY (44 stars, MIT, last commit 2026-01-08).

Abstract

With the rapid advancement of generative AI, it is now possible to synthesize high-quality images in a few seconds. Despite the power of these technologies, they raise significant concerns regarding misuse. Current efforts to distinguish between real and AI-generated images may lack generalization, being effective for only certain types of generative models and susceptible to post-processing techniques like JPEG compression. To overcome these limitations, we propose a novel framework, CO-SPY, that first enhances existing semantic features (e.g., the number of fingers in a hand) and artifact features (e.g., pixel value differences), and then adaptively integrates them to achieve more general and robust synthetic image detection. Additionally, we create Co-SpyBench, a comprehensive dataset comprising 5 real image datasets and 22 state-of-the-art generative models, including the latest models like FLUX. We also collect 50k synthetic images in the wild from the Internet to enable evaluation in a more practical setting. Our extensive evaluations demonstrate that our detector outperforms existing methods under identical training conditions, achieving an average accuracy improvement of approximately 11% to 34%. The code is available at https://github.com/Megum1/Co-Spy.

View on arXivView PDF

Code Implementations(1)

Megum1/CO-SPYCommunity77%
MIT

[CVPR'25] CO-SPY: Combining Semantic and Pixel Features to Detect Synthetic Images by AI

446Shell, PythonMar 17, 20259 months agoMIT
aigcdeepfake-detectionmachine-learning

Similar Papers

Cite this paper

@article{cheng2026cospy,
  title  = {CO-SPY: Combining Semantic and Pixel Features to Detect Synthetic Images by AI},
  author = {Siyuan Cheng and Lingjuan Lyu and Zhenting Wang and Xiangyu Zhang and Vikash Sehwag},
  year   = {2026},
  eprint = {2503.18286},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.18286},
  journal = {CVPR 2025 2025}
}

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

Discussion