Papers › LINe: Out-of-Distribution Detection by Leveraging Important Neurons

LINe: Out-of-Distribution Detection by Leveraging Important Neurons

24 Mar 2023CVPR 2023 1arXiv:2303.13995archive 2025-07-28

Yong Hyun Ahn, Gyeong-Moon Park, Seong Tae Kim

It is important to quantify the uncertainty of input samples, especially in mission-critical domains such as autonomous driving and healthcare, where failure predictions on out-of-distribution (OOD) data are likely to cause big problems. OOD detection problem fundamentally begins in that the model cannot express what it is not aware of. Post-hoc OOD detection approaches are widely explored because they do not require an additional re-training process which might degrade the model's performance and increase the training cost. In this study, from the perspective of neurons in the deep layer of the model representing high-level features, we introduce a new aspect for analyzing the difference in model outputs between in-distribution data and OOD data. We propose a novel method, Leveraging Important Neurons (LINe), for post-hoc Out of distribution detection. Shapley value-based pruning reduces the effects of noisy outputs by selecting only high-contribution neurons for predicting specific classes of input data and masking the rest. Activation clipping fixes all values above a certain threshold into the same value, allowing LINe to treat all the class-specific features equally and just consider the difference between the number of activated feature differences between in-distribution and OOD data. Comprehensive experiments verify the effectiveness of the proposed method by outperforming state-of-the-art post-hoc OOD detection methods on CIFAR-10, CIFAR-100, and ImageNet datasets.

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="2303.13995")

Code

Syntology Ran 8 of 20 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · violated contract; 5 ran · our draft was wrong; 2 ran · fixture could not drive it.

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

yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons officialmentioned in papermentioned on GitHubpytorchMIT 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

20 samples harvested; 8 ran; 0 honoured the contract we drafted; 12 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.

1ran · violated contract
5ran · our draft was wrong
2ran · fixture could not drive it
12unverified

Licence: 0 of the 20 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 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons. “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.

conv1x1 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnetv2.py official repository ran · our draft was wrong MIT (permissive) · ee80cf467065076b · report
conv3x3 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
conv3x3 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnetv2.py official repository ran · our draft was wrong MIT (permissive) · f01b8d3901f0b289 · report
format_time yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/common.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 8d7ec010c29e813b · report
get_msp_score yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/score.py official repository ran · our draft was wrong MIT (permissive) · 8511dff685e73d9d · report
get_rowl_score yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/score.py official repository ran · fixture could not drive it MIT (permissive) · 3574d883f0468bc9 · report
get_sofl_score yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/score.py official repository ran · fixture could not drive it MIT (permissive) · f3bc884f0d0d3994 · report
tf2th yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnetv2.py official repository ran · violated contract fingerprinted MIT (permissive) · 7023eb86801bb3a3 · report
create_dat yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/lbtoolbox.py official repository unverified MIT (permissive) · c89634a262bdea21 · report
dir yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/common.py official repository unverified MIT (permissive) · 28ea57a8f1e61ffb · report
get_mixup yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/hyperrule.py official repository unverified MIT (permissive) · 7d63034d0bfadd78 · report
get_resolution yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/hyperrule.py official repository unverified MIT (permissive) · a933bb17fdb8ebb4 · report
get_resolution_from_dataset yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/hyperrule.py official repository unverified MIT (permissive) · 53256b67d70b0daf · report
load_dat yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/lbtoolbox.py official repository unverified MIT (permissive) · dab6ee6664758d5f · report
log_f yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/common.py official repository unverified MIT (permissive) · b7607d4d2ee295e2 · report
mobilenet_v2 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/mobilenetv2.py official repository unverified MIT (permissive) · 3c3391fd28fbb0aa · report
pil_loader yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/dataset_largescale.py official repository unverified MIT (permissive) · bfe25354cd38a1d7 · report
resnet18 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnet.py official repository unverified MIT (permissive) · 5bb09b6a9cad75f6 · report
resnet50 yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/models/resnet.py official repository unverified MIT (permissive) · 47a0a26e9f0185c8 · report
unpickle yonghyun-ahn/line-out-of-distribution-detection-by-leveraging-important-neurons/util/dataset_largescale.py official repository unverified MIT (permissive) · 80aea57f14a9774f · report

Tasks

Autonomous DrivingOut-of-Distribution Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Out-of-Distribution Detection ImageNet-1k vs Curated OODs (avg.) LINe (ResNet-50) AUROC 95.03 #4 of 16 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Curated OODs (avg.) LINe (ResNet-50) FPR95 20.70 #4 of 16 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Places LINe (ResNet50) AUROC 92.85 #2 of 25 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Places LINe (ResNet50) FPR95 28.52 #2 of 25 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs SUN LINe (ResNet50) AUROC 95.26 #2 of 22 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs SUN LINe (ResNet50) FPR95 19.48 #2 of 22 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Textures LINe (ResNet-50) AUROC 94.44 #12 of 34 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Textures LINe (ResNet-50) FPR95 22.54 #12 of 34 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs iNaturalist LINe (ResNet-50) AUROC 97.56 #11 of 28 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs iNaturalist LINe (ResNet-50) FPR95 12.26 #11 of 28 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Pruning

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