SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.09558 · 2024

Adaptive Deviation Learning for Visual Anomaly Detection with Data Contamination

arXiv · PDF · Open in the Atlas

Code that ran

12 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 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/2411.09558.json · badge: /api/ran/2411.09558.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
anindyasdas/adl4vad canonical (classifier label)
classifier basis: census
12 ran · 0 no recorded run
FunctionStatusWhere it lives
aucPerformance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anindyasdas/adl4vad/utils.py
pointer only (licence: NONE) · get_code("cd7be40e5f2e4888")
How it ran

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

conv3x3 Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/modeling/networks/resnet18.py
pointer only (licence: NONE) · get_code("ea864de5c552bc4a")
How it ran

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

create_window Ran
ran, honoured the contract we drafted
anindyasdas/adl4vad/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from Chhro123/fast-foreground-aware-anomaly-synthesis, is pointer only (licence: NONE) · get_code("443341084ce76798")
How it ran

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

gaussian Ran
ran, honoured the contract we drafted
anindyasdas/adl4vad/loss.py
pointer only (licence: NONE) · get_code("c56b7ef16f309a45")
How it ran

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

generate_fractal_noise_2d Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/modeling/transformations/perlin.py
pointer only (licence: NONE) · get_code("293a2b1189b747fd")
How it ran

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

generate_perlin_noise_2d Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/modeling/transformations/perlin.py
pointer only (licence: NONE) · get_code("ed9e127befc02046")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anindyasdas/adl4vad 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_loss_weights Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anindyasdas/adl4vad/utils.py
pointer only (licence: NONE) · get_code("e90058cd3c56d183")
How it ran

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

idBlock Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/modeling/networks/resnet18.py
pointer only (licence: NONE) · get_code("5e88e1aeee7a09ac")
How it ran

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

lerp_np Ran
ran, honoured the contract we drafted
anindyasdas/adl4vad/modeling/transformations/perlin.py
pointer only (licence: NONE); the stored copy get_code serves, from Chhro123/fast-foreground-aware-anomaly-synthesis, is pointer only (licence: NONE) · get_code("4de91a4627a51ea2")
How it ran

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

run_k_means Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/utils.py
pointer only (licence: NONE) · get_code("355b48ee50070b91")
How it ran

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

ssim Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from Chhro123/fast-foreground-aware-anomaly-synthesis, is pointer only (licence: NONE) · get_code("bff794bd9bd73f94")
How it ran

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

upBlock Ran
ran; our contract draft was wrong, not the code
anindyasdas/adl4vad/modeling/networks/resnet18.py
pointer only (licence: NONE) · get_code("c96308e17ab1e7ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, anindyasdas/adl4vad 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 6 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
gaussian 160 other papers
124 dated earlier, 9 the same month, 26 later, 1 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
create_window 19 other papers
14 dated earlier, 1 the same month, 4 later
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
and 16 more not named here
lerp_np 8 other papers
6 dated earlier, 2 later
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2308.06748 (2023-08)
Target before Shooting: Accurate Anomaly Detection and Localization under One Millisecond via Cascade Patch Retrieval
and 5 more not named here
conv3x3 6 other papers
6 dated earlier · 1 only as an assembly brick
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
and 3 more not named here
upBlock 6 other papers
6 dated earlier
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
and 3 more not named here
generate_fractal_noise_2d 5 other papers
4 dated earlier, 1 later
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2308.06748 (2023-08)
Target before Shooting: Accurate Anomaly Detection and Localization under One Millisecond via Cascade Patch Retrieval
and 2 more not named here
generate_perlin_noise_2d 5 other papers
4 dated earlier, 1 later
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2308.06748 (2023-08)
Target before Shooting: Accurate Anomaly Detection and Localization under One Millisecond via Cascade Patch Retrieval
and 2 more not named here
ssim 5 other papers
4 dated earlier, 1 later
Zavrtanik_DRAEM_-_A_Discriminatively_Trained_Reconstruction_Embedding_for_Surface_Anomaly_ICCV_2021_paper (2021 (year only))
DRAEM -A discriminatively trained reconstruction embedding for surface anomaly detection
2108.07610 (2021-08)
DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection
2302.08769 (2023-02)
Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization
and 2 more not named here
aucPerformance 1 other paper
1 dated earlier
2403.06495 (2024-03)
Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts

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

Visual anomaly detection targets to detect images that notably differ from normal pattern, and it has found extensive application in identifying defective parts within the manufacturing industry. These anomaly detection paradigms predominantly focus on training detection models using only clean, unlabeled normal samples, assuming an absence of contamination; a condition often unmet in real-world scenarios. The performance of these methods significantly depends on the quality of the data and usually decreases when exposed to noise. We introduce a systematic adaptive method that employs deviation learning to compute anomaly scores end-to-end while addressing data contamination by assigning relative importance to the weights of individual instances. In this approach, the anomaly scores for normal instances are designed to approximate scalar scores obtained from the known prior distribution. Meanwhile, anomaly scores for anomaly examples are adjusted to exhibit statistically significant deviations from these reference scores. Our approach incorporates a constrained optimization problem within the deviation learning framework to update instance weights, resolving this problem for each mini-batch. Comprehensive experiments on the MVTec and VisA benchmark datasets indicate that our proposed method surpasses competing techniques and exhibits both stability and robustness in the presence of data contamination.

For agents

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

get_harvested_code_for_paper("2411.09558")
get_code_for_paper("2411.09558")
have("2411.09558")

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

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

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

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

Connect an agent — have() is free.