Probabilistic Circuits for Variational Inference in Discrete Graphical Models

Andy Shih, Stefano Ermon
10/22/2020
cs.LGcs.AI
bayesian

Official code: ermongroup/SPN_Variational_Inference (17 stars, Python, PyTorch, last commit 2021-10-11).

Abstract

Inference in discrete graphical models with variational methods is difficult because of the inability to re-parameterize gradients of the Evidence Lower Bound (ELBO). Many sampling-based methods have been proposed for estimating these gradients, but they suffer from high bias or variance.

Show full abstract

In this paper, we propose a new approach that leverages the tractability of probabilistic circuit models, such as Sum Product Networks (SPN), to compute ELBO gradients exactly (without sampling) for a certain class of densities. In particular, we show that selective-SPNs are suitable as an expressive variational distribution, and prove that when the log-density of the target model is a polynomial the corresponding ELBO can be computed analytically. To scale to graphical models with thousands of variables, we develop an efficient and effective construction of selective-SPNs with size $O(kn)$, where $n$ is the number of variables and $k$ is an adjustable hyperparameter. We demonstrate our approach on three types of graphical models -- Ising models, Latent Dirichlet Allocation, and factor graphs from the UAI Inference Competition. Selective-SPNs give a better lower bound than mean-field and structured mean-field, and is competitive with approximations that do not provide a lower bound, such as Loopy Belief Propagation and Tree-Reweighted Belief Propagation. Our results show that probabilistic circuits are promising tools for variational inference in discrete graphical models as they combine tractability and expressivity.

View on arXivView PDF

Code Implementations(1)

PyTorch

PyTorch implementation for "Probabilistic Circuits for Variational Inference in Discrete Graphical Models", NeurIPS 2020

172PythonOct 22, 20205 years ago
approximate-inferencegraphical-modelsprobabilistic-circuitspytorchsum-product-networks+1 more

Similar Papers

Cite this paper

@article{shih2020probabilistic,
  title  = {Probabilistic Circuits for Variational Inference in Discrete Graphical Models},
  author = {Andy Shih and Stefano Ermon},
  year   = {2020},
  eprint = {2010.11446},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.11446}
}

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/2010.11446.svg)](https://codeofpaper.com/paper/2010.11446)

Discussion