LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection

Yunpeng Luo, Junlong Du, Ke Yan, Shouhong Ding
2/9/2026

No official code found. Best implementation: jonasricker/aeroblade (73 stars, last commit 2024-12-09). 1 more below.

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 (LaRE2) 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 LaRE2, 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.

View on arXivView PDF

Code Implementations(2)

[CVPR2024] AEROBLADE: Training-Free Detection of Latent Diffusion Images Using Autoencoder Reconstruction Error

7312Python, Jupyter NotebookMar 7, 20241 years ago
autoencodercvprdeepfake-detectiondiffusion-modelslatent-diffusion
luo3300612/LaRECommunity63%
Apache-2.0

Official code for LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection. (CVPR 2024)

545Shell, PythonOct 23, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{luo2026lare,
  title  = {LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection},
  author = {Yunpeng Luo and Junlong Du and Ke Yan and Shouhong Ding},
  year   = {2026},
  eprint = {2403.17465},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.17465},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.17465.svg)](https://codeofpaper.com/paper/2403.17465)

Discussion