A Classification-Based Perspective on GAN Distributions

Shibani Santurkar, Ludwig Schmidt, Aleksander MadryarXiv 2017

Abstract

A basic, and still largely unanswered, question in the context of Generative Adversarial Networks (GANs) is whether they are truly able to capture all the fundamental characteristics of the distributions they are trained on. In particular, evaluating the diversity of GAN distributions is challenging and existing methods provide only a partial understanding of this issue. In this paper, we develop quantitative and scalable tools for assessing the diversity of GAN distributions. Specifically, we take a classification-based perspective and view loss of diversity as a form of covariate shift introduced by GANs. We examine two specific forms of such shift: mode collapse and boundary distortion. In contrast to prior work, our methods need only minimal human supervision and can be readily applied to state-of-the-art GANs on large, canonical datasets. Examining popular GANs using our tools indicates that these GANs have significant problems in reproducing the more distributional properties of their training dataset.

Introduction

While Generative Adversarial Networks (GANs) have achieved remarkable success in generating high-quality, visually realistic images, a critical question persists: do these models learn the full underlying data distribution, or do they merely reproduce a narrow subset? Traditional evaluation methods often rely on subjective visual inspection or metrics like the Inception Score, which can be misleading. A GAN might produce a few high-quality images repeatedly (mode collapse) yet still receive a high visual quality score. This research addresses the need for quantitative, scalable methodologies to evaluate the true diversity of GAN distributions on complex, real-world datasets.

Methodology: Classification as a Lens for Diversity

We propose framing the loss of diversity in GANs as a form of covariate shift. If a GAN successfully captures the true distribution, a classifier trained on synthetic GAN data should perform identically to one trained on real data. We investigate two primary phenomena:

Mode Collapse

To quantify mode collapse, we train an unconditional GAN on a balanced multi-class dataset. We then employ a pre-trained, high-accuracy classifier (the "annotator") to label a large batch of GAN-generated images. In an ideal scenario, the resulting label distribution should remain balanced. Significant skews in these labels provide a quantitative measure of mode collapse.

Boundary Distortion

Boundary distortion assesses how well a GAN captures the periphery of a distribution. We train separate unconditional GANs for different classes, combine their outputs into a synthetic dataset, and train a binary classifier on this data. The classifier's performance on a hold-out set of real data reveals how accurately the GAN reconstructed the true decision boundaries.

Figure 2: (a) Eigenvalue spectrum comparison between true and GAN data. (b) Visualization of boundary distortion: the synthetic classifier (dashed line) fails to match the true classifier (solid line) due to shifts in the synthetic data distribution.

Experimental Results

Our evaluation spanned several popular GAN architectures, including DCGAN, WGAN, ALI, BEGAN, and Improved GAN, across datasets like CelebA and LSUN.

Pervasive Mode Collapse

All tested architectures exhibited significant mode collapse. For instance, on the CelebA dataset with attributes like "Bangs" and "Smiling," the true data distribution is balanced. However, labels assigned to GAN-generated images showed severe skews, indicating that the models failed to represent all attribute combinations equally.

Figure 4: Probability distribution of attribute combinations (e.g., Male/Female & Mouth Open/Closed) for various GAN architectures compared to the true balanced distribution.

Severe Boundary Distortion

Classifiers trained on GAN data generalized poorly to real-world test sets. In a "Smiling" classification task on CelebA, a model trained on real data achieved 85.6% accuracy, while models trained on GAN data dropped as low as 69.5%. This suggests that GANs fail to accurately model the complex boundaries of the data distribution.

The Diversity Gap

A striking finding is the "100x Smaller" equivalence. On the LSUN dataset, a classifier trained on a massive DCGAN dataset (generated from 200,000 real images) performed similarly to a classifier trained on only ~50 real images. This implies that the effective diversity of the GAN is orders of magnitude smaller than the training set it was intended to learn. Furthermore, simply oversampling the GAN (generating 10x more images) did not bridge this gap, confirming that the missing diversity is fundamentally absent from the learned model.

Conclusion

Our classification-based framework reveals that visual quality is a poor proxy for distributional diversity. State-of-the-art GANs suffer from significant mode collapse and boundary distortion, capturing only a fraction of the true data's variety. Future work should extend this analysis to newer architectures like VAEs and Progressive GANs to determine if these newer models successfully address these fundamental distributional shortcomings.

Summary updated

BibTeX
@misc{santurkar2017classification,
  author = {Shibani Santurkar and Ludwig Schmidt and Aleksander Madry},
  title = {{A Classification-Based Perspective on GAN Distributions}},
  year = {2017},
  eprint = {1711.00970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.00970},
}
Figure