7
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyro

      Preprint
      , ,

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          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.

          Related collections

          Author and article information

          Journal
          24 December 2019
          Article
          1912.11554
          bfe4f702-7295-45d8-a91e-7f7e56149ac0

          http://arxiv.org/licenses/nonexclusive-distrib/1.0/

          History
          Custom metadata
          I.2.5, G.3
          10 pages, 2 figures; NeurIPS 2019 Program Transformations for Machine Learning Workshop
          stat.ML cs.AI cs.LG cs.PL

          Programming languages,Machine learning,Artificial intelligence
          Programming languages, Machine learning, Artificial intelligence

          Comments

          Comment on this article