AI-Generated Image Detectors Overrely on Global Artifacts: Evidence from Inpainting Exchange
Elif Nebioglu, Emirhan Bilgiç, Adrian Popescu
TL;DR
The paper reveals that AI-generated image detectors predominantly exploit global artifacts created by VAE-based inpainting, rather than detecting locally synthesized content. It introduces Inpainting Exchange (INP-X), which restores background pixels outside the edited region to remove global cues, and provides a 90K-image benchmark to quantify detector reliance on these artifacts. Theoretical analysis links spectral attenuation to VAE bottlenecks, and empirical results show pretrained detectors—and even commercial APIs—drop from about 0.91 accuracy to around 0.55 under INP-X, highlighting a robustness gap. Training detectors on INP-X improves generalization and localization, underscoring the need for content-aware detection methods and more robust evaluation frameworks that account for realistic post-edits.
Abstract
Modern deep learning-based inpainting enables realistic local image manipulation, raising critical challenges for reliable detection. However, we observe that current detectors primarily rely on global artifacts that appear as inpainting side effects, rather than on locally synthesized content. We show that this behavior occurs because VAE-based reconstruction induces a subtle but pervasive spectral shift across the entire image, including unedited regions. To isolate this effect, we introduce Inpainting Exchange (INP-X), an operation that restores original pixels outside the edited region while preserving all synthesized content. We create a 90K test dataset including real, inpainted, and exchanged images to evaluate this phenomenon. Under this intervention, pretrained state-of-the-art detectors, including commercial ones, exhibit a dramatic drop in accuracy (e.g., from 91\% to 55\%), frequently approaching chance level. We provide a theoretical analysis linking this behavior to high-frequency attenuation caused by VAE information bottlenecks. Our findings highlight the need for content-aware detection. Indeed, training on our dataset yields better generalization and localization than standard inpainting. Our dataset and code are publicly available at https://github.com/emirhanbilgic/INP-X.
