Evaluating Generative Adversarial Networks (GANs) has long been a "wild west" of research. While we can visually inspect generated images, human judgment is subjective, time-consuming, and often fails to detect subtle issues like a lack of diversity. This paper provides a rigorous, empirical "evaluation of the evaluators," testing popular quantitative metrics to see which ones actually tell us the truth about a model's performance.
TL;DR
This paper systematically evaluates GAN metrics (like Inception Score and FID) against simulated failure modes such as mode collapse and overfitting. The authors conclude that Kernel Maximum Mean Discrepancy (MMD) and the 1-Nearest Neighbor (1-NN) two-sample test, when computed in a pre-trained feature space, are the most reliable and robust metrics for assessing GAN quality and diversity.
What Problem Does This Paper Address?
The core challenge is that GANs don't have an explicit objective function (like cross-entropy loss in classification) that correlates well with visual quality. Researchers have proposed various "sample-based" metrics to fill this gap, but it was unclear which metrics were actually sensitive to specific GAN pathologies.
Specifically, the authors look for metrics that can satisfy four necessary conditions:
- Discriminability: Distinguishing real images from generated ones.
- Sensitivity to Mode Collapsing: Detecting when a model starts producing the same few images repeatedly.
- Sensitivity to Mode Dropping: Detecting when a model completely ignores parts of the target data distribution.
- Overfitting Detection: Identifying when a model is simply memorizing training samples rather than learning to generalize.
Methods
The authors propose a unified framework for sample-based evaluation, as shown in Figure 1. They compare two sets of samples—real ($S_r$) and generated ($S_g$)—by passing them through a feature extractor (like a ResNet or Inception network) and then applying a metric calculator.
The study revisits five representative metrics:
- Inception Score (IS): Measures quality and diversity based on an Inception model's classification confidence.
- Mode Score (MS): An improvement on IS that incorporates the real data distribution.
- Kernel MMD: Measures the distance between distributions using a kernel function.
- Wasserstein Distance (WD): Also known as Earth Mover's Distance.
- Fréchet Inception Distance (FID): Measures the distance between Gaussians fitted to feature representations.
- 1-Nearest Neighbor (1-NN) Test: A classic statistical test that checks if two sets of samples are drawn from the same distribution.
To test these, the authors designed controlled experiments where they manually "broke" the data—for example, by artificially collapsing clusters of images to their means or dropping entire categories—to see if the metrics would flag the error.
Datasets
The experiments were conducted on three standard benchmarks:
- CelebA: A large-scale dataset of celebrity faces.
- LSUN (Bedrooms): A dataset containing roughly one million images of indoor scenes.
- CIFAR-10: Used primarily for analytical purposes where ground-truth class labels were required.
Key Insights and Ideas
- Pixel Space is Useless: The authors demonstrate that computing distances directly on raw pixels fails to capture semantic similarity. A small rotation or translation can cause pixel-level metrics to skyrocket even if the image content is identical. Using a pre-trained feature space (like the convolutional layers of a ResNet) is essential for meaningful evaluation.
- The Flaw in Inception Score: IS is arguably the most popular metric, but the authors highlight a major weakness: it doesn't use the real data distribution at all. A model could generate high-quality images of something entirely different from the training set (or even high-quality adversarial noise) and still receive a high Inception Score.
- 1-NN is a Hidden Gem: The 1-NN two-sample test is highly effective because it provides a bounded score [0, 1]. A perfect GAN should result in 50% accuracy (meaning the classifier can't tell real from fake). It also uniquely distinguishes between mode collapse (high "fake" accuracy) and overfitting (low "real" accuracy).
- GANs Rarely Overfit: A surprising finding was that standard GANs like DCGAN and WGAN rarely memorize training data. Overfitting only occurred when the training set was extremely small (e.g., 10 images).
Key Results
- MMD and 1-NN were the only metrics to satisfy all necessary conditions across different datasets and failure modes.
- Wasserstein Distance suffered from high sample complexity, meaning it requires a massive number of samples to produce a stable, accurate score, and its $O(n^3)$ computational cost makes it impractical for large evaluations.
- FID performed well but is limited by its assumption that the feature distribution is Gaussian, which may not always hold.
- Discriminability: As shown in Figure 2, most metrics correctly show increasing scores as the ratio of "fake" images in a mix increases, but only when operating in a proper feature space.
Limitations and Future Work
The primary limitation is the reliance on pre-trained feature extractors. If a GAN is trained on data very different from ImageNet (e.g., satellite imagery or medical scans), the ResNet features used for evaluation might not be semantically relevant. The authors suggest that future work should explore how to choose or train feature extractors for specialized domains. Additionally, while the paper shows that GANs can generalize, the theoretical reason why they generalize so much better than supervised models remains an open question.
Summary updated