Variational Reference Priors

Eric T. Nalisnick, Padhraic SmythWorkshops @ ICLR 2017

TL;DR

This paper introduces a variational framework to automatically learn "Reference priors"—objective priors that maximize the information gain from data—for complex probabilistic models. By turning a difficult calculus-of-variations problem into a differentiable optimization task, the authors demonstrate the ability to recover classical objective priors and discover new, non-intuitive priors for deep generative models like Variational Autoencoders (VAEs).

The Problem: Objective Priors in Complex Models

In Bayesian inference, the choice of a "prior" (our belief before seeing data) is crucial. While researchers often default to "flat" or standard Normal distributions to remain "uninformative," these choices can inadvertently introduce significant bias. For example, in a simple Bernoulli model, a uniform prior is actually less "objective" than the arcsine distribution (known as the Jeffreys prior).

The gold standard for objectivity is the Reference prior. It is designed to let the data "speak for itself" by maximizing the mutual information between the model parameters and the observed data. However, deriving these priors mathematically is notoriously difficult—and often impossible—for anything beyond the simplest textbook models. Consequently, modern machine learning, which relies on high-dimensional models like neural networks, is often stuck with potentially suboptimal, "hand-picked" priors.

Methodology: Variational Reference Priors (VRPs)

To bridge this gap, the authors propose Variational Reference Priors (VRPs). Instead of attempting to solve for the Reference prior analytically, they treat it as an optimization problem:

  1. Objective Function: The process begins with the definition of a Reference prior: finding the distribution $p(\theta)$ that maximizes the Mutual Information $I(\theta, \mathcal{D})$.
  2. Tractability via Lower Bounds: Because the marginal likelihood $p(\mathcal{D})$ is usually intractable, the authors derive a lower bound using the variational Rényi bound (VR-max). This yields a "derivation-free" objective that only requires samples from the model.
  3. Black-Box Optimization: They leverage the "reparameterization trick" (standard in VAE training) to perform gradient-based optimization.
  4. Implicit Priors: A key innovation is using a neural network as a "functional sampler" for the prior. Rather than forcing the prior into a specific distribution shape (like a Gaussian), a small neural network transforms noise into the prior distribution, allowing it to naturally adopt complex, multimodal shapes.

Experimental Setup

As a methodological paper, the authors evaluate their approach on two main fronts:

  • Synthetic Statistical Models: Bernoulli (mean parameter), Gaussian (scale parameter), and Poisson (rate parameter). Because their true Jeffreys priors are mathematically known, these serve as a ground-truth baseline for evaluation.
  • Variational Autoencoder (VAE): The method is applied to a VAE with a two-dimensional latent space to demonstrate how VRPs scale to deep learning architectures.

Key Insights and Results

Recovery of Classical Priors

For the Bernoulli, Gaussian, and Poisson models, the VRP successfully recovered the exact shapes of the true Jeffreys priors.

Density and KS test results comparing Variational Reference Priors against true Jeffreys priors for Bernoulli, Gaussian, and Poisson models.

Using the Kolmogorov-Smirnov test (KST), the authors showed that their variational approach remained statistically indistinguishable from the true Reference prior even as sample sizes increased. Notably, it outperformed existing MCMC and brute-force numerical methods in maintaining statistical consistency.

The VAE "Aha" Moment

When the authors learned a Reference prior for a VAE, the results challenged standard deep learning conventions. The learned prior was multimodal and overdispersed, looking nothing like the standard Normal distribution typically used.

Learned 2D Reference prior for a Variational Autoencoder, demonstrating a multimodal and overdispersed distribution.

The learned VAE prior places mass at opposite ends of the latent space. This is highly intuitive: it encourages the model to space out its latent representations as much as possible, making the resulting "codes" more identifiable and distinct. This suggests that the common practice of using a $N(0, I)$ prior may be a significant modeling assumption that artificially limits the flexibility and objectivity of the latent space.

Furthermore, unlike empirical Bayes, this method learns a prior for a model architecture itself, remaining independent of any specific dataset (unless the model is conditional).

Limitations and Future Work

While VRPs offer a powerful new tool for Bayesian deep learning, there are a few limitations to consider:

  • Density Evaluation: Because the "implicit prior" relies on a neural network sampler, it lacks a closed-form density function. Using this prior for actual posterior inference requires non-parametric density estimation (like Kernel Density Estimation), which scales poorly in very high dimensions.
  • Computational Overhead: Although more scalable than brute-force integration, the optimization process still requires significant sampling and computational resources.
  • High-Dimensional Latent Spaces: The VAE example was limited to two dimensions for visualization purposes. Testing the stability and behavior of VRPs in much higher-dimensional latent spaces remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{nalisnick2017variational,
  author = {Eric T. Nalisnick and Padhraic Smyth},
  title = {{Variational Reference Priors}},
  booktitle = {Workshops @ ICLR},
  year = {2017},
}
Figure