{"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/bayesian-posterior-approximation-with","title":"Bayesian posterior approximation with stochastic ensembles","arxiv_id":"2212.08123","date":"2022-12-15","proceeding":"CVPR 2023 1","authors":["Oleksandr Balabanov","Bernhard Mehlig","Hampus Linander"],"abstract":"We introduce ensembles of stochastic neural networks to approximate the Bayesian posterior, combining stochastic methods such as dropout with deep ensembles. The stochastic ensembles are formulated as families of distributions and trained to approximate the Bayesian posterior with variational inference. We implement stochastic ensembles based on Monte Carlo dropout, DropConnect and a novel non-parametric version of dropout and evaluate them on a toy problem and CIFAR image classification. For both tasks, we test the quality of the posteriors directly against Hamiltonian Monte Carlo simulations. Our results show that stochastic ensembles provide more accurate posterior estimates than other popular baselines for Bayesian inference.","url_abs":"https://arxiv.org/abs/2212.08123v3","url_pdf":"https://arxiv.org/pdf/2212.08123v3.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":"bayesian-posterior-approximation-with","repo_url":"https://github.com/oleksandr-balabanov/stochastic-ensembles","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"variational-inference","task_name":"Variational Inference"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"dropconnect","method_name":"DropConnect"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2212.08123","atlas_url":"https://app.syntology.ai/?focus=2212.08123","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2212.08123"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/oleksandr-balabanov/stochastic-ensembles","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"ran_violates":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":"66561b55edcd47d1","entry":"get_eval_dataset_basename","repo":"oleksandr-balabanov/stochastic-ensembles","repo_kind":"official","path":"toy/run_create_data.py","file_url":"https://github.com/oleksandr-balabanov/stochastic-ensembles/blob/HEAD/toy/run_create_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"66561b55edcd47d1"}},{"code_sha256_prefix":"df7b5dfcff9005a9","entry":"get_train_dataset_basename","repo":"oleksandr-balabanov/stochastic-ensembles","repo_kind":"official","path":"toy/run_create_data.py","file_url":"https://github.com/oleksandr-balabanov/stochastic-ensembles/blob/HEAD/toy/run_create_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"df7b5dfcff9005a9"}},{"code_sha256_prefix":"7c803b81eff106c8","entry":"get_train_dataset_name","repo":"oleksandr-balabanov/stochastic-ensembles","repo_kind":"official","path":"toy/run_create_data.py","file_url":"https://github.com/oleksandr-balabanov/stochastic-ensembles/blob/HEAD/toy/run_create_data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c803b81eff106c8"}},{"code_sha256_prefix":"7c508037b40522af","entry":"str2bool","repo":"oleksandr-balabanov/stochastic-ensembles","repo_kind":"official","path":"CIFAR/run_eval.py","file_url":"https://github.com/oleksandr-balabanov/stochastic-ensembles/blob/HEAD/CIFAR/run_eval.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c508037b40522af"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}