Guangtao Zhai, Xincheng Yao, Chongyang Zhang, Chao Shi, Muming Zhao
10 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2509.23741.json · badge: /api/ran/2509.23741.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: census |
10 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_mc_reference_features | Ran ran; our contract draft was wrong, not the code |
xcyao00/ResAD/main_ib_all.py code served (permissive licence) · get_code("f7d1a342555346ba") 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 12 samples lifted from this paper's linked repositories, 12 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 (11 with at least one paper dated earlier, 0 the same month, 0 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 4 dated earlier |
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 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| calculate_occ_loss | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| get_logp_a | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| get_logp_boundary | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| get_normal_boundary | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| get_position_encoding | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| load_and_transform_vision_data | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| load_mc_reference_features | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| load_mc_reference_features | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly Detection |
|
| load_reference_features | 1 other paper 1 dated earlier |
2410.20047 (2024-10) ResAD: A Simple Framework for Class Generalizable Anomaly 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-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-agnostic anomaly detection (AD), where the objective is to train one class-agnostic AD model that can generalize to detect anomalies in diverse new classes from different domains without any retraining or fine-tuning on the target data. When applied for new classes, the performance of current single-and multi-class AD methods is still unsatisfactory. One fundamental reason is that representation learning in existing methods is still class-related, namely, feature correlation. Feature correlation represents that the features of each class have many classrelated attributes to the class, resulting in the model learned on one class relying on class-related representations, thereby being hard to adapt to other classes. To address this issue, we propose residual features and construct a simple but effective framework, termed ResAD. Our core insight is to learn the residual feature distribution rather than the initial feature distribution. Residual features are formed by matching and then subtracting normal reference features. In this way, we can effectively realize feature decorrelation. Even in new classes, the distribution of normal residual features would not remarkably shift from the learned distribution. In addition, we think that residual features still have one issue: scale correlation. Scale correlation refers that features of different classes may still have significant differences in scale, namely, the numerical value scales in the features of different classes may be remarkably different. To this end, we propose a feature hypersphere constraining approach, which learns to constrain initial normal residual features into a spatial hypersphere for enabling the feature scales of different classes as consistent as possible. Furthermore, we propose a novel logbarrier bidirectional contraction OCC loss and vector quantization based feature distribution matching module to enhance ResAD, leading to the improved version of ResAD (ResAD++). Comprehensive experiments on eight real-world AD datasets demonstrate that our ResAD++ can achieve remarkable AD results when directly used in new classes, outperforming state-of-the-art competing methods and also surpassing ResAD. The code is available at https://github.com/xcyao00/ResAD.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2509.23741")
get_code_for_paper("2509.23741")
have("2509.23741")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2509.23741.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2509.23741)
Connect an agent — have() is free.