Skip to main content
QUICK REVIEW

[Paper Review] Learning the Stein Discrepancy for Training and Evaluating Energy-Based Models without Sampling

Will Grathwohl, Kuan-Chieh Wang|arXiv (Cornell University)|Feb 13, 2020
Generative Adversarial Networks and Image SynthesisComputer Science53 references15 citations
TL;DR

This paper introduces Learning the Stein Discrepancy (LSD), a method for training and evaluating energy-based models without sampling by learning a neural network critic to estimate the Stein discrepancy between data and model distributions. The approach uses only gradients of the unnormalized log-density and achieves state-of-the-art performance in model evaluation and training scalability in high-dimensional settings.

ABSTRACT

We present a new method for evaluating and training unnormalized density models. Our approach only requires access to the gradient of the unnormalized model's log-density. We estimate the Stein discrepancy between the data density $p(x)$ and the model density $q(x)$ defined by a vector function of the data. We parameterize this function with a neural network and fit its parameters to maximize the discrepancy. This yields a novel goodness-of-fit test which outperforms existing methods on high dimensional data. Furthermore, optimizing $q(x)$ to minimize this discrepancy produces a novel method for training unnormalized models which scales more gracefully than existing methods. The ability to both learn and compare models is a unique feature of the proposed method.

Motivation & Objective

  • Address the lack of reliable, scalable evaluation and training methods for unnormalized density models like Energy-Based Models (EBMs), which rely on expensive MCMC sampling.
  • Overcome the limitations of existing sampling-based training (e.g., biased gradients from finite MCMC chains) and evaluation (e.g., reliance on approximate samplers).
  • Develop a unified framework that enables both training and evaluation of EBMs using only gradients of the unnormalized log-density.
  • Improve model quality assessment by replacing sample-based metrics with a neural network-estimated Stein discrepancy that tracks likelihood more accurately.
  • Enable scalable, high-dimensional training of EBMs without requiring normalizing constants or surrogate objectives like score matching.

Proposed method

  • Define the Stein discrepancy between data distribution $ p(x) $ and model $ q(x) $ using a vector-valued critic function $ s(x) $, parameterized as a neural network.
  • Train the critic network to maximize the Stein discrepancy, forming a goodness-of-fit test that is differentiable and scalable via backpropagation.
  • Use the resulting discrepancy as a training objective for the EBM, minimizing it to match the model density to the data without sampling.
  • Leverage Hutchinson's estimator to efficiently compute the trace of the Jacobian in the Stein discrepancy, enabling scalable gradient computation.
  • Apply the method in a joint training scheme where the EBM and the critic are optimized alternately, similar to GANs but for density modeling.
  • Ensure the method requires only access to the gradient of the unnormalized log-density, avoiding the need for normalizing constants or explicit sampling.

Experimental results

Research questions

  • RQ1Can a neural network be effectively trained to estimate the Stein discrepancy between high-dimensional data and model distributions without relying on sampling?
  • RQ2Does learning a critic function via neural networks lead to a more reliable and scalable goodness-of-fit test for unnormalized models compared to existing sample-based metrics?
  • RQ3Can minimizing the learned Stein discrepancy serve as an effective, scalable alternative to likelihood-based training for energy-based models?
  • RQ4How well does the LSD-based training objective track actual likelihood improvements compared to standard objectives like contrastive divergence or score matching?
  • RQ5To what extent can LSD improve model evaluation and training in high-dimensional settings where traditional MCMC-based methods fail to scale?

Key findings

  • LSD achieves state-of-the-art performance in high-dimensional goodness-of-fit testing, outperforming existing methods on benchmark datasets.
  • The LSD-based training objective tracks likelihood more accurately than standard objectives like contrastive divergence or score matching, especially in high-dimensional settings.
  • The method enables scalable training of energy-based models without sampling, with performance that scales gracefully with dimensionality.
  • The neural network-based critic learns to estimate the Stein discrepancy reliably in high dimensions, demonstrating that deep learning can effectively approximate complex discrepancy measures.
  • LSD provides a unified framework for both training and evaluation of unnormalized models, eliminating the need for separate samplers or heuristic metrics.
  • Experiments on image datasets show that LSD-trained models achieve competitive sample quality while maintaining better distributional fidelity than models trained with standard objectives.

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.