SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.18635 · ICML · 2024

When and How Does In-Distribution Label Help Out-of-Distribution Detection?

Yixuan Li, Xuefeng Du, Yiyou Sun

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.18635.json · badge: /api/ran/2405.18635.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
deeplearning-wisc/id_label canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
D Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/models/spectral.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/sorl, is pointer only (licence: NONE) · get_code("cb279c9dbdcb97c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

D Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/models/spectral_old.py
pointer only (licence: NONE) · get_code("cd6d57e7c8432808")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deeplearning-wisc/id_label/linear_probe.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/haloscope, is pointer only (licence: NONE) · get_code("31f45aff0c4290a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fpr_and_fdr_at_recall Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deeplearning-wisc/id_label/metric_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from HaoyueBaiZJU/aha, is pointer only (licence: NONE) · get_code("1134ab62338793e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_measures Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deeplearning-wisc/id_label/metric_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from HaoyueBaiZJU/aha, is pointer only (licence: NONE) · get_code("9b1abfca5a67be06")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_model Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/models/builder.py
pointer only (licence: NONE) · get_code("32af8c00b3d09da4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_ood_dataset Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/make_dataset.py
pointer only (licence: NONE) · get_code("55f4568be6fd0df0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalized_thresh Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/models/spectral.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/sorl, is pointer only (licence: NONE) · get_code("b645d731bc4d2de3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_optimizer Ran
ran; our contract draft was wrong, not the code
deeplearning-wisc/id_label/linear_probe.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/haloscope, is pointer only (licence: NONE) · get_code("a44a1925c2c778ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

stable_cumsum Ran
ran, honoured the contract we drafted
deeplearning-wisc/id_label/metric_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from fanghenshaometeor/ood-kernel-pca-ext, is pointer only (licence: NONE) · get_code("d4acb3120a027622")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deeplearning-wisc/id_label/linear_probe.py
pointer only (licence: NONE) · get_code("1ae39c289c58b21c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_CIFAR Not yet run
unverified (harvested, no recorded run)
deeplearning-wisc/id_label/make_dataset.py
pointer only (licence: NONE) · get_code("d778b5788d9b7914")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deeplearning-wisc/id_label when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 6 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
stable_cumsum 29 other papers
19 dated earlier, 1 the same month, 9 later · 1 only as an assembly brick
1911.11132 (2019-11)
Scaling Out-of-Distribution Detection for Real-World Settings
2003.08440 (2020-03)
Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentation
2104.08812 (2021-04)
Contrastive Out-of-Distribution Detection for Pretrained Transformers
and 26 more not named here
set_optimizer 9 other papers
6 dated earlier, 3 later
1901.07659 (2019-01)
A Machine Learning Benchmark for Facies Classification
1906.05849 (2019-06)
Contrastive Multiview Coding
2004.11362 (2020-04)
Supervised Contrastive Learning
and 6 more not named here
get_measures 5 other papers
3 dated earlier, 2 later
2202.01197 (2022-02)
VOS: Learning What You Don't Know by Virtual Outlier Synthesis
2302.07106 (2023-02)
Normalizing Flow based Feature Synthesis for Outlier-Aware Object Detection
and 2 more not named here
fpr_and_fdr_at_recall 4 other papers
2 dated earlier, 2 later
2202.01197 (2022-02)
VOS: Learning What You Don't Know by Virtual Outlier Synthesis
2409.17504 (2024-09)
HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detection
and 1 more not named here
normalized_thresh 3 other papers
2 dated earlier, 1 later · 1 only as an assembly brick
2308.05017 (2023-08)
When and How Does Known Class Help Discover Unknown Ones? Provable Understanding Through Spectral Analysis
2311.03524 (2023-11)
A Graph-Theoretic Framework for Understanding Open-World Semi-Supervised Learning
2409.18205 (2024-09)
Bridging OOD Detection and Generalization: A Graph-Theoretic View
D 2 other papers
2 dated earlier
2308.05017 (2023-08)
When and How Does Known Class Help Discover Unknown Ones? Provable Understanding Through Spectral Analysis
2311.03524 (2023-11)
A Graph-Theoretic Framework for Understanding Open-World Semi-Supervised Learning
D 1 other paper
1 dated earlier
2106.04156 (2021-06)
Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Loss
accuracy 1 other paper
1 later
2409.17504 (2024-09)
HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detection
load_CIFAR 1 other paper
1 dated earlier
2202.03299 (2022-02)
Training OOD Detectors in their Natural Habitats

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Detecting data points deviating from the training distribution is pivotal for ensuring reliable machine learning. Extensive research has been dedicated to the challenge, spanning classical anomaly detection techniques to contemporary out-of-distribution (OOD) detection approaches. While OOD detection commonly relies on supervised learning from a labeled in-distribution (ID) dataset, anomaly detection may treat the entire ID data as a single class and disregard ID labels. This fundamental distinction raises a significant question that has yet to be rigorously explored: when and how does ID label help OOD detection? This paper bridges this gap by offering a formal understanding to theoretically delineate the impact of ID labels on OOD detection. We employ a graph-theoretic approach, rigorously analyzing the separability of ID data from OOD data in a closed-form manner. Key to our approach is the characterization of data representations through spectral decomposition on the graph. Leveraging these representations, we establish a provable error bound that compares the OOD detection performance with and without ID labels, unveiling conditions for achieving enhanced OOD detection. Lastly, we present empirical results on both simulated and real datasets, validating theoretical guarantees and reinforcing our insights. Code is publicly available at https://github.com/ deeplearning-wisc/id_label.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.18635")
get_code_for_paper("2405.18635")
have("2405.18635")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.18635.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.18635.svg)](https://syntology.ai/paper/2405.18635)

Connect an agent — have() is free.