Statically bounded-memory delayed sampling for probabilistic streams
Open Access
- 15 October 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 5 (OOPSLA) , 1-28
Abstract
Probabilistic programming languages aid developers performing Bayesian inference. These languages provide programming constructs and tools for probabilistic modeling and automated inference. 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 the 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.Keywords
All Related Versions
Funding Information
- Office of Naval Research (ONR-N00014-17-1-2699)
This publication has 11 references indexed in Scilit:
- Etalumis2019
- Gen: a general-purpose probabilistic programming system with programmable inference2019
- Probabilistic Inference by Program Transformation in Hakaru (System Description)2016
- StanJournal of Educational and Behavioral Statistics, 2015
- Tabular2014
- Sequential Monte Carlo SamplersJournal of the Royal Statistical Society Series B: Statistical Methodology, 2006
- Sequential Monte Carlo Methods for Dynamic SystemsJournal of the American Statistical Association, 1998
- Statistical Inference for Probabilistic Functions of Finite State Markov ChainsThe Annals of Mathematical Statistics, 1966
- A New Approach to Linear Filtering and Prediction ProblemsJournal of Basic Engineering, 1960
- A method for synthesizing sequential circuitsBell System Technical Journal, 1955