Skip to main content
QUICK REVIEW

[Paper Review] Kernel Implicit Variational Inference

Jiaxin Shi, Shengyang Sun|arXiv (Cornell University)|May 29, 2017
Gaussian Processes and Bayesian InferenceComputer Science36 references7 citations
TL;DR

Kernel Implicit Variational Inference (KIVI) is a novel implicit variational inference method that uses kernel-based density ratio estimation to enable stable, computationally feasible training of variational posteriors without tractable densities. It achieves state-of-the-art performance in Bayesian neural networks and variational autoencoders by enabling tighter bounds and reduced overfitting, with successful application to high-dimensional models like BNNs and VAEs on MNIST and CelebA.

ABSTRACT

Recent progress in variational inference has paid much attention to the flexibility of variational posteriors. One promising direction is to use implicit distributions, i.e., distributions without tractable densities as the variational posterior. However, existing methods on implicit posteriors still face challenges of noisy estimation and computational infeasibility when applied to models with high-dimensional latent variables. In this paper, we present a new approach named Kernel Implicit Variational Inference that addresses these challenges. As far as we know, for the first time implicit variational inference is successfully applied to Bayesian neural networks, which shows promising results on both regression and classification tasks.

Motivation & Objective

  • To address the instability and computational infeasibility of existing implicit variational inference (IVI) methods when applied to high-dimensional models such as Bayesian neural networks (BNNs).
  • To develop a principled method for tuning the bias-variance tradeoff in implicit VI, avoiding reliance on noisy discriminator-based estimators.
  • To enable the use of flexible, non-invertible transformations in variational posteriors, thereby expanding the expressive power of the variational family beyond factorized or normalizing flow-based approaches.
  • To demonstrate the feasibility and effectiveness of implicit VI in both global (BNNs) and local (VAEs) latent variable models, particularly in reducing overfitting and improving likelihood estimates.

Proposed method

  • KIVI replaces discriminator-based density ratio estimation with a kernel-based estimator of the density ratio $ \frac{q_\phi(\mathbf{z})}{p(\mathbf{z})} $, which provides a more stable and analytically grounded approximation.
  • The method uses a kernelized estimator of the KL divergence between the variational posterior $ q_\phi(\mathbf{z}) $ and the prior $ p(\mathbf{z}) $, avoiding the need for explicit density evaluation.
  • It formulates the variational objective as a functional optimization problem using a reproducing kernel Hilbert space (RKHS) framework, enabling gradient-based optimization without requiring tractable densities.
  • The approach introduces two hyperparameters—$ \lambda $ for bias-variance control and a clipping value for numerical stability—both with clear interpretability.
  • KIVI is compatible with both global and local latent variable models, allowing application to BNNs and VAEs with high-dimensional latent spaces.
  • The method avoids training a separate discriminator network, reducing computational cost and eliminating hyperparameter sensitivity common in GAN-based implicit VI.

Experimental results

Research questions

  • RQ1Can implicit variational inference be made stable and scalable for high-dimensional models such as Bayesian neural networks?
  • RQ2Does a kernel-based density ratio estimator provide a more reliable alternative to discriminator-based methods in implicit VI, especially in terms of bias-variance control?
  • RQ3Can implicit posteriors constructed via non-invertible transformations outperform standard mean-field or normalizing flow posteriors in terms of generalization and likelihood estimation?
  • RQ4To what extent does implicit VI reduce overfitting in variational autoencoders compared to standard VAEs?
  • RQ5How does KIVI compare to adversarial variational Bayes (AVB) in terms of training stability, sample quality, and FID scores on large-scale datasets like CelebA?

Key findings

  • KIVI successfully enables implicit variational inference in Bayesian neural networks for the first time, achieving strong performance on both regression and classification tasks.
  • On the binarized MNIST dataset, KIVI reduced the generalization gap between training and test lower bounds, achieving a test log-likelihood of -94.8 compared to -97.3 for the standard VAE.
  • On CelebA, KIVI achieved a Fréchet Inception Distance (FID) score of 41 after 25 epochs, significantly outperforming AVB’s FID of 160 with the same architecture and training setup.
  • Interpolation experiments on CelebA showed that KIVI produces smoother and sharper generated image transitions than AVB, indicating a more disentangled and structured latent space.
  • KIVI required no hyperparameter tuning for the discriminator, unlike AVB, which needed explicit addition of the log-prior to the discriminator and careful architectural design.
  • The method demonstrated computational feasibility for high-dimensional latent variables, overcoming a key limitation of previous GAN-based implicit VI approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.