Do CNNs Internally Represent Real and Fake Images Differently? A Hidden-Layer Analysis

Moumita Sen Sarma, Pascal Hitzler, Eugene Y. Vasserman
8/12/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Fake/synthetic images are increasingly prevalent, but it remains unclear whether Convolutional Neural Networks (CNNs) process real and fake images in the same internal manner. This work examines the hypothesis that CNNs represent real and fake images differently, such that fake images induce different hidden-layer activation patterns even when semantic content is preserved.

Show full abstract

The hypothesis is evaluated in scene recognition settings using trained CNN models. Dense-layer activations are extracted, and neurosymbolic methods assign semantic labels to selected neurons. For each real test image, corresponding fake images are generated with similar semantic content using object-label-guided text-to-image and image-to-image generation based on Stable Diffusion variants. Paired real-fake activation patterns are then compared statistically. Additional experiments with another dataset, CNN architecture, generative model, and JPEG/blur degradation analysis assess robustness. Results suggest that fake images evoke different hidden-neuron activations, and these differences are not explained only by simple image degradation. Overall, the findings indicate that real and fake images differ in CNN hidden-layer activation behavior at least in some settings, which opens the door for follow-up work on making use of this different behavior to improve fake image detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sarma2026cnns,
  title  = {Do CNNs Internally Represent Real and Fake Images Differently? A Hidden-Layer Analysis},
  author = {Moumita Sen Sarma and Pascal Hitzler and Eugene Y. Vasserman},
  year   = {2026},
  eprint = {2608.14729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.14729v1}
}

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

Discussion