Variational Inference (VI) is a cornerstone of Bayesian machine learning, providing a framework to approximate complex posterior distributions. However, practitioners often face a stark choice: use simple, explicit distributions (like Gaussians) that are easy to optimize but lack expressivity, or use implicit distributions (defined by neural networks) that can represent complex data but are notoriously difficult to train due to the lack of a tractable density.
Semi-Implicit Variational Inference (SIVI) attempted to bridge this gap, but its unbiased variants (UIVI) were largely dismissed as computationally impractical, relying on slow Markov Chain Monte Carlo (MCMC) loops that struggled in high dimensions. This paper revitalizes the UIVI framework, demonstrating that modern neural architectures and sampling strategies can make unbiased implicit models both fast and scalable.
The AISIVI Framework
The authors introduce Adaptively Informed Semi-Implicit Variational Inference (AISIVI), which overcomes the limitations of previous UIVI methods through three key innovations:
- Importance Sampling over MCMC: Instead of relying on slow MCMC chains to explore the latent space, AISIVI uses Importance Sampling (IS). This allows for unbiased gradient estimation that is highly parallelizable and better suited for modern GPU hardware.
- Conditional Normalizing Flows (CNFs): The efficiency of IS depends heavily on the quality of the proposal distribution. AISIVI employs a CNF to adaptively learn the optimal proposal distribution. By training the CNF to approximate the "reverse conditional" distribution, the model minimizes the variance of the gradient estimates as training progresses.
- Memory-Efficient Path Gradients: By utilizing a path gradient estimator, the authors ensure that the model can be trained with constant memory overhead, regardless of the number of samples used for the gradient estimate. This is complemented by a "log-space" aggregation method that ensures numerical stability during large-scale parallel processing.
Experimental Evaluation
The proposed methods, AISIVI and its base version BSIVI, were evaluated across a spectrum of complexity, from 2D toy problems to 100-dimensional latent variable models.
Toy Densities
On standard benchmarks such as the Banana, X-Shape, and Multimodal distributions, AISIVI demonstrated remarkable fidelity to the target densities. Unlike traditional VI methods that often collapse to a single mode or over-smooth complex geometries, the implicit nature of AISIVI allows it to capture sharp features and disjoint modes effectively.
High-Dimensional Challenges
To test scalability, the authors applied AISIVI to a 100-dimensional conditioned diffusion process and a Bayesian logistic regression task using the WAVEFORM dataset. In these high-dimensional settings, AISIVI proved to be the only method capable of closely matching the ground truth established by Stochastic Gradient Langevin Dynamics (SGLD).
While other methods like PVI tended to underestimate variance or struggle with the dimensionality, AISIVI maintained high accuracy. Notably, it achieved competitive results on logistic regression in significantly fewer iterations than established benchmarks like KSIVI (10k vs 100k iterations), highlighting its efficiency.
Conclusion and Future Directions
This research demonstrates that Unbiased Implicit Variational Inference is not only viable but highly effective when paired with modern deep learning tools. By replacing MCMC with adaptive importance sampling, AISIVI provides a robust, parallelizable path for training highly expressive probabilistic models.
Future work may focus on improving the exploration capabilities of the method for extremely disjoint multimodal distributions, perhaps through temperature annealing. Additionally, exploring different flow architectures for the CNF proposal could further enhance performance across diverse problem domains. AISIVI stands as a powerful tool for researchers requiring both the flexibility of implicit models and the mathematical rigor of unbiased gradients.
Summary updated