SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17816 · ICLR · 2025

Pursuing Feature Separation based on Neural Collapse for Out-of-Distribution Detection

Xiaolin Huang, Yingwen Wu, Xinwen Cheng, Ruiji Yu, Zhengbao He

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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.17816.json · badge: /api/ran/2405.17816.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
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
fpr_and_fdr_at_recall Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/utils/display_results.py
pointer only (licence: NONE) · get_code("7242da839b9822be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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_feas_by_hook Ran
ran; our contract draft was wrong, not the code
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/visualize_utils.py
pointer only (licence: NONE) · get_code("1c778310a75bf14c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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)
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/utils/display_results.py
pointer only (licence: NONE) · get_code("b9b6c36f7a3e7e67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/utils/display_results.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, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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.

subdataset Ran
ran; our contract draft was wrong, not the code
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/imagenet_1k_finetune_dal.py
pointer only (licence: NONE) · get_code("7dcfb5ba6a5d53f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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.

knn Not yet run
unverified (harvested, no recorded run)
Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection/imagenet/imagenet_1k_finetune_dal.py
pointer only (licence: NONE) · get_code("f04f50a0d23124f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 1 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
fpr_and_fdr_at_recall 8 other papers
8 dated earlier
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
2108.04562 (2021-08)
Deep Metric Learning for Open World Semantic Segmentation
and 5 more not named here
get_measures 8 other papers
8 dated earlier
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
2108.04562 (2021-08)
Deep Metric Learning for Open World Semantic Segmentation
and 5 more not named here

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

In the open world, detecting out-of-distribution (OOD) data, whose labels are disjoint with those of in-distribution (ID) samples, is important for reliable deep neural networks (DNNs). To achieve better detection performance, one type of approach proposes to fine-tune the model with auxiliary OOD datasets to amplify the difference between ID and OOD data through a separation loss defined on model outputs. However, none of these studies consider enlarging the feature disparity, which should be more effective compared to outputs. The main difficulty lies in the diversity of OOD samples, which makes it hard to describe their feature distribution, let alone design losses to separate them from ID features. In this paper, we neatly fence off the problem based on an aggregation property of ID features named Neural Collapse (NC). NC means that the penultimate features of ID samples within a class are nearly identical to the last layer weight of the corresponding class. Based on this property, we propose a simple but effective loss called Separation Loss, which binds the features of OOD data in a subspace orthogonal to the principal subspace of ID features formed by NC. In this way, the features of ID and OOD samples are separated by different dimensions. By optimizing the feature separation loss rather than purely enlarging output differences, our detection achieves SOTA performance on CIFAR10, CIFAR100 and ImageNet benchmarks without any additional data augmentation or sampling, demonstrating the importance of feature separation in OOD detection. Code is available at https://github.com/Wuyingwen/Pursuing-Feature-Separation-for-OOD-Detection.

For agents

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

get_harvested_code_for_paper("2405.17816")
get_code_for_paper("2405.17816")
have("2405.17816")

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

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

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

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

Connect an agent — have() is free.