Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images

  • Problem Photorealistic latent-diffusion images make it hard for people to tell generated photographs from real ones, so this study asks whether a CNN can separate the two.
  • Method Builds a 120,000-image set of CIFAR-10 photographs and Stable Diffusion 1.4 images, trains a CNN to separate them, and uses Grad-CAM heatmaps to show which regions drive each decision.
  • Results The best feature extractor reached 92.98% validation accuracy, and the dense stage's top validation accuracy of 93.55% came from a single layer of 64 neurons, which also had an F1 score of 0.936.

Figure 5: An example of one of the final model architectures following hyperparameter search for the classification of
real or AI-generated images

Figure 5 : An example of one of the final model architectures following hyperparameter search for the classification of real or AI-generated images.

Original paper · CC BY 4.0 · Jordan J. Bird, Ahmad Lotfi · CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images · Original paper figure · Extracted the figure area from page 11 of the original PDF.

Why detecting generated photographs matters

Latent diffusion models now produce photorealistic pictures, and the authors contend that viewers can no longer reliably separate them from camera photographs. Because of this, checking whether an image is authentic has become a practical requirement rather than a niche concern.

The authors link this to concrete harms, such as a generated photograph serving as false alibi evidence or feeding misinformation. They also report that synthetic faces can pass false-acceptance checks and that synthetic signatures can defeat signature verification.

The study frames the question as a binary classification problem, with real photographs and latent-diffusion output as the two classes. Its main question is whether a convolutional network trained on such pairs can make the split, and which network topology performs best. A second question is which image regions the network relies on for each decision, which the study addresses with Grad-CAM.

Building the real and synthetic classes

The real class is drawn from CIFAR-10, which holds 60,000 images in ten classes with 6,000 images per class. Each class contributes 5,000 images to training and 1,000 to testing, and all training images are used for the real class, giving 50,000 training and 10,000 test images. Real images carry label 1 as the positive class.

The synthetic half is generated with Stable Diffusion 1.4, an open-source form of latent diffusion model. The generator is described as reversing a noising process: noise is added to an image until only noise remains, so generation starts from noise and removes it step by step. The study runs this reverse process over 50 steps with the Euler Ancestral scheduler and random seed vectors.

Each prompt starts with "a photograph of" followed by an article and a class-specific modifier, such as "in the forest" for deer.

Generated images are rendered at 512px and then reduced to 32px by bilinear interpolation, so that their resolution matches CIFAR-10.

The two halves give 120,000 images in total, with 60,000 from each source. For classification, 100,000 images are used for training, 50,000 real and 50,000 synthetic, and 20,000 for testing, 10,000 of each.

The authors note that most of the generated samples are hard to tell apart from photographs by eye. The samples also show complex attributes such as depth of field, reflections and motion blur.

Some generated images contain visual glitches, including shapes resembling letters and a jet aircraft with no cockpit window. Anatomical errors also appear on animals, shown through the limbs and eyes of a cat.

Other generated samples show water ripples and reflections of objects that the authors judge realistic.

The CNN, its output and its metrics

The classifier is a convolutional neural network with two parts: convolutional layers that extract features and fully connected layers that make the decision. Each learned filter is followed by a ReLU, which returns max(0, x). Pooling then reduces the spatial size, and the flattened result passes into dense layers.

For an input image x and a filter w, the output at position (i, j) is a sum over an M by N window of pixel values multiplied by filter weights. \\[ (x * w)(i,j) = \\sum_{m=1}^{M}\\sum_{n=1}^{N} x(i+m-1,\\, j+n-1)\\, w(m,n) \\] With a stride of 1 and no padding, the output map has height minus the kernel height plus 1 and width minus the kernel width plus 1.

The network ends in one neuron with a sigmoid activation, which maps any real input into the range between 0 and 1. \\[ \\sigma(x) = \\frac{1}{1+e^{-x}} \\] FAKE is labelled 0 and REAL 1, so the output reads as a likelihood for each class, and the value is rounded to the nearest class at inference. Training aims to reduce binary cross-entropy loss through backpropagation.

Precision is the share of predicted positives that are truly positive, which tracks false positives. \\[ \\text{Precision} = \\frac{\\text{TP}}{\\text{TP}+\\text{FP}} \\] Recall is the share of actual positives that are found, which tracks false negatives. \\[ \\text{Recall} = \\frac{\\text{TP}}{\\text{TP}+\\text{FN}} \\] The authors argue that recall matters most here, because with REAL as the positive class a false negative would wrongly flag a genuine photograph as generated.

The networks are built in TensorFlow, and all seeds are set to 1 for replicability. All training and evaluation runs on a single Nvidia RTX 3080Ti GPU.

Feature extractor search

The first search leaves out dense layers and asks how many filters and convolutional layers the feature extractor needs. Filter counts of 16, 32, 64 and 128 are crossed with one, two and three layers, and each stack is flattened straight into the output neuron. The best of these extractors is then used as the base for the dense-layer search.

