TL;DR
This paper introduces ADPS, a novel approach to image anomaly detection that leverages an "asymmetric distillation" strategy. By feeding different views of the same image to teacher and student networks, ADPS encourages the student to learn more discriminative features for anomalies, leading to significant improvements in both anomaly detection and segmentation accuracy.
What Problem Does This Paper Address?
Anomaly detection (AD) aims to identify and locate unusual patterns in images, with applications ranging from industrial defect detection to medical imaging. A key challenge is that anomalies are inherently rare and diverse, making it difficult to train models on them directly. Most AD models are trained exclusively on normal data. Knowledge Distillation-based Anomaly Detection (KDAD) methods have emerged as a promising direction, using a teacher-student network setup. However, existing KDAD methods often suffer from two main issues: 1) the student network can too easily mimic the teacher's representations, failing to learn distinct anomaly features, and 2) the teacher's knowledge is often treated as a static "reference standard" rather than being fully utilized. This limits the ability to accurately segment fine anomalous regions with clear boundaries.
Methods
ADPS introduces an "asymmetric distillation paradigm" to overcome these limitations. Instead of feeding identical inputs to both teacher and student networks, ADPS provides the teacher network with the full image and the student network with non-overlapping patches of the same image. This asymmetry forces the student network to develop unique expressive abilities and focus on local details, while the teacher retains global context.
To effectively transfer this learned knowledge, ADPS incorporates two novel modules:
- Weight Mask Block (WMB): This module generates a coarse anomaly localization mask by comparing features from the teacher and student networks. This mask is then used to re-weight the teacher's features, injecting distilled knowledge and improving its ability to discriminate between normal and abnormal regions.
- Post-Segmentation Module (PSM): Built upon a UNet-like architecture, PSM takes the enhanced teacher features (from WMB) as input. It leverages this combined prior and distilled knowledge to learn normal/abnormal distributions and produce high-confidence segmentation masks with precise boundaries.
The overall training objective includes a distillation loss and a focal loss for segmentation.
Datasets
The paper evaluates ADPS on three benchmark datasets:
- MVTec AD: A widely used dataset for industrial anomaly detection, featuring 15 categories of high-resolution images (textures and objects) with subtle anomalies.
- KolektorSDD: A dataset for surface defect detection.
- KolektorSDD2: A comprehensive dataset for surface defect detection, containing a large number of images with various defect types.
Key Insights and Ideas
- Asymmetry is Key: Feeding different views (global vs. local patches) to teacher and student networks is crucial for learning discriminative anomaly features, preventing the student from simply mimicking the teacher.
- Teacher's Knowledge is More Than a Reference: The teacher network's features can be actively enhanced with distilled knowledge (via WMB) to improve their discriminative power for anomalies.
- Local Focus for Fine Details: The student network's focus on image patches allows it to better capture and segment small anomalies with fine structures and clear boundaries.
- Post-Segmentation Refinement: A dedicated segmentation module (PSM) is essential for leveraging the enriched features to achieve high-accuracy segmentation, especially in challenging scenarios with subtle anomalies.
Key Results
ADPS demonstrates state-of-the-art performance on the MVTec AD and KolektorSDD2 datasets.
- Anomaly Segmentation: ADPS achieved significant improvements, notably a 9% increase in Average Precision (AP) on MVTec AD and a remarkable 20% increase on KolektorSDD2 compared to previous methods.
- Anomaly Classification: ADPS achieved 100% classification accuracy on several categories of the MVTec AD dataset.
- Qualitative Results: Visualizations show ADPS producing more accurate anomaly heatmaps and segmentation masks with clearer boundaries, especially in challenging cases where anomalies are similar to normal regions.
Limitations and Future Work
The authors acknowledge that the main limitation of ADPS is its dependence on simulated anomalous samples for training. They suggest that future work could explore methods to address this by developing better solutions for handling real-world anomalous data without explicit simulation. They also note that while their asymmetric distillation strategy is effective, further research could explore optimal ways to combine teacher and student strategies for even greater anomaly detection ability.
Summary updated