SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.13828 · ICLR · 2025

Scale-Aware Contrastive Reverse Distillation for Unsupervised Medical Anomaly Detection

Xiao Zhu, Chunlei Li, Yilei Shi, Jingliang Hu, Lichao Mou

arXiv · PDF · Open in the Atlas

Code that ran

8 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 4 failures of our instrument; 7 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/2503.13828.json · badge: /api/ran/2503.13828.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
medaitech/scrd4ad canonical (classifier label)
classifier basis: classifier_2025
6 ran · 5 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 2 no recorded run
FunctionStatusWhere it lives
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("d42ae3fd7fcd5024")
How it ran

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

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("6d8a817f41286a76")
How it ran

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

ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("6aadf008ed78087b")
How it ran

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

conv1x1 Ran
ran; our contract draft was wrong, not the code
medaitech/scrd4ad/models/de_resnet.py
pointer only (licence: NONE) · get_code("2a80220dabcb742a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, medaitech/scrd4ad 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
medaitech/scrd4ad/models/de_resnet.py
pointer only (licence: NONE) · get_code("600ff2c45e0de056")
How it ran

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

count_parameters Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from crisbodnar/ndp
pointer only · get_code("f6b944f50d3f15ae")
How it ran

The 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.

deconv2x2 Ran
ran; our contract draft was wrong, not the code
medaitech/scrd4ad/models/de_resnet.py
pointer only (licence: NONE) · get_code("fed42b3e4edc5ea3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, medaitech/scrd4ad 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_logger Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from guojiajeremy/ReContrast
pointer only; the stored copy get_code serves, from guojiajeremy/ReContrast, is pointer only (licence: NONE) · get_code("a1db6c55cfde6e19")
How it ran

The 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.

BN_layer Not yet run
unverified (harvested, no recorded run)
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("1b028c8edbfb44fe")
How it ran

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

RdadAttenMax Not yet run
unverified (harvested, no recorded run)
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("e1a6a678c9e39ac8")
How it ran

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

_resnet Not yet run
unverified (harvested, no recorded run)
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("c48d7d1257a35ba2")
How it ran

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

conv1x1 Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from inspire-group/variation-regularization
pointer only; the stored copy get_code serves, from inspire-group/variation-regularization, is pointer only (licence: NONE) · get_code("012c39548e5a5e70")
How it ran

The 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. No invocation recorded.

conv3x3 Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from inspire-group/variation-regularization
pointer only; the stored copy get_code serves, from inspire-group/variation-regularization, is pointer only (licence: NONE) · get_code("9ec14cd0fc7f9260")
How it ran

The 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. No invocation recorded.

de_wide_resnet50_2 Not yet run
unverified (harvested, no recorded run)
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("ab1ead1a4f71a4b1")
How it ran

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

wide_resnet50_2 Not yet run
unverified (harvested, no recorded run)
medaitech/scrd4ad/models/rd4ad_mlp.py
pointer only (licence: NONE) · get_code("3b380873fb807e88")
How it ran

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

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 4 the same month, 3 later) and 6 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
count_parameters 180 other papers
159 dated earlier, 2 the same month, 17 later, 2 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
conv1x1
brick of this paper's assembly: helper
112 other papers
103 dated earlier, 1 the same month, 8 later · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 109 more not named here
conv3x3
brick of this paper's assembly: helper
111 other papers
103 dated earlier, 1 the same month, 7 later · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 108 more not named here
BasicBlock
brick of this paper's assembly: helper
9 other papers
9 dated earlier · 4 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
2108.05722 (2021-08)
MT-ORL: Multi-Task Occlusion Relationship Learning
2303.15555 (2023-03)
Object Discovery from Motion-Guided Tokens
and 6 more not named here
Bottleneck
brick of this paper's assembly: helper
8 other papers
8 dated earlier · 4 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
2108.05722 (2021-08)
MT-ORL: Multi-Task Occlusion Relationship Learning
2303.15555 (2023-03)
Object Discovery from Motion-Guided Tokens
and 5 more not named here
deconv2x2 3 other papers
2 dated earlier, 1 the same month
2201.10703 (2022-01)
Anomaly Detection via Reverse Distillation from One-Class Embedding
2405.14325 (2024-05)
Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detection
2503.02424 (2025-03)
Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detection
get_logger 2 other papers
2 dated earlier
2306.02602 (2023-06)
ReContrast: Domain-Specific Anomaly Detection via Contrastive Reconstruction
2405.14325 (2024-05)
Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised 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.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Unsupervised anomaly detection using deep learning has garnered significant research attention due to its broad applicability, particularly in medical imaging where labeled anomalous data are scarce. While earlier approaches leverage generative models like autoencoders and generative adversarial networks (GANs), they often fall short due to overgeneralization. Recent methods explore various strategies, including memory banks, normalizing flows, self-supervised learning, and knowledge distillation, to enhance discrimination. Among these, knowledge distillation, particularly reverse distillation, has shown promise. Following this paradigm, we propose a novel scale-aware contrastive reverse distillation model that addresses two key limitations of existing reverse distillation methods: insufficient feature discriminability and inability to handle anomaly scale variations. Specifically, we introduce a contrastive student-teacher learning approach to derive more discriminative representations by generating and exploring out-ofnormal distributions. Further, we design a scale adaptation mechanism to softly weight contrastive distillation losses at different scales to account for the scale variation issue. Extensive experiments on benchmark datasets demonstrate stateof-the-art performance, validating the efficacy of the proposed method. Code is available at url https://github.com/MedAITech/SCRD4AD.

For agents

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

get_harvested_code_for_paper("2503.13828")
get_code_for_paper("2503.13828")
have("2503.13828")

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

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

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

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

Connect an agent — have() is free.