Accuracy averaged 91.79% across the feature extractors. The highest, 92.98%, came from two layers of 128 filters, with a loss of 0.221.

The lowest-loss extractor used two layers of 32 filters, which reached 92.93% accuracy and a binary cross-entropy loss of 0.18. Across the grid, the F1 score averaged 0.929, with a highest value of 0.936 and a standard deviation of 0.003.

The study selects the lowest-loss extractor, two layers of 32 filters, rather than the most accurate one. Loss, not accuracy, is therefore the criterion carried into the next stage.

Dense layers on top of the extractor

The study reports training 36 network topologies in total.

The top value, 93.55%, comes from a single layer of 64 neurons.

The lowest validation loss, 0.177, comes from three layers of 64 neurons. The top F1 score, 0.936, comes from a single dense layer of 64 neurons. The F1 scores across this search have a standard deviation of 0.003.

The model chosen for its F1 score is drawn as an example architecture in Figure 5. The drawing lists two Conv2D stages with 32 ReLU units, each followed by max pooling, then a dense layer of 64 units and a sigmoid output.

What Grad-CAM highlights

Grad-CAM uses the gradients of the predicted class with respect to the CNN's feature maps, and averages those gradients spatially to get one weight per map. \\[ L^{c}_{\\text{Grad-CAM}} = \\mathrm{ReLU}\\Big(\\sum_k \\alpha_k A^k\\Big), \\qquad \\alpha_k = \\frac{1}{Z}\\sum_i\\sum_j \\frac{\\partial y^c}{\\partial A^k_{ij}} \\] Here the ReLU keeps only positive contributions and Z is the number of spatial locations, so the result is a heatmap over the input image that follows the predicted class.

The top row of Figure 6 shows real images with their overlays and raw heatmaps, and the bottom row shows AI-generated images. The authors describe real-image maps as holistic, with most of the content contributing, whereas maps for synthetic images are sparser and more atomistic. For synthetic images, activation sits on parts that may carry glitches that the human eye finds hard to recognise.

In a frog image, out-of-focus bokeh is the only cue that marks the image as not real.

For the airplane, bird, frog, horse and ship examples, the object itself has little or no class activation overlay. The authors read this as the entity holding almost no useful features for synthetic-image recognition, and infer that the generator can render a near-perfect version of the subject.

Limitations of the evidence

Grad-CAM readings are visual judgements on selected examples, and the paper gives no quantitative measure of explanation quality.

The text describes 20,000 images as used for testing, but the classifier tables and discussion report validation metrics, so the scores here are validation scores.

The synthetic half comes from one generator, Stable Diffusion 1.4, with the prompt modifiers listed in Table 1. The authors state that newer generators would require updating the dataset.

Attention-based classifiers, human faces and clinical scans are named as future work and are not tested here.

Seeds are fixed to 1, and the paper reports no repeated runs, so run-to-run variation is not part of these results.

Paper info

Authors
Jordan J. Bird, Ahmad Lotfi
Venue
arXiv · Preprint
First published
2023-3-24
Added
2026-11-6
Updated
2023-3-24
Version
v1
arXiv
2303.14126
Category
cs.CV · cs.AI · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Recent technological advances in synthetic data have enabled the generation of images with such high quality that human beings cannot tell the difference between real-life photographs and Artificial Intelligence (AI) generated images. Given the critical necessity of data reliability and authentication, this article proposes to enhance our ability to recognise AI-generated images through computer vision. Initially, a synthetic dataset is generated that mirrors the ten classes of the already available CIFAR-10 dataset with latent diffusion which provides a contrasting set of images for comparison to real photographs. The model is capable of generating complex visual attributes, such as photorealistic reflections in water. The two sets of data present as a binary classification problem with regard to whether the photograph is real or generated by AI. This study then proposes the use of a Convolutional Neural Network (CNN) to classify the images into two categories; Real or Fake. Following hyperparameter tuning and the training of 36 individual network topologies, the optimal approach could correctly classify the images with 92.98% accuracy. Finally, this study implements explainable AI via Gradient Class Activation Mapping to explore which features within the images are useful for classification. Interpretation reveals interesting concepts within the image, in particular, noting that the actual entity itself does not hold useful information for classification; instead, the model focuses on small visual imperfections in the background of the images. The complete dataset engineered for this study, referred to as the CIFAKE dataset, is made publicly available to the research community for future work.

Quote from the paper

Jordan J. Bird, Ahmad Lotfi (2023). CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images. arXiv:2303.14126v1. https://arxiv.org/abs/2303.14126v1

BibTeX
@misc{bird2023cifake,
  title = {{CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images}},
  author = {Jordan J. Bird and Ahmad Lotfi},
  year = {2023},
  eprint = {2303.14126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.14126v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up