TL;DR
Bayesian inference traditionally requires a costly two-step procedure: approximating an intractable parameter posterior and then integrating over it at test time to make predictions. Variational Prediction (VP) introduces a variational objective that bypasses test-time marginalization entirely, directly training a lightweight predictive model that bounds the KL divergence to the true Bayesian posterior predictive distribution.
What Problem Does This Paper Address?
In most machine learning workflows, our ultimate goal is prediction: given observed data $\mathcal{D}$, we want $p(x|\mathcal{D})$. Bayesian methods are theoretically optimal for this, but standard practice requires:
- Inferring the parameter posterior $p(\theta|\mathcal{D})$ (using MCMC or Variational Inference).
- Marginalizing out $\theta$ via $p(x|\mathcal{D}) = \int p(x|\theta)p(\theta|\mathcal{D})d\theta$.
Both steps are computationally painful. Marginalization at test time is expensive, and inaccuracies in approximating $p(\theta|\mathcal{D})$ can compound into poor predictive distributions. While distillation methods (like Bayesian Dark Knowledge) can compress predictive distributions into compact networks, they still require generating ground-truth samples from the true posterior first. The authors ask: Can we train an efficient, marginalization-free predictive model directly, without ever computing the exact parameter posterior?
Methods
The authors compare two perspectives of the world:
- World $P$ (The Bayesian Model): Parameters $\theta$ are drawn from a prior $p(\theta)$, generating both observed data $\mathcal{D}$ and future predictions $x$.
- World $Q$ (The Direct Predictive Model): We observe $\mathcal{D}$, generate a prediction directly using a variational predictive distribution $q(x|\mathcal{D})$, and infer parameters via an augmented posterior $q(\theta|x, \mathcal{D})$.
By minimizing the conditional Kullback-Leibler (KL) divergence between Worlds $Q$ and $P$, they define the Variational Prediction (VP) loss:
$$\mathcal{J} \equiv \mathbb{E}_q \left[ \log \frac{q(x|\mathcal{D})q(\theta|x, \mathcal{D})}{p(x|\theta)p(\mathcal{D}|\theta)p(\theta)} \right]$$
This objective acts as a variational upper bound on $-\log p(\mathcal{D})$ and, crucially, upper-bounds the KL divergence between the approximate predictive $q(x|\mathcal{D})$ and the true Bayesian predictive $p(x|\mathcal{D})$.
To implement the conditional augmented posterior $q(\theta|x, \mathcal{D})$ without building a separate complex model, the authors take inspiration from MAML (Model-Agnostic Meta-Learning):
- They maintain a base posterior $q(\theta|\mathcal{D})$.
- When a synthetic point $x$ is drawn from $q(x|\mathcal{D})$, they compute $q(\theta|x, \mathcal{D})$ via a single gradient step on an Evidence Lower Bound (ELBO) that accounts for the new point, parameterized by a learning rate $\lambda$ and an effective observation weight $\beta$.
Datasets
-
Synthetic 1D Sinusoidal Curve: The paper tests the method exclusively on a toy regression dataset of $N = 8$ data points sampled from a noisy sine wave: $$x \sim \mathcal{U}(0, 1), \quad y \sim \mathcal{N}(\sin(2\pi f x + \phi), 1)$$ with true parameters $f = 1$ and $\phi = 1$.
-
No real-world datasets or standard large-scale benchmarks are evaluated in this paper.
Key Insights and Ideas
- Evaluating "off the data manifold": Unlike standard inference where likelihoods are only evaluated at training points, VP samples synthetic predictions $x \sim q(x|\mathcal{D})$ during training and forces the Bayesian model to explain them. This self-consistency regularizes the predictive model in regions lacking training data.
- Circumventing mode-collapse: Standard Mean Field Variational Inference (MFVI) minimizes $\text{KL}(q(\theta) \parallel p(\theta|\mathcal{D}))$, which is notoriously mode-seeking. If the true posterior is multimodal, MFVI locks onto one mode and yields poor, single-mode predictive behavior. VP optimizes for predictive quality directly, helping it find parameters that generate better overall curves.
- Connection to Besag's Candidate's Formula: Appendix A highlights that $p(x|\mathcal{D}) = \frac{p(x|\theta)p(\theta|\mathcal{D})}{p(\theta|x, \mathcal{D})}$. If one had access to the exact augmented posterior $p(\theta|x, \mathcal{D})$, marginalization wouldn't be necessary. VP operationalizes this insight variationally.
Key Results
On the toy sinusoidal problem:
- Failure of Baselines: MAP estimation fit an overly sharp point estimate, while MFVI collapsed onto a higher-frequency mode, producing a predictive distribution with the wrong frequency.
- VP Success: VP produced an accurate predictive fit with zero test-time marginalization, learning an effective update rate $\lambda = 0.004$ and temperature $\beta = 12.8$.
- Importance of Conditioning: When the MAML-style conditioning was removed (using an unconditional augmented posterior
uncondVP), predictive performance deteriorated sharply, confirming that updating the posterior conditioned on the generated sample is critical.
Limitations and Future Work
- Optimization Variance: The primary limitation is high gradient variance during training. Because samples flow through both the predictive distribution and the subsequent gradient-based posterior update, optimization becomes noisy and unstable.
- Scale: The method was only demonstrated on a 2-parameter 1D toy problem. It has not yet been proven on deep neural networks or high-dimensional datasets.
- Future Work: The authors propose investigating advanced variance reduction techniques (such as "sticking the landing" estimators and control variates) and better MAML optimization stabilization strategies to scale VP to modern architectures.
Summary updated