Learning in Implicit Generative Models

Shakir Mohamed, Balaji Lakshminarayanan

Overview

Generative Adversarial Networks (GANs) have revolutionized machine learning by producing incredibly sharp and compelling data samples. However, their underlying mechanics were initially viewed by many as a clever heuristic—a sort of algorithmic "black magic." This paper provides a rigorous statistical foundation for GANs by framing them as a specific instance of "likelihood-free" inference. By viewing the GAN discriminator as a density ratio estimator, the authors unify GANs with classical statistical techniques like moment matching and approximate Bayesian computation (ABC).

The Challenge of Implicit Models

In traditional machine learning, we usually work with prescribed models—models where we can write down an explicit mathematical formula for the probability of the data (the likelihood). However, many complex systems, from weather simulators to biological models, are implicit. We can easily generate samples from them by running a simulation, but we cannot easily calculate the exact probability of a specific outcome.

Before GANs, training these implicit models was notoriously difficult because standard maximum likelihood estimation requires a tractable likelihood function. While GANs provided a powerful workaround by using a "discriminator" network to guide the generator, the theoretical landscape remained fragmented. This paper addresses that gap, connecting GANs to a broader, unified statistical framework.

A Unified Framework: Density Estimation by Comparison

The authors argue that learning in implicit models fundamentally boils down to a problem of density ratio estimation. If $p^*(x)$ is the true data distribution and $q_\theta(x)$ is our model's generated distribution, we want to evaluate the relationship between them. If the distributions are identical, our model is perfect.

Taxonomy of density estimation by comparison, splitting into density difference and density ratio approaches.

The paper synthesizes the landscape of likelihood-free inference into approaches that measure either the density difference or the density ratio:

  1. Class Probability Estimation: This is the standard GAN approach. You train a classifier (the discriminator) to distinguish real from fake data. The authors mathematically demonstrate that the optimal discriminator is directly estimating the density ratio.
  2. Divergence Minimisation: This approach uses $f$-divergences to measure the distance between distributions, directly connecting to the $f$-GAN framework.
  3. Ratio Matching: This involves directly minimizing the error between the true ratio and an estimated ratio using Bregman divergences.
  4. Moment Matching: Instead of comparing probability densities directly, this approach compares statistical moments (means, variances, etc.) of the distributions. This encompasses methods like Maximum Mean Discrepancy (MMD).

Key Insights and Innovations

The Discriminator as a Ratio Estimator

The central "aha moment" of the paper is the realization that the discriminator isn't just a critic; it is a statistical tool for estimating the density ratio. This ratio provides the precise gradient signal needed to update and improve the generator.

Hypothesis Testing as a Learning Principle

Training a GAN is conceptually equivalent to performing a continuous "two-sample test." The algorithm is constantly asking a statistical question: "Is the generated data statistically indistinguishable from the real data?"

Loss Function Flexibility

By framing GANs through this statistical lens, the authors show that the choice of the discriminator's loss function is actually a choice of a "proper scoring rule."

Table of proper scoring rules and their corresponding objective functions for GAN training.

The standard GAN loss (Bernoulli/logarithmic) is just one of many valid options. As shown in the table above, researchers can swap in other scoring rules—like the Brier score, Exponential loss, or Spherical loss—each bringing different theoretical properties to the training dynamics.

Bridging Deep Learning and Classical Statistics

The paper successfully connects deep learning's GANs to Approximate Bayesian Computation (ABC), a field used in ecology and genetics for decades. This cross-pollination allows researchers to port robust insights from classical statistics directly into modern deep generative modeling.

Limitations and Future Directions

While this theoretical framework is powerful, the authors acknowledge several ongoing challenges:

  • Evaluation Metrics: Even with a solid grasp of density ratios, it remains difficult to use them as a consistent, practical metric to evaluate how "good" a generative model is during deployment.
  • Non-Differentiable Simulators: The framework primarily focuses on differentiable models where backpropagation is possible. For discrete simulators (common in economics or physics), different tools like "weak derivatives" or reinforcement learning estimators are required.
  • Finding the "Best" Loss: While the paper proves that many loss functions (scoring rules) are statistically valid, it remains an open empirical question which specific rules lead to the most stable training or the highest quality samples across different data modalities.

Ultimately, this paper serves as a crucial Rosetta Stone, translating the empirical success of GANs into the rigorous language of statistical inference.

Summary updated

BibTeX
@inproceedings{mohamed2017learning,
  author = {Shakir Mohamed and Balaji Lakshminarayanan},
  title = {{Learning in Implicit Generative Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=B16Jem9xe},
}
Figure