Papers › Block Selection Method for Using Feature Norm in Out-of-distribution Detection

Block Selection Method for Using Feature Norm in Out-of-distribution Detection

5 Dec 2022CVPR 2023 1arXiv:2212.02295archive 2025-07-28

Yeonguk Yu, Sungho Shin, Seongju Lee, Changhyun Jun, Kyoobin Lee

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2212.02295")

Code

Syntology Ran 0 of 9 code samples harvested from 1 repository linked to this paper; 9 have no recorded run.

By repository: official repository: 9 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gist-ailab/block-selection-for-ood-detection officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 0 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from gist-ailab/block-selection-for-ood-detection. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

forward_feature_mobilenetv3 gist-ailab/block-selection-for-ood-detection/eval_imagenet.py official repository unverified Apache-2.0 (permissive) · 937a1819f5a1570b · report
forward_feature_resnet50 gist-ailab/block-selection-for-ood-detection/eval_imagenet.py official repository unverified Apache-2.0 (permissive) · 32a3d49226953bdd · report
forward_feature_vgg16 gist-ailab/block-selection-for-ood-detection/eval_imagenet.py official repository unverified Apache-2.0 (permissive) · c8011d4c2ad94d63 · report
get_cifar_jigsaw gist-ailab/block-selection-for-ood-detection/utils/dataset.py official repository unverified Apache-2.0 (permissive) · 62ee6bf0519a0c4c · report
get_imagenet_jigsaw gist-ailab/block-selection-for-ood-detection/utils/dataset.py official repository unverified Apache-2.0 (permissive) · 87b16ce2369fe4eb · report
read_conf gist-ailab/block-selection-for-ood-detection/utils/dataset.py official repository unverified Apache-2.0 (permissive) · 9a737c6cbb1f5620 · report
validation_accuracy gist-ailab/block-selection-for-ood-detection/utils/metric.py official repository unverified Apache-2.0 (permissive) · 9530fc046c804317 · report
validation_accuracy_norm gist-ailab/block-selection-for-ood-detection/utils/metric.py official repository unverified Apache-2.0 (permissive) · 5d06985afd044e26 · report
validation_accuracy_norm_wrn gist-ailab/block-selection-for-ood-detection/utils/metric.py official repository unverified Apache-2.0 (permissive) · 32c613ba479e2e4b · report

Tasks

Out of Distribution (OOD) DetectionOut-of-Distribution Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Jigsaw

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections