Papers › Anomaly Detection via Reverse Distillation from One-Class Embedding

Anomaly Detection via Reverse Distillation from One-Class Embedding

26 Jan 2022CVPR 2022 1arXiv:2201.10703archive 2025-07-28

Hanqiu Deng, Xingyu Li

Knowledge distillation (KD) achieves promising results on the challenging problem of unsupervised anomaly detection (AD).The representation discrepancy of anomalies in the teacher-student (T-S) model provides essential evidence for AD. However, using similar or identical architectures to build the teacher and student models in previous studies hinders the diversity of anomalous representations. To tackle this problem, we propose a novel T-S model consisting of a teacher encoder and a student decoder and introduce a simple yet effective "reverse distillation" paradigm accordingly. Instead of receiving raw images directly, the student network takes teacher model's one-class embedding as input and targets to restore the teacher's multiscale representations. Inherently, knowledge distillation in this study starts from abstract, high-level presentations to low-level features. In addition, we introduce a trainable one-class bottleneck embedding (OCBE) module in our T-S model. The obtained compact embedding effectively preserves essential information on normal patterns, but abandons anomaly perturbations. Extensive experimentation on AD and one-class novelty detection benchmarks shows that our method surpasses SOTA performance, demonstrating our proposed approach's effectiveness and generalizability.

PaperPDFConference PDFCodeCode 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="2201.10703")

Code

Syntology Ran 14 of 18 code samples harvested from 4 repositories linked to this paper; 4 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 2 ran; community (archive-listed): 13 samples from 3 repositories, 10 ran; 2 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.

hq-deng/RD4AD officialpytorch report
SimonThomine/DistillationAD mentioned on GitHubpytorch report
SimonThomine/RememberingNormality mentioned on GitHubpytorch 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

18 samples harvested; 14 ran; 0 honoured the contract we drafted; 4 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.

4ran · our draft was wrong
10ran
4unverified

Licence: 15 of the 18 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 4 repositories linked to this paper, official or community; each sample names its own and says which. 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 hq-deng/RD4AD/de_resnet.py official repository ran fingerprinted MIT (permissive) · ce529f9eb01d326b · report
Bottleneck hq-deng/RD4AD/de_resnet.py official repository ran MIT (permissive) · 2d33e6c48f4a2845 · report
ResNet hq-deng/RD4AD/de_resnet.py official repository unverified MIT (permissive) · 6f9abfc5f148cc04 · report
ConvBlock Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 6e7469746fc85cb1 · report
ConvTransposeBlock Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 5063a4c43a1a7153 · report
Decoder Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) ran no licence file found · pointer only · 38c83c026aa86db5 · report
IndentityBlock Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 214139d28682c605 · report
OCBE Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) ran no licence file found · pointer only · 9d92e02d06b0fcdc · report
deBasicBlock SimonThomine/DistillationAD/models/ReverseDistillation/de_resnet.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 3f0806f63aee3bdd · report
deResNet SimonThomine/DistillationAD/models/ReverseDistillation/de_resnet.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 274a066ad1685214 · report
deconv2x2 SimonThomine/DistillationAD/models/ReverseDistillation/de_resnet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 8d035278d5e4a82a · report
init_weights SimonThomine/DistillationAD/models/ReverseDistillation/de_resnet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 5c6ddf757751d73a · report
memoryModule SimonThomine/RememberingNormality/models/RD/de_resnetRM.py community (archive-listed) ran fingerprinted no licence file found · pointer only · ddda7402c136e2b4 · report
OcbeAndDecoder Merenguelkl/Reverse_Disstilation/model.py community (archive-listed) unverified no licence file found · pointer only · b647c54316ac9330 · report
ResNet SimonThomine/RememberingNormality/models/RD/de_resnetRM.py community (archive-listed) unverified no licence file found · pointer only · c27cbb6fba18f4ba · report
deBottleneck SimonThomine/DistillationAD/models/ReverseDistillation/de_resnet.py community (archive-listed) unverified no licence file found · pointer only · 1e173e8f7793f155 · report
conv1x1 identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 2a80220dabcb742a · report
conv3x3 identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 600ff2c45e0de056 · report

Tasks

Anomaly ClassificationAnomaly DetectionAnomaly SegmentationDecoderDiversityKnowledge DistillationNovelty DetectionUnsupervised Anomaly Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Anomaly Classification GoodsAD RD4AD AUPR 68.2 #8 of 11 Archive leaderboard report
Anomaly Classification GoodsAD RD4AD AUROC 66.5 #8 of 11 Archive leaderboard report
Anomaly Detection AeBAD-S ReverseDistillation Detection AUROC 81.0 #3 of 8 Archive leaderboard report
Anomaly Detection AeBAD-S ReverseDistillation Segmentation AUPRO 85.6 #3 of 8 Archive leaderboard report
Anomaly Detection AeBAD-V ReverseDistillation Detection AUROC 71.0 #2 of 7 Archive leaderboard report
Anomaly Detection Fashion-MNIST Reverse Distillation ROC AUC 95.0 #3 of 12 Archive leaderboard report
Anomaly Detection MVTec AD Reverse Distillation Detection AUROC 98.5 #57 of 148 Archive leaderboard report
Anomaly Detection MVTec AD Reverse Distillation Segmentation AUPRO 93.9 #57 of 148 Archive leaderboard report
Anomaly Detection MVTec AD Reverse Distillation Segmentation AUROC 97.8 #57 of 148 Archive leaderboard report
Anomaly Detection MVTec LOCO AD RD4AD Avg. Detection AUROC 78.7 #29 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD RD4AD Detection AUROC (only logical) 69.4 #29 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD RD4AD Detection AUROC (only structural) 88.0 #29 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD RD4AD Segmentation AU-sPRO (until FPR 5%) 63.7 #29 of 40 Archive leaderboard report
Anomaly Detection One-class CIFAR-10 Reverse Distillation AUROC 86.5 #24 of 36 Archive leaderboard report
Anomaly Detection VisA Reverse Distillation Segmentation AUPRO (until 30% FPR) 70.9 #45 of 50 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Knowledge Distillation

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