{"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/instance-based-uncertainty-estimation-for","title":"Instance-Based Uncertainty Estimation for Gradient-Boosted Regression Trees","arxiv_id":"2205.11412","date":"2022-05-23","proceeding":null,"authors":["Jonathan Brophy","Daniel Lowd"],"abstract":"Gradient-boosted regression trees (GBRTs) are hugely popular for solving tabular regression problems, but provide no estimate of uncertainty. We propose Instance-Based Uncertainty estimation for Gradient-boosted regression trees (IBUG), a simple method for extending any GBRT point predictor to produce probabilistic predictions. IBUG computes a non-parametric distribution around a prediction using the $k$-nearest training instances, where distance is measured with a tree-ensemble kernel. The runtime of IBUG depends on the number of training examples at each leaf in the ensemble, and can be improved by sampling trees or training instances. Empirically, we find that IBUG achieves similar or better performance than the previous state-of-the-art across 22 benchmark regression datasets. We also find that IBUG can achieve improved probabilistic performance by using different base GBRT models, and can more flexibly model the posterior distribution of a prediction than competing methods. We also find that previous methods suffer from poor probabilistic calibration on some datasets, which can be mitigated using a scalar factor tuned on the validation data. Source code is available at https://www.github.com/jjbrophy47/ibug.","url_abs":"https://arxiv.org/abs/2205.11412v2","url_pdf":"https://arxiv.org/pdf/2205.11412v2.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":"instance-based-uncertainty-estimation-for","repo_url":"https://github.com/jjbrophy47/ibug","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"regression-1","task_name":"regression"},{"task_slug":"tabular-regression","task_name":"tabular-regression"}],"methods":[{"method_slug":"base","method_name":"BASE"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.11412","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.11412"}},"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":"deterministic:regex_extraction","url":"https://github.com/jjbrophy47/ibug","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"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":"4c2af6b7fc785759","entry":"check_binary_targets","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/util.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/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":"4c2af6b7fc785759"}},{"code_sha256_prefix":"b89dbb1e39b71e15","entry":"check_data","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/util.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/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":"b89dbb1e39b71e15"}},{"code_sha256_prefix":"b42fccb2f0bb653a","entry":"check_input_data","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/util.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/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":"b42fccb2f0bb653a"}},{"code_sha256_prefix":"ce90b8c60c7c950c","entry":"parse_cb_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_cb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_cb.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":"ce90b8c60c7c950c"}},{"code_sha256_prefix":"41aa97c328eeebeb","entry":"parse_lgb_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_lgb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_lgb.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":"41aa97c328eeebeb"}},{"code_sha256_prefix":"9150724c4752d70b","entry":"parse_ngb_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_ngb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_ngb.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":"9150724c4752d70b"}},{"code_sha256_prefix":"be4953d227fac813","entry":"parse_pgb_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_pgb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_pgb.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":"be4953d227fac813"}},{"code_sha256_prefix":"c3a05a9ddb6590d6","entry":"parse_pgb_tree","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_pgb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_pgb.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":"c3a05a9ddb6590d6"}},{"code_sha256_prefix":"15a153fb11e837d9","entry":"parse_skgbm_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_sk.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_sk.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":"15a153fb11e837d9"}},{"code_sha256_prefix":"e498de9853428c67","entry":"parse_skhgbm_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_sk.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_sk.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":"e498de9853428c67"}},{"code_sha256_prefix":"30ecfbeec56d0757","entry":"parse_skrf_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_sk.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_sk.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":"30ecfbeec56d0757"}},{"code_sha256_prefix":"05794d520df7860d","entry":"parse_xgb_ensemble","repo":"jjbrophy47/ibug","repo_kind":"official","path":"ibug/parsers/parser_xgb.py","file_url":"https://github.com/jjbrophy47/ibug/blob/HEAD/ibug/parsers/parser_xgb.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":"05794d520df7860d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}