In Bayesian machine learning, the marginal likelihood (or "evidence") is the gold standard for model selection and evaluation. However, for complex models like deep generative networks, calculating this value is notoriously difficult. Traditionally, researchers have relied on the Evidence Lower Bound (ELBO), which provides a conservative estimate of the truth. But a lower bound only tells you half the story: it tells you how good your model is at minimum, but not how much better it could be.
Recent research has shifted toward "sandwiching" the true marginal likelihood between stochastic upper and lower bounds. By trapping the evidence within a verifiable range, practitioners can finally quantify the "inference gap" and provide rigorous guarantees for their approximations.
The One-Sided Problem of Variational Inference
Standard Variational Inference (VI) works by optimizing a surrogate objective, the ELBO. As Adji Bousso Dieng, Dustin Tran, and colleagues point out in Variational Inference via $\chi$ Upper Bound Minimization, VI has a "personality flaw": it is often overconfident and underestimates posterior variance.
Because the ELBO is only a lower bound, a low score is ambiguous. Is the model poor, or is the approximation just loose? To resolve this, we need a corresponding upper bound. By minimizing a $\chi$-upper bound (CUBO) alongside the ELBO, researchers can bracket the true marginal likelihood, providing a clearer picture of the approximation quality.
Bidirectional Monte Carlo
While variational bounds are useful for optimization, Roger Grosse and his collaborators introduced a more rigorous way to validate these estimates using Bidirectional Monte Carlo (BDMC).
In Sandwiching the marginal likelihood using bidirectional Monte Carlo, the authors describe a symmetry in Markov chain trajectories. A standard "forward" chain (like Annealed Importance Sampling) provides a stochastic lower bound on the log-marginal likelihood. However, if one starts from an exact posterior sample—which can be obtained using simulated data—and runs the chain in "reverse," the resulting estimator becomes a stochastic upper bound.
This "sandwich" allows researchers to verify the accuracy of likelihood estimators. In On the Quantitative Analysis of Decoder-Based Generative Models, Yuhuai Wu and Ruslan Salakhutdinov used this technique to show that common evaluation metrics, such as visual inspection or Kernel Density Estimation, are often misleading and fail to detect when a model has failed to capture the true data distribution.
From Bounds to Practical Error Diagnostics
The gap between these upper and lower bounds is more than just a validation tool; it is a diagnostic for the reliability of the entire Bayesian pipeline. Jonathan H. Huggins, Tamara Broderick, and Trevor Campbell have formalized this in Validated Variational Inference via Practical Posterior Error Bounds.
By calculating both the ELBO and the CUBO, they demonstrate that the numerical difference between the two bounds can be used to calculate rigorous error bounds on posterior means and uncertainties. This transforms Variational Inference from a "best-effort" approximation into a validated statistical tool. If the sandwich is thin, the approximation is tight, and the results can be trusted; if the sandwich is thick, the user knows they must refine their variational family or optimization strategy.
Generalizing the Sandwich
The concept of dual-bounding has recently been generalized beyond specific divergences. In $f$-Divergence Variational Inference, Neng Wan and colleagues extended this framework to the entire family of $f$-divergences. This allows for a standardized toolkit where practitioners can choose the divergence that best suits their data while maintaining the ability to "sandwich" the marginal likelihood.
Similarly, Dmitry Molchanov and Artem Sobolev developed Doubly Semi-Implicit Variational Inference (DSIVI), which applies sandwich bounds to highly flexible, implicit distributions. This ensures that even as latent representations become more complex and expressive, we do not lose the ability to rigorously quantify how much information is being lost in the approximation.
By moving from single-point estimates to bidirectional bounds, the field is moving toward a more transparent and accountable form of probabilistic modeling, where the "inference gap" is no longer an unknown quantity, but a measurable metric of success.