Cargando…

Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere

We study the differential properties of higher-order statistical probabilistic programs with recursion and conditioning. Our starting point is an open problem posed by Hongseok Yang: what class of statistical probabilistic programs have densities that are differentiable almost everywhere? To formali...

Descripción completa

Detalles Bibliográficos
Autores principales: Mak, Carol, Ong, C.-H. Luke, Paquet, Hugo, Wagner, Dominik
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984578/
http://dx.doi.org/10.1007/978-3-030-72019-3_16
_version_ 1783668095514050560
author Mak, Carol
Ong, C.-H. Luke
Paquet, Hugo
Wagner, Dominik
author_facet Mak, Carol
Ong, C.-H. Luke
Paquet, Hugo
Wagner, Dominik
author_sort Mak, Carol
collection PubMed
description We study the differential properties of higher-order statistical probabilistic programs with recursion and conditioning. Our starting point is an open problem posed by Hongseok Yang: what class of statistical probabilistic programs have densities that are differentiable almost everywhere? To formalise the problem, we consider Statistical PCF (SPCF), an extension of call-by-value PCF with real numbers, and constructs for sampling and conditioning. We give SPCF a sampling-style operational semantics à la Borgström et al., and study the associated weight (commonly referred to as the density) function and value function on the set of possible execution traces. Our main result is that almost surely terminating SPCF programs, generated from a set of primitive functions (e.g. the set of analytic functions) satisfying mild closure properties, have weight and value functions that are almost everywhere differentiable. We use a stochastic form of symbolic execution to reason about almost everywhere differentiability. A by-product of this work is that almost surely terminating deterministic (S)PCF programs with real parameters denote functions that are almost everywhere differentiable. Our result is of practical interest, as almost everywhere differentiability of the density function is required to hold for the correctness of major gradient-based inference algorithms.
format Online
Article
Text
id pubmed-7984578
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79845782021-03-23 Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere Mak, Carol Ong, C.-H. Luke Paquet, Hugo Wagner, Dominik Programming Languages and Systems Article We study the differential properties of higher-order statistical probabilistic programs with recursion and conditioning. Our starting point is an open problem posed by Hongseok Yang: what class of statistical probabilistic programs have densities that are differentiable almost everywhere? To formalise the problem, we consider Statistical PCF (SPCF), an extension of call-by-value PCF with real numbers, and constructs for sampling and conditioning. We give SPCF a sampling-style operational semantics à la Borgström et al., and study the associated weight (commonly referred to as the density) function and value function on the set of possible execution traces. Our main result is that almost surely terminating SPCF programs, generated from a set of primitive functions (e.g. the set of analytic functions) satisfying mild closure properties, have weight and value functions that are almost everywhere differentiable. We use a stochastic form of symbolic execution to reason about almost everywhere differentiability. A by-product of this work is that almost surely terminating deterministic (S)PCF programs with real parameters denote functions that are almost everywhere differentiable. Our result is of practical interest, as almost everywhere differentiability of the density function is required to hold for the correctness of major gradient-based inference algorithms. 2021-03-23 /pmc/articles/PMC7984578/ http://dx.doi.org/10.1007/978-3-030-72019-3_16 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
Mak, Carol
Ong, C.-H. Luke
Paquet, Hugo
Wagner, Dominik
Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title_full Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title_fullStr Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title_full_unstemmed Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title_short Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
title_sort densities of almost surely terminating probabilistic programs are differentiable almost everywhere
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984578/
http://dx.doi.org/10.1007/978-3-030-72019-3_16
work_keys_str_mv AT makcarol densitiesofalmostsurelyterminatingprobabilisticprogramsaredifferentiablealmosteverywhere
AT ongchluke densitiesofalmostsurelyterminatingprobabilisticprogramsaredifferentiablealmosteverywhere
AT paquethugo densitiesofalmostsurelyterminatingprobabilisticprogramsaredifferentiablealmosteverywhere
AT wagnerdominik densitiesofalmostsurelyterminatingprobabilisticprogramsaredifferentiablealmosteverywhere