Prescribed Generative Adversarial Networks.

Adji B. Dieng, Francisco J. R. Ruiz, David M. Blei, Michalis K. TitsiasarXiv 2019

TL;DR

This paper introduces Prescribed GANs (PresGANs), a novel generative model that addresses two key limitations of traditional GANs: mode collapse and the inability to evaluate generalization via predictive log-likelihood. By adding noise to the generator's output and incorporating an entropy regularization term, PresGANs effectively capture all data modes, stabilize training, and enable tractable log-likelihood estimation, bridging the performance gap with VAEs.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) have revolutionized unsupervised learning, particularly in image generation, achieving state-of-the-art results. However, they suffer from two significant drawbacks. Firstly, they are prone to "mode collapse," where the generator fails to capture the full diversity of the data distribution, producing only a limited subset of samples. This is problematic for applications requiring diverse outputs, like data augmentation. Secondly, GANs learn an "implicit" generative distribution, meaning they don't explicitly define a probability density function. This makes it impossible to evaluate their generalization capabilities using standard metrics like predictive log-likelihood, which is crucial for understanding how well a model performs on unseen data. This limitation restricts GANs to domains where perceptual quality is the primary evaluation metric, hindering their broader applicability as density estimators.

Methods

PresGANs tackle these issues by modifying the standard GAN framework in two key ways:

  1. Adding Noise to the Generator Output: Instead of directly outputting a sample, the PresGAN generator adds noise to the output of a density network. This ensures that the generative distribution is well-defined (not implicit) and allows for tractable approximations of its entropy and predictive log-likelihood. This noise also helps stabilize the training process.
  2. Entropy Regularization: PresGANs introduce an entropy regularization term into the adversarial loss function. By maximizing the entropy of the generative distribution, the model is encouraged to capture all modes of the data distribution, thus mitigating mode collapse. The optimization involves computing gradients of the entropy, which are intractable. PresGANs address this by using unbiased stochastic estimates.

The paper also details how to approximate predictive log-likelihood using importance sampling, leveraging the now well-defined generative distribution.

Datasets

The paper evaluates PresGANs on several standard image datasets:

  • MNIST: A dataset of handwritten digits, used for assessing mode collapse and generalization.
  • STACKEDMNIST: A dataset formed by concatenating MNIST digits, used to evaluate mode collapse in scenarios with a larger number of modes.
  • CIFAR-10: A dataset of 32x32 images across 10 categories, used for evaluating sample quality and generalization.
  • CelebA: A large-scale dataset of celebrity faces, used for assessing sample quality.
  • FFHQ: A high-quality dataset of faces, used in conjunction with the StyleGAN architecture to evaluate sample quality.

The paper also uses a synthetic toy dataset of 10 Gaussians on a ring to illustrate the mitigation of mode collapse.

Key Insights and Ideas

  • Noise as a Stabilizer and Density Enabler: The simple act of adding noise to the generator's output is surprisingly effective. It not only makes the generative distribution well-defined, enabling log-likelihood calculations, but also stabilizes the training process, a common challenge in GANs.
  • Entropy Regularization for Diversity: Explicitly maximizing the entropy of the generative distribution is a direct and effective way to combat mode collapse, ensuring that the model learns to represent the full spectrum of the data.
  • Bridging the GAN-VAE Gap: PresGANs demonstrate that the adversarial loss, rather than implicit distributions, might be the key to high sample quality in GANs. By combining the adversarial objective with a well-defined, entropy-regularized distribution, PresGANs achieve both high perceptual quality and better generalization than traditional GANs, narrowing the gap with VAEs.
  • Robustness to Data Imbalance: Unlike standard GANs, PresGANs show robustness to imbalanced datasets, a common real-world scenario, by maintaining their ability to capture all modes.

Key Results

  • Mode Collapse Mitigation: PresGANs successfully mitigate mode collapse on both toy and real-world datasets (MNIST, STACKEDMNIST). On STACKEDMNIST (1000 modes), PresGAN captures nearly all modes, while other methods suffer significant collapse.
  • High Perceptual Quality: PresGANs generate samples with high perceptual quality, comparable to or even better than state-of-the-art GAN architectures like DCGAN and StyleGAN, as evidenced by visual inspection and Fréchet Inception Distance (FID) scores. For example, on MNIST, PresGAN achieved an FID of 42.019, significantly lower than DCGAN's 113.129.
  • Improved Generalization: PresGANs achieve significantly better predictive log-likelihood scores compared to traditional GANs (with λ=0), reducing the gap between GANs and VAEs. For instance, on CIFAR-10, PresGAN's test log-likelihood was -1031.70, while a GAN without regularization achieved -569.17.
  • Robustness to Imbalance: PresGANs are shown to be robust to data imbalance, capturing all 10 modes of MNIST even when the data is heavily skewed, unlike other methods that suffer from mode collapse.

Limitations and Future Work

  • Hyperparameter Tuning: The performance of PresGANs is sensitive to hyperparameters, particularly the entropy regularization parameter λ and the variance thresholds (σlow, σhigh). Finding optimal values for these parameters can be challenging and may require dataset-specific tuning.
  • Computational Cost: The use of HMC samplers for estimating entropy gradients can increase computational cost compared to standard GANs.
  • Future Work: The authors suggest exploring more sophisticated methods for learning overdispersed proposals for importance sampling to further improve log-likelihood evaluation. They also note that finding the optimal λ is an open question and leave it as future work. Additionally, investigating the tension between sample quality and high log-likelihood remains an area for further research.

Summary updated

BibTeX
@misc{dieng2019prescribed,
  author = {Adji B. Dieng and Francisco J. R. Ruiz and David M. Blei and Michalis K. Titsias},
  title = {{Prescribed Generative Adversarial Networks.}},
  year = {2019},
  eprint = {1910.04302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.04302},
}
Figure