Aligned Datasets Improve Detection of Latent Diffusion-Generated Images
Anirudh Sundara Rajan, Utkarsh Ojha, Jedidiah Schloesser, Yong Jae Lee
Abstract
As latent diffusion models (LDMs) democratize image generation capabilities, there is a growing need to detect fake images. A good detector should focus on the generative model's fingerprints while ignoring image properties such as semantic content, resolution, file format, etc. Fake image detectors are usually built in a data-driven way, where a model is trained to separate real from fake images. Existing works primarily investigate network architecture choices and training recipes. In this work, we argue that in addition to these algorithmic choices, we also require a well-aligned dataset of real/fake images to train a robust detector. For the family of LDMs, we propose a very simple way to achieve this: we reconstruct all the real images using the LDM's autoencoder, without any denoising operation. We then train a model to separate these real images from their reconstructions. The fakes created this way are extremely similar to the real ones in almost every aspect (e.g., size, aspect ratio, semantic content), which forces the model to look for the LDM decoder's artifacts. We empirically show that this way of creating aligned real/fake datasets, which also sidesteps the computationally expensive denoising process, helps in building a detector that focuses less on spurious correlations, something that a very popular existing method is susceptible to. Finally, to demonstrate the effectivenss of dataset alignment, we build a detector using images that are not natural objects, and present promising results. Overall, our work identifies the subtle but significant issues that arise when training a fake image detector and proposes a simple and inexpensive solution to address these problems. For implementation details, visit our project page: anisundar18.github.io/AlignedForensics/.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
- Seeing What Matters: Generalizable AI-generated Video Detection with Forensic-Oriented Augmentation cites Learning Transferable Visual Models From Natural Language Supervision
- No Pixel Left Behind: A Detail-Preserving Architecture for Robust High-Resolution AI-Generated Image Detection cites High-Resolution Image Synthesis with Latent Diffusion Models
- No Pixel Left Behind: A Detail-Preserving Architecture for Robust High-Resolution AI-Generated Image Detection cites Learning Transferable Visual Models From Natural Language Supervision
- Scaling Up AI-Generated Image Detection with Generator-Aware Prototypes cites High-Resolution Image Synthesis with Latent Diffusion Models
- Scaling Up AI-Generated Image Detection with Generator-Aware Prototypes cites Learning Transferable Visual Models From Natural Language Supervision
- X2-DFD: A framework for explainable and extendable Deepfake Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- X2-DFD: A framework for explainable and extendable Deepfake Detection cites Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable
- Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable cites X2-DFD: A framework for explainable and extendable Deepfake Detection
- X2-DFD: A framework for explainable and extendable Deepfake Detection cites Learning Transferable Visual Models From Natural Language Supervision
- Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable cites High-Resolution Image Synthesis with Latent Diffusion Models
- Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable cites Denoising Diffusion Probabilistic Models
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers14
- Dual Data Alignment Makes AI-Generated Image Detector Easier GeneralizableRuoxin Chen, Junwei Xi, Zhiyuan Yan, Ke-Yue Zhang et al.NeurIPS 2025 · 78 citations
- X2-DFD: A framework for explainable and extendable Deepfake DetectionYize Chen, Zhiyuan Yan, Guangliang Cheng, Kangran Zhao et al.NeurIPS 2025 · 43 citations
- Seeing What Matters: Generalizable AI-generated Video Detection with Forensic-Oriented AugmentationRiccardo Corvi, Davide Cozzolino, Ekta Prashnani, Shalini De Mello et al.NeurIPS 2025 · 25 citations
- Scaling Up AI-Generated Image Detection with Generator-Aware PrototypesZiheng Qin, Yuheng Ji, Renshuai Tao, Yuxuan Tian et al.CVPR 2026 · 10 citations
- No Pixel Left Behind: A Detail-Preserving Architecture for Robust High-Resolution AI-Generated Image DetectionLianrui Mu, Haoji Hu, Xingze Zou, Jianhong Bai et al.ICLR 2026 · 5 citations
Builds on21
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
Related papers
- FaithDiff: Unleashing Diffusion Priors for Faithful Image Super-resolutionJunyang Chen, Jinshan Pan, Jiangxin DongCVPR 2025
- A Debiased Reconstruction-based Framework for Training-Free Detection of AI-Generated ImagesSungik Choi, Hankook Lee, Jaehoon Lee, Robin Kim et al.CVPR 2026
- AEROBLADE: Training-Free Detection of Latent Diffusion Images Using Autoencoder Reconstruction ErrorJonas Ricker, Denis Lukovnikov, Asja FischerCVPR 2024 · 33 citations
- DIRE for Diffusion-Generated Image DetectionZhendong Wang, Jianmin Bao, Wengang Zhou, Weilun Wang et al.ICCV 2023 · 479 citations
- WildFake: A Large-Scale and Hierarchical Dataset for AI-Generated Images DetectionYan Hong, Jianming Feng, Haoxing Chen, Jun Lan et al.AAAI 2025 · 13 citations
