Lune

PLDI2021Top-tier venue

Sound probabilistic inference via guide types

Di Wang, Jan Hoffmann, Thomas W. Reps

Abstract

Probabilistic programming languages aim to describe and automate Bayesian modeling and inference. Modern languages support programmable inference, which allows users to customize inference algorithms by incorporating guide programs to improve inference performance. For Bayesian inference to be sound, guide programs must be compatible with model programs. One pervasive but challenging condition for model-guide compatibility is absolute continuity, which requires that the model and guide programs define probability distributions with the same support.

This paper presents a new probabilistic programming language that guarantees absolute continuity, and features general programming constructs, such as branching and recursion. Model and guide programs are implemented as coroutines that communicate with each other to synchronize the set of random variables they sample during their execution. Novel guide types describe and enforce communication protocols between coroutines. If the model and guide are well-typed using the same protocol, then they are guaranteed to enjoy absolute continuity. An efficient algorithm infers guide types from code so that users do not have to specify the types. The new programming language is evaluated with an implementation that includes the type-inference algorithm and a prototype compiler that targets Pyro. Experiments show that our language is capable of expressing a variety of probabilistic models with nontrivial control flow and recursion, and that the coroutine-based computation does not introduce significant overhead in actual Bayesian inference.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Probabilistic Programming with Programmable Variational Inference cites Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference
  • Probabilistic Programming with Programmable Variational Inference cites Towards verified stochastic variational inference for probabilistic programs
  • Probabilistic Programming with Programmable Variational Inference cites Trace types and denotational semantics for sound programmable inference in probabilistic languages
  • Probabilistic Programming with Programmable Variational Inference cites Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic Inference
  • Probabilistic Programming with Programmable Variational Inference cites Probabilistic Programming with Stochastic Probabilities
  • Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference cites Towards verified stochastic variational inference for probabilistic programs
  • Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference cites Trace types and denotational semantics for sound programmable inference in probabilistic languages
  • Compiling Probabilistic Programs for Variable Elimination with Information Flow cites Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic Inference
  • Compiling Probabilistic Programs for Variable Elimination with Information Flow cites Probabilistic Programming with Stochastic Probabilities
  • Trace types and denotational semantics for sound programmable inference in probabilistic languages cites Towards verified stochastic variational inference for probabilistic programs
  • Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic Inference cites Towards verified stochastic variational inference for probabilistic programs
  • Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic Inference cites Trace types and denotational semantics for sound programmable inference in probabilistic languages
  • Probabilistic Programming with Stochastic Probabilities cites Towards verified stochastic variational inference for probabilistic programs
  • Probabilistic Programming with Stochastic Probabilities cites Trace types and denotational semantics for sound programmable inference in probabilistic languages
  • Probabilistic Programming with Stochastic Probabilities cites Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic Inference
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Probabilistic Programming with Stochastic ProbabilitiesAlexander K. Lew, Matin Ghavamizadeh, Martin C. Rinard, Vikash K. MansinghkaPLDI 2023 · 9 citations
  2. Probabilistic Programming with Programmable Variational InferenceMcCoy R. Becker, Alexander K. Lew, Xiaoyan Wang, Matin Ghavami et al.PLDI 2024 · 8 citations
  3. Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational InferenceWonyeol Lee, Xavier Rival, Hongseok YangPOPL 2023 · 8 citations
  4. Type-Preserving, Dependence-Aware Guide Generation for Sound, Effective Amortized Probabilistic InferenceJianlin Li, Leni Aniva, Pengyuan Shi, Yizhou ZhangPOPL 2023 · 7 citations
  5. Compiling Probabilistic Programs for Variable Elimination with Information FlowJianlin Li, Eric Wang, Yizhou ZhangPLDI 2024 · 6 citations

Builds on3

  1. Trace types and denotational semantics for sound programmable inference in probabilistic languagesAlexander K. Lew, Marco F. Cusumano-Towner, Benjamin Sherman, Michael Carbin et al.POPL 2020 · 30 citations
  2. Towards verified stochastic variational inference for probabilistic programsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangPOPL 2020 · 22 citations
  3. Label-dependent session typesPeter Thiemann, Vasco T. VasconcelosPOPL 2020 · 14 citations

Related papers

  1. Programmable MCMC with Soundly Composed Guide ProgramsLong Pham, Di Wang, Feras A. Saad, Jan HoffmannOOPSLA 2024 · 1 citation
  2. Deterministic stream-sampling for probabilistic programming: semantics and verificationFredrik Dahlqvist, Alexandra Silva, William SmithLICS 2023 · 4 citations
  3. Exact Recursive Probabilistic ProgrammingDavid Chiang, Colin McDonald, Chung-chieh ShanOOPSLA 2023 · 12 citations
  4. Compiling Stan to generative probabilistic languages and extension to deep probabilistic programmingGuillaume Baudart, Javier Burroni, Martin Hirzel, Louis Mandel et al.PLDI 2021 · 13 citations
  5. Higher Order Bayesian Networks, ExactlyClaudia Faggian, Daniele Pautasso, Gabriele VanoniPOPL 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines