{"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/finding-competence-regions-in-domain","title":"Finding Competence Regions in Domain Generalization","arxiv_id":"2303.09989","date":"2023-03-17","proceeding":null,"authors":["Jens Müller","Stefan T. Radev","Robert Schmier","Felix Draxler","Carsten Rother","Ullrich Köthe"],"abstract":"We investigate a \"learning to reject\" framework to address the problem of silent failures in Domain Generalization (DG), where the test distribution differs from the training distribution. Assuming a mild distribution shift, we wish to accept out-of-distribution (OOD) data from a new domain whenever a model's estimated competence foresees trustworthy responses, instead of rejecting OOD data outright. Trustworthiness is then predicted via a proxy incompetence score that is tightly linked to the performance of a classifier. We present a comprehensive experimental evaluation of existing proxy scores as incompetence scores for classification and highlight the resulting trade-offs between rejection rate and accuracy gain. For comparability with prior work, we focus on standard DG benchmarks and consider the effect of measuring incompetence via different learned representations in a closed versus an open world setting. Our results suggest that increasing incompetence scores are indeed predictive of reduced accuracy, leading to significant improvements of the average accuracy below a suitable incompetence threshold. However, the scores are not yet good enough to allow for a favorable accuracy/rejection trade-off in all tested domains. Surprisingly, our results also indicate that classifiers optimized for DG robustness do not outperform a naive Empirical Risk Minimization (ERM) baseline in the competence region, that is, where test samples elicit low incompetence scores.","url_abs":"https://arxiv.org/abs/2303.09989v3","url_pdf":"https://arxiv.org/pdf/2303.09989v3.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":"finding-competence-regions-in-domain","repo_url":"https://github.com/xarwinm/competence_estimation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"domain-generalization","task_name":"Domain Generalization"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2303.09989","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.09989"}},"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/xarwinm/competence_estimation","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"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":"51bfa38a289b0fb8","entry":"compute_metric","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/metrics.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"51bfa38a289b0fb8"}},{"code_sha256_prefix":"f6883c27951a7ce1","entry":"create_score_function","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/scores.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/scores.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f6883c27951a7ce1"}},{"code_sha256_prefix":"6ae6d6c0f0c19f14","entry":"ecdf","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/plots.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/plots.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ae6d6c0f0c19f14"}},{"code_sha256_prefix":"5e435bfc41923202","entry":"get_network_weights","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/utils.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5e435bfc41923202"}},{"code_sha256_prefix":"cd5939d86709372a","entry":"load_data","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/utils.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd5939d86709372a"}},{"code_sha256_prefix":"3326f1ac801e81be","entry":"mix_open","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/utils.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3326f1ac801e81be"}},{"code_sha256_prefix":"26c0718c9ecac125","entry":"plot_accuracy_coverage","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/plots.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/plots.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"26c0718c9ecac125"}},{"code_sha256_prefix":"d7f4b7fda092dfbc","entry":"plot_accuracy_curve","repo":"xarwinm/competence_estimation","repo_kind":"official","path":"competence_estimation/plots.py","file_url":"https://github.com/xarwinm/competence_estimation/blob/HEAD/competence_estimation/plots.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d7f4b7fda092dfbc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}