FakeInversion: Learning to Detect Images from Unseen Text-to-Image Models by Inverting Stable Diffusion
George Cazenavette, Avneesh Sud, Thomas Leung, Ben Usman
TL;DR
The paper tackles the problem of detecting synthetic images from unseen text-to-image models. It introduces FakeInversion, a diffusion-inversion–based detector that uses the original image $x$ together with a text-conditioned latent noise map $\,\hat{z}_T$ and its reconstructed latent $\hat{z}_0$, decoded as $D(\hat{z}_T)$ and $D(\hat{z}_0)$, as input to a ResNet-50 classifier, with inversion signals obtained via DDIM inversion conditioned on a caption $c$. The method demonstrates strong cross-generator generalization, outperforming prior detectors on both open-source and proprietary models, and a new RIS-based evaluation protocol (SynRIS) is proposed to mitigate theme/style biases and better reflect in-the-wild performance. The paper also provides extensive ablations—including the necessity of the inversion signals and the benefit of text conditioning—and shows robustness to common degradations and transfer to highly stylistically divergent domains. These contributions offer a scalable, bias-aware approach for GenAI safety and establish a publicly available, bias-mpared benchmark for future research.
Abstract
Due to the high potential for abuse of GenAI systems, the task of detecting synthetic images has recently become of great interest to the research community. Unfortunately, existing image-space detectors quickly become obsolete as new high-fidelity text-to-image models are developed at blinding speed. In this work, we propose a new synthetic image detector that uses features obtained by inverting an open-source pre-trained Stable Diffusion model. We show that these inversion features enable our detector to generalize well to unseen generators of high visual fidelity (e.g., DALL-E 3) even when the detector is trained only on lower fidelity fake images generated via Stable Diffusion. This detector achieves new state-of-the-art across multiple training and evaluation setups. Moreover, we introduce a new challenging evaluation protocol that uses reverse image search to mitigate stylistic and thematic biases in the detector evaluation. We show that the resulting evaluation scores align well with detectors' in-the-wild performance, and release these datasets as public benchmarks for future research.
