NumPyro中灵活加速概率规划的组合效应
Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyro
摘要:
NumPyro是一个轻量级库,为Pyro概率编程语言提供了一个替代的NumPy后端,具有相同的建模接口,语言原语和效果处理抽象。效果处理程序允许Pyro的建模API扩展到NumPyro,尽管它构建在一个根本不同的基于JAX的功能后端之上。在这项工作中,我们展示了组成Pyro的效果处理程序与程序转换,使硬件加速,自动微分,并在JAX矢量化的力量。特别是,NumPyro提供了一种可以端到端JIT编译的No-U-Turn Sampler(NUTS)的迭代公式,其实现速度比小型和大型数据集制度中的现有替代方案快得多。
英文摘要:
NumPyro is a lightweight library that provides an alternate NumPy backend to the Pyro probabilistic programming language with the same modeling interface, language primitives and effect handling abstractions. Effect handlers allow Pyro's modeling API to be extended to NumPyro despite its being built atop a fundamentally different JAX-based functional backend. In this work, we demonstrate the power of composing Pyro's effect handlers with the program transformations that enable hardware acceleration, automatic differentiation, and vectorization in JAX. In particular, NumPyro provides an iterative formulation of the No-U-Turn Sampler (NUTS) that can be end-to-end JIT compiled, yielding an implementation that is much faster than existing alternatives in both the small and large dataset regimes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。