概率程序的延迟采样和自动Rao-Blackwellization
Delayed Sampling and Automatic Rao-Blackwellization of Probabilistic Programs
摘要:
我们引入了一个动态机制的解决方案的解析易处理的子结构的概率程序,使用共轭先验和仿射变换,以减少方差的蒙特卡罗估计。对于使用序贯蒙特卡罗的推理,这会自动产生改进,例如局部最优建议和Rao-Blackwellization。该机制在运行程序旁边维护一个有向图,该图随着操作的触发而动态演化。图的节点表示随机变量,边表示它们之间的可分析的关系。随机变量尽可能长时间地保留在图中,只有当程序以无法解析的方式使用它们时才进行采样。与此同时,它们以尽可能多的观察为条件。我们展示了一些教学的例子,以及一个线性-非线性状态空间模型与模拟数据的机制,和一个流行病学模型与真实数据的登革热疫情在密克罗尼西亚。在所有情况下,一个或多个变量被自动边缘化,以显着减少边际似然估计的方差,在最后的情况下,促进随机权重或伪边际型重要性采样器的参数估计。我们已经在英国国教和一种名为Birch的新概率编程语言中实现了这种方法。
英文摘要:
We introduce a dynamic mechanism for the solution of analytically-tractable substructure in probabilistic programs, using conjugate priors and affine transformations to reduce variance in Monte Carlo estimators. For inference with Sequential Monte Carlo, this automatically yields improvements such as locally-optimal proposals and Rao-Blackwellization. The mechanism maintains a directed graph alongside the running program that evolves dynamically as operations are triggered upon it. Nodes of the graph represent random variables, edges the analytically-tractable relationships between them. Random variables remain in the graph for as long as possible, to be sampled only when they are used by the program in a way that cannot be resolved analytically. In the meantime, they are conditioned on as many observations as possible. We demonstrate the mechanism with a few pedagogical examples, as well as a linear-nonlinear state-space model with simulated data, and an epidemiological model with real data of a dengue outbreak in Micronesia. In all cases one or more variables are automatically marginalized out to significantly reduce variance in estimates of the marginal likelihood, in the final case facilitating a random-weight or pseudo-marginal-type importance sampler for parameter estimation. We have implemented the approach in Anglican and a new probabilistic programming language called Birch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。