{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/composable-effects-for-flexible-and","title":"Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyro","arxiv_id":"1912.11554","date":"2019-12-24","proceeding":null,"authors":["Du Phan","Neeraj Pradhan","Martin Jankowiak"],"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.","url_abs":"https://arxiv.org/abs/1912.11554v1","url_pdf":"https://arxiv.org/pdf/1912.11554v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"composable-effects-for-flexible-and","repo_url":"https://github.com/pyro-ppl/numpyro","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"composable-effects-for-flexible-and","repo_url":"https://github.com/aleatory-science/numpyro","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"composable-effects-for-flexible-and","repo_url":"https://github.com/neurips2020submission7954/numpyro","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"probabilistic-programming","task_name":"Probabilistic Programming"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1912.11554","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1912.11554"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pyro-ppl/numpyro","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/neurips2020submission7954/numpyro","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aleatory-science/numpyro","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"unverified":25},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1},"listed":{"samples":18,"ran":1,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"caeb28d34b34bc2a","entry":"identity","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/primitives.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/primitives.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"caeb28d34b34bc2a"}},{"code_sha256_prefix":"f17cd8a35e3b7268","entry":"apply_stack","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/primitives.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/primitives.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f17cd8a35e3b7268"}},{"code_sha256_prefix":"14286d43810b1d37","entry":"apply_stack","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/primitives.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/primitives.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"14286d43810b1d37"}},{"code_sha256_prefix":"cb53b94660b27609","entry":"autocorrelation","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/diagnostics.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cb53b94660b27609"}},{"code_sha256_prefix":"cb29f9477120556d","entry":"autocorrelation","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cb29f9477120556d"}},{"code_sha256_prefix":"9cd5cef89ff24afb","entry":"autocorrelation","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9cd5cef89ff24afb"}},{"code_sha256_prefix":"603fc5693fc0e73c","entry":"cond","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/util.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"603fc5693fc0e73c"}},{"code_sha256_prefix":"e30672564474308b","entry":"cond","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e30672564474308b"}},{"code_sha256_prefix":"c744d80fda3b6fa0","entry":"cond","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c744d80fda3b6fa0"}},{"code_sha256_prefix":"b382d69b4dcd640c","entry":"fori_loop","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b382d69b4dcd640c"}},{"code_sha256_prefix":"c79c82db04123255","entry":"fori_loop","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c79c82db04123255"}},{"code_sha256_prefix":"24d2161f7459a9d3","entry":"gelman_rubin","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/diagnostics.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"24d2161f7459a9d3"}},{"code_sha256_prefix":"446b9411492ba0b8","entry":"gelman_rubin","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"446b9411492ba0b8"}},{"code_sha256_prefix":"0844d828a7866d7b","entry":"gelman_rubin","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0844d828a7866d7b"}},{"code_sha256_prefix":"829e93b903800797","entry":"maybe_jit","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/util.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"829e93b903800797"}},{"code_sha256_prefix":"15c9685e50664934","entry":"optax_to_numpyro","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/optim.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/optim.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"15c9685e50664934"}},{"code_sha256_prefix":"34901ba809969a2a","entry":"optax_to_numpyro","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/optim.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/optim.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"34901ba809969a2a"}},{"code_sha256_prefix":"5b4768efc8e097af","entry":"patch_dependency","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/patch.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/patch.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5b4768efc8e097af"}},{"code_sha256_prefix":"ad4e520dfbb97626","entry":"patch_dependency","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/patch.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/patch.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ad4e520dfbb97626"}},{"code_sha256_prefix":"cc05aa3302d07e64","entry":"sample","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/primitives.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/primitives.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cc05aa3302d07e64"}},{"code_sha256_prefix":"388ce51362d7e858","entry":"split_gelman_rubin","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/diagnostics.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"388ce51362d7e858"}},{"code_sha256_prefix":"b8e722389fc0860a","entry":"split_gelman_rubin","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b8e722389fc0860a"}},{"code_sha256_prefix":"4c89cb01a268cebb","entry":"split_gelman_rubin","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/diagnostics.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/diagnostics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4c89cb01a268cebb"}},{"code_sha256_prefix":"f3c8e08969a068a3","entry":"while_loop","repo":"pyro-ppl/numpyro","repo_kind":"official","path":"numpyro/util.py","file_url":"https://github.com/pyro-ppl/numpyro/blob/HEAD/numpyro/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f3c8e08969a068a3"}},{"code_sha256_prefix":"fa4d540af0a1fb04","entry":"while_loop","repo":"aleatory-science/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/aleatory-science/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fa4d540af0a1fb04"}},{"code_sha256_prefix":"6ccdb50f357e8810","entry":"while_loop","repo":"neurips2020submission7954/numpyro","repo_kind":"listed","path":"numpyro/util.py","file_url":"https://github.com/neurips2020submission7954/numpyro/blob/HEAD/numpyro/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6ccdb50f357e8810"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}