[Paper Review] Semi-Implicit Variational Inference
Semi-Implicit Variational Inference (SIVI) introduces a flexible variational inference framework that combines an analytic variational distribution with a reparameterizable implicit mixing distribution, enabling highly expressive posterior approximations without requiring analytic density functions. It derives an asymptotically exact surrogate ELBO for stochastic gradient optimization, achieving MCMC-level accuracy in posterior estimation across diverse Bayesian inference tasks.
Semi-implicit variational inference (SIVI) is introduced to expand the commonly used analytic variational distribution family, by mixing the variational parameter with a flexible distribution. This mixing distribution can assume any density function, explicit or not, as long as independent random samples can be generated via reparameterization. Not only does SIVI expand the variational family to incorporate highly flexible variational distributions, including implicit ones that have no analytic density functions, but also sandwiches the evidence lower bound (ELBO) between a lower bound and an upper bound, and further derives an asymptotically exact surrogate ELBO that is amenable to optimization via stochastic gradient ascent. With a substantially expanded variational family and a novel optimization algorithm, SIVI is shown to closely match the accuracy of MCMC in inferring the posterior in a variety of Bayesian inference tasks.
Motivation & Objective
- To address the limitation of mean-field variational inference in underestimating posterior variance due to restricted variational family expressiveness.
- To enable the use of implicit, non-analytic density distributions in variational inference without relying on density ratio estimation.
- To develop a tractable optimization procedure for complex variational families by sandwiching the ELBO and deriving a surrogate objective.
- To bridge the accuracy gap between variational inference and MCMC in posterior uncertainty quantification.
- To extend the applicability of variational inference to models with complex, multimodal, or skewed posteriors.
Proposed method
- Introduces a semi-implicit hierarchical construction where the variational parameter ψ is treated as a random variable drawn from a flexible, reparameterizable mixing distribution q(ψ).
- Uses a base variational distribution q(z|ψ) with an analytic PDF, while allowing the mixing distribution q(ψ) to be implicit, as long as it supports independent reparameterized sampling.
- Derives a sandwiched ELBO with a lower and upper bound, enabling Monte Carlo estimation of the evidence lower bound via sampling from the hierarchical model.
- Proposes an asymptotically exact surrogate ELBO that is amenable to stochastic gradient ascent, avoiding the need for density ratio estimation.
- Applies the framework to mean-field VI and VAEs by adding multiple stochastic layers, where the first layer is analytic and subsequent layers are implicit.
- Employs neural networks to parameterize the conditional distributions in the hierarchical encoder, allowing flexible, amortized inference.
Experimental results
Research questions
- RQ1Can a semi-implicit hierarchical construction enable expressive variational approximations while maintaining tractable optimization?
- RQ2Can the ELBO be bounded and approximated with sufficient accuracy using Monte Carlo sampling under a semi-implicit structure?
- RQ3Does SIVI achieve posterior accuracy comparable to MCMC without requiring conjugacy or explicit density functions?
- RQ4Can SIVI improve posterior uncertainty quantification in models with complex, multimodal, or skewed posteriors?
- RQ5How does SIVI perform in comparison to standard VI and MCMC in real-world Bayesian inference tasks?
Key findings
- SIVI achieves posterior accuracy comparable to MCMC in Bayesian logistic regression, outperforming standard VI and variational boosting in uncertainty quantification.
- In the semi-implicit VAE (SIVAE), the model achieves a negative log evidence of 83.25 on binarized MNIST using importance reweighting, outperforming standard VAEs with single-stochastic-layer encoders.
- The surrogate ELBO in SIVI is asymptotically exact, enabling reliable optimization via stochastic gradient ascent without density ratio estimation.
- SIVI successfully captures posterior dependencies in mean-field VI by making the marginal distribution conditionally independent but marginally dependent.
- The method supports fast, i.i.d. posterior sampling via the inferred stochastic variational network, enabling on-the-fly generation of posterior samples.
- SIVI demonstrates state-of-the-art performance in VAEs by combining a normalizing flow-like structure with implicit distributions, without requiring explicit density evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.