Towards Generalizable Detector for Generated Image

Qi Cai, Chao Wu, Yonggang Zhang, Jun Yu, Xin-Mei Tian
1/1/2025

No official code found. Best implementation: dav-joy-thon/DEnD-Detection (9 stars).

Abstract

The effective detection of generated images is crucial to mitigate potential risks associated with their misuse. Despite significant progress, a fundamental challenge remains: ensuring the generalizability of detectors.

Show full abstract

To address this, we propose a novel perspective on understanding and improving generated image detection, inspired by the human cognitive process: Humans identify an image as unnatural based on specific patterns because these patterns lie outside the space spanned by those of natural images. This is intrinsically related to out-of-distribution (OOD) detection, which identifies samples whose semantic patterns (i.e., labels) lie outside the semantic pattern space of in-distribution (ID) samples. By treating patterns of generated images as OOD samples, we demonstrate that models trained merely over natural images bring guaranteed generalization ability under mild assumptions. This transforms the generalization challenge of generated image detection into the problem of fitting natural image patterns. Based on this insight, we propose a generalizable detection method through the lens of ID energy. Theoretical results capture the generalization risk of the proposed method. Experimental results across multiple benchmarks demonstrate the effectiveness of our approach. Code is available at https://github.com/dav-joy-thon/DEnD-Detection .

DOISemantic Scholar

Code Implementations(1)

[NeurIPS 2025] This is the official repo of the paper "Towards Generalizable Detector for Generated Image".

90

Similar Papers

Cite this paper

@article{cai2025towards,
  title  = {Towards Generalizable Detector for Generated Image},
  author = {Qi Cai and Chao Wu and Yonggang Zhang and Jun Yu and Xin-Mei Tian},
  year   = {2025},
  doi    = {10.52202/085713-3168},
  url    = {https://doi.org/10.52202/085713-3168},
  journal = {Neural Information Processing Systems}
}

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

Discussion