NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semi-Implicit Variational Inference via Kernelized Path Gradient Descent

Tobias Pielok, Bernd Bischl, David Rügamer

TL;DR

This paper introduces Kernelized Path Gradient Descent (KPG) and its importance-sampling extension (KPG-IS) to make Semi-Implicit Variational Inference (SIVI) both highly accurate and computationally efficient. By explicitly leveraging the hierarchical structure of semi-implicit distributions, the proposed method significantly reduces gradient variance and accelerates training convergence compared to existing state-of-the-art approaches.

What Problem Does This Paper Address?

Variational Inference (VI) is a cornerstone of Bayesian machine learning used to approximate complex, intractable posterior distributions. Traditional "explicit" VI relies on simple, tractable distribution families (like Gaussians), which often fail to capture complex structures like multimodality or skewness. Semi-Implicit Variational Inference (SIVI) solves this by defining highly flexible distributions as mixtures with an implicit component.

However, training SIVI models using the Kullback-Leibler (KL) divergence in high-dimensional spaces is notoriously difficult. Existing techniques suffer from high gradient variance and bias, making optimization unstable or computationally expensive. Amortized Stein Variational Gradient Descent (SVGD) methods exist, but they treat the variational distribution as a black box, throwing away valuable structural information and leading to noisy gradient estimates.

Methods

The authors propose two primary algorithms to address these challenges:

  1. Kernelized Path Gradient (KPG): Instead of treating the variational distribution as a black box, KPG explicitly exploits the hierarchical, reparameterizable structure of semi-implicit distributions. By applying a kernel trick specifically tailored for semi-implicit mixtures, KPG nonparametrically smooths the score gradient difference. The authors mathematically prove that this structural awareness guarantees a lower-variance gradient estimator than standard Stein-based methods.
  2. Importance Sampling Correction (KPG-IS): Restricting score estimation to a Reproducing Kernel Hilbert Space (RKHS) introduces bias. To mitigate this, KPG-IS incorporates an importance-weighted variant that learns an optimal proposal distribution for the latent variables. To ensure training stability, the proposal is parameterized as a constrained mixture model, guaranteeing that its support always covers the latent prior.

Datasets

The authors evaluated their approach on several established benchmarks:

  • Conditional Diffusion Process: A challenging, 100-dimensional latent variable benchmark derived from a stochastic differential equation (SDE).
  • Bayesian Logistic Regression: Evaluated using the UCI WAVEFORM dataset, featuring a moderate-dimensional setting (22 latent variables).
  • Synthetic SIVI Benchmarks: Standard toy distributions including banana, x-shaped, and multimodal targets to evaluate the capacity to capture complex geometries.

Key Insights and Ideas

  • Structure Matters: Black-box gradient estimators waste structural information. By explicitly accounting for the conditional reparameterization of SIVI, KPG achieves a provably lower variance.
  • Benign Bias: The smoothing effect of the kernel estimator introduces a benign bias in function space. Rather than hurting performance, this bias acts as a regularizer that stabilizes optimization in high dimensions.
  • The Support Constraint: For importance sampling to remain valid over implicit variables, the proposal distribution must strictly cover the support of the prior. The authors' convex combination mixture parameterization elegantly guarantees this condition throughout training without sacrificing flexibility.

Key Results

  • Blazing Fast Convergence: KPG-IS matches or exceeds the accuracy of the current gold standard (KSIVI) while converging significantly faster. In empirical testing, KPG-IS reached optimal log marginal likelihood in a fraction of the iterations required by competing methods.
Convergence speed comparison between KPG-IS and KSIVI
  • High-Dimensional Stability: On the 100-dimensional diffusion benchmark, KPG-IS achieved the highest log marginal likelihood (74,528) while maintaining excellent posterior approximation quality.
Posterior quality comparison for the diffusion process
  • Robustness: Standard amortized SVGD (STEIN) completely diverged under identical hyperparameter settings in the Bayesian logistic regression task, highlighting the critical importance of KPG’s variance reduction.

Limitations and Future Work

The primary limitation acknowledged by the authors is that the proposed method does not inherently promote exploration. If the target distribution features widely separated modes, KPG and KPG-IS may struggle with mode coverage unless paired with external heuristics like temperature annealing.

The authors note that developing a more principled, integrated exploration mechanism directly within the path gradient framework is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{pielok2026semi,
  author = {Tobias Pielok and Bernd Bischl and David Rügamer},
  title = {{Semi-Implicit Variational Inference via Kernelized Path Gradient Descent}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=pzNqB3Jtq2},
}
Figure