atlas

Research map / Image generation / Autoregressive and latent generation

Aligned Datasets Improve Detection of Latent Diffusion-Generated Images

ICLR 2025 · Image generation › Autoregressive and latent generation · approach: Reconstruction-based diffusion image detection · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Builds a latent-diffusion fake-image detector by training a ResNet-50 to separate real images from their VAE reconstructions (no denoising), yielding aligned real/fake data that reduces spurious resolution cues and generalizes across LDMs.

Problem

Fake image detectors for latent diffusion model (LDM) outputs are trained on real/fake datasets that are misaligned in resolution, aspect ratio and content, so detectors learn spurious correlations (e.g., resizing artifacts) and fail under post-processing.

Approach

Create fake images by passing real images only through the LDM autoencoder (encoder then decoder, no UNet/denoising), so each fake is nearly identical to its real counterpart in size, aspect ratio and content, forcing the detector to learn VAE decoder artifacts; optionally batch-synchronize real and reconstructed pairs (Ours-Sync).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on real images paired at the dataset level with their LDM VAE reconstructions instead of iteratively generated fakesResNet-50 fake-image detector · Playgroundaccuracy: 82.13 -> 94.85Helped
Train on real images paired at the dataset level with their LDM VAE reconstructions instead of iteratively generated fakesResNet-50 fake-image detector · Playground (post-processed)accuracy: 24.27 -> 61.25Helped
Add batch-level pairing and identical augmentations for each real image and its reconstruction (ablation)Ours detector · Playground (post-processed)accuracy: 61.25 -> 76.36Helped
Train on fewer aligned examples rather than Corvi's training data (ablation)Ours detector · 1k / 1k training dataTPR@5FPR: 46.51 -> 83.37Helped
Train on shader-generated images and their VAE reconstructions rather than natural-image training data (ablation)Ours (shaders) · Playground (post-processed)accuracy: +28.54Helped
Use shader-generated training images instead of natural-image training images (ablation)Ours (shaders) · Post-processed fake imagesaccuracyHurt
Replace ImageNet initialization with DINO initialization (ablation)ResNet-50 detector trained on aligned data · SDaverage precision: 99.40 -> 99.52Helped
Replace ImageNet ResNet-50 with ImageNet ViT-B/16 (ablation)Detector trained on aligned data · Playgroundaverage precision: 98.54 -> 82.01Hurt
Downsample input images to 256 x 256 (ablation)Ojha-LDM · SD imagesaccuracy: 69.56 -> 29.83Hurt
Downsample input images to 256 x 256 (ablation)Ojha-LDM · Real imagesaccuracy: 54.16 -> 83.58Helped
Use the aligned reconstruction training approach on images from a model with a major VAE architecture differenceOurs detector · FLUX.1-devaccuracy: 9.59%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: MS COCO LSUN RedCaps LAION-Aesthetics whichfaceisreal WikiArt InstructPix2Pix Nights OpenGL fragment shader images CIFAR

Benchmarks: custom test set of real and LDM-generated images (SD, MJ, Kandinsky, Playground, PixelArt-alpha, LCM), with and without

Metrics: accuracy average precision TPR@5FPR

Baselines: AEROBLADE Ojha-ProGAN Ojha-LDM Cozzolino-LDM Corvi DRCT

Builds on: Corvi et al. detector training recipe CLIP linear probing (UnivFD) AEROBLADE latent diffusion models DDIM inversion

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy