Introduction
Unsupervised Anomaly Detection (UAD) has traditionally relied on training separate models for each object category. While effective, this approach is impractical for large-scale industrial deployments. Recent research has shifted toward Multi-Class UAD, where a single unified model is trained to detect anomalies across dozens of different categories simultaneously.
However, multi-class models face two primary challenges:
- Over-generalization: Models with high capacity often learn to reconstruct anomalies as if they were normal patterns from other classes, leading to missed detections.
- Insufficient Normality Reconstruction: Conversely, models with limited capacity struggle to reconstruct complex normal textures (e.g., wood grain), leading to high reconstruction errors and false positives.
To address these issues, we introduce MDD-Net (Memory-augmented Dual-Decoder Networks), a framework designed to balance reconstruction fidelity with anomaly discrimination.
Methodology: MDD-Net Architecture
MDD-Net utilizes a novel architecture consisting of two primary components: Dual-Decoder Reverse Distillation (DRD-Net) and a Class-aware Memory Module (CMM).
Dual-Decoder Reverse Distillation (DRD-Net)
Unlike standard autoencoders, DRD-Net employs a frozen Teacher encoder and two distinct Student decoders:
- Restoration Decoder ($f_R$): Trained as a denoiser to "restore" anomalous features back to their expected normal state.
- Identity Decoder ($f_I$): Trained to reconstruct input features exactly, preserving any anomalous characteristics.
By calculating the discrepancy between these two decoders rather than the error relative to the input, the model can effectively filter out reconstruction noise in complex normal regions while highlighting true anomalies where the two decoders diverge.
Class-aware Memory Module (CMM)
The CMM stores prototypes of normal features. Unlike previous memory modules, it is class-aware, using category labels during training to ensure that class-specific features (like the shape of a specific component) are distinguished from shared features (like surface textures). This prevents "feature contamination," where anomalous features might be incorrectly stored in the normal memory bank.
Experimental Evaluation
MDD-Net was evaluated across four diverse benchmarks:
- MVTec AD & VisA: Standard industrial inspection datasets.
- Real-IAD: A large-scale dataset with 30 objects and over 100,000 images.
- Uni-Medical: A heterogeneous medical dataset including MRI, CT, and OCT scans.
Key Results and Discussion
MDD-Net achieved state-of-the-art (SoTA) performance across all benchmarks. Notably, it reached 98.6% mAUROC on MVTec AD and demonstrated a significant lead in pixel-level precision (66.4% mAP). In the medical domain, the model showed a dramatic +12.7% improvement in pixel-level mAP over previous baselines, highlighting its robustness in complex, non-industrial environments.
As shown in the figure above, the dual-decoder approach produces significantly "cleaner" anomaly maps. By focusing on decoder discrepancy, the model avoids the false positives common in high-texture areas where traditional reconstruction-based methods often fail.
Conclusion
MDD-Net effectively solves the "reconstruction dilemma" in multi-class UAD by shifting the focus from reconstruction error to decoder discrepancy. While the model currently relies on category labels during training, future work will explore clustering mechanisms to achieve a fully label-free unsupervised pipeline. Additionally, optimizing the architecture for real-time deployment remains a key priority for practical industrial application.
Summary updated