Skip to main content
QUICK REVIEW

[Paper Review] Nonparametric variational inference

Samuel J. Gershman, Matt Hoffman|arXiv (Cornell University)|Jun 18, 2012
Gaussian Processes and Bayesian InferenceComputer Science20 references45 citations
TL;DR

This paper introduces a nonparametric variational inference method that uses kernel density estimation to model complex, multi-modal posterior distributions without requiring conjugate exponential family priors. By treating kernel locations and bandwidths as variational parameters, the approach optimizes a lower bound on marginal likelihood, achieving performance comparable to or better than specialized variational and sampling methods on hierarchical logistic regression and nonlinear matrix factorization models.

ABSTRACT

Variational methods are widely used for approximate posterior inference. However, their use is typically limited to families of distributions that enjoy particular conjugacy properties. To circumvent this limitation, we propose a family of variational approximations inspired by nonparametric kernel density estimation. The locations of these kernels and their bandwidth are treated as variational parameters and optimized to improve an approximate lower bound on the marginal likelihood of the data. Using multiple kernels allows the approximation to capture multiple modes of the posterior, unlike most other variational approximations. We demonstrate the efficacy of the nonparametric approximation with a hierarchical logistic regression model and a nonlinear matrix factorization model. We obtain predictive performance as good as or better than more specialized variational methods and sample-based approximations. The method is easy to apply to more general graphical models for which standard variational methods are difficult to derive.

Motivation & Objective

  • To address the limitation of standard variational inference in handling non-conjugate models with complex posterior structures.
  • To enable flexible, nonparametric posterior approximation without relying on conjugate exponential family distributions.
  • To develop a scalable and general-purpose inference framework applicable to a wide range of graphical models.
  • To improve posterior approximation quality by capturing multiple modes through multiple kernels.
  • To achieve predictive performance on par with or better than specialized variational and MCMC-based methods.

Proposed method

  • The method constructs a variational approximation using a mixture of kernels centered at learnable locations.
  • Kernel bandwidths are treated as variational parameters and optimized alongside kernel locations.
  • The variational lower bound on the marginal likelihood is maximized using gradient-based optimization.
  • The kernel density approximation allows for flexible, nonparametric modeling of complex posterior shapes.
  • The approach is applicable to general graphical models where standard variational methods are difficult to derive.
  • The method avoids strong parametric assumptions by relying on kernel smoothing rather than exponential family distributions.

Experimental results

Research questions

  • RQ1Can a nonparametric variational approximation effectively model multi-modal posteriors in complex models?
  • RQ2How does the performance of this kernel-based variational method compare to specialized variational and MCMC approaches?
  • RQ3Can the method be applied to models where standard variational inference is intractable due to lack of conjugacy?
  • RQ4What is the impact of kernel bandwidth and location optimization on the quality of the variational approximation?
  • RQ5Does the method generalize across different types of graphical models beyond exponential family exponential families?

Key findings

  • The nonparametric variational inference method achieves predictive performance comparable to or better than specialized variational methods on hierarchical logistic regression.
  • On nonlinear matrix factorization, the method outperforms standard variational inference and matches or exceeds MCMC-based approximations in predictive accuracy.
  • The method successfully captures multiple modes in the posterior, a capability often lacking in standard mean-field variational inference.
  • The optimization of kernel locations and bandwidths leads to a tighter lower bound on the marginal likelihood compared to fixed-kernel alternatives.
  • The approach is robust and generalizable, enabling effective inference in models where standard variational methods are difficult to derive.

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.