Training Discriminative Models to Evaluate Generative Ones

Timothée Lesort, Andrei Stoian, Jean-François Goudou, David Filliat

TL;DR

This paper introduces a novel method, "fitting capacity" (FiC), to objectively evaluate generative models by training a classifier on generated data and testing it on real data. The FiC score measures how well a generative model captures the true data distribution, offering a more robust evaluation than visual inspection or existing metrics like Inception Score (IS) and Frechet Inception Distance (FID).

What Problem Does This Paper Address?

Evaluating generative models, especially Generative Adversarial Networks (GANs), is notoriously difficult. While these models can produce visually impressive samples, there's no universally agreed-upon method to quantify their quality or how well they represent the underlying data distribution. Existing methods like visual Turing tests are subjective, and metrics like IS and FID have limitations, such as reliance on pre-trained models or assumptions about data distribution. This paper aims to bridge this gap by proposing a quantitative and objective evaluation framework.

Methods

The core of the proposed method, termed "fitting capacity" (FiC), involves training a discriminative classifier on data generated by a generative model. This classifier is then evaluated on a held-out set of real data. The accuracy of this classifier serves as a proxy for how well the generative model has learned to mimic the true data distribution. The authors also explore the impact of generated data on classifier training by varying the ratio of generated to real data used for training. They compare their method against established metrics like Inception Score (IS) and Frechet Inception Distance (FID).

Datasets

The experiments were conducted on two popular image datasets:

  • MNIST: A well-known dataset of handwritten digits.
  • Fashion-MNIST: A more complex dataset of clothing items, serving as a direct replacement for MNIST with higher variability.

Key Insights and Ideas

  • Classifier Accuracy as a Proxy: The central idea is that if a generative model produces data that allows a classifier to achieve high accuracy on real data, then the generative model must have captured essential aspects of the true data distribution.
  • Beyond Visual Quality: The FiC method moves beyond subjective visual assessment and focuses on the utility of generated data for downstream tasks like classification.
  • Evaluating Generalization: The method can also assess if generative models can aid in data augmentation, by observing if training with generated data improves classifier performance, especially at lower ratios of generated data.
  • Instability of Generative Models: The experiments highlight the inherent instability of some generative models, where results can vary significantly based on random seeds, underscoring the need for robust evaluation.

Key Results

  • No Replacement for Real Data: The study found that none of the evaluated generative models could completely replace real data for training a discriminative classifier, especially when using only generated data (τ=1).
  • GANs and WGANs Lead: For the MNIST dataset, initial GAN and WGAN models showed the best performance in terms of fitting capacity.
  • Stability Matters: While GAN and WGAN achieved high peak performance, models like VAE and CGAN demonstrated better stability across different random seeds.
  • Data Augmentation Potential: When using a mix of real and generated data (lower τ values), some models showed improvements over the baseline, indicating their potential for data augmentation.
  • Comparison with IS/FID: The proposed FiC method provided different insights compared to IS and FID, sometimes showing better performance for models that FID indicated as weaker, suggesting FiC captures different aspects of generative model quality.

Limitations and Future Work

  • Computational Cost: The FiC method requires training a classifier, making it more computationally intensive than metrics like IS and FID.
  • Dataset Specificity: The authors acknowledge that results are specific to the tested datasets (MNIST and Fashion-MNIST) and that further experiments are needed to generalize findings to other domains.
  • Classifier Choice: While the paper uses a standard deep CNN, the authors suggest that using different classifiers could further enrich the evaluation.
  • Future Work: The authors propose that their method is easily reproducible and adaptable to other types of generative models and data beyond images. They also suggest using simpler methods like IS and FID for initial model selection during training, followed by FiC for deeper analysis.

Summary updated

BibTeX
@misc{lesort2018training,
  author = {Timothée Lesort and Andrei Stoian and Jean-François Goudou and David Filliat},
  title = {{Training Discriminative Models to Evaluate Generative Ones}},
  year = {2018},
  eprint = {1806.10840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.10840},
}
Figure