Journal article
Denotational validation of higher-order Bayesian inference
- Abstract:
-
We present a modular semantic account of Bayesian inference algorithms for probabilistic programming languages, as used in data science and machine learning. Sophisticated inference algorithms are often explained in terms of composition of smaller parts. However, neither their theoretical justification nor their implementation reflects this modularity. We show how to conceptualise and analyse such inference algorithms as manipulating intermediate representations of probabilistic programs using higher-order functions and inductive types, and their denotational semantics.
Semantic accounts of continuous distributions use measurable spaces. However, our use of higher-order functions presents a substantial technical difficulty: it is impossible to define a measurable space structure over the collection of measurable functions between arbitrary measurable spaces that is compatible with standard operations on those functions, such as function application.We overcome this difficulty using quasi-Borel spaces, a recently proposed mathematical structure that supports both function spaces and continuous distributions.
We define a class of semantic structures for representing probabilistic programs, and semantic validity criteria for transformations of these representations in terms of distribution preservation. We develop a collection of building blocks for composing representations. We use these building blocks to validate common inference algorithms such as Sequential Monte Carlo and Markov Chain Monte Carlo. To emphasize the connection between the semantic manipulation and its traditional measure theoretic origins, we use Kock’s synthetic measure theory.We demonstrate its usefulness by proving a quasi-Borel counterpart to the Metropolis-Hastings-Green theorem.
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Version of record, pdf, 428.3KB, Terms of use)
-
- Publisher copy:
- 10.1145/3158148
Authors
- Publisher:
- Association for Computing Machinery
- Journal:
- Proceedings of the ACM on Programming Languages More from this journal
- Publication date:
- 2018-01-01
- Acceptance date:
- 2017-10-27
- DOI:
- EISSN:
-
2475-1421
- Keywords:
- Pubs id:
-
pubs:743837
- UUID:
-
uuid:2063e4e0-1553-443d-9723-d72479d38e0e
- Local pid:
-
pubs:743837
- Source identifiers:
-
743837
- Deposit date:
-
2017-11-09
- ARK identifier:
Terms of use
- Copyright holder:
- Kammar et al
- Copyright date:
- 2018
- Notes:
- © 2018 Copyright held by the owner/author(s). This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- Licence:
- CC Attribution (CC BY)
If you are the owner of this record, you can report an update to it here: Report update to this record