Skip to main content
QUICK REVIEW

[Paper Review] Dual-Student Knowledge Distillation Networks for Unsupervised Anomaly Detection

Liyi Yao, Shaobing Gao|arXiv (Cornell University)|Feb 1, 2024
Anomaly Detection Techniques and ApplicationsComputer Science3 citations
TL;DR

This paper proposes Dual-Student Knowledge Distillation (DSKD), a novel unsupervised anomaly detection framework that uses two inverted-structure student networks and a pre-trained teacher to enhance feature representation consistency for normal data while amplifying discrepancy for anomalies. The method achieves state-of-the-art performance on benchmark datasets with low FLOPs (6.17G) and small model size, outperforming vanilla student-teacher networks.

ABSTRACT

Due to the data imbalance and the diversity of defects, student-teacher networks (S-T) are favored in unsupervised anomaly detection, which explores the discrepancy in feature representation derived from the knowledge distillation process to recognize anomalies. However, vanilla S-T network is not stable. Employing identical structures to construct the S-T network may weaken the representative discrepancy on anomalies. But using different structures can increase the likelihood of divergent performance on normal data. To address this problem, we propose a novel dual-student knowledge distillation (DSKD) architecture. Different from other S-T networks, we use two student networks a single pre-trained teacher network, where the students have the same scale but inverted structures. This framework can enhance the distillation effect to improve the consistency in recognition of normal data, and simultaneously introduce diversity for anomaly representation. To explore high-dimensional semantic information to capture anomaly clues, we employ two strategies. First, a pyramid matching mode is used to perform knowledge distillation on multi-scale feature maps in the intermediate layers of networks. Second, an interaction is facilitated between the two student networks through a deep feature embedding module, which is inspired by real-world group discussions. In terms of classification, we obtain pixel-wise anomaly segmentation maps by measuring the discrepancy between the output feature maps of the teacher and student networks, from which an anomaly score is computed for sample-wise determination. We evaluate DSKD on three benchmark datasets and probe the effects of internal modules through ablation experiments. The results demonstrate that DSKD can achieve exceptional performance on small models like ResNet18 and effectively improve vanilla S-T networks.

Motivation & Objective

  • Address instability in vanilla student-teacher networks for unsupervised anomaly detection due to structural similarity or performance divergence.
  • Overcome limited representation discrepancy on anomalies when using identical student-teacher architectures.
  • Improve detection robustness and performance by introducing structural diversity and semantic interaction between two students.
  • Enhance feature representation of anomalies through multi-scale knowledge distillation and deep feature embedding between students.
  • Achieve high accuracy with low computational complexity and small model size for industrial deployment.

Proposed method

  • Propose a dual-student architecture where two students have identical scale but inverted residual block structures to increase representation diversity while maintaining consistency on normal data.
  • Use a pre-trained teacher network with frozen parameters to provide distilled knowledge for both students, enabling knowledge transfer without labels.
  • Implement pyramid matching for multi-scale feature map distillation across intermediate layers to capture high-dimensional semantic clues.
  • Introduce a deep feature embedding (DFE) module that enables interaction between the two student networks, mimicking group discussion to refine feature understanding.
  • Compute anomaly scores by measuring the L2 distance between teacher and student feature maps at multiple scales, generating pixel-wise anomaly maps.
  • Fuse multi-scale anomaly maps using element-wise averaging to produce final segmentation maps for image- and pixel-level anomaly detection.

Experimental results

Research questions

  • RQ1Can a dual-student architecture with inverted structures improve stability and performance in unsupervised anomaly detection compared to standard student-teacher networks?
  • RQ2How does deep feature embedding between two students enhance anomaly representation and detection capability?
  • RQ3To what extent does multi-scale feature distillation improve detection of diverse and subtle anomalies?
  • RQ4What is the contribution of each internal module (DFE, multi-scale fusion) to overall performance?
  • RQ5Can the proposed DSKD framework achieve state-of-the-art results with low FLOPs and small model size?

Key findings

  • DSKD achieves 98.5% image-level AUROC, 97.6% pixel-level AUROC, and 93.5% PRO on MVTec AD, outperforming all compared baselines.
  • The dual-student architecture with inverted structures yields the best performance (98.5% AUROC) compared to T-E, T-D, and E-D variants.
  • Removing the deep feature embedding (DFE) module reduces image-level AUROC from 98.5% to 75.6%, proving its critical role in enhancing representation learning.
  • Multi-scale anomaly map fusion (M1-3) achieves the highest scores (98.5% AUROC, 97.5% AUROC, 93.5% PRO), confirming the benefit of fusing features across scales.
  • DSKD has only 6.17G FLOPs, the lowest among all methods, demonstrating high efficiency and suitability for small models like ResNet18.
  • Ablation studies confirm that both DFE and multi-scale fusion are essential for performance, with DFE contributing +22.6% to image-level AUROC and +17.0% to PRO.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.