Learning Implicit Generative Models with the Method of Learned Moments

Suman V. Ravuri, Shakir Mohamed, Mihaela Rosca, Oriol Vinyals

Introduction

Researchers from DeepMind have reimagined the training of implicit generative models by reviving the "Method of Moments" (MoM), a classical statistical technique. By introducing a "moment network" that learns which features are most important to match, their Method of Learned Moments (MoLM) achieves state-of-the-art image synthesis quality while offering a more stable, statistically grounded alternative to traditional adversarial training (GANs).

The Challenge of Implicit Generative Models

Training implicit generative models—models capable of sampling data without an explicit likelihood function—is notoriously difficult. While Generative Adversarial Networks (GANs) are the current standard, they are frequently plagued by training instabilities and "mode collapse," where the generator produces a limited variety of outputs.

To address this, the authors look toward the Method of Moments (MoM), an established statistical principle where a model is learned by matching its feature averages (moments) to those of the real data. Historically, MoM has struggled to scale to deep learning for two primary reasons:

  1. The Parameter Gap: Deep models possess millions of parameters, requiring millions of moments to match. Defining these manually is practically impossible.
  2. Feature Selection: It is unclear which specific properties of the data serve as "useful" moments to match for high-quality synthesis.

The Method of Learned Moments (MoLM)

The paper introduces MoLM, which automates the discovery and matching of moments through two key innovations.

Architecture of the Method of Learned Moments (MoLM)
  • The Moment Network: Instead of hand-picking moments (like mean or variance), the researchers employ a neural network $f_\phi(x)$. The "moments" are defined as the network's hidden activations and, crucially, the gradient of the network's output with respect to its own parameters. This automatically provides millions of features.
  • Learning Efficient Moments: Drawing on asymptotic theory, the authors show that the best moments are those that minimize the variance of the estimator. They train the moment network using a binary classification objective (distinguishing real from fake) to ensure the moments are "statistically efficient." This essentially teaches the network to find the features that most sharply distinguish the model from the real data.

To keep the computation tractable, the team utilizes a Hessian-vector product trick, allowing them to compute gradients through the moment network approximately 20% faster than naive methods.

Key Insights

  • Gradients vs. Activations: A major discovery in this work is that activations and gradients encode fundamentally different information. Activations (from the forward pass) tend to capture local receptive fields and translational invariance. Gradients (from the backward pass) encode global properties of the data. Utilizing both is essential for high-quality results.
  • Statistical Grounding: Unlike GANs, which are often motivated by game theory, MoLM is rooted in asymptotic normality. This allows the use of formal statistical theory to diagnose why certain features fail and how to optimize them.
  • Stability over Time: MoLM exhibits impressive training stability. Unlike many GANs where performance can oscillate or crash, MoLM's Inception Scores and FID scores improve steadily and avoid collapse, even with very large moment networks.
  • Adversarial Training as a Subset: The authors suggest that adversarial training can be viewed as a specific, and perhaps suboptimal, case of moment matching where only one "moment" is matched per generator step.

Datasets and Key Results

The authors evaluated MoLM on several standard image benchmarks, demonstrating superior performance over several popular GAN variants.

Comparison of Real, Random, and Trained samples across datasets
  • CIFAR-10 (32×32): A standard benchmark for natural image synthesis. MoLM achieved an Inception Score (IS) of 7.90 and a Frechet Inception Distance (FID) of 18.9, significantly outperforming Spectral Normalization GANs (SN-GAN) and Wasserstein GANs (WGAN-GP) using the same architecture.
  • CelebA (64×64): Used to evaluate facial feature diversity and quality. The model achieved a nearly perfect Multi-Scale Structural Similarity (MS-SSIM) score of .378 (matching the test set's .379), indicating highly diverse samples without mode collapse.
  • ImageNet Daisy (128×128): The authors successfully scaled the method to produce high-quality 128×128 images of daisies, a resolution where simpler moment-matching techniques typically fail.
  • Color MNIST (28×28): Served as a foundational test for structure and color.

Limitations and Future Work

While MoLM presents a significant step forward, the authors note a few areas for future exploration:

  • Heuristic Learning: The current method for learning moments relies on a binary classification heuristic. While effective, this could be refined to more directly optimize for statistical efficiency.
  • Architecture Design: The moment networks used were slightly modified versions of standard GAN discriminators. Designing architectures specifically tailored for moment extraction could yield even better results.
  • Conditionality: Currently, MoLM is used for unconditional generation. Extending this to conditional generation (e.g., generating an image based on a specific class label) is a clear next step.

Summary updated

BibTeX
@inproceedings{ravuri2018learning,
  author = {Suman V. Ravuri and Shakir Mohamed and Mihaela Rosca and Oriol Vinyals},
  title = {{Learning Implicit Generative Models with the Method of Learned Moments}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=BJWOls-ObB},
}
Figure