NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Jonas Ricker, Denis Lukovnikov, Asja Fischer

TL;DR

AEROBLADE is a simple, training-free method for detecting images generated by Latent Diffusion Models (LDMs) like Stable Diffusion and Midjourney. By measuring how accurately a model's internal autoencoder can reconstruct a given image, it reliably distinguishes between authentic photos and synthetic creations, matching the performance of complex, heavily-trained classifiers.

What Problem Does This Paper Address?

The rise of hyper-realistic text-to-image models has made visual disinformation a pressing threat. While many detection methods exist, they often rely on "learning" specific artifacts from large datasets of real and fake images. This makes them computationally expensive to train and often poor at generalizing to new, unseen models.

Furthermore, the most popular high-resolution generators today are Latent Diffusion Models (LDMs). Unlike standard diffusion models that operate directly on pixels, LDMs work in a compressed "latent space" provided by a pre-trained autoencoder (AE). Despite their ubiquity, forensic tools specifically tailored to exploit the unique architecture of LDMs have been lacking.

Methods

The authors introduce AEROBLADE (AutoEncoder Reconstruction-Based Latent diffusion DEtection). The core intuition is elegant: because an LDM generates images by passing a latent representation through an AE's decoder, the resulting image is, by definition, perfectly representable by that AE.

To detect a fake, AEROBLADE simply:

  1. Takes an image $x$.
  2. Passes it through the Encoder ($\mathcal{E}$) and then the Decoder ($\mathcal{D}$) of a known LDM's autoencoder to produce a reconstruction $\tilde{x}$.
  3. Calculates the reconstruction error $\Delta_{AE}$ using the Learned Perceptual Image Patch Similarity (LPIPS) metric.
Figure 1. Example illustrating the idea behind AEROBLADE. (a) shows a real image from LAION-5B [39] and (d) is generated by Stable Diffusion 2.1 [34]. (b) and (e) are the corresponding reconstructions obtained by passing the original images through the AE of Stable Diffusion 2. (c) and (f) visualize the error between original and reconstruction measured using the LPIPS [60] distance. The reconstruction error is significantly lower for the generated image xSD2.1 than for the real image xreal, which AEROBLADE leverages for detection.

If the error is very low, the image likely originated from that model's pipeline. To handle the "open world" where the specific generator is unknown, the authors propose using a suite of common AEs and taking the minimum reconstruction error ($\Delta_{Min}$) across the set.

Datasets

The researchers evaluated AEROBLADE using a diverse collection of 1,000 real images and 1,000 generated images per model:

  • Real Images: High-quality samples from the LAION-Aesthetics subset of LAION-5B.
  • Open-Source LDMs: Stable Diffusion (versions 1.1, 1.5, and 2.1) and Kandinsky 2.1.
  • Proprietary LDMs: Midjourney (versions 4, 5, and 5.1).

To ensure a fair comparison, they used a "CLIP interrogator" to generate prompts for the synthetic images that matched the content of the real images.

Key Insights and Ideas

  • The Manifold Hypothesis: Autoencoders map images to a constrained "data manifold." Generated images are born on this manifold, so they can be reconstructed almost perfectly. Real images, however, are mapped to the closest point on that manifold, resulting in a higher reconstruction error.
  • Training-Free Efficiency: Unlike state-of-the-art detectors that require training on hundreds of thousands of samples, AEROBLADE requires zero training. It simply uses the components already provided by model creators.
  • Cross-Model Detection: Surprisingly, images from the closed-source Midjourney can be detected with near-perfect accuracy using the autoencoder from Stable Diffusion 2.1. This suggests that different model families often share similar underlying autoencoder architectures or characteristics.
  • Complexity Matters: For real images, reconstruction error increases as the image becomes more complex (e.g., fine textures). For generated images, this correlation is much weaker—even highly complex synthetic regions are reconstructed with high fidelity.

Key Results

AEROBLADE achieved a mean Average Precision (AP) of 0.992 across all tested models.

Metric AEROBLADE Trained Baseline (Corvi et al.) Universal Detector (Ojha et al.)
Mean AP 0.992 1.000 0.774
TPR @ 5% FPR 0.989 0.999 0.343

While a specialized, heavily-trained classifier (Corvi et al.) slightly outperformed it, AEROBLADE significantly beat other "universal" detectors that struggle to generalize. Furthermore, AEROBLADE's qualitative error maps can be used to localize inpainted regions—parts of a real photo that have been modified by AI—because the modified patches will show a distinctively lower reconstruction error than the original surroundings.

Reconstruction error maps can highlight regions of an image that have been inpainted by an LDM.

Limitations and Future Work

The primary limitation is that AEROBLADE works best when you have access to the specific autoencoder used by the generator. While the authors showed that Stable Diffusion's AE works for Midjourney, future proprietary models might use entirely different, private AEs that are harder to proxy.

Additionally, like most forensic methods, AEROBLADE's performance degrades under heavy image perturbations like extreme JPEG compression or blurring. The authors suggest that future work could involve training a simple, lightweight classifier on top of the reconstruction error maps to improve robustness against these common social media processing steps.

Summary updated

BibTeX
@inproceedings{ricker2024aeroblade,
  author = {Jonas Ricker and Denis Lukovnikov and Asja Fischer},
  title = {{AEROBLADE: Training-Free Detection of Latent Diffusion Images Using Autoencoder Reconstruction Error}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure