Affine Monads and Lazy Structures for Bayesian Programming
Not on the map. Why?
Abstract (arXiv)
We show that streams and lazy data structures are a natural idiom for programming with infinite-dimensional Bayesian methods such as Poisson processes, Gaussian processes, jump processes, Dirichlet processes, and Beta processes. The crucial semantic idea, inspired by developments in synthetic probability theory, is to work with two separate monads: an affine monad of probability, which supports laziness, and a commutative, non-affine monad of measures, which does not. (Affine means that T(1)cong 1.) We show that the separation is important from a decidability perspective, and that the recent model of quasi-Borel spaces supports these two monads. To perform Bayesian inference with these examples, we introduce new inference methods that are specially adapted to laziness; they are proven correct by reference to the Metropolis-Hastings-Green method. Our theoretical development is implemented as a Haskell library, LazyPPL.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Dec 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 0; 2025: 2; 2026: 2.
5 papers.
- 2025Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative modelscited by 16
- 2026Likelihood Hacking in Probabilistic Program Synthesiscited by 2
- 2025Lumos: Let there be Language Model System Certificationcited by 1
- 2023String Diagrams with Factorized Densitiescited by 0
- 2026LazyHMC: Hamiltonian Monte Carlo Simulation for Lazy, Infinite Dimensional Probabilistic Programscited by 0
- 2026LazyHMC: Hamiltonian Monte Carlo Simulation for Lazy, Infinite Dimensional Probabilistic Programs9 Aug 2026
- 2026Likelihood Hacking in Probabilistic Program Synthesis25 Mar 2026
- 2025Lumos: Let there be Language Model System Certification2 Dec 2025
- 2025Outsourced diffusion sampling: Efficient posterior inference in latent spaces of generative models10 Feb 2025
- 2023String Diagrams with Factorized Densities4 May 2023