概率流的静态有界记忆延迟采样
Statically Bounded-Memory Delayed Sampling for Probabilistic Streams
摘要:
概率程序设计语言帮助开发人员执行贝叶斯推理。这些语言为概率建模和自动推理提供了编程结构和工具。先前的工作引入了概率程序设计语言ProbZelus,以将概率编程功能扩展到无界数据流。这项工作表明,延迟采样推理算法可以扩展到工作在流上下文中。ProbZelus表明,虽然延迟采样可以有效地部署在某些程序上,但取决于所考虑的概率模型,延迟采样不能保证在程序执行过程中使用有限的内存量。在本文中,我们提出的条件下,延迟采样将在有限的内存中执行的概率程序的执行。这两个条件是延迟采样核心运算的两个基本性质:$m$消耗性质和不可分离路径性质。当且仅当一个程序满足$m$消耗和不可分离路径属性时,它才在延迟采样下在有界内存中执行。我们提出了一个静态分析,抽象这些属性,以健全地确保任何程序,通过分析满足这些属性,从而在有限的内存下执行延迟采样。
英文摘要:
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 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。