{"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/what-if-the-input-is-expanded-in-ood","title":"What If the Input is Expanded in OOD Detection?","arxiv_id":"2410.18472","date":"2024-10-24","proceeding":null,"authors":["Boxuan Zhang","Jianing Zhu","Zengmao Wang","Tongliang Liu","Bo Du","Bo Han"],"abstract":"Out-of-distribution (OOD) detection aims to identify OOD inputs from unknown classes, which is important for the reliable deployment of machine learning models in the open world. Various scoring functions are proposed to distinguish it from in-distribution (ID) data. However, existing methods generally focus on excavating the discriminative information from a single input, which implicitly limits its representation dimension. In this work, we introduce a novel perspective, i.e., employing different common corruptions on the input space, to expand that. We reveal an interesting phenomenon termed confidence mutation, where the confidence of OOD data can decrease significantly under the corruptions, while the ID data shows a higher confidence expectation considering the resistance of semantic features. Based on that, we formalize a new scoring method, namely, Confidence aVerage (CoVer), which can capture the dynamic differences by simply averaging the scores obtained from different corrupted inputs and the original ones, making the OOD and ID distributions more separable in detection tasks. Extensive experiments and analyses have been conducted to understand and verify the effectiveness of CoVer. The code is publicly available at: https://github.com/tmlr-group/CoVer.","url_abs":"https://arxiv.org/abs/2410.18472v2","url_pdf":"https://arxiv.org/pdf/2410.18472v2.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":"what-if-the-input-is-expanded-in-ood","repo_url":"https://github.com/tmlr-group/cover","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"ood-detection","task_name":"Out of Distribution (OOD) Detection"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.18472","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.18472"}},"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/tmlr-group/CoVer","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tmlr-group/cover","reach":{"status":"ok"}}],"summary":{"ran_violates":2,"ran_draft_wrong":7,"unverified":11},"by_repo_kind":{"official":{"samples":20,"ran":9,"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":20,"samples":[{"code_sha256_prefix":"89c2cf3b97685684","entry":"is_image_file","repo":"tmlr-group/cover","repo_kind":"official","path":"utils/imagenet_c/make_imagenet_c.py","file_url":"https://github.com/tmlr-group/cover/blob/HEAD/utils/imagenet_c/make_imagenet_c.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":2,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"89c2cf3b97685684"}},{"code_sha256_prefix":"2a80220dabcb742a","entry":"conv1x1","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/resnet_ash.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/resnet_ash.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2a80220dabcb742a"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/resnet_dice.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/resnet_dice.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"600ff2c45e0de056","entry":"conv3x3","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/resnet_ash.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/resnet_ash.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"600ff2c45e0de056"}},{"code_sha256_prefix":"f19962ebb134b3d7","entry":"convert_to_custom_text_state_dict","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/model.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f19962ebb134b3d7"}},{"code_sha256_prefix":"9347fb42c15d6687","entry":"find_classes","repo":"tmlr-group/cover","repo_kind":"official","path":"utils/imagenet_c/make_imagenet_c.py","file_url":"https://github.com/tmlr-group/cover/blob/HEAD/utils/imagenet_c/make_imagenet_c.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":"9347fb42c15d6687"}},{"code_sha256_prefix":"dcd422d66b0581d8","entry":"get_cast_dtype","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/model.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/model.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dcd422d66b0581d8"}},{"code_sha256_prefix":"b476c8cfbf0f1f47","entry":"get_input_dtype","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/model.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/model.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b476c8cfbf0f1f47"}},{"code_sha256_prefix":"87889f77c597efa2","entry":"make_dataset","repo":"tmlr-group/cover","repo_kind":"official","path":"utils/imagenet_c/make_imagenet_c.py","file_url":"https://github.com/tmlr-group/cover/blob/HEAD/utils/imagenet_c/make_imagenet_c.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":"87889f77c597efa2"}},{"code_sha256_prefix":"ddcbd45e940484ee","entry":"gather_features","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/loss.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/loss.py","link_basis":"harvester_set","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":"ddcbd45e940484ee"}},{"code_sha256_prefix":"ae606c71d60fc894","entry":"get_energy_score","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/ash.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/ash.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":"ae606c71d60fc894"}},{"code_sha256_prefix":"304828c7a5742f2c","entry":"get_msp_score","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/ash.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/ash.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":"304828c7a5742f2c"}},{"code_sha256_prefix":"89e5ed1e75ac3056","entry":"get_ood_scores_clip","repo":"tmlr-group/cover","repo_kind":"official","path":"utils/detection_util.py","file_url":"https://github.com/tmlr-group/cover/blob/HEAD/utils/detection_util.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":"89e5ed1e75ac3056"}},{"code_sha256_prefix":"f03fa80d09174dd7","entry":"get_score","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/ash.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/ash.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":"f03fa80d09174dd7"}},{"code_sha256_prefix":"e332856e3c2fc814","entry":"neighbour_exchange","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/loss.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/loss.py","link_basis":"harvester_set","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":"e332856e3c2fc814"}},{"code_sha256_prefix":"5b1fd364afcf3c05","entry":"neighbour_exchange_bidir","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/loss.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/loss.py","link_basis":"harvester_set","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":"5b1fd364afcf3c05"}},{"code_sha256_prefix":"fb651d0a97fd4d3f","entry":"prepare_inputs_for_generation","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/coca_model.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/coca_model.py","link_basis":"harvester_set","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":"fb651d0a97fd4d3f"}},{"code_sha256_prefix":"2a377da4a76a2d44","entry":"register_pooler","repo":"tmlr-group/CoVer","repo_kind":"official","path":"open_clip/hf_model.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/open_clip/hf_model.py","link_basis":"harvester_set","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":"2a377da4a76a2d44"}},{"code_sha256_prefix":"c256999579131c07","entry":"resnet18","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/resnet_dice.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/resnet_dice.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":"c256999579131c07"}},{"code_sha256_prefix":"a6b5c4ed85c2369e","entry":"resnet50","repo":"tmlr-group/CoVer","repo_kind":"official","path":"DNNs/resnet_dice.py","file_url":"https://github.com/tmlr-group/CoVer/blob/HEAD/DNNs/resnet_dice.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":"a6b5c4ed85c2369e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}