Skip to main content
QUICK REVIEW

[Paper Review] Detection, Attribution and Localization of GAN Generated Images

Michael Goebel, Lakshmanan Nataraj|arXiv (Cornell University)|Jul 20, 2020
Digital Media Forensic DetectionComputer Science79 references10 citations
TL;DR

This paper proposes a deep learning method that detects, attributes, and localizes GAN-generated images by analyzing co-occurrence matrices of RGB pixel neighborhoods in multiple directions (horizontal, vertical, diagonal). The approach achieves high accuracy—over 97% for ProGAN and StarGAN—on a dataset of over 2.76 million images across five GAN types, even under JPEG compression.

ABSTRACT

Recent advances in Generative Adversarial Networks (GANs) have led to the creation of realistic-looking digital images that pose a major challenge to their detection by humans or computers. GANs are used in a wide range of tasks, from modifying small attributes of an image (StarGAN [14]), transferring attributes between image pairs (CycleGAN [91]), as well as generating entirely new images (ProGAN [36], StyleGAN [37], SPADE/GauGAN [64]). In this paper, we propose a novel approach to detect, attribute and localize GAN generated images that combines image features with deep learning methods. For every image, co-occurrence matrices are computed on neighborhood pixels of RGB channels in different directions (horizontal, vertical and diagonal). A deep learning network is then trained on these features to detect, attribute and localize these GAN generated/manipulated images. A large scale evaluation of our approach on 5 GAN datasets comprising over 2.76 million images (ProGAN, StarGAN, CycleGAN, StyleGAN and SPADE/GauGAN) shows promising results in detecting GAN generated images.

Motivation & Objective

  • Address the growing challenge of detecting realistic GAN-generated images that are indistinguishable from real ones.
  • Overcome limitations of relying on GAN discriminators for detection, which show only 80.4% accuracy in initial tests.
  • Develop a robust method to detect, attribute, and localize GAN manipulations across diverse GAN architectures.
  • Improve generalization under real-world conditions such as JPEG compression and varying image scales.
  • Enable fine-grained localization of GAN-generated regions using patch-based analysis and heatmap visualization.

Proposed method

  • Compute co-occurrence matrices on local RGB pixel neighborhoods in horizontal, vertical, and diagonal directions for each image.
  • Feed the resulting co-occurrence matrices directly into a deep neural network for end-to-end feature learning, avoiding handcrafted features.
  • Use a patch-based strategy with overlapping receptive fields (e.g., 128×128 patches, stride 8) to enable localization of GAN-generated regions.
  • Aggregate patch-level scores by averaging responses for overlapping pixels to generate localization heatmaps.
  • Train a multi-class classifier to attribute images to specific GAN types: ProGAN, StarGAN, CycleGAN, StyleGAN, SPADE/GauGAN, and real images.
  • Apply data augmentation via random JPEG compression (quality factors 75, 85, 90, or none) to improve robustness in real-world scenarios.

Experimental results

Research questions

  • RQ1Can co-occurrence matrices of local pixel neighborhoods effectively detect GAN-generated images across diverse architectures?
  • RQ2How well does the proposed method perform in attributing GAN-generated images to their source GAN model?
  • RQ3To what extent can the method localize GAN-generated regions within an image using patch-based analysis?
  • RQ4How robust is the method under real-world image processing, such as JPEG compression?
  • RQ5Can deep learning models trained on co-occurrence matrices outperform traditional steganalysis or GAN discriminator-based detection?

Key findings

  • The method achieved a classification accuracy of 0.975 for real images and 0.976 for StarGAN-generated images on full-image evaluation without preprocessing.
  • ProGAN detection reached 100% accuracy on full images, while CycleGAN and StarGAN achieved 0.964 and 0.976 respectively.
  • Under JPEG compression (quality 75–90), overall accuracy dropped slightly to 0.8088, but the model remained robust across all GAN types.
  • Localization heatmaps clearly distinguished real (blue) from GAN-generated (red) regions, with consistent spatial patterns across all GAN types.
  • t-SNE visualization of deep features showed clear clustering of real and GAN-generated images, indicating effective feature separation.
  • SPADE/GauGAN and StyleGAN showed lower accuracy (0.902 and 0.975 respectively) in full-image classification, likely due to dataset size, patch size, or training data characteristics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.