Chao Gao, Guangtao Zhai, Xincheng Yao, Zixin Chen, Chongyang Zhang
9 of 11 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; 2 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-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/2410.20047.json · badge: /api/ran/2410.20047.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 |
|---|---|---|
| xcyao00/resad | canonical (classifier label) classifier basis not recorded on the link |
9 ran · 2 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| get_logp_a | Ran ran; our contract draft was wrong, not the code |
xcyao00/resad/losses/utils.py code served (permissive licence) · get_code("4864e6c6c42523f8") 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 Tensor, ndim 1, dtype family float, shape (2,) 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_logp_boundary | Ran ran; our contract draft was wrong, not the code |
xcyao00/resad/losses/loss.py code served (permissive licence) · get_code("6871690b7d7c52ca") 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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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_normal_boundary | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
xcyao00/resad/losses/utils.py code served (permissive licence) · get_code("97bb30729343aee3") 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 Tensor, 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_position_encoding | Ran ran, honoured the contract we drafted |
xcyao00/resad/models/modules.py code served (permissive licence) · get_code("5461edac0e02cae6") 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 Tensor, ndim 3, dtype family float, shape (8, 3, 4) 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.
|
| load_and_transform_vision_data | Ran ran, honoured the contract we drafted |
xcyao00/resad/main_ib.py code served (permissive licence) · get_code("5697b41685ddd400") 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 Tensor, ndim 4, dtype family float, shape (2, 3, 224, 224) 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.
|
| load_mc_reference_features | Ran ran; our contract draft was wrong, not the code |
xcyao00/resad/main_all.py code served (permissive licence) · get_code("8724d875b88a147c") 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.
|
| load_mc_reference_features | Ran ran; our contract draft was wrong, not the code |
xcyao00/resad/main_ib.py code served (permissive licence) · get_code("38f73e38d215dec7") 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.
|
| load_reference_features | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
xcyao00/resad/cpr.py code served (permissive licence) · get_code("247b256eed3c80d3") 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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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.
|
| subnet_fc | Ran ran; our contract draft was wrong, not the code |
xcyao00/resad/models/fc_flow.py code served (permissive licence) · get_code("3f068df64f534372") 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 Sequential. 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.
|
| calculate_log_barrier_occ_loss | Not yet run unverified (harvested, no recorded run) |
xcyao00/resad/losses/loss.py code served (permissive licence) · get_code("09544c0c0a013039") How it ranno invocation recorded. |
| calculate_occ_loss | Not yet run unverified (harvested, no recorded run) |
xcyao00/resad/losses/loss.py code served (permissive licence) · get_code("5ac595999ee650c5") How it ranno invocation recorded. |
Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 11 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 11 later) and 0 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 |
|---|---|---|---|
| subnet_fc | 4 other papers 3 dated earlier, 1 later |
2107.12571 (2021-07) CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flows |
aaai_25604 (2023 (year only)) One-for-All: Proposal Masked Cross-Class Anomaly Detection 2403.13349 (2024-03) Hierarchical Gaussian Mixture Normalizing Flow Modeling for Unified Anomaly Detection and 1 more not named here |
| calculate_log_barrier_occ_loss | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| calculate_occ_loss | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| get_logp_a | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| get_logp_boundary | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| get_normal_boundary | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| get_position_encoding | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| load_and_transform_vision_data | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| load_mc_reference_features | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| load_mc_reference_features | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
|
| load_reference_features | 1 other paper 1 later |
2509.23741 (2025-09) ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning |
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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
This paper explores the problem of class-generalizable anomaly detection, where the objective is to train one unified AD model that can generalize to detect anomalies in diverse classes from different domains without any retraining or fine-tuning on the target data. Because normal feature representations vary significantly across classes, this will cause the widely studied one-for-one AD models to be poorly classgeneralizable (i.e., performance drops dramatically when used for new classes). In this work, we propose a simple but effective framework (called ResAD) that can be directly applied to detect anomalies in new classes. Our main insight is to learn the residual feature distribution rather than the initial feature distribution. In this way, we can significantly reduce feature variations. Even in new classes, the distribution of normal residual features would not remarkably shift from the learned distribution. Therefore, the learned model can be directly adapted to new classes. ResAD consists of three components: (1) a Feature Converter that converts initial features into residual features; (2) a simple and shallow Feature Constraintor that constrains normal residual features into a spatial hypersphere for further reducing feature variations and maintaining consistency in feature scales among different classes; (3) a Feature Distribution Estimator that estimates the normal residual feature distribution, anomalies can be recognized as out-of-distribution. Despite the simplicity, ResAD can achieve remarkable anomaly detection results when directly used in new classes. The code is available at https://github.com/xcyao00/ResAD. * Corresponding Author. 2 Class means the category of the object in the image. For industrial scenarios, it refers to the product category, e.g., bottle, carpet, etc. For medical analysis, it refers to the body organ category, e.g., head CT, retina, etc. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2410.20047")
get_code_for_paper("2410.20047")
have("2410.20047")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2410.20047.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2410.20047)
Connect an agent — have() is free.