A Generative Adversarial Density Estimator.

M. Ehsan Abbasnejad, Qinfeng Shi, Anton van den Hengel, Lingqiao LiuCVPR 2019 · DOI

TL;DR

This paper introduces a novel Generative Adversarial Density Estimator (GADE) that bridges the gap between maximum likelihood (ML) and likelihood-free generative models. GADE can both estimate probability densities and generate high-quality samples, overcoming limitations of existing methods. By extending to a Bayesian framework, it also provides crucial uncertainty estimates for predictions, proving effective in complex tasks like visual dialog.

What Problem Does This Paper Address?

Density estimation is a fundamental but challenging problem in unsupervised learning. Traditional maximum likelihood (ML) methods, while providing explicit density estimates, often struggle to generate high-quality, sharp samples or are computationally inefficient. On the other hand, powerful likelihood-free models like Generative Adversarial Networks (GANs) excel at producing realistic samples but inherently cannot evaluate the probability density of data points. This inability to quantify density limits their application in scenarios requiring confidence estimates or explicit probability calculations. The paper aims to bridge this gap by developing a model that combines the strengths of both approaches: the sample quality of GANs and the density estimation capabilities of ML models.

Methods

The core of the proposed method is the Generative Adversarial Density Estimator (GADE). GADE formulates density estimation as a problem of maximizing the log-likelihood of data under a model defined by an energy function $\phi(w, x)$ and a normalizer $A(w)$. The key innovation lies in how the normalizer $A(w)$ is approximated. Instead of direct computation (which is intractable), GADE uses a generator network, similar to GANs, to produce samples. These samples are then used to approximate the normalizer.

The model is trained using an adversarial formulation, where a "generator" network learns to produce samples that help estimate the density, and a "discriminator" (implicitly, through the energy function) learns to distinguish between real data and generated samples in a way that aids density estimation.

A significant extension is the Bayesian formulation of GADE. By introducing a prior over the model parameters, GADE can compute predictive variance, offering a measure of confidence in its density estimates. This is achieved through an efficient gradient-based Monte Carlo method to estimate the posterior.

To handle the computational cost of Jacobian calculations for the generator, the paper leverages Lemma 2, which provides an efficient approximation for the log-determinant of a matrix.

Datasets

The paper evaluates GADE on the following datasets:

  • Stacked-MNIST: Used to evaluate mode collapse.
  • MNIST: Used for image generation and density estimation.
  • CIFAR-10: Used for image generation and density estimation.
  • CelebA: A larger dataset (256x256 images) used to evaluate density estimation and image generation quality.
  • Visual Dialog dataset: Used to evaluate the model's performance in a challenging vision-and-language task, specifically for generating responses and estimating confidence.

Key Insights and Ideas

  • Bridging the ML-GAN divide: The most significant insight is the successful integration of adversarial sampling for approximating the intractable normalizer in density estimation, thereby combining the strengths of ML and GANs.
  • Uncertainty Quantification: The Bayesian extension of GADE provides a principled way to estimate uncertainty in density predictions, which is crucial for many real-world applications where knowing "when to say I don't know" is as important as making a prediction.
  • Mode Collapse Mitigation: By incorporating an entropy term ($H_g$) in the objective, GADE is designed to be less susceptible to mode collapse, a common issue in GANs, leading to more diverse sample generation.
  • Dual Space Transformation: The paper suggests transforming in the "dual space" rather than directly on input data, which can lead to more stable training and better density estimation.

Key Results

  • Density Estimation Performance: GADE achieves competitive negative log-likelihood scores on MNIST, comparable to or better than several state-of-the-art generative models. The Bayesian version shows slightly improved performance.
  • Sample Quality: The generated samples are described as sharp and realistic, with GADE demonstrating an ability to capture multiple modes in complex distributions, as shown in the simulation experiment.
  • Mode Collapse: Experiments on Stacked-MNIST indicate that GADE outperforms other GAN-based methods in terms of mode collapse, generating more distinct modes.
  • Visual Dialog Task: In the visual dialog task, GADE, particularly its Bayesian variant, shows strong performance in generating relevant answers and, crucially, provides meaningful uncertainty estimates that can be used to identify low-confidence responses. The model achieves competitive results compared to state-of-the-art methods.

Limitations and Future Work

  • Computational Cost of Jacobian: While Lemma 2 helps, computing the Jacobian of the generator can still be computationally expensive for very high-dimensional outputs. The paper mentions sampling dimensions to mitigate this.
  • "Burn-in" Period: For practical implementation, the authors found that using an Adam optimizer for an initial "burn-in" period before switching to SGD and SGLD for Bayesian inference improved performance, suggesting that the initial learning dynamics are sensitive.
  • Future Work: The paper suggests that GADE opens new avenues for density estimation and its integration with adversarial models. The ability to provide uncertainty estimates in complex generative tasks is highlighted as a promising direction. The authors also mention that further research into optimizing the Jacobian computation and exploring different network architectures could be beneficial.

Summary updated

BibTeX
@inproceedings{abbasnejad2019generative,
  author = {M. Ehsan Abbasnejad and Qinfeng Shi and Anton van den Hengel and Lingqiao Liu},
  title = {{A Generative Adversarial Density Estimator.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.01104},
}
Figure