{"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/on-uncertainty-quantification-for-near-bayes","title":"On Uncertainty Quantification for Near-Bayes Optimal Algorithms","arxiv_id":"2403.19381","date":"2024-03-28","proceeding":null,"authors":["Ziyu Wang","Chris Holmes"],"abstract":"Bayesian modelling allows for the quantification of predictive uncertainty which is crucial in safety-critical applications. Yet for many machine learning (ML) algorithms, it is difficult to construct or implement their Bayesian counterpart. In this work we present a promising approach to address this challenge, based on the hypothesis that commonly used ML algorithms are efficient across a wide variety of tasks and may thus be near Bayes-optimal w.r.t. an unknown task distribution. We prove that it is possible to recover the Bayesian posterior defined by the task distribution, which is unknown but optimal in this setting, by building a martingale posterior using the algorithm. We further propose a practical uncertainty quantification method that apply to general ML algorithms. Experiments based on a variety of non-NN and NN algorithms demonstrate the efficacy of our method.","url_abs":"https://arxiv.org/abs/2403.19381v2","url_pdf":"https://arxiv.org/pdf/2403.19381v2.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":"on-uncertainty-quantification-for-near-bayes","repo_url":"https://github.com/meta-inf/ipb","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"GPL-3.0"}}],"tasks":[{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.19381","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.19381"}},"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/meta-inf/ipb","reach":{"status":"ok","spdx":"GPL-3.0"}}],"summary":{"ran":5,"unverified":4},"by_repo_kind":{"official":{"samples":9,"ran":5,"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":9,"samples":[{"code_sha256_prefix":"ba9108dc0769c811","entry":"arr_is_int","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/utils.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"ba9108dc0769c811"}},{"code_sha256_prefix":"d180c827fee9ac5c","entry":"dtuple_to_df","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/ag_predictors.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/ag_predictors.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"d180c827fee9ac5c"}},{"code_sha256_prefix":"71234fd59ed06c65","entry":"parser","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/exputils.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/exputils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"71234fd59ed06c65"}},{"code_sha256_prefix":"6c923753e28ce546","entry":"polya_urn_sample","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/utils.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"6c923753e28ce546"}},{"code_sha256_prefix":"0061138c1e64bfcc","entry":"sample_categorical","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/utils.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"0061138c1e64bfcc"}},{"code_sha256_prefix":"3fffcfbc80fafe7b","entry":"load_adult","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/datasets.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"3fffcfbc80fafe7b"}},{"code_sha256_prefix":"c4039adc4596dde7","entry":"load_wine","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/datasets.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c4039adc4596dde7"}},{"code_sha256_prefix":"c6f235974b03ba76","entry":"preflight","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/exputils.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/exputils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c6f235974b03ba76"}},{"code_sha256_prefix":"7e847e2e686050f3","entry":"proc_pd","repo":"meta-inf/ipb","repo_kind":"official","path":"classification/datasets.py","file_url":"https://github.com/meta-inf/ipb/blob/HEAD/classification/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"7e847e2e686050f3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}