[Paper Review] Anomaly Detection via Reverse Distillation from One-Class Embedding
The paper introduces a reverse distillation framework with a teacher encoder and a trainable one-class bottleneck embedding plus a student decoder to detect and localize anomalies, achieving state-of-the-art results on MVTec and one-class novelty benchmarks.
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.
Motivation & Objective
- Address limitations of conventional knowledge distillation in anomaly detection caused by similar teacher/student architectures and identical data flow.
- Propose a heterogeneous encoder-decoder T-S model to diversify anomalous representations.
- Introduce a trainable one-class bottleneck embedding (OCBE) to compress normal-pattern information while discarding anomalies.
- Fuse multi-scale features and align representations to improve anomaly restoration and discrimination.
- Demonstrate state-of-the-art performance on unsupervised anomaly detection, localization, and one-class novelty detection benchmarks.
Proposed method
- Adopt a fixed pre-trained teacher encoder and a trainable student decoder arranged in a reverse distillation setup (high-level to low-level knowledge transfer).
- Use a multi-scale feature fusion (MFF) block to combine shallow and deep teacher features before embedding.
- Introduce a one-class embedding (OCE) block to produce a compact bottleneck embedding that retains essential normal-pattern information.
- Train the OCBE module and the student decoder to minimize a cosine-similarity based distillation loss across multiple feature scales (L_KD).
- Compute pixel-level anomaly maps M^k from cosine similarity between teacher and student features and aggregate them into a final anomaly map S_AL; derive a sample-level score S_AD from S_AL.
- During inference, rely on low similarity between teacher and student representations to indicate anomalies and localize via accumulated multi-scale maps.
Experimental results
Research questions
- RQ1Can a reverse distillation paradigm with a teacher encoder and a student decoder improve anomaly discrimination compared to conventional KD in unsupervised AD?
- RQ2Does introducing a trainable one-class bottleneck embedding (OCBE) and multi-scale feature fusion enhance normal-pattern restoration and anomaly detectability?
- RQ3How does the proposed method perform on standard anomaly detection, localization, and one-class novelty benchmarks relative to prior art?
- RQ4What is the impact of backbone choice and multi-scale feature selection on detection/localization performance?
Key findings
- Achieves state-of-the-art or competitive results on MVTec anomaly detection and localization, outperforming several baselines on average AUROC and PRO metrics.
- Across textures and objects, attains top average AUROC (textures 99.5%, objects 98.0%) on MVTec for AD.
- On anomaly localization, achieves average AUROC 97.8% and PRO 93.9%, surpassing previous methods.
- Demonstrates strong one-class novelty detection performance on MNIST, FashionMNIST, and CIFAR-10 with AUROC improvements over several baselines.
- Ablation studies show that incorporating OCBE and Multi-Scale Feature Fusion (MFF) improves AUROC_AD from 96.0 to 98.5 and AUROC_AL from 96.9 to 97.8, while RPO also improves.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.