{"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/partially-stochastic-infinitely-deep-bayesian","title":"Partially Stochastic Infinitely Deep Bayesian Neural Networks","arxiv_id":"2402.03495","date":"2024-02-05","proceeding":null,"authors":["Sergio Calvo-Ordonez","Matthieu Meunier","Francesco Piatti","Yuantao Shi"],"abstract":"In this paper, we present Partially Stochastic Infinitely Deep Bayesian Neural Networks, a novel family of architectures that integrates partial stochasticity into the framework of infinitely deep neural networks. Our new class of architectures is designed to improve the computational efficiency of existing architectures at training and inference time. To do this, we leverage the advantages of partial stochasticity in the infinite-depth limit which include the benefits of full stochasticity e.g. robustness, uncertainty quantification, and memory efficiency, whilst improving their limitations around computational complexity. We present a variety of architectural configurations, offering flexibility in network design including different methods for weight partition. We also provide mathematical guarantees on the expressivity of our models by establishing that our network family qualifies as Universal Conditional Distribution Approximators. Lastly, empirical evaluations across multiple tasks show that our proposed architectures achieve better downstream task performance and uncertainty quantification than their counterparts while being significantly more efficient. The code can be found at \\url{https://github.com/Sergio20f/part_stoch_inf_deep}","url_abs":"https://arxiv.org/abs/2402.03495v4","url_pdf":"https://arxiv.org/pdf/2402.03495v4.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":"partially-stochastic-infinitely-deep-bayesian","repo_url":"https://github.com/sergio20f/part_stoch_inf_deep","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":null}],"tasks":[{"task_slug":"computational-efficiency","task_name":"Computational Efficiency"},{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2402.03495","atlas_url":"https://app.syntology.ai/?focus=2402.03495","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.03495"}},"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/sergio20f/part_stoch_inf_deep","reach":null}],"summary":{"ran_draft_wrong":9,"ran_violates":1,"unverified":7},"by_repo_kind":{"official":{"samples":17,"ran":10,"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":17,"samples":[{"code_sha256_prefix":"ee1ec0c589cadd7b","entry":"Affine","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"arch.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/arch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ee1ec0c589cadd7b"}},{"code_sha256_prefix":"1af23d057bd94033","entry":"BayesianLayer","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1af23d057bd94033"}},{"code_sha256_prefix":"02c69963c3739b67","entry":"Swish_","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"arch.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/arch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"02c69963c3739b67"}},{"code_sha256_prefix":"28d92f354d62dd3f","entry":"_sdeint","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"28d92f354d62dd3f"}},{"code_sha256_prefix":"f43d0d8a644ed2d0","entry":"aug_init","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f43d0d8a644ed2d0"}},{"code_sha256_prefix":"679a1d2ba3db5a0c","entry":"augmented_post_drift","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"679a1d2ba3db5a0c"}},{"code_sha256_prefix":"d001641b4d745458","entry":"augmented_prior_drift","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d001641b4d745458"}},{"code_sha256_prefix":"056538899cff555a","entry":"normal_kldiv","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"056538899cff555a"}},{"code_sha256_prefix":"d647b684f6582805","entry":"sdeint","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d647b684f6582805"}},{"code_sha256_prefix":"e761de9f4c477057","entry":"variance_scaling","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e761de9f4c477057"}},{"code_sha256_prefix":"dc9013835f0ceb5d","entry":"SDELayer","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dc9013835f0ceb5d"}},{"code_sha256_prefix":"ec8cea005cc836bb","entry":"_compute_fans","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ec8cea005cc836bb"}},{"code_sha256_prefix":"f017d3e029807254","entry":"augmented_diffusion","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f017d3e029807254"}},{"code_sha256_prefix":"b5fc14c86b45c4ce","entry":"he_normal_stdev","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"layers.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b5fc14c86b45c4ce"}},{"code_sha256_prefix":"af7df44b7c8caf77","entry":"loss","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"sdebnn_classification.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/sdebnn_classification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"af7df44b7c8caf77"}},{"code_sha256_prefix":"2d96f5e14250dac3","entry":"predict","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"sdebnn_classification.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/sdebnn_classification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2d96f5e14250dac3"}},{"code_sha256_prefix":"528631e2109308f6","entry":"sep_loss","repo":"sergio20f/part_stoch_inf_deep","repo_kind":"official","path":"sdebnn_classification.py","file_url":"https://github.com/sergio20f/part_stoch_inf_deep/blob/HEAD/sdebnn_classification.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"528631e2109308f6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}