arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.30137cs.PL
收藏

用于概率编程语言中高效马尔可夫链蒙特卡洛推断的反应图

Reactive Graphs for Efficient Markov Chain Monte Carlo Inference in Probabilistic Programming Languages

KTH Royal Institute of Technology(瑞典皇家理工学院);Swedish Museum of Natural History(瑞典自然历史博物馆)

Viktor Palmkvist, Fredrik Ronquist, David Broman

AI总结:

提出一种自动将概率程序转换为动态反应图的方法,显式表示数据依赖,使得MCMC提议仅重新计算依赖已重绘随机变量的部分,从而提升推断效率。

摘要:

使基于概率程序的推断实用化的一个重要方面是效率;更快的评估使得单位时间内能做更多工作,这可以转化为更高的精度。通过马尔可夫链蒙特卡洛进行推断具有一个可以有利地利用以提高效率的特性:大多数提议样本被计算为先前样本的微小变化,即,一个巧妙的实现可以跳过与未变化部分相关的计算。本文提供了一种自动将概率程序转换为动态图的方法,类似于函数式反应式编程,该图显式表示数据依赖,使得提议仅重新计算图中依赖于重绘随机变量的部分。图构建接口遵循熟悉的函数式编程接口,这也与它们在概率编程方面的表达能力相关联:使用应用函子部分的模型表达贝叶斯网络,而使用单子的模型代表通用概率编程语言。

英文摘要:

An important aspect of making inference based on a probabilistic program practical is efficiency; faster evaluation enables more work per unit of time, which can be translated into more precision. Inference via Markov chain Monte Carlo has a property that can be favorably exploited for efficiency: most proposed samples are computed as minor variations of previous samples, i.e., a clever implementation can skip computations pertaining to what is unchanged. This paper provides an approach for automatically translating a probabilistic program to a dynamic graph, reminiscent of functional reactive programming, that explicitly represents data dependencies, enabling proposals to only recompute the parts of the graph that depend on redrawn random variables. The graph-building interface follows familiar functional programming interfaces, which also connect to their expressiveness in terms of probabilistic programming: models using the applicative functor portion express Bayesian networks, while those using monads represent universal probabilistic programming languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