Papers › Scale-Aware Contrastive Reverse Distillation for Unsupervised Medical Anomaly Detection

Scale-Aware Contrastive Reverse Distillation for Unsupervised Medical Anomaly Detection

18 Mar 2025arXiv:2503.13828archive 2025-07-28

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

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-of-normal 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 state-of-the-art performance, validating the efficacy of the proposed method. Code is available at https://github.com/MedAITech/SCRD4AD.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.13828")

Code

Syntology Ran 8 of 15 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 6 ran; 4 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

medaitech/scrd4ad officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 8 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · our draft was wrong
3ran
7unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from medaitech/scrd4ad. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BasicBlock medaitech/scrd4ad/models/rd4ad_mlp.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · d42ae3fd7fcd5024 · report
Bottleneck medaitech/scrd4ad/models/rd4ad_mlp.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 6d8a817f41286a76 · report
ResNet medaitech/scrd4ad/models/rd4ad_mlp.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 6aadf008ed78087b · report
conv1x1 medaitech/scrd4ad/models/de_resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 2a80220dabcb742a · report
conv3x3 medaitech/scrd4ad/models/de_resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 600ff2c45e0de056 · report
deconv2x2 medaitech/scrd4ad/models/de_resnet.py official repository ran · our draft was wrong no licence file found · pointer only · fed42b3e4edc5ea3 · report
BN_layer medaitech/scrd4ad/models/rd4ad_mlp.py official repository unverified no licence file found · pointer only · 1b028c8edbfb44fe · report
RdadAttenMax medaitech/scrd4ad/models/rd4ad_mlp.py official repository unverified no licence file found · pointer only · e1a6a678c9e39ac8 · report
_resnet medaitech/scrd4ad/models/rd4ad_mlp.py official repository unverified no licence file found · pointer only · c48d7d1257a35ba2 · report
de_wide_resnet50_2 medaitech/scrd4ad/models/rd4ad_mlp.py official repository unverified no licence file found · pointer only · ab1ead1a4f71a4b1 · report
wide_resnet50_2 medaitech/scrd4ad/models/rd4ad_mlp.py official repository unverified no licence file found · pointer only · 3b380873fb807e88 · report
count_parameters identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · f6b944f50d3f15ae · report
get_logger identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · a1db6c55cfde6e19 · report
conv1x1 identical code first harvested elsewhere unverified licence of this copy not recorded · 012c39548e5a5e70 · report
conv3x3 identical code first harvested elsewhere unverified licence of this copy not recorded · 9ec14cd0fc7f9260 · report

Tasks

Anomaly DetectionKnowledge DistillationSelf-Supervised LearningUnsupervised Anomaly Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections