Skip to main content
QUICK REVIEW

[Paper Review] Your GAN is Secretly an Energy-based Model and You Should use Discriminator Driven Latent Sampling

Tong Che, Ruixiang Zhang|arXiv (Cornell University)|Mar 12, 2020
Generative Adversarial Networks and Image SynthesisComputer Science32 citations
TL;DR

This paper proposes Discriminator Driven Latent Sampling (DDLS), a method that improves GAN-generated samples by reweighting the generator's implicit density using the discriminator's logit score as an energy function. By performing Langevin MCMC in latent space, DDLS enhances sample quality without additional training or parameters, achieving a new state-of-the-art Inception Score of 9.09 on CIFAR-10 with a pre-trained SN-GAN.

ABSTRACT

We show that the sum of the implicit generator log-density $\log p_g$ of a GAN with the logit score of the discriminator defines an energy function which yields the true data density when the generator is imperfect but the discriminator is optimal, thus making it possible to improve on the typical generator (with implicit density $p_g$). To make that practical, we show that sampling from this modified density can be achieved by sampling in latent space according to an energy-based model induced by the sum of the latent prior log-density and the discriminator output score. This can be achieved by running a Langevin MCMC in latent space and then applying the generator function, which we call Discriminator Driven Latent Sampling~(DDLS). We show that DDLS is highly efficient compared to previous methods which work in the high-dimensional pixel space and can be applied to improve on previously trained GANs of many types. We evaluate DDLS on both synthetic and real-world datasets qualitatively and quantitatively. On CIFAR-10, DDLS substantially improves the Inception Score of an off-the-shelf pre-trained SN-GAN~\citep{sngan} from $8.22$ to $9.09$ which is even comparable to the class-conditional BigGAN~\citep{biggan} model. This achieves a new state-of-the-art in unconditional image synthesis setting without introducing extra parameters or additional training.

Motivation & Objective

  • To address the limitation of GANs generating suboptimal samples due to imperfect generators despite optimal discriminators.
  • To develop a practical method for improving sample quality without retraining or adding parameters to pre-trained GANs.
  • To show that the sum of generator log-density and discriminator logit forms a valid energy function that can be used for sampling.

Proposed method

  • The paper identifies that the sum of the generator's log-density and the discriminator's logit score forms an energy function that approximates the true data density when the discriminator is optimal.
  • It formulates a latent-space energy-based model combining the prior log-density and the discriminator output, enabling efficient sampling via Langevin MCMC.
  • DDLS performs MCMC sampling in the latent space using the energy function, then maps samples through the generator to produce improved images.
  • The method avoids high-dimensional pixel-space sampling, making it computationally efficient compared to prior energy-based approaches.
  • It leverages the discriminator's score as a surrogate for data likelihood, enabling score-based refinement without explicit density estimation.
  • The approach is model-agnostic and applicable to any pre-trained GAN, requiring only inference-time sampling in latent space.

Experimental results

Research questions

  • RQ1Can the discriminator's output be used to define a meaningful energy function that improves generator samples?
  • RQ2Is it possible to sample from a refined energy-based distribution in latent space without retraining the generator?
  • RQ3How does DDLS compare to existing methods in terms of sample quality and computational efficiency?
  • RQ4Can DDLS achieve state-of-the-art performance on unconditional image generation benchmarks without additional training?
  • RQ5Does the method generalize across different GAN architectures and datasets?

Key findings

  • DDLS improves the Inception Score of a pre-trained SN-GAN on CIFAR-10 from 8.22 to 9.09, achieving a new state-of-the-art in unconditional image synthesis.
  • The improvement is achieved without any additional training or parameter updates to the generator.
  • The method is highly efficient, operating in latent space rather than high-dimensional pixel space, reducing computational cost.
  • DDLS is applicable to various GAN types and shows consistent qualitative and quantitative gains on both synthetic and real-world datasets.
  • The approach demonstrates that GANs implicitly define an energy function via the discriminator, enabling principled refinement of generated samples.

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.