CNC: Cross-Modal Normality Constraint for Unsupervised Multi-Class Anomaly Detection
Abstract
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.
Cite
Text
Wang et al. "CNC: Cross-Modal Normality Constraint for Unsupervised Multi-Class Anomaly Detection." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I8.32856Markdown
[Wang et al. "CNC: Cross-Modal Normality Constraint for Unsupervised Multi-Class Anomaly Detection." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/wang2025aaai-cnc/) doi:10.1609/AAAI.V39I8.32856BibTeX
@inproceedings{wang2025aaai-cnc,
title = {{CNC: Cross-Modal Normality Constraint for Unsupervised Multi-Class Anomaly Detection}},
author = {Wang, Xiaolei and Wang, Xiaoyang and Bai, Huihui and Lim, Eng Gee and Xiao, Jimin},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2025},
pages = {7943-7951},
doi = {10.1609/AAAI.V39I8.32856},
url = {https://mlanthology.org/aaai/2025/wang2025aaai-cnc/}
}