Déjà VAE: When Do Autoencoder Traces Reveal Generated Images?

Saugat Pandey
11/23/2026
cs.CV
diffusion-flow

Official code: iamsaugatpandey/deja-vae (1 star, Python, MIT, last commit 2026-11-23).

Abstract

A latent diffusion model's output has already passed through its autoencoder, so a second round trip changes it very little. This "déjà vu" underlies reconstruction-based detectors of generated images; we analyse when it reveals a generated image and when it does not.

Show full abstract

Read by a frozen vision foundation model without training, the trace is strongest in intermediate layers, and, unlike pixel-level reconstruction error, it treats blur as a sign of a real image. It belongs to the generator's exact decoder: on Synthbuster, the exact decoders of Stable Diffusion 1.3, 1.4, 2 and XL are the strongest of eight autoencoders and catch 94-100% of their generators' images at a 5% false-alarm rate (SDXL's version identified post hoc), while near-identical versions catch 7-42%. A detector trained only on real photographs and their autoencoder copies matches one trained on 162k generated images on GenImage (+2.3 points, 95% CI [0.9, 3.7]) and complements it in fusion, but one resize with JPEG re-save, or a mild blur, costs it 19-27 points. Two lessons concern benchmarks. The in-the-wild benchmark Chameleon can be solved from image width alone. And on Synthbuster, how the real photographs are matched to the generated images' size decides whether our detector leads or trails (+4.4 or -9.7 points): the matching protocol alone can reverse a detector comparison. Code and per-image scores: https://github.com/iamsaugatpandey/deja-vae

View on arXivView PDF

Code Implementations(1)

MIT
10Python, ShellNov 16, 20261 weeks agoMIT

Similar Papers

Cite this paper

@article{pandey2026dj,
  title  = {Déjà VAE: When Do Autoencoder Traces Reveal Generated Images?},
  author = {Saugat Pandey},
  year   = {2026},
  eprint = {2611.31036},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.31036v1}
}

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/2611.31036.svg)](https://codeofpaper.com/paper/2611.31036)

Discussion