Practical probabilistic programming with monads
Authors:
Open Access
- 30 August 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 165-176
Abstract
The machine learning community has recently shown a lot of interest in practical probabilistic programming systems that target the problem of Bayesian inference. Such systems come in different forms, but they all express probabilistic models as computational processes using syntax resembling programming languages. In the functional programming community monads are known to offer a convenient and elegant abstraction for programming with probability distributions, but their use is often limited to very simple inference problems. We show that it is possible to use the monad abstraction to construct probabilistic models for machine learning, while still offering good performance of inference in challenging models. We use a GADT as an underlying representation of a probability distribution and apply Sequential Monte Carlo-based methods to achieve efficient inference. We define a formal semantics via measure theory. We demonstrate a clean and elegant implementation that achieves performance comparable with Anglican, a state-of-the-art probabilistic programming system.Keywords
Funding Information
- Cambridge Commonwealth, European and International Trust
- Engineering and Physical Sciences Research Council
This publication has 17 references indexed in Scilit:
- A Verified Compiler for Probability Density Functions2015
- Probabilistic programming2014
- The principles and practice of probabilistic programming2013
- MCMC Using Hamiltonian Dynamics2011
- On the implementation of the probabilistic logic programming language ProbLogTheory and Practice of Logic Programming, 2011
- Particle Markov Chain Monte Carlo MethodsJournal of the Royal Statistical Society Series B: Statistical Methodology, 2010
- Embedded Probabilistic Programming2009
- FUNCTIONAL PEARLS: Probabilistic functional programming in HaskellJournal of Functional Programming, 2005
- A probabilistic PDLJournal of Computer and System Sciences, 1985
- Semantics of probabilistic programsJournal of Computer and System Sciences, 1981