CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly Detection
Existing unsupervised distillation-based methods rely on the differences between encoded and decoded features to locate abnormal regions in test images. However, the decoder trained only on normal samples still reconstructs abnormal patch features well, degrading performance. This issue is particularly pronounced in unsupervised multi-class anomaly detection tasks. We attribute this behavior to ‘over-generalization’ (OG) of decoder: the significantly increasing diversity of patch patterns in multi-class training enhances the model generalization on normal patches, but also inadvertently broadens its generalization to abnormal patches. To mitigate ‘OG’, we propose a novel approach that leverages class-agnostic learnable prompts to capture common textual normality across various visual patterns, and then apply them to guide the decoded features towards a ‘normal’ textual representation, suppressing ‘over-generalization’ of the decoder on abnormal patterns. To further improve performance, we also introduce a gated mixture-of-experts module to specialize in handling diverse patch patterns and reduce mutual interference between them in multi-class training. Our method achieves competitive performance on the MVTec AD and VisA datasets, demonstrating its effectiveness.
Authors
- Jimin Xiao (ORCID: https://orcid.org/0000-0002-9416-2486)
- Eng Gee Lim (ORCID: https://orcid.org/0000-0003-0199-7386)
- Huihui Bai (ORCID: https://orcid.org/0000-0001-7999-3313)
- Xiaolei Wang (ORCID: https://orcid.org/0000-0002-5342-4275)
- Xiaoyang Wang (ORCID: https://orcid.org/0000-0003-4428-9160)
Institutions
- Beijing Jiaotong University (CN)
- Xi’an Jiaotong-Liverpool University (CN)
Publication Details
- Journal
- Proceedings of the AAAI Conference on Artificial Intelligence
- Published
- 2025-04-11
- DOI
- https://doi.org/10.1609/aaai.v39i8.32856
- Citations
- 10
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 8.87
Funders
- National Natural Science Foundation of China
- Government of Jiangsu Province
- Xi’an Jiaotong-Liverpool University