Skip to main content
QUICK REVIEW

[Paper Review] Discriminator Contrastive Divergence: Semi-Amortized Generative Modeling by Exploring Energy of the Discriminator

Yuxuan Song, Qiwei Ye|arXiv (Cornell University)|Apr 5, 2020
Generative Adversarial Networks and Image SynthesisComputer Science40 references10 citations
TL;DR

This paper proposes Discriminator Contrastive Divergence (DCD), a semi-amortized generative modeling method that leverages the discriminator of Wasserstein GANs as an energy function to improve sample quality via Langevin dynamics. By initializing generation from the generator’s output and refining samples through gradient-based MCMC steps, DCD achieves state-of-the-art inception scores (9.11) and FID (16.24) on CIFAR-10, significantly outperforming baseline GANs and existing post-processing methods.

ABSTRACT

Generative Adversarial Networks (GANs) have shown great promise in modeling high dimensional data. The learning objective of GANs usually minimizes some measure discrepancy, extit{e.g.}, $f$-divergence~($f$-GANs) or Integral Probability Metric~(Wasserstein GANs). With $f$-divergence as the objective function, the discriminator essentially estimates the density ratio, and the estimated ratio proves useful in further improving the sample quality of the generator. However, how to leverage the information contained in the discriminator of Wasserstein GANs (WGAN) is less explored. In this paper, we introduce the Discriminator Contrastive Divergence, which is well motivated by the property of WGAN's discriminator and the relationship between WGAN and energy-based model. Compared to standard GANs, where the generator is directly utilized to obtain new samples, our method proposes a semi-amortized generation procedure where the samples are produced with the generator's output as an initial state. Then several steps of Langevin dynamics are conducted using the gradient of the discriminator. We demonstrate the benefits of significant improved generation on both synthetic data and several real-world image generation benchmarks.

Motivation & Objective

  • To address the underutilization of discriminator information in Wasserstein GANs, which are empirically superior but lack methods to leverage their critic for improved generation.
  • To develop a generalizable method that transforms WGAN discriminators into energy functions for enhanced sampling quality.
  • To propose a semi-amortized generation framework that balances speed and quality by combining generator initialization with iterative refinement via Langevin dynamics.
  • To empirically validate the method on synthetic data and real-world benchmarks, demonstrating consistent gains in inception score and FID.

Proposed method

  • The discriminator in a WGAN is interpreted as an energy function, enabling the use of gradient-based MCMC sampling.
  • Samples are initialized from the generator’s output and refined through multiple steps of Langevin dynamics using the gradient of the discriminator.
  • The method operates in a semi-amortized manner, where the generator provides an initial proposal, and the discriminator guides refinement via its gradient.
  • The approach is applied in both pixel space and latent space, with ablation showing improved performance in the latter.
  • The training process is adapted to maintain the 1-Lipschitz constraint of WGANs, ensuring stability during refinement.
  • The method is evaluated using standard metrics: inception score and Fréchet Inception Distance (FID).

Experimental results

Research questions

  • RQ1Can the discriminator of a WGAN be meaningfully repurposed as an energy function to improve sample quality?
  • RQ2How does the semi-amortized generation framework using Langevin dynamics compare to direct generator sampling in terms of quality and diversity?
  • RQ3Does leveraging the discriminator’s gradient through MCMC lead to a measurable improvement in FID and inception score on standard benchmarks?
  • RQ4Is the proposed method generalizable across different datasets and architectures, such as CIFAR-10 and STL-10?

Key findings

  • On CIFAR-10, DCD achieved a new state-of-the-art inception score of 9.11 and FID of 16.24 when applied in the latent space, significantly outperforming baseline SNGAN and other post-processing methods.
  • In conditional generation, DCD achieved a FID of 15.05 on CIFAR-10, comparable to large-scale models like BigGAN.
  • On STL-10, DCD achieved an inception score of 9.33 and FID of 17.68, demonstrating generalization beyond CIFAR-10.
  • Visualizations confirmed that the Langevin dynamics process produces more realistic and diverse samples than direct generator sampling.
  • The method reduced the occurrence of adversarial-style artifacts during training, suggesting potential benefits for robustness.
  • The semi-amortized design allows a tunable trade-off between sampling speed and generation quality, favoring quality when needed.

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.