Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Scaling Exact Inference for Discrete Probabilistic Programs

About

Probabilistic programming languages (PPLs) are an expressive means of representing and reasoning about probabilistic models. The computational challenge of probabilistic inference remains the primary roadblock for applying PPLs in practice. Inference is fundamentally hard, so there is no one-size-fits all solution. In this work, we target scalable inference for an important class of probabilistic programs: those whose probability distributions are discrete. Discrete distributions are common in many fields, including text analysis, network verification, artificial intelligence, and graph analysis, but they prove to be challenging for existing PPLs. We develop a domain-specific probabilistic programming language called Dice that features a new approach to exact discrete probabilistic program inference. Dice exploits program structure in order to factorize inference, enabling us to perform exact inference on probabilistic programs with hundreds of thousands of random variables. Our key technical contribution is a new reduction from discrete probabilistic programs to weighted model counting (WMC). This reduction separates the structure of the distribution from its parameters, enabling logical reasoning tools to exploit that structure for probabilistic inference. We (1) show how to compositionally reduce Dice inference to WMC, (2) prove this compilation correct with respect to a denotational semantics, (3) empirically demonstrate the performance benefits over prior approaches, and (4) analyze the types of structure that allow Dice to scale to large probabilistic programs.

Steven Holtzen, Guy Van den Broeck, Todd Millstein• 2020

Related benchmarks

TaskDatasetResultRank
Exact Bayesian InferencePSI benchmarks noisyOr (F) (test)
Inference Time (s)0.0085
6
Exact Bayesian InferencePSI digitRecognition (F) (test)
Inference Time (s)0.83
6
Exact Bayesian InferencePSI grass (F) (test)
Inference Time0.0067
6
Exact Bayesian InferencePSI alarm (F) (test)
Inference Time (s)0.0066
6
Exact Bayesian InferencePSI twoCoins (F) (test)
Inference Time (s)0.0054
6
Exact Bayesian InferencePSI evidence1 (F) benchmarks (test)
Inference Time (s)0.0056
6
Exact Bayesian InferencePSI evidence2 (F) (test)
Inference Time (s)0.0056
6
Exact Bayesian InferencePSI murderMystery (F) (test)
Inference Time (s)0.0055
6
Showing 8 of 8 rows

Other info

Follow for update