Fangyu Liu, Muhao Chen, Wenxuan Zhou
6 of 7 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; 5 failures of our instrument; 1 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/2104.08812.json · badge: /api/ran/2104.08812.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.
| Repository | Role | Ran |
|---|---|---|
| wzhouad/Contra-OOD | marked official in Papers with Code Papers with Code archive |
4 ran · 1 no recorded run |
| copy not recorded | community not in the paper's declared repositories |
2 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| collate_fn | Ran ran; our contract draft was wrong, not the code |
wzhouad/Contra-OOD/evaluation.py code served (permissive licence) · get_code("fba9a666b9277255") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| fpr_and_fdr_at_recall | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wzhouad/Contra-OOD/evaluation.py code served (permissive licence) · get_code("541b471fca0ca15a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| get_auroc | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
this paper's copy was not recorded; identical code first harvested from awenbocc/llm-ood pointer only; the stored copy get_code serves, from awenbocc/llm-ood, is pointer only (licence: NONE) · get_code("ace38fb975eb5cfa") How it ranThe body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_fpr_95 | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wzhouad/Contra-OOD/evaluation.py code served (permissive licence) · get_code("b20471eaf133a65e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| merge_keys | Ran ran; our contract draft was wrong, not the code |
this paper's copy was not recorded; identical code first harvested from awenbocc/llm-ood pointer only; the stored copy get_code serves, from awenbocc/llm-ood, is pointer only (licence: NONE) · get_code("21a8e085a4502dad") How it ranThe body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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 |
wzhouad/Contra-OOD/evaluation.py code served (permissive licence) · get_code("e6809651fe876f1d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| evaluate_ood | Not yet run unverified (harvested, no recorded run) |
wzhouad/Contra-OOD/evaluation.py code served (permissive licence) · get_code("b1476bb643081c90") How it ranno invocation recorded. |
Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| stable_cumsum brick of this paper's assembly: helper |
29 other papers 2 dated earlier, 27 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 2105.07581 (2021-05) Vision Transformers are Robust Learners and 26 more not named here |
| get_auroc brick of this paper's assembly: metric |
2 other papers 2 later |
2305.13282 (2023-05) Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detection |
2308.10261 (2023-08) How Good Are LLMs at Out-of-Distribution Detection? |
| collate_fn brick of this paper's assembly: helper |
1 other paper 1 later |
2310.17715 (2023-10) Outlier Dimensions Encode Task-Specific Knowledge |
|
| merge_keys brick of this paper's assembly: helper |
1 other paper 1 later |
2308.10261 (2023-08) How Good Are LLMs at Out-of-Distribution Detection? |
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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Pretrained Transformers achieve remarkable performance when training and test data are from the same distribution. However, in realworld scenarios, the model often faces out-ofdistribution (OOD) instances that can cause severe semantic shift problems at inference time. Therefore, in practice, a reliable model should identify such instances, and then either reject them during inference or pass them over to models that handle another distribution. In this paper, we develop an unsupervised OOD detection method, in which only the indistribution (ID) data are used in training. We propose to fine-tune the Transformers with a contrastive loss, which improves the compactness of representations, such that OOD instances can be better differentiated from ID ones. These OOD instances can then be accurately detected using the Mahalanobis distance in the model's penultimate layer. We experiment with comprehensive settings and achieve near-perfect OOD detection performance, outperforming baselines drastically. We further investigate the rationales behind the improvement, finding that more compact representations through margin-based contrastive learning bring the improvement. We release our code to the community for future research 1 .
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2104.08812")
get_code_for_paper("2104.08812")
have("2104.08812")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2104.08812.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2104.08812)
Connect an agent — have() is free.