Skip to main content
QUICK REVIEW

[Paper Review] TequilaGAN: How to easily identify GAN samples

Rafael Valle, Wilson Cai|arXiv (Cornell University)|Jul 13, 2018
Digital Media Forensic DetectionComputer Science9 references12 citations
TL;DR

TequilaGAN proposes a method to detect GAN-generated samples by identifying numerical and statistical signatures that distinguish them from real data. It leverages statistical analysis of pixel values and features like spectral centroids and slopes, along with formal specifications mined from real data, showing that fake samples consistently violate these specifications, enabling reliable detection across MNIST, CIFAR10, music, and speech datasets.

ABSTRACT

In this paper we show strategies to easily identify fake samples generated with the Generative Adversarial Network framework. One strategy is based on the statistical analysis and comparison of raw pixel values and features extracted from them. The other strategy learns formal specifications from the real data and shows that fake samples violate the specifications of the real data. We show that fake samples produced with GANs have a universal signature that can be used to identify fake samples. We provide results on MNIST, CIFAR10, music and speech data.

Motivation & Objective

  • To identify numerical and statistical properties in GAN-generated samples that are imperceptible to visual inspection but reveal their synthetic origin.
  • To develop a method for detecting fake samples using statistical divergence between real and generated data, particularly in pixel intensities and derived features.
  • To mine formal specifications from real data and demonstrate that GAN samples violate these specifications, enabling detection.
  • To evaluate the approach across diverse data modalities, including images (MNIST, CIFAR10), music (Bach chorales), and speech (NIST 2004).
  • To provide a quantitative, non-visual alternative to reliance on qualitative image quality assessment in GAN evaluation.

Proposed method

  • Compute statistical moments (mean, variance, skewness) of pixel intensities and derived features such as spectral centroids and slopes on real and generated samples.
  • Use the Kolmogorov-Smirnov (KS) two-sample test and Jensen-Shannon Divergence (JSD) to compare empirical cumulative distribution functions (CDFs) of real and fake data.
  • Learn formal specifications from real data using feature-based constraints, such as bounds on spectral centroid and slope values, and validate their violation in fake samples.
  • Apply the method to multiple datasets: MNIST, CIFAR10, MIDI files of Bach chorales, and Mel-Spectrograms from the NIST 2004 speech dataset.
  • Train GANs using DCGAN with LSGAN and improved WGAN-GP (IWGAN) objectives to generate samples for comparison.
  • Use a random baseline (e.g., exponential distribution) to assess whether deviations are due to GAN generation or inherent data variation.

Experimental results

Research questions

  • RQ1Can numerical statistical properties of GAN-generated samples be used to reliably distinguish them from real samples, even when visual differences are minimal?
  • RQ2Do GAN-generated samples exhibit systematic deviations in statistical moments of features like spectral centroids and slopes compared to real data?
  • RQ3Can formal specifications derived from real data be used to detect GAN samples by identifying violations of these specifications?
  • RQ4How do different GAN architectures (LSGAN, IWGAN-GP) compare in terms of statistical and specification-based detectability?
  • RQ5To what extent do data compression and non-linear transformations (e.g., log-compression in Mel-Spectrograms) affect the detectability of GAN samples?

Key findings

  • On MNIST, the KS test statistic between real and fake samples (IWGAN) reached 0.21875 with a p-value of 0.080, indicating significant statistical divergence.
  • For the Bach chorales dataset, the JSD between real and fake samples was 0.084, while the Bernoulli baseline showed a JSD of 0.604, confirming that fake samples deviate meaningfully from real data.
  • In speech data (NIST 2004), the KS test statistic between real and fake Mel-Spectrogram intensities was 0.22149 (p-value = 0.0), showing strong statistical difference from real data.
  • Despite high perceptual similarity, fake samples violated formal specifications derived from real data, such as bounds on spectral centroid and slope, which real test data satisfied.
  • The spectral centroid and slope moments of fake samples overlapped significantly with real data distributions, indicating effective approximation of low-level statistics, yet higher-order deviations remained detectable.
  • Even after dynamic range compression in Mel-Spectrograms, the empirical CDFs of real and fake intensities showed significant divergence, especially near the saturating points of the tanh activation function.

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.