使用非严格非确定性实现概率编程库
Implementing a Library for Probabilistic Programming using Non-strict Non-determinism
摘要:
本文介绍了PFLP,函数逻辑程序设计语言库里的概率编程库。它演示了函数逻辑程序设计语言的概念如何支持概率编程库的实现。事实上,函数逻辑和概率编程的范式是紧密相连的。也就是说,一个地区的语言特征存在于另一个地区,反之亦然。例如,从函数逻辑编程中已知的非确定性选择和调用时间选择的概念分别与概率编程中的随机记忆和概率选择相关并一致。我们将进一步看到,与标准的基于列表的实现相比,基于函数逻辑编程概念的实现在性能方面具有优势,甚至可以与成熟的概率程序设计语言竞争,我们通过几个基准测试来说明。逻辑程序设计理论与实践(TPLP)
英文摘要:
This paper presents PFLP, a library for probabilistic programming in the functional logic programming language Curry. It demonstrates how the concepts of a functional logic programming language support the implementation of a library for probabilistic programming. In fact, the paradigms of functional logic and probabilistic programming are closely connected. That is, language characteristics from one area exist in the other and vice versa. For example, the concepts of non-deterministic choice and call-time choice as known from functional logic programming are related to and coincide with stochastic memoization and probabilistic choice in probabilistic programming, respectively. We will further see that an implementation based on the concepts of functional logic programming can have benefits with respect to performance compared to a standard list-based implementation and can even compete with full-blown probabilistic programming languages, which we illustrate by several benchmarks. Under consideration in Theory and Practice of Logic Programming (TPLP).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。