Cargando…
Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages
Probabilistic programming is an approach to reasoning under uncertainty by encoding inference problems as programs. In order to solve these inference problems, probabilistic programming languages (PPLs) employ different inference algorithms, such as sequential Monte Carlo (SMC), Markov chain Monte C...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984533/ http://dx.doi.org/10.1007/978-3-030-72019-3_15 |
_version_ | 1783668085265268736 |
---|---|
author | Lundén, Daniel Borgström, Johannes Broman, David |
author_facet | Lundén, Daniel Borgström, Johannes Broman, David |
author_sort | Lundén, Daniel |
collection | PubMed |
description | Probabilistic programming is an approach to reasoning under uncertainty by encoding inference problems as programs. In order to solve these inference problems, probabilistic programming languages (PPLs) employ different inference algorithms, such as sequential Monte Carlo (SMC), Markov chain Monte Carlo (MCMC), or variational methods. Existing research on such algorithms mainly concerns their implementation and efficiency, rather than the correctness of the algorithms themselves when applied in the context of expressive PPLs. To remedy this, we give a correctness proof for SMC methods in the context of an expressive PPL calculus, representative of popular PPLs such as WebPPL, Anglican, and Birch. Previous work have studied correctness of MCMC using an operational semantics, and correctness of SMC and MCMC in a denotational setting without term recursion. However, for SMC inference—one of the most commonly used algorithms in PPLs as of today—no formal correctness proof exists in an operational setting. In particular, an open question is if the resample locations in a probabilistic program affects the correctness of SMC. We solve this fundamental problem, and make four novel contributions: (i) we extend an untyped PPL lambda calculus and operational semantics to include explicit resample terms, expressing synchronization points in SMC inference; (ii) we prove, for the first time, that subject to mild restrictions, any placement of the explicit resample terms is valid for a generic form of SMC inference; (iii) as a result of (ii), our calculus benefits from classic results from the SMC literature: a law of large numbers and an unbiased estimate of the model evidence; and (iv) we formalize the bootstrap particle filter for the calculus and discuss how our results can be further extended to other SMC algorithms. |
format | Online Article Text |
id | pubmed-7984533 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
record_format | MEDLINE/PubMed |
spelling | pubmed-79845332021-03-23 Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages Lundén, Daniel Borgström, Johannes Broman, David Programming Languages and Systems Article Probabilistic programming is an approach to reasoning under uncertainty by encoding inference problems as programs. In order to solve these inference problems, probabilistic programming languages (PPLs) employ different inference algorithms, such as sequential Monte Carlo (SMC), Markov chain Monte Carlo (MCMC), or variational methods. Existing research on such algorithms mainly concerns their implementation and efficiency, rather than the correctness of the algorithms themselves when applied in the context of expressive PPLs. To remedy this, we give a correctness proof for SMC methods in the context of an expressive PPL calculus, representative of popular PPLs such as WebPPL, Anglican, and Birch. Previous work have studied correctness of MCMC using an operational semantics, and correctness of SMC and MCMC in a denotational setting without term recursion. However, for SMC inference—one of the most commonly used algorithms in PPLs as of today—no formal correctness proof exists in an operational setting. In particular, an open question is if the resample locations in a probabilistic program affects the correctness of SMC. We solve this fundamental problem, and make four novel contributions: (i) we extend an untyped PPL lambda calculus and operational semantics to include explicit resample terms, expressing synchronization points in SMC inference; (ii) we prove, for the first time, that subject to mild restrictions, any placement of the explicit resample terms is valid for a generic form of SMC inference; (iii) as a result of (ii), our calculus benefits from classic results from the SMC literature: a law of large numbers and an unbiased estimate of the model evidence; and (iv) we formalize the bootstrap particle filter for the calculus and discuss how our results can be further extended to other SMC algorithms. 2021-03-23 /pmc/articles/PMC7984533/ http://dx.doi.org/10.1007/978-3-030-72019-3_15 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Lundén, Daniel Borgström, Johannes Broman, David Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title | Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title_full | Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title_fullStr | Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title_full_unstemmed | Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title_short | Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languages |
title_sort | correctness of sequential monte carlo inference for probabilistic programming languages |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984533/ http://dx.doi.org/10.1007/978-3-030-72019-3_15 |
work_keys_str_mv | AT lundendaniel correctnessofsequentialmontecarloinferenceforprobabilisticprogramminglanguages AT borgstromjohannes correctnessofsequentialmontecarloinferenceforprobabilisticprogramminglanguages AT bromandavid correctnessofsequentialmontecarloinferenceforprobabilisticprogramminglanguages |