RD4AD
A teacher encoder and student decoder trained by reverse distillation for unsupervised anomaly detection.
Segmentation · 351 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Segmentation
- Parameters
- 161.1M
- Operations
- 351
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 940 (as of 28 October 2026)
- Authors
- Hanqiu Deng, Xingyu Li
- Source
- GitHub: hq-deng/RD4AD
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19606
- Graph hash
- 6412e91eb6f992743f439d095d9cc92d68aa78af900dd98a930dbe1ca9eb9e05
- Skeleton hash
- 70c493ddb4d2aede34401efe35f0bf72cbf812565e7e6461966aa6c734dacef1
- Architecture hash
- 3e97b897d6f4ec80a4265e1633bca9b25478f331d712732a8f05ed9b136ba97a
- Diagram SHA-256
- 39fc9b4aa36ac0d428e0986e2822432bd282c8c384ce8acce1f2c48c7ba78c5b
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
RD4AD is a teacher-student model for unsupervised anomaly detection, an approach in which the discrepancy between the two networks' representations of an anomaly is the evidence for detecting it. The paper argues that earlier studies built the teacher and the student with similar or identical architectures, which hinders the diversity of anomalous representations.
The proposed model pairs a teacher encoder with a student decoder, an arrangement the authors call reverse distillation. The student does not receive the raw image: it takes the teacher's one-class embedding as input and aims to restore the teacher's multiscale representations. Distillation therefore starts from abstract, high-level representations and proceeds to low-level features. A trainable one-class bottleneck embedding (OCBE) module yields a compact embedding that, according to the paper, preserves essential information on normal patterns and abandons anomaly perturbations.
The official code asks users to download the MVTec AD dataset for training and evaluation.
Key idea. The paper proposes reverse distillation, in which a student decoder restores a teacher encoder's multiscale representations from a one-class embedding instead of from the raw image.
- rd4ad
- reverse distillation
- reverse distillation from one-class embedding
- anomaly detection
- unsupervised anomaly detection
- knowledge distillation
- one-class bottleneck embedding
- ocbe
- teacher-student model
- mvtec
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{deng2022anomalydetectionreversedistillation,
title={Anomaly Detection via Reverse Distillation from One-Class Embedding},
author={Hanqiu Deng and Xingyu Li},
year={2022},
eprint={2201.10703},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2201.10703},
}