Revisiting Reconstruction-based AI-generated Image Detection: A Geometric Perspective

Wan Jiang, Jing Yan, Ruixuan Zhang, Xiaojing Chen, Changtao Miao, Zhe Li, Chenhao Lin, Yunfeng Diao, Richang Hong · OpenReview

Abstract

Diffusion models have recently achieved remarkable photorealism, making it increasingly difficult to distinguish real images from generated ones, raising significant privacy and security concerns. In response, we present a key finding: structural edits enhance the reconstruction of real images while degrading that of generated images, creating a distinctive edit-induced reconstruction error shift. This asymmetric shift enhances the separability between real and generated images. Building on this insight, we propose EIRES, a training-free method that leverages structural edits to reveal inherent differences between real and generated images. To explain the discriminative power of this shift, we derive the reconstruction error lower bound under edit perturbations. Since EIRES requires no training, thresholding depends solely on the natural separability of the signal, where a larger margin yields more reliable detection. Extensive experiments show that EIRES is effective across diverse generative models and remains robust on the unbiased subset, even under post-processing operations.

Introduction

As generative models like Stable Diffusion and Midjourney become more sophisticated, distinguishing "real" from "fake" is increasingly difficult. Traditional detection methods usually fall into two camps: training-based methods, which often fail on unseen models, and reconstruction-based methods. The latter assume real images are harder for an autoencoder to rebuild than generated ones. However, raw reconstruction errors for real and fake images often overlap significantly, leading to unreliable detection. This paper addresses the overlap problem by observing how images react to semantic changes.

Methodology: EIRES

The core of this work is EIRES (Edit-Induced Reconstruction Error Shift). Instead of a passive measurement, EIRES performs an "active probe" using a Multi-Edit (ME) module.

Overview of the EIRES framework and distribution shift.

The system applies three types of structured edits to a query image:

  • Add: Inserting a new object into a masked area.
  • Erase: Removing content and filling it "naturally."
  • SemR: Performing a semantic-guided regeneration of the whole image.
Visual examples of structural edits and error maps.

For each edit, the system calculates the change in reconstruction error using the LPIPS perceptual metric. The Max-Shift Score is then derived. A significant decrease in error (positive shift) suggests the image is real, while an increase or negligible change suggests it is generated.

Geometric Perspective

The authors provide a formal mathematical proof using the "manifold hypothesis." Generated images already lie on the generative manifold; thus, edits displace them away from it. Conversely, real images lie off-manifold, and semantic edits tend to pull them toward the manifold, making them easier for the autoencoder to process. This creates the "Asymmetric Shift" that is key to detection.

Experimental Evaluation

EIRES was evaluated using the GenImage benchmark, containing real images from ImageNet and fakes from eight diverse generators (SD v1.4, SD v1.5, GLIDE, ADM, Wukong, BigGAN, VQDM, and Midjourney).

Key Results

  • Superior Accuracy: EIRES achieved a mean accuracy of 87.6% and an AUROC of 0.941, outperforming popular training-free baselines like AERO (82.8% ACC).
  • Cross-Model Generalization: It was particularly effective on Midjourney and VQDM, where other zero-shot methods often struggle.
  • Robustness: The method remained stable under heavy cropping or JPEG compression.
  • Unbiased Performance: On unbiased datasets where artifacts are removed, EIRES maintained performance, proving it captures fundamental semantic differences.

Conclusion

EIRES introduces a training-free, active probing approach to AI-generated image detection. By leveraging the geometric properties of generative manifolds, it reveals a distinctive asymmetric reconstruction error shift. While computationally more intensive than single-pass methods, its robustness and generalization capabilities make it a powerful tool for modern digital forensics.

Summary updated

BibTeX
@inproceedings{jiang2026revisiting,
  author = {Wan Jiang and Jing Yan and Ruixuan Zhang and Xiaojing Chen and Changtao Miao and Zhe Li and Chenhao Lin and Yunfeng Diao and Richang Hong},
  title = {{Revisiting Reconstruction-based AI-generated Image Detection: A Geometric Perspective}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=XXzv5Pt8Wa},
}
Figure