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

用CuPPL进行概率规划

Probabilistic Programming with CuPPL

Alexander Collins, Vinod Grover

摘要:

概率程序设计语言(Probability Programming Languages,PPL)是机器学习中的一个强大工具,它允许简洁地表达高度表达性的生成模型。它们将由语言实现的复杂推理算法与表达性建模语言相结合,该语言允许用户将任何可计算函数实现为生成模型。这种语言通常在现有的高级程序设计语言之上实现,并且不使用硬件加速器。确实存在使用加速器的PPL,但是为了这样做,限制了语言的表达能力。在本文中,我们提出了一种为CPU和GPU生成高效代码的语言和工具链。该语言在风格上是函数式的,工具链构建在LLVM之上。我们的实现在CPU上使用无限的延续来执行推理,并在GPU上使用自定义CUDA代码。与CPU上的其他最先进方法相比,我们在一套PPL工作负载中获得了显着的速度提升。此外,我们的编译器还可以生成在CUDA GPU上运行的高效代码。

英文摘要:

Probabilistic Programming Languages (PPLs) are a powerful tool in machine learning, allowing highly expressive generative models to be expressed succinctly. They couple complex inference algorithms, implemented by the language, with an expressive modelling language that allows a user to implement any computable function as the generative model. Such languages are usually implemented on top of existing high level programming languages and do not make use of hardware accelerators. PPLs that do make use of accelerators exist, but restrict the expressivity of the language in order to do so. In this paper, we present a language and toolchain that generates highly efficient code for both CPUs and GPUs. The language is functional in style, and the tool chain is built on top of LLVM. Our implementation uses de-limited continuations on CPU to perform inference, and custom CUDA codes on GPU. We obtain significant speed ups across a suite of PPL workloads, compared to other state of the art approaches on CPU. Furthermore, our compiler can also generate efficient code that runs on CUDA GPUs.

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

↑