Investigating Shifts in GAN Output-Distributions

Ricard Durall, Janis Keuper

TL;DR

While Generative Adversarial Networks (GANs) are theoretically designed to match real data distributions, in practice they systematically learn shifted, degraded approximations. By introducing an iterative "loop-training" scheme and analyzing low-dimensional sub-distributions (like color histograms), the authors show that GAN outputs drift toward simplistic Gaussian distributions—so much so that simple classifiers can distinguish real from synthetic images using only color histograms with up to 85% accuracy.

What Problem Does This Paper Address?

In theory, GANs optimize an objective (like Jensen-Shannon divergence) that should guarantee convergence to the true data distribution. In reality, evaluating whether a generator actually reproduces the multi-modal richness of high-dimensional image distributions is extraordinarily difficult. Metrics like Fréchet Inception Distance (FID) summarize overall fidelity, but they obscure whether the model is truly capturing the underlying distribution or simply producing visually plausible samples from a restricted sub-manifold.

The authors investigate whether current GANs truly sample from the authentic data distribution, how their output distributions deviate from reality, and why theoretical convergence guarantees fail in practice.

Methods

To expose and magnify systematic distribution shifts, the authors introduce:

  1. Loop-Training Scheme: An iterative training pipeline where a GAN is trained on a dataset, used to generate synthetic images, and those synthetic images become the training set for the next iteration (repeated for 6 cycles). This recursive setup acts as an amplifier for distribution drift.
  2. Observable Sub-Distributions (Color & Class Histograms): Rather than evaluating the full, intractable image space, the authors isolate computable lower bounds:
  3. Averaged Color Histograms: Captures the color distribution across channels while ignoring spatial relationships, measuring divergence ($KL$) between real and generated histograms and their fit to Gaussian distributions.
  4. Class Histograms: Uses a pre-trained classifier to observe category representation and check for mode collapse.
  5. $k$-Means Clustering: Analyzes mode coverage and dropouts in color-space.
  6. Single-Sample Binary Classification: Training standard classifiers (SVM and Random Forest) directly on individual sample color histograms to test whether distribution drift leaves a detectable fingerprint on single images.

Datasets

The authors evaluated several standard image synthesis benchmarks:

  • CIFAR-10 and CIFAR-100
  • STL-10
  • CelebA (evaluated at both $64 \times 64$ and $128 \times 128$ resolutions)
  • Tiny-ImageNet (used for practical scaling)
  • LSUN-Bedroom (trained on a 300K image subset)

No new datasets were introduced; standard benchmarks were used to assess four popular GAN architectures: WGAN-GP, SNGAN, SSGAN, and InfoGAN.

Key Insights and Ideas

  • Iterative Degradation (Loop Collapse): While prolonged training on real data ("long-training") keeps FID stable, feeding generated data back into subsequent GAN iterations causes a steady, near-linear degradation in FID. The synthetic distribution drifts further away from the true data manifold with every step.
  • The "Gaussian Trap": As training loops progress, color sub-distributions systematically flatten and migrate toward unimodal Gaussian curves, stripping away the complex multi-modal distributions present in real data.
  • Severe Class and Intra-Class Collapse: Loop training reveals catastrophic mode drops. On CIFAR-100, roughly half of all classes vanish by iteration 5, and the intra-class variance of remaining classes narrows significantly.
  • Architecture Invariance: Popular remedies—including alternative objectives (Wasserstein loss), advanced regularization (spectral normalization), or auxiliary supervision (SSGAN)—fail to stop this distribution shift.

Key Results

  • Strong Correlation with Quality Drops: A high linear correlation ($R^2 \approx 0.72 - 0.75$) was observed between color histogram divergence ($KL$) and FID score degradation across datasets and architectures.
  • Single-Sample Discriminability: Despite spatial information being completely discarded, off-the-shelf classifiers trained purely on color histograms could reliably identify GAN-generated images from iteration 0:
  • STL-10: 85.00% accuracy (Random Forest) / 82.87% (SVM)
  • Tiny-ImageNet: 82.75% (Random Forest) / 81.00% (SVM)
  • CIFAR-10: 80.37% (Random Forest) / 76.25% (SVM)
  • CIFAR-100: 79.12% (Random Forest) / 77.12% (SVM)
  • CelebA & LSUN: 71% to 76% accuracy across models.

Limitations and Future Work

  • Loss of Spatial Context: Analyzing 1D color distributions and class statistics provides computable lower bounds on distribution shift, but intentionally ignores spatial structural correlations.
  • The Discriminator Paradox: The paper exposes that these shifts occur, but leaves open the deeper question: why standard discriminators fail during training to detect such coarse, aggregate differences (such as skewed global color histograms) that even basic linear models easily catch.
  • Scope: The investigation focuses on standard GAN paradigms; extending this analysis to newer generative families (e.g., score-based diffusion models) remains an important direction for future research.

Summary updated

BibTeX
@inproceedings{durall2021investigating,
  author = {Ricard Durall and Janis Keuper},
  title = {{Investigating Shifts in GAN Output-Distributions}},
  booktitle = {DistShift @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=HPOZLHaMxQo},
}
Figure