{"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/going-beyond-conventional-ood-detection","title":"Going Beyond Conventional OOD Detection","arxiv_id":"2411.10794","date":"2024-11-16","proceeding":null,"authors":["Sudarshan Regmi"],"abstract":"Out-of-distribution (OOD) detection is critical to ensure the safe deployment of deep learning models in critical applications. Deep learning models can often misidentify OOD samples as in-distribution (ID) samples. This vulnerability worsens in the presence of spurious correlation in the training set. Likewise, in fine-grained classification settings, detection of fine-grained OOD samples becomes inherently challenging due to their high similarity to ID samples. However, current research on OOD detection has largely ignored these challenging scenarios, focusing instead on relatively easier (conventional) cases. In this work, we present a unified Approach to Spurious, fine-grained, and Conventional OOD Detection (ASCOOD). First, we propose synthesizing virtual outliers from ID data by approximating the destruction of invariant features. We identify invariant features with the pixel attribution method using the model being learned. This approach eliminates the burden of curating external OOD datasets. Then, we simultaneously incentivize ID classification and predictive uncertainty towards the virtual outliers leveraging standardized feature representation. Our approach effectively mitigates the impact of spurious correlations and encourages capturing fine-grained attributes. Extensive experiments across six datasets demonstrate the merit of ASCOOD in spurious, fine-grained, and conventional settings. The code is available at: https://github.com/sudarshanregmi/ASCOOD/","url_abs":"https://arxiv.org/abs/2411.10794v2","url_pdf":"https://arxiv.org/pdf/2411.10794v2.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":"going-beyond-conventional-ood-detection","repo_url":"https://github.com/sudarshanregmi/ascood","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"ood-detection","task_name":"Out of Distribution (OOD) Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2411.10794","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.10794"}},"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/sudarshanregmi/ascood","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":2,"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":"d8339d591bbd7f52","entry":"rew_ce","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/reweight.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8339d591bbd7f52"}},{"code_sha256_prefix":"61492b343324d2ea","entry":"soft_cross_entropy","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/sce.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/sce.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61492b343324d2ea"}},{"code_sha256_prefix":"45b6edb2cf78cda2","entry":"create_window","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/ssim.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":"45b6edb2cf78cda2"}},{"code_sha256_prefix":"e2424ce033ba3a0f","entry":"gaussian","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/ssim.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":"e2424ce033ba3a0f"}},{"code_sha256_prefix":"4c1d0e3674921db5","entry":"loss_function","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/rd4ad_loss.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/rd4ad_loss.py","link_basis":"first_harvest_node","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":"4c1d0e3674921db5"}},{"code_sha256_prefix":"e1014da2309b3946","entry":"rew_sce","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/reweight.py","link_basis":"first_harvest_node","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":"e1014da2309b3946"}},{"code_sha256_prefix":"d1619ad1bb7ea0f7","entry":"ssim","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/losses/ssim.py","link_basis":"first_harvest_node","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":"d1619ad1bb7ea0f7"}},{"code_sha256_prefix":"cf453862e5603bd6","entry":"z_std","repo":"sudarshanregmi/ascood","repo_kind":"official","path":"openood/networks/ascood_net.py","file_url":"https://github.com/sudarshanregmi/ascood/blob/HEAD/openood/networks/ascood_net.py","link_basis":"first_harvest_node","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":"cf453862e5603bd6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}