{"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-the-usefulness-of-deep-ensemble-diversity","title":"On the Usefulness of Deep Ensemble Diversity for Out-of-Distribution Detection","arxiv_id":"2207.07517","date":"2022-07-15","proceeding":null,"authors":["Guoxuan Xia","Christos-Savvas Bouganis"],"abstract":"The ability to detect Out-of-Distribution (OOD) data is important in safety-critical applications of deep learning. The aim is to separate In-Distribution (ID) data drawn from the training distribution from OOD data using a measure of uncertainty extracted from a deep neural network. Deep Ensembles are a well-established method of improving the quality of uncertainty estimates produced by deep neural networks, and have been shown to have superior OOD detection performance compared to single models. An existing intuition in the literature is that the diversity of Deep Ensemble predictions indicates distributional shift, and so measures of diversity such as Mutual Information (MI) should be used for OOD detection. We show experimentally that this intuition is not valid on ImageNet-scale OOD detection -- using MI leads to 30-40% worse %FPR@95 compared to single-model entropy on some OOD datasets. We suggest an alternative explanation for Deep Ensembles' better OOD detection performance -- OOD detection is binary classification and we are ensembling diverse classifiers. As such we show that practically, even better OOD detection performance can be achieved for Deep Ensembles by averaging task-specific detection scores such as Energy over the ensemble.","url_abs":"https://arxiv.org/abs/2207.07517v2","url_pdf":"https://arxiv.org/pdf/2207.07517v2.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-the-usefulness-of-deep-ensemble-diversity","repo_url":"https://github.com/guoxoug/ens-div-ood-detect","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"tasks":[{"task_slug":"binary-classification","task_name":"Binary Classification"},{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"ood-detection","task_name":"Out of Distribution (OOD) Detection"},{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"},{"task_slug":null,"task_name":"valid"}],"methods":[{"method_slug":"deep-ensembles","method_name":"Deep Ensembles"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.07517","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.07517"}},"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/guoxoug/ens-div-ood-detect","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"summary":{"ran_draft_wrong":2,"ran":1,"unverified":6},"by_repo_kind":{"official":{"samples":9,"ran":3,"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":"d9def42110729a85","entry":"conv1x1","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"600ff2c45e0de056","entry":"conv3x3","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"600ff2c45e0de056"}},{"code_sha256_prefix":"ac269a0e4b8d946e","entry":"default_loader","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ac269a0e4b8d946e"}},{"code_sha256_prefix":"64fc75cbc3ced233","entry":"default_flist_reader","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"64fc75cbc3ced233"}},{"code_sha256_prefix":"46d8ea7b571ec1ba","entry":"entropy","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/eval_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"46d8ea7b571ec1ba"}},{"code_sha256_prefix":"481900e43fe90647","entry":"get_metric_name","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/eval_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"481900e43fe90647"}},{"code_sha256_prefix":"13864a077ca4f976","entry":"get_preprocessing_transforms","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/data_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"13864a077ca4f976"}},{"code_sha256_prefix":"c9347e56c1749c1e","entry":"mean_std_format","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"ens_table.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/ens_table.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"c9347e56c1749c1e"}},{"code_sha256_prefix":"d887b48b137852bb","entry":"uncertainties","repo":"guoxoug/ens-div-ood-detect","repo_kind":"official","path":"utils/eval_utils.py","file_url":"https://github.com/guoxoug/ens-div-ood-detect/blob/HEAD/utils/eval_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d887b48b137852bb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}