arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.04608cs.PL
收藏

基于代数效应的模块化概率模型

Modular Probabilistic Models via Algebraic Effects

Minh Nguyen, Roly Perera, Meng Wang, Nicolas Wu

AI总结:

针对概率编程语言中模型可重用性和可组合性受限的问题,本文以Haskell为宿主语言,提出一种基于代数效应的嵌入式领域特定语言,使概率模型成为模块化、一等公民且可重用于模拟与推断,并利用代数效应处理器将模拟和推断表达为可组合的程序转换。

摘要:

概率编程语言(PPLs)允许程序员构建统计模型,并在此基础上模拟数据或执行推断。许多PPL将模型限制于特定的模拟或推断实例,限制了其可重用性。在其他PPL中,模型难以组合。以Haskell作为宿主语言,我们提出了一种基于代数效应的嵌入式领域特定语言,其中概率模型是模块化的、一等公民,且可重用于模拟和推断。我们还演示了如何使用代数效应处理器将模拟和推断自然地表达为可组合的程序转换。

英文摘要:

Probabilistic programming languages (PPLs) allow programmers to construct statistical models and then simulate data or perform inference over them. Many PPLs restrict models to a particular instance of simulation or inference, limiting their reusability. In other PPLs, models are not readily composable. Using Haskell as the host language, we present an embedded domain specific language based on algebraic effects, where probabilistic models are modular, first-class, and reusable for both simulation and inference. We also demonstrate how simulation and inference can be expressed naturally as composable program transformations using algebraic effect handlers.

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

↑