{"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/blackjax-composable-bayesian-inference-in-jax","title":"BlackJAX: Composable Bayesian inference in JAX","arxiv_id":"2402.10797","date":"2024-02-16","proceeding":null,"authors":["Alberto Cabezas","Adrien Corenflos","Junpeng Lao","Rémi Louf","Antoine Carnec","Kaustubh Chaudhari","Reuben Cohn-Gordon","Jeremie Coullon","Wei Deng","Sam Duffield","Gerardo Durán-Martín","Marcin Elantkowski","Dan Foreman-Mackey","Michele Gregori","Carlos Iguaran","Ravin Kumar","Martin Lysy","Kevin Murphy","Juan Camilo Orduz","Karm Patel","Xi Wang","Rob Zinkov"],"abstract":"BlackJAX is a library implementing sampling and variational inference algorithms commonly used in Bayesian computation. It is designed for ease of use, speed, and modularity by taking a functional approach to the algorithms' implementation. BlackJAX is written in Python, using JAX to compile and run NumpPy-like samplers and variational methods on CPUs, GPUs, and TPUs. The library integrates well with probabilistic programming languages by working directly with the (un-normalized) target log density function. BlackJAX is intended as a collection of low-level, composable implementations of basic statistical 'atoms' that can be combined to perform well-defined Bayesian inference, but also provides high-level routines for ease of use. It is designed for users who need cutting-edge methods, researchers who want to create complex sampling methods, and people who want to learn how these work.","url_abs":"https://arxiv.org/abs/2402.10797v2","url_pdf":"https://arxiv.org/pdf/2402.10797v2.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":"blackjax-composable-bayesian-inference-in-jax","repo_url":"https://github.com/blackjax-devs/blackjax","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"probabilistic-programming","task_name":"Probabilistic Programming"},{"task_slug":"variational-inference","task_name":"Variational Inference"}],"methods":[{"method_slug":null,"method_name":"Library"},{"method_slug":"variational-inference","method_name":"Variational Inference"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.10797","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.10797"}},"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/blackjax-devs/blackjax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":6,"unverified":4},"by_repo_kind":{"official":{"samples":10,"ran":6,"repositories":1}},"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":"c24e814330351970","entry":"add_all_chains_info","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/eca.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/eca.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c24e814330351970"}},{"code_sha256_prefix":"905d11e4487465d9","entry":"bias","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/laps.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/laps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"905d11e4487465d9"}},{"code_sha256_prefix":"38454867d14bcb6a","entry":"get_filter_adapt_info_fn","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/base.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/base.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"38454867d14bcb6a"}},{"code_sha256_prefix":"78c695bb394d4bf8","entry":"linear_map","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/util.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78c695bb394d4bf8"}},{"code_sha256_prefix":"ad40068acf923437","entry":"nan_reject","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/laps_burn_in.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/laps_burn_in.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ad40068acf923437"}},{"code_sha256_prefix":"903ab9794bcd494e","entry":"no_nans","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/laps_burn_in.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/laps_burn_in.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"903ab9794bcd494e"}},{"code_sha256_prefix":"6205159ff9cc8a77","entry":"read_progress","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/progress_reader.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/progress_reader.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":"6205159ff9cc8a77"}},{"code_sha256_prefix":"659a5f0475c52541","entry":"return_all_adapt_info","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/base.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/base.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":"659a5f0475c52541"}},{"code_sha256_prefix":"28a6255e169f74cc","entry":"weighted_empirical_mean","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/chees_adaptation.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/chees_adaptation.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":"28a6255e169f74cc"}},{"code_sha256_prefix":"03f5f7f969be024c","entry":"while_steps_num","repo":"blackjax-devs/blackjax","repo_kind":"official","path":"blackjax/adaptation/laps.py","file_url":"https://github.com/blackjax-devs/blackjax/blob/HEAD/blackjax/adaptation/laps.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":"03f5f7f969be024c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}