Statically Bounded-Memory Delayed Sampling for Probabilistic Streams

Eric Atkinson, Guillaume Baudart, Louis Mandel, Charles Yuan, Michael Carbin
9/26/2021
5 citations
cs.PL

Official code: psg-mit/probzelus-oopsla21 (1 star, OCaml, MIT, last commit 2021-09-15).

Abstract

Probabilistic programming languages aid developers performing Bayesian inference. These languages provide programming constructs and tools for probabilistic modeling and automated inference.

Show full abstract

Prior work introduced a probabilistic programming language, ProbZelus, to extend probabilistic programming functionality to unbounded streams of data. This work demonstrated that the delayed sampling inference algorithm could be extended to work in a streaming context. ProbZelus showed that while delayed sampling could be effectively deployed on some programs, depending on the probabilistic model under consideration, delayed sampling is not guaranteed to use a bounded amount of memory over the course of the execution of the program. In this paper, we present conditions on a probabilistic program's execution under which delayed sampling will execute in bounded memory. The two conditions are dataflow properties of the core operations of delayed sampling: the $m$-consumed property and the unseparated paths property. A program executes in bounded memory under delayed sampling if, and only if, it satisfies the $m$-consumed and unseparated paths properties. We propose a static analysis that abstracts over these properties to soundly ensure that any program that passes the analysis satisfies these properties, and thus executes in bounded memory under delayed sampling.

View on arXivView PDF

Code Implementations(1)

MIT
10OCaml, ForthNov 13, 20205 years agoMIT

Similar Papers

Cite this paper

@article{atkinson2021statically,
  title  = {Statically Bounded-Memory Delayed Sampling for Probabilistic Streams},
  author = {Eric Atkinson and Guillaume Baudart and Louis Mandel and Charles Yuan and Michael Carbin},
  year   = {2021},
  eprint = {2109.12473},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.12473}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.12473.svg)](https://codeofpaper.com/paper/2109.12473)

Discussion