计算机科学 > 程序设计语言
[提交于 2022年12月14日]
标题:Affine Monads and Lazy Structures for Bayesian Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Sam Staton[v1] 2022年12月14日 星期三 14:36:37 UTC