LaRE$^2$: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection
Yunpeng Luo, Junlong Du, Ke Yan, Shouhong Ding
TL;DR
This work tackles the rising challenge of distinguishing diffusion-generated images from real ones. It introduces LaRE^2, which combines Latent Reconstruction Error (LaRE) computed via a single-step latent-space denoising with an Error-Guided Feature Refinement (EGRE) that aligns and refines image features through spatial and channel attention. On the GenImage benchmark with eight generators, LaRE^2 achieves state-of-the-art accuracy and average precision, with gains up to 11.9% ACC and 12.1% AP, while delivering about an 8× speedup over prior reconstruction-based detectors. The approach enhances practical robustness by improving generalization to unseen generators and reducing computational cost, making diffusion-generated image detection more scalable for real-world use. Code is available.
Abstract
The evolution of Diffusion Models has dramatically improved image generation quality, making it increasingly difficult to differentiate between real and generated images. This development, while impressive, also raises significant privacy and security concerns. In response to this, we propose a novel Latent REconstruction error guided feature REfinement method (LaRE^2) for detecting the diffusion-generated images. We come up with the Latent Reconstruction Error (LaRE), the first reconstruction-error based feature in the latent space for generated image detection. LaRE surpasses existing methods in terms of feature extraction efficiency while preserving crucial cues required to differentiate between the real and the fake. To exploit LaRE, we propose an Error-Guided feature REfinement module (EGRE), which can refine the image feature guided by LaRE to enhance the discriminativeness of the feature. Our EGRE utilizes an align-then-refine mechanism, which effectively refines the image feature for generated-image detection from both spatial and channel perspectives. Extensive experiments on the large-scale GenImage benchmark demonstrate the superiority of our LaRE^2, which surpasses the best SoTA method by up to 11.9%/12.1% average ACC/AP across 8 different image generators. LaRE also surpasses existing methods in terms of feature extraction cost, delivering an impressive speed enhancement of 8 times. Code is available.
