arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2110.10284cs.AI
收藏

flip-hoisting:利用离散概率规划中的重复参数

flip-hoisting: Exploiting Repeated Parameters in Discrete Probabilistic Programs

MIT(麻省理工学院);UCLA(加州大学洛杉矶分校);Northeastern University(东北大学)

Ellie Y. Cheng, Todd Millstein, Guy Van den Broeck, Steven Holtzen

摘要:

当今的许多概率程序设计语言(PPL)具有脆弱的推理性能:底层推理算法的性能对编写概率程序的精确方式非常敏感。在传统程序设计语言中解决这一挑战的标准方法是通过程序优化,其寻求减轻程序员编写低级性能代码的负担,使他们能够在更高级别的抽象上工作。与传统程序相比,可供PPL选择的适用程序优化工具库是稀缺的;今天的PPL很少提供重要形式的自动程序优化。在这项工作中,我们开发了一个新的家庭的程序优化特定的离散值知识编译基于PPL。我们确定了这些PPL所特有的程序结构的一种特殊形式,它会切实影响这些程序中的精确推理性能:冗余随机变量-具有重复参数和不一致路径条件的变量。我们开发了一种新的程序分析和相关的优化称为翻转提升,识别这些冗余,并优化成一个单一的随机变量。我们发现,翻转提升产生推理加速高达60%的概率程序,如贝叶斯网络和概率验证的应用。

英文摘要:

Many of today's probabilistic programming languages (PPLs) have brittle inference performance: the performance of the underlying inference algorithm is very sensitive to the precise way in which the probabilistic program is written. A standard way of addressing this challenge in traditional programming languages is via program optimizations, which seek to unburden the programmer from writing low-level performant code, freeing them to work at a higher-level of abstraction. The arsenal of applicable program optimizations for PPLs to choose from is scarce in comparison to traditional programs; few of today's PPLs offer significant forms of automated program optimization. In this work we develop a new family of program optimizations specific to discrete-valued knowledge compilation based PPLs. We identify a particular form of program structure unique to these PPLs that tangibly affects exact inference performance in these programs: redundant random variables -- variables with repeated parameters and inconsistent path conditions. We develop a new program analysis and associated optimization called flip-hoisting that identifies these redundancies and optimizes them into a single random variable. We show that flip-hoisting yields inference speedups of up to 60% on applications of probabilistic programs such as Bayesian networks and probabilistic verification.

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

↑