Kernel Semi-Implicit Variational Inference

Ziheng Cheng, Longlin Yu, Tianyu Xie, Shiyue Zhang, Cheng Zhang
2/12/2026

No official code found. Best implementation: longinYu/HSIVI (9 stars, last commit 2024-06-17).

Abstract

Semi-implicit variational inference (SIVI) extends traditional variational families with semi-implicit distributions defined in a hierarchical manner. Due to the intractable densities of semi-implicit distributions, classical SIVI often resorts to surrogates of evidence lower bound (ELBO) that would introduce biases for training. A recent advancement in SIVI, named SIVI-SM, utilizes an alternative score matching objective made tractable via a minimax formulation, albeit requiring an additional lower-level optimization. In this paper, we propose kernel SIVI (KSIVI), a variant of SIVI-SM that eliminates the need for lower-level optimization through kernel tricks. Specifically, we show that when optimizing over a reproducing kernel Hilbert space (RKHS), the lower-level problem has an explicit solution. This way, the upper-level objective becomes the kernel Stein discrepancy (KSD), which is readily computable for stochastic gradient descent due to the hierarchical structure of semi-implicit variational distributions. An upper bound for the variance of the Monte Carlo gradient estimators of the KSD objective is derived, which allows us to establish novel convergence guarantees of KSIVI. We demonstrate the effectiveness and efficiency of KSIVI on both synthetic distributions and a variety of real data Bayesian inference tasks.

View on arXivView PDF

Code Implementations(1)

longinYu/HSIVICommunity100%
91Shell, PythonOct 25, 20232 years ago

Similar Papers

Cite this paper

@article{cheng2026kernel,
  title  = {Kernel Semi-Implicit Variational Inference},
  author = {Ziheng Cheng and Longlin Yu and Tianyu Xie and Shiyue Zhang and Cheng Zhang},
  year   = {2026},
  eprint = {2405.18997},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.18997},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.18997.svg)](https://codeofpaper.com/paper/2405.18997)

Discussion