SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.10239 · 2023

From Global to Local: Multi-scale Out-of-distribution Detection

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 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; 7 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2308.10239.json · badge: /api/ran/2308.10239.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
jimzai/mode-ood canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
conv3x3 Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/models/resnet.py
pointer only (licence: NONE); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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_energy_score Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/util/score.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/knn-ood, is pointer only (licence: NONE) · get_code("209469a90d2f8a72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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_lgst_score Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/util/score.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/knn-ood, is pointer only (licence: NONE) · get_code("683101b9e3719e85")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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_msp_score Ran
ran, honoured the contract we drafted
jimzai/mode-ood/util/score.py
pointer only (licence: NONE); the stored copy get_code serves, from deeplearning-wisc/knn-ood, is pointer only (licence: NONE) · get_code("6126345504c875f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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.

projector Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/models/attention.py
pointer only (licence: NONE) · get_code("50f35f73306b91cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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.

resnet18 Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/models/resnet_ss.py
pointer only (licence: NONE) · get_code("736b93ffffc416ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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.

resnet18 Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/models/resnet.py
pointer only (licence: NONE) · get_code("e7381567b86eedac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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.

resnet50 Ran
ran; our contract draft was wrong, not the code
jimzai/mode-ood/models/resnet.py
pointer only (licence: NONE) · get_code("57a690473dc3173f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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 Not yet run
unverified (harvested, no recorded run)
jimzai/mode-ood/util/model_loader.py
pointer only (licence: NONE) · get_code("35a7bbf658cac9cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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.

set_loader Not yet run
unverified (harvested, no recorded run)
jimzai/mode-ood/ALPA/main_ce.py
pointer only (licence: NONE); the stored copy get_code serves, from dongguanting/dpa-rag, is pointer only (licence: NONE) · get_code("2297ed2ca4911b7c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimzai/mode-ood 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 4 later) and 2 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
conv3x3 686 other papers
498 dated earlier, 12 the same month, 169 later, 7 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
resnet18 89 other papers
65 dated earlier, 2 the same month, 21 later, 1 same year, order not determinable
1705.09759 (2017-05)
CASENet: Deep Category-Aware Semantic Edge Detection
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
1803.00839 (2018-03)
Pose-Robust Face Recognition via Deep Residual Equivariant Mapping
and 86 more not named here
resnet50 13 other papers
7 dated earlier, 6 later
1603.04992 (2016-03)
Unsupervised CNN for Single View Depth Estimation: Geometry to the Rescue
1905.03244 (2019-05)
Convolutional Mesh Regression for Single-Image Human Shape Reconstruction
2006.05734 (2020-06)
3D Human Mesh Regression with Dense Correspondence
and 10 more not named here
set_loader 3 other papers
1 dated earlier, 2 later
2004.11362 (2020-04)
Supervised Contrastive Learning
2311.01196 (2023-11)
Combating Bilateral Edge Noise for Robust Link Prediction
2406.18676 (2024-06)
Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
get_energy_score 1 other paper
1 dated earlier
2204.06507 (2022-04)
Out-of-Distribution Detection with Deep Nearest Neighbors
get_lgst_score 1 other paper
1 dated earlier
2204.06507 (2022-04)
Out-of-Distribution Detection with Deep Nearest Neighbors
get_msp_score 1 other paper
1 dated earlier
2204.06507 (2022-04)
Out-of-Distribution Detection with Deep Nearest Neighbors

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-22.

Repositories linked to this paper

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

Abstract

Out-of-distribution (OOD) detection aims to detect "unknown" data whose labels have not been seen during the in-distribution (ID) training process. Recent progress in representation learning gives rise to distance-based OOD detection that recognizes inputs as ID/OOD according to their relative distances to the training data of ID classes. Previous approaches calculate pairwise distances relying only on global image representations, which can be sub-optimal as the inevitable background clutter and intra-class variation may drive image-level representations from the same ID class far apart in a given representation space. In this work, we overcome this challenge by proposing Multi-scale OOD DEtection (MODE), a first framework leveraging both global visual information and local region details of images to maximally benefit OOD detection. Specifically, we first find that existing models pretrained by off-the-shelf cross-entropy or contrastive losses are incompetent to capture valuable local representations for MODE, due to the scale-discrepancy between the ID training and OOD detection processes. To mitigate this issue and encourage locally discriminative representations in ID training, we propose Attention-based Local PropAgation (ALPA), a trainable objective that exploits a cross-attention mechanism to align and highlight the local regions of the target objects for pairwise examples. During test-time OOD detection, a Cross-Scale Decision (CSD) function is further devised on the most discriminative multi-scale representations to distinguish ID/OOD data more faithfully. We demonstrate the effectiveness and flexibility of MODE on several benchmarks -- on average, MODE outperforms the previous state-of-the-art by up to 19.24% in FPR, 2.77% in AUROC. Code is available at https://github.com/JimZAI/MODE-OOD.

For agents

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

get_harvested_code_for_paper("2308.10239")
get_code_for_paper("2308.10239")
have("2308.10239")

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

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

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

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

Connect an agent — have() is free.