{"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/block-selection-method-for-using-feature-norm","title":"Block Selection Method for Using Feature Norm in Out-of-distribution Detection","arxiv_id":"2212.02295","date":"2022-12-05","proceeding":"CVPR 2023 1","authors":["Yeonguk Yu","Sungho Shin","Seongju Lee","Changhyun Jun","Kyoobin Lee"],"abstract":"Detecting out-of-distribution (OOD) inputs during the inference stage is crucial for deploying neural networks in the real world. Previous methods commonly relied on the output of a network derived from the highly activated feature map. In this study, we first revealed that a norm of the feature map obtained from the other block than the last block can be a better indicator of OOD detection. Motivated by this, we propose a simple framework consisting of FeatureNorm: a norm of the feature map and NormRatio: a ratio of FeatureNorm for ID and OOD to measure the OOD detection performance of each block. In particular, to select the block that provides the largest difference between FeatureNorm of ID and FeatureNorm of OOD, we create Jigsaw puzzle images as pseudo OOD from ID training samples and calculate NormRatio, and the block with the largest value is selected. After the suitable block is selected, OOD detection with the FeatureNorm outperforms other OOD detection methods by reducing FPR95 by up to 52.77% on CIFAR10 benchmark and by up to 48.53% on ImageNet benchmark. We demonstrate that our framework can generalize to various architectures and the importance of block selection, which can improve previous OOD detection methods as well.","url_abs":"https://arxiv.org/abs/2212.02295v3","url_pdf":"https://arxiv.org/pdf/2212.02295v3.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":"block-selection-method-for-using-feature-norm","repo_url":"https://github.com/gist-ailab/block-selection-for-ood-detection","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"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":[{"method_slug":"jigsaw","method_name":"Jigsaw"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2212.02295","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2212.02295"}},"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/gist-ailab/block-selection-for-ood-detection","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"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":"937a1819f5a1570b","entry":"forward_feature_mobilenetv3","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"eval_imagenet.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/eval_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"937a1819f5a1570b"}},{"code_sha256_prefix":"32a3d49226953bdd","entry":"forward_feature_resnet50","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"eval_imagenet.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/eval_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"32a3d49226953bdd"}},{"code_sha256_prefix":"c8011d4c2ad94d63","entry":"forward_feature_vgg16","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"eval_imagenet.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/eval_imagenet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c8011d4c2ad94d63"}},{"code_sha256_prefix":"62ee6bf0519a0c4c","entry":"get_cifar_jigsaw","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"62ee6bf0519a0c4c"}},{"code_sha256_prefix":"87b16ce2369fe4eb","entry":"get_imagenet_jigsaw","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"87b16ce2369fe4eb"}},{"code_sha256_prefix":"9a737c6cbb1f5620","entry":"read_conf","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9a737c6cbb1f5620"}},{"code_sha256_prefix":"9530fc046c804317","entry":"validation_accuracy","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/metric.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/metric.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9530fc046c804317"}},{"code_sha256_prefix":"5d06985afd044e26","entry":"validation_accuracy_norm","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/metric.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/metric.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5d06985afd044e26"}},{"code_sha256_prefix":"32c613ba479e2e4b","entry":"validation_accuracy_norm_wrn","repo":"gist-ailab/block-selection-for-ood-detection","repo_kind":"official","path":"utils/metric.py","file_url":"https://github.com/gist-ailab/block-selection-for-ood-detection/blob/HEAD/utils/metric.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"32c613ba479e2e4b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}