Skip to main content
QUICK REVIEW

[Paper Review] Likelihood Estimation for Generative Adversarial Networks

Hamid Eghbal-zadeh, Gerhard Widmer|arXiv (Cornell University)|Jul 24, 2017
Generative Adversarial Networks and Image SynthesisComputer Science9 references10 citations
TL;DR

This paper proposes LeGAN, a general-purpose likelihood estimation method for evaluating generated images in any GAN without modifying training. It models the discriminator's embeddings of real images as a Gaussian distribution and computes likelihood scores for generated images; empirical results on CIFAR-10 show strong correlation between these scores and perceptual image quality across vanilla GAN and LSGAN setups.

ABSTRACT

We present a simple method for assessing the quality of generated images in Generative Adversarial Networks (GANs). The method can be applied in any kind of GAN without interfering with the learning procedure or affecting the learning objective. The central idea is to define a likelihood function that correlates with the quality of the generated images. In particular, we derive a Gaussian likelihood function from the distribution of the embeddings (hidden activations) of the real images in the discriminator, and based on this, define two simple measures of how likely it is that the embeddings of generated images are from the distribution of the embeddings of the real images. This yields a simple measure of fitness for generated images, for all varieties of GANs. Empirical results on CIFAR-10 demonstrate a strong correlation between the proposed measures and the perceived quality of the generated images.

Motivation & Objective

  • To address the lack of a general, non-intrusive metric to assess the quality of generated images in GANs.
  • To develop a method that does not interfere with the training objective or architecture of any GAN variant.
  • To establish a likelihood-based measure that correlates with human-perceived image quality without requiring pre-trained models or large sample sets.
  • To demonstrate that likelihood scores derived from discriminator embeddings can effectively track improvements in generated image quality during training.

Proposed method

  • Extract feature embeddings from the discriminator’s penultimate layer (without the final sigmoid) for real images, denoted as $\hat{D}(x)$.
  • Fit a Gaussian distribution to the embeddings of real images, estimating mean $\mu_r$ and variance $\sigma^2_r$.
  • Define a Gaussian likelihood function $\ell_{\mathcal{G}}(a)$ based on the learned real-image embedding distribution.
  • Compute two likelihood-based measures: $\ell_{\text{diff}} = \ell_{\mathcal{G}}(a_r) - \ell_{\mathcal{G}}(a_f)$ and $\ell_{\text{ratio}} = \ell_{\mathcal{G}}(a_r) / \ell_{\mathcal{G}}(a_f)$, where $a_r$ and $a_f$ are embeddings of real and fake images.
  • Enforce 1-Lipschitz continuity on the discriminator via weight clipping and L2 weight regularization to ensure stable embedding space geometry.
  • Apply the likelihood measure post-training to evaluate generated images without retraining or modifying the GAN.

Experimental results

Research questions

  • RQ1Can a likelihood-based metric derived from discriminator embeddings reliably assess the quality of generated images in GANs?
  • RQ2Does the proposed LeGAN method correlate with human perception of image quality across different GAN architectures?
  • RQ3Can the likelihood measure be applied universally to any GAN without altering its training objective or requiring pre-trained models?
  • RQ4How does the likelihood of generated image embeddings evolve during training, and does it track improvements in image quality?
  • RQ5Is the likelihood measure comparable to established metrics like the Wasserstein distance in capturing training progress?

Key findings

  • The LeGAN likelihood measures $\ell_{\text{diff}}$ and $\ell_{\text{ratio}}$ show strong correlation with perceptual image quality during training on CIFAR-10.
  • As training progresses, $\ell_{\text{diff}}$ decreases and $\ell_{\text{ratio}}$ increases, indicating that generated image embeddings become more similar to real image embeddings in likelihood space.
  • The method successfully correlates with image quality improvements in both vanilla GAN and LSGAN, demonstrating generalizability across architectures.
  • Weight clipping and L2 regularization are effective in enforcing 1-Lipschitz continuity, stabilizing the embedding space and enabling reliable likelihood estimation.
  • The proposed likelihood measure correlates with the Wasserstein distance in WGAN, suggesting compatibility with existing GAN evaluation paradigms.
  • LeGAN requires no pre-training, no large sample sets, and no architectural modifications, making it a lightweight, plug-and-play evaluation tool.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.