DiffCoR: Exposing AI-Generated Image by Using Stable Diffusion Model Based on Consistent Representation Learning
Diffusion-based generative models have significantly advanced the field of image synthesis, presenting additional challenges regarding the integrity and authenticity of digital images. Consequently, the identification of AI-generated images has become a critical problem in image forensics. However, there is a lack of literature addressing the detection of images generated by diffusion models. In this paper, our focus is on developing a model capable of detecting images generated through both GAN techniques and diffusion models. We propose DiffCoR, a novel detection method for identifying AI-generated images. It consists of two main modules: Stable Diffusion Processing (SDP) and Image Representation Learning (IRL). The SDP module uses a pre-trained Stable Diffusion model to reconstruct input images via reverse diffusion and captures subtle manipulations through reconstruction discrepancies. The IRL module applies self-supervised learning with Latent Consistency Loss (LCL) to extract robust, invariant features, ensuring consistent latent representations across augmented views. We also incorporate frequency domain analysis using Discrete Fourier Transform (DFT) to enhance manipulation detection. Additionally, we introduce ForensicsImage, a publicly available dataset of over 400,000 real and AI-generated images from LSUN-Bedroom, CelebA-HQ, CelebDFv2, and various diffusion models. Experiments on ForensicsImage and GenImage show that DiffCoR achieves state-of-the-art performance, with strong cross-dataset generalization, making it suitable for real-world use in digital forensics, content verification, and social media moderation. Our code and dataset are available at https://github.com/nhantran214/diffcor.
Authors
- Hoanh-Su Le (ORCID: https://orcid.org/0000-0002-3132-2550)
- Van-Nhan Tran (ORCID: https://orcid.org/0000-0003-2567-7467)
- Ki‐Ryong Kwon (ORCID: https://orcid.org/0000-0002-1879-748X)
- Suk‐Hwan Lee (ORCID: https://orcid.org/0000-0003-4779-2888)
- Piljoo Choi (ORCID: https://orcid.org/0000-0002-3354-8975)
Institutions
- University of Economics Ho Chi Minh City (VN)
- Ho Chi Minh City University of Law (VN)
- Dong-A University (KR)
- Pukyong National University (KR)
Publication Details
- Journal
- IEEE Open Journal of the Computer Society
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/ojcs.2025.3575507
- Citations
- 1
- Primary Topic
- Brain Tumor Detection and Classification
- Type
- article
- Field-Weighted Citation Impact
- 0.84