# AI-Generated Image Detectors Exploit Global Artifacts: Evidence from Inpainting Exchange

DevFeed: [AI-Generated Image Detectors Exploit Global Artifacts: Evidence from Inpainting Exchange](<https://devfeed.tech/articles/ai-generated-image-detectors-exploit-global-artifacts-evidence-from-inpainting-exchange-119993.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2602.00192>)

Author: Elif Nebioglu, Emirhan Bilgi\\c{c}, Adrian Popescu

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [stable-diffusion](<https://devfeed.tech/topics/stable-diffusion.md>), [Image processing](<https://devfeed.tech/topics/image-processing.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Image](<https://devfeed.tech/topics/image.md>), [ai-image-generator](<https://devfeed.tech/topics/ai-image-generator.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [apis](<https://devfeed.tech/tags/apis.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [autoencoder](<https://devfeed.tech/tags/autoencoder.md>), [background](<https://devfeed.tech/tags/background.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bias](<https://devfeed.tech/tags/bias.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [decoder](<https://devfeed.tech/tags/decoder.md>), [detection](<https://devfeed.tech/tags/detection.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [edits](<https://devfeed.tech/tags/edits.md>), [exchange](<https://devfeed.tech/tags/exchange.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [generation](<https://devfeed.tech/tags/generation.md>), [global](<https://devfeed.tech/tags/global.md>), [image](<https://devfeed.tech/tags/image.md>), [image-manipulation](<https://devfeed.tech/tags/image-manipulation.md>)

## AI overview

The study finds that many detectors identify global processing traces rather than the synthesized region: latent-diffusion inpainting's VAE round-trip shifts image spectra, including in unedited areas. Its model-free Inpainting Exchange (INP-X) restores original pixels outside the edit while retaining synthesized content, using a single compositing step. Across 30,000 matched triplets from four datasets and three inpainters, this reduced commercial API accuracy from over 90% to about 55%, and the bias-aware DDA from 97.6% to 58.4%. The authors attribute 97% of the background spectral shift to the autoencoder round-trip. Human accuracy also fell, from 63.8% to 56.2%, but was not eliminated. Mixed-distribution and localization-supervised training improved robustness; detecting INP-X edits remains an open problem.

## Source excerpt

arXiv:2602.00192v2 Announce Type: replace-cross Abstract: Modern diffusion-based inpainting enables realistic, localized image manipulation, raising critical challenges for reliable detection. We show that state-of-the-art AI-generated image detectors largely fail to identify \emph{what} was synthesized and instead exploit a \emph{global} artifact introduced as a side effect of the generation pipeline: latent-diffusion inpainting passes the entire image through a VAE encoder--decoder, inducing a subtle but pervasive spectral shift even in unedited regions. We turn this observation into a simple, model-free diagnostic, \emph{Inpainting Exchange} (INP-X), that restores the original pixels outside the edited region while preserving all synthesized content. To study the effect at scale, we build a benchmark of $30$K matched real, standard-inpainted, and exchanged triplets ($90$K images) spanning four datasets and three inpainters. INP-X requires no model access and is a single compositing step, yet it collapses pretrained detectors, commercial APIs, and bias-aware methods toward chance (commercial APIs: $>$$90\%\!\to\!\sim$$55\%$; the bias-aware DDA: $97.6\%\!\to\!58.4\%$). We give formal propositions linking the effect to high-frequency attenuation from the VAE information bottleneck, and we causally isolate it with a factorial battery and a variance decomposition that attributes $97\%$ of the background spectral shift to the autoencoder round-trip alone. A perceptual study ($n{=}153$) shows the shift is also perceptible to humans, whose accuracy falls from $63.8\%$ to $56.2\%$ ($p{=}0.002$): significantly reduced, though not eliminated. Finally, we show that mechanism-driven mitigations (mixed-distribution and localization-supervised training) improve robustness, but detecting INP-X edits remains an open problem. Our benchmark and code are available at: https://github.com/emirhanbilgic/INP-X