Sound Probabilistic Inference via Guide Types
Di Wang, Jan Hoffmann, Thomas Reps

TL;DR
This paper introduces a new probabilistic programming language that guarantees model-guide compatibility through type-enforced communication protocols, supporting complex control flow and recursion without significant performance loss.
Contribution
It presents a language with coroutine-based model and guide programs, ensuring absolute continuity via guide types and an automatic type inference algorithm.
Findings
Language supports complex models with control flow and recursion.
Type inference algorithm effectively deduces guide types.
Implementation integrates with Pyro with minimal overhead.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBayesian Modeling and Causal Inference · Machine Learning and Algorithms · Advanced Database Systems and Queries
