SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.16255 · 2024

Revisiting Deep Feature Reconstruction for Logical and Structural Industrial Anomaly Detection

arXiv · PDF · Open in the Atlas

Code that ran

13 of 13 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; 12 failures of our instrument; 0 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/2410.16255.json · badge: /api/ran/2410.16255.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
sukanyapatra1997/ulsad-2024 canonical (classifier label)
classifier basis: census
13 ran · 0 no recorded run
FunctionStatusWhere it lives
add_anomalous_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/post_processing/post_process.py
pointer only (licence: NONE) · get_code("943f15268bdd462e")
How it ran

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

add_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/post_processing/post_process.py
pointer only (licence: NONE) · get_code("4447ac929ca7ab0c")
How it ran

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

add_normal_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/post_processing/post_process.py
pointer only (licence: NONE) · get_code("fe1771d45fa5b75a")
How it ran

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

compute_new_image_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/pre_processing/tiler.py
pointer only (licence: NONE) · get_code("a2dff7977c4b3db4")
How it ran

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

downscale_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/pre_processing/tiler.py
pointer only (licence: NONE) · get_code("84cd954064cff590")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sukanyapatra1997/ulsad-2024 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_image_height_and_width Ran
ran, honoured the contract we drafted
sukanyapatra1997/ulsad-2024/anomalib/pre_processing/pre_process.py
pointer only (licence: NONE) · get_code("7703e3fe0138f8d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sukanyapatra1997/ulsad-2024 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_transforms Ran
ran; our contract draft was wrong, not the code
sukanyapatra1997/ulsad-2024/anomalib/pre_processing/pre_process.py
pointer only (licence: NONE) · get_code("36ed981842aa4e86")
How it ran

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

hide_output Ran
ran; our contract draft was wrong, not the code
sukanyapatra1997/ulsad-2024/benchmarking/benchmark.py
pointer only (licence: NONE) · get_code("471a7f0d572c50e7")
How it ran

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

imagenet_norm_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/models/ulsad/torch_model.py
pointer only (licence: NONE) · get_code("8a542d7a668c47e5")
How it ran

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

update_input_size_config Ran
ran; our contract draft was wrong, not the code
sukanyapatra1997/ulsad-2024/anomalib/config/config.py
pointer only (licence: NONE) · get_code("458acbf30c9b5a58")
How it ran

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

update_multi_gpu_training_config Ran
ran; our contract draft was wrong, not the code
sukanyapatra1997/ulsad-2024/anomalib/config/config.py
pointer only (licence: NONE) · get_code("6d3c92b52fa4d6da")
How it ran

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

update_nncf_config Ran
ran; our contract draft was wrong, not the code
sukanyapatra1997/ulsad-2024/anomalib/config/config.py
pointer only (licence: NONE) · get_code("5179dd442c5dbf8b")
How it ran

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

upscale_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sukanyapatra1997/ulsad-2024/anomalib/pre_processing/tiler.py
pointer only (licence: NONE) · get_code("1b738f3ebd53da86")
How it ran

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

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
add_anomalous_label 2 other papers
2 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
2409.20353 (2024-09)
CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset
add_label 2 other papers
2 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
2409.20353 (2024-09)
CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset
add_normal_label 2 other papers
2 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
2409.20353 (2024-09)
CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset
update_multi_gpu_training_config 2 other papers
2 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
2409.20353 (2024-09)
CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset
update_nncf_config 2 other papers
2 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
2409.20353 (2024-09)
CableInspect-AD: An Expert-Annotated Anomaly Detection Dataset
compute_new_image_size 1 other paper
1 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
get_image_height_and_width 1 other paper
1 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
get_transforms 1 other paper
1 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot Anomaly Detection
update_input_size_config 1 other paper
1 dated earlier
2307.10792 (2023-07)
Optimizing PatchCore for Few/many-shot 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-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

Industrial anomaly detection is crucial for quality control and predictive maintenance, but it presents challenges due to limited training data, diverse anomaly types, and external factors that alter object appearances. Existing methods commonly detect structural anomalies, such as dents and scratches, by leveraging multi-scale features from image patches extracted through deep pre-trained networks. However, significant memory and computational demands often limit their practical application. Additionally, detecting logical anomalies-such as images with missing or excess elements-requires an understanding of spatial relationships that traditional patch-based methods fail to capture. In this work, we address these limitations by focusing on Deep Feature Reconstruction (DFR), a memory- and compute-efficient approach for detecting structural anomalies. We further enhance DFR into a unified framework, called ULSAD, which is capable of detecting both structural and logical anomalies. Specifically, we refine the DFR training objective to improve performance in structural anomaly detection, while introducing an attention-based loss mechanism using a global autoencoder-like network to handle logical anomaly detection. Our empirical evaluation across five benchmark datasets demonstrates the performance of ULSAD in detecting and localizing both structural and logical anomalies, outperforming eight state-of-the-art methods. An extensive ablation study further highlights the contribution of each component to the overall performance improvement. Our code is available at https://github.com/sukanyapatra1997/ULSAD-2024.git

For agents

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

get_harvested_code_for_paper("2410.16255")
get_code_for_paper("2410.16255")
have("2410.16255")

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

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

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

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

Connect an agent — have() is free.