{"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/mood-multi-level-out-of-distribution","title":"MOOD: Multi-level Out-of-distribution Detection","arxiv_id":"2104.14726","date":"2021-04-30","proceeding":"CVPR 2021 1","authors":["Ziqian Lin","Sreya Dutta Roy","Yixuan Li"],"abstract":"Out-of-distribution (OOD) detection is essential to prevent anomalous inputs from causing a model to fail during deployment. While improved OOD detection methods have emerged, they often rely on the final layer outputs and require a full feedforward pass for any given input. In this paper, we propose a novel framework, multi-level out-of-distribution detection MOOD, which exploits intermediate classifier outputs for dynamic and efficient OOD inference. We explore and establish a direct relationship between the OOD data complexity and optimal exit level, and show that easy OOD examples can be effectively detected early without propagating to deeper layers. At each exit, the OOD examples can be distinguished through our proposed adjusted energy score, which is both empirically and theoretically suitable for networks with multiple classifiers. We extensively evaluate MOOD across 10 OOD datasets spanning a wide range of complexities. Experiments demonstrate that MOOD achieves up to 71.05% computational reduction in inference, while maintaining competitive OOD detection performance.","url_abs":"https://arxiv.org/abs/2104.14726v1","url_pdf":"https://arxiv.org/pdf/2104.14726v1.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":"mood-multi-level-out-of-distribution","repo_url":"https://github.com/deeplearning-wisc/MOOD","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"ood-detection","task_name":"Out of Distribution (OOD) Detection"},{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2104.14726","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.14726"}},"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/deeplearning-wisc/MOOD","reach":null}],"summary":{"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":7,"samples":[{"code_sha256_prefix":"93114beb19e7bce6","entry":"cut_transfer","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"93114beb19e7bce6"}},{"code_sha256_prefix":"bd0717e9f43db5fc","entry":"energy_score","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bd0717e9f43db5fc"}},{"code_sha256_prefix":"d80d4892b87680b1","entry":"msp_score","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d80d4892b87680b1"}},{"code_sha256_prefix":"bf945f8e1f36ae23","entry":"odin_score","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bf945f8e1f36ae23"}},{"code_sha256_prefix":"7a652635350abbc0","entry":"calculate_complex","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.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":"7a652635350abbc0"}},{"code_sha256_prefix":"cd4aefc8aaed8440","entry":"get_ood_score","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.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":"cd4aefc8aaed8440"}},{"code_sha256_prefix":"d3240792e636b360","entry":"mahalanobis_score","repo":"deeplearning-wisc/MOOD","repo_kind":"official","path":"utils/MOOD.py","file_url":"https://github.com/deeplearning-wisc/MOOD/blob/HEAD/utils/MOOD.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":"d3240792e636b360"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}