$\omega$PAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs
Mathieu Huot, Alexander K. Lew, Vikash K. Mansinghka, Sam Staton

TL;DR
This paper introduces $$PAP spaces, a denotational semantics framework for higher-order, recursive probabilistic and differentiable programs, enabling rigorous reasoning about their correctness and properties.
Contribution
It presents a general yet precise denotational semantics for expressive probabilistic and differentiable languages, including recursion and higher-order features, with new correctness and differentiability results.
Findings
Proves correctness of automatic differentiation within the new semantics.
Establishes almost-everywhere differentiability of probabilistic program densities.
Shows existence of base measures for Monte Carlo density computation.
Abstract
We introduce a new setting, the category of PAP spaces, for reasoning denotationally about expressive differentiable and probabilistic programming languages. Our semantics is general enough to assign meanings to most practical probabilistic and differentiable programs, including those that use general recursion, higher-order functions, discontinuous primitives, and both discrete and continuous sampling. But crucially, it is also specific enough to exclude many pathological denotations, enabling us to establish new results about both deterministic differentiable programs and probabilistic programs. In the deterministic setting, we prove very general correctness theorems for automatic differentiation and its use within gradient descent. In the probabilistic setting, we establish the almost-everywhere differentiability of probabilistic programs' trace density functions, and the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Semantic Web and Ontologies · Computability, Logic, AI Algorithms
MethodsBalanced Selection
