Trace Types and Denotational Semantics for Sound Programmable Inference in Probabilistic Languages
Modern probabilistic programming languages aim to formalize and automate key aspects of probabilistic modeling and inference. Many languages provide constructs for programmable inference that enable developers to improve inference speed and accuracy. Unfortunately, it is easy to use these constructs to write unsound programs that appear to run correctly but that produce meaningless results. This paper presents a denotational semantics for higher-order probabilistic programs with programmable inference, along with a type system that ensures that well-typed inference programs are sound by construction. A central insight is that the type of a probabilistic expression can track the space of its possible execution traces, not just the type of value that it returns, as these traces are often the objects that are manipulated during inference. We use our semantics and type system to establish soundness properties of custom inference programs that use constructs for variational, sequential Monte Carlo, importance sampling, and Markov chain Monte Carlo inference.
Wed 22 JanDisplayed time zone: Saskatchewan, Central America change
10:30 - 11:35 | Probabilistic ProgrammingResearch Papers at Ile de France II (IDF II) Chair(s): Alexandra Silva University College London | ||
10:30 21mTalk | Towards Verified Stochastic Variational Inference for Probabilistic Programs Research Papers Link to publication DOI Media Attached | ||
10:51 21mTalk | Trace Types and Denotational Semantics for Sound Programmable Inference in Probabilistic Languages Research Papers Alexander K. Lew Massachusetts Institute of Technology, USA, Marco Cusumano-Towner MIT-CSAIL, Benjamin Sherman Massachusetts Institute of Technology, USA, Michael Carbin Massachusetts Institute of Technology, Vikash K. Mansinghka MIT Link to publication DOI Media Attached | ||
11:13 21mTalk | Semantics of Higher-Order Probabilistic Programs with Conditioning Research Papers Link to publication DOI Media Attached File Attached |