Predictive variational inference: Learn the predictively optimal posterior distribution

Jinlin Lai, Antonio Linero, Yuling Yao

TL;DR

Predictive Variational Inference (PVI) is a novel framework that prioritizes predictive accuracy over traditional posterior approximation. By directly optimizing for how well a model forecasts future data, PVI remains robust under model misspecification and maintains meaningful uncertainty that can automatically diagnose model flaws.

What Problem Does This Paper Address?

Traditional Bayesian inference is the "gold standard" for probabilistic reasoning, but it has a major Achilles' heel: it assumes your model is perfectly correct. When a model is misspecified—which, in practice, is almost always—the Bayesian posterior tends to become overconfident. As you collect more data, the posterior distribution often collapses into a single point estimate (the Maximum Likelihood Estimate), even if that point represents a poor fit for the overall population.

This "vanishing uncertainty" is a problem for tasks like forecasting or decision-making where understanding the range of possible outcomes is crucial. The authors argue that instead of trying to approximate a potentially flawed Bayesian posterior, we should focus on finding a distribution that produces the best possible predictions.

Methods

The authors introduce Predictive Variational Inference (PVI). Unlike standard Variational Inference (VI), which tries to minimize the distance between an approximate distribution $q(\theta)$ and the true Bayesian posterior $p(\theta|y)$, PVI optimizes a scoring rule on the resulting predictive distribution.

The core objective is to find a variational distribution $q$ that maximizes: $$\sum_{i=1}^n S\left( \int_{\Theta} p(\cdot|\theta)q(\theta)d\theta, y_i \right) - \lambda r(\phi)$$ where $S$ is a proper scoring rule (like log-score, Brier score, or CRPS) and $r(\phi)$ is a regularizer.

Key technical contributions include:

  • Support for Multiple Scoring Rules: PVI can be tuned for different tasks using rules like the Continuous Ranked Probability Score (CRPS), which is particularly useful for likelihood-free inference (where you can simulate data but not calculate the likelihood).
  • Novel Gradient Estimators: The authors derive practical stochastic gradient algorithms for these objectives, including a new unbiased estimator for the log-score using rejection sampling.
  • Implicit Hierarchical Expansion: PVI can be interpreted as automatically expanding a simple model into a hierarchical one. If a parameter varies across a population, PVI’s posterior won't collapse; instead, it learns the distribution of that parameter across the population.

Datasets

The authors evaluate PVI across several diverse domains:

  • Golf Putting: A classic dataset from Gelman & Nolan (2002) used to demonstrate how PVI detects misspecification in simple logistic models.
  • 2000 U.S. Election Analysis: Using the Current Population Survey (CPS) to show how PVI guides hierarchical model building by detecting where parameters need to vary across states or demographic groups.
  • Cryo-Electron Microscopy (cryoEM): A realistic simulator of HSP90 protein images. This represents a high-stakes, likelihood-free problem where protein structures vary due to molecular heterogeneity.
  • Posteriordb: A benchmark of seven different Bayesian models (including earnings, kidscore, and radon) to compare PVI against standard VI and MCMC methods.

Key Insights and Ideas

  • Epistemic Humility: In misspecified models, PVI maintains non-vanishing uncertainty as sample size $n \to \infty$. While standard Bayes collapses to a point, PVI "stays wide" to better cover the true data-generating process.
Figure 2. Optimal standard deviation of q(θ) with PVI or VI for the simple normal case from 50 simulations, with σtrue = 1 on the left and σtrue = 2 on the right.
  • Heterogeneity Detection: A non-vanishing PVI posterior variance serves as a diagnostic tool. If PVI shows high uncertainty for a specific parameter, it’s a signal to the researcher that the model should be expanded to allow that parameter to vary (e.g., making it a hierarchical effect).
  • Likelihood-Free Robustness: By using CRPS, PVI can perform inference on complex simulators where the likelihood is intractable. It accurately recovers population distributions of protein angles in cryoEM data where standard Bayes fails due to overconfidence.
Figure 1. Inference for the molecule angle in a heterogeneous population using cryoEM images. For details, see Section 4.3.

Key Results

  • Improved Predictive Performance: Across the posteriordb benchmarks, PVI consistently achieved better test scores (log-predictive density, CRPS, etc.) than standard VI when evaluated on the corresponding metric.
  • Model Diagnosis: In the golf putting example, PVI correctly identified that a logistic regression model was misspecified by producing a much wider predictive interval than the Bayesian version, which better captured the data's trend.
Figure 3. Posterior predictive distribution of two different models of the golf putting problem, with either the Bayesian posterior or the PVI posterior.
  • Scalability: The authors demonstrated that PVI scales linearly with parameter dimension, successfully handling models with up to 10,000 dimensions while maintaining its predictive advantage over VI.

Limitations and Future Work

While powerful, PVI comes with trade-offs:

  • Computational Cost: Optimizing the predictive distribution is generally harder and slower than standard VI. For example, training on the earnings model was roughly 2-5x slower for PVI-Log and PVI-CRPS compared to vanilla VI.
  • IID Assumption: The current framework relies on the assumption that observations are independent and identically distributed (IID). Extending PVI to complex, non-exchangeable data structures (like time series) remains an open challenge.
  • Contraction Rates: Theoretically, when a model is correctly specified, PVI converges to the true parameter at a slower rate than the standard parametric rate ($1/\sqrt{n}$). This is the price paid for its robustness to misspecification.

Summary updated

Abstract

Vanilla variational inference finds an optimal approximation to the Bayesian posterior distribution, but even the exact Bayesian posterior is often not meaningful under model misspecification. We propose predictive variational inference (PVI): a general inference framework that seeks and samples from an optimal posterior density such that the resulting posterior predictive distribution is as close to the true data generating process as possible, while this closeness is measured by multiple scoring rules. By optimizing the objective, the predictive variational inference is generally not the same as, or even attempting to approximate, the Bayesian posterior, even asymptotically. Rather, we interpret it as implicit hierarchical expansion. Further, the learned posterior uncertainty detects heterogeneity of parameters among the population, enabling automatic model diagnosis. This framework applies to both likelihood-exact and likelihood-free models. We demonstrate its application in real data examples.
BibTeX
@inproceedings{lai2026predictive,
  author = {Jinlin Lai and Antonio Linero and Yuling Yao},
  title = {{Predictive variational inference: Learn the predictively optimal posterior distribution}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=dVIts0fNb4},
}
Figure