Densities of Almost Surely Terminating Probabilistic Programs are Differentiable Almost Everywhere
Not on the map. Why?
Abstract (arXiv)
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 a la Borgstrom 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.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 2; 2024: 1.
6 papers.
- 2021Nonparametric Hamiltonian Monte Carlocited by 4
- 2023Fast and Correct Gradient-Based Optimisation for Probabilistic Programming via Smoothingcited by 2
- 2022Guaranteed Bounds for Posterior Inference in Universal Probabilistic Programmingcited by 1
- 2022Nonparametric Involutive Markov Chain Monte Carlocited by 1
- 2023ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programscited by 1
- 2024Diagonalisation SGD: Fast & Convergent SGD for Non-Differentiable Models via Reparameterisation and Smoothingcited by 0
- 2024Diagonalisation SGD: Fast & Convergent SGD for Non-Differentiable Models via Reparameterisation and Smoothing19 Feb 2024
- 2023ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs21 Feb 2023
- 2023Fast and Correct Gradient-Based Optimisation for Probabilistic Programming via Smoothing9 Jan 2023
- 2022Nonparametric Involutive Markov Chain Monte Carlo2 Nov 2022
- 2022Guaranteed Bounds for Posterior Inference in Universal Probabilistic Programming6 Apr 2022
- 2021Nonparametric Hamiltonian Monte Carlo18 Jun 2021