Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detection

About

Recent advancements in anomaly detection have seen the efficacy of CNN- and transformer-based approaches. However, CNNs struggle with long-range dependencies, while transformers are burdened by quadratic computational complexity. Mamba-based models, with their superior long-range modeling and linear efficiency, have garnered substantial attention. This study pioneers the application of Mamba to multi-class unsupervised anomaly detection, presenting MambaAD, which consists of a pre-trained encoder and a Mamba decoder featuring (Locality-Enhanced State Space) LSS modules at multi-scales. The proposed LSS module, integrating parallel cascaded (Hybrid State Space) HSS blocks and multi-kernel convolutions operations, effectively captures both long-range and local information. The HSS block, utilizing (Hybrid Scanning) HS encoders, encodes feature maps into five scanning methods and eight directions, thereby strengthening global connections through the (State Space Model) SSM. The use of Hilbert scanning and eight directions significantly improves feature sequence modeling. Comprehensive experiments on six diverse anomaly detection datasets and seven metrics demonstrate state-of-the-art performance, substantiating the method's effectiveness. The code and models are available at https://lewandofskee.github.io/projects/MambaAD.

Haoyang He, Yuhu Bai, Jiangning Zhang, Qingdong He, Hongxu Chen, Zhenye Gan, Chengjie Wang, Xiangtai Li, Guanzhong Tian, Lei Xie• 2024

Related benchmarks

TaskDatasetResultRank
Anomaly LocalizationMVTec AD
Pixel AUROC97.7
513
Anomaly DetectionMVTec-AD (test)
I-AUROC100
327
Anomaly DetectionVisA
AUROC94.3
261
Anomaly LocalizationMVTec-AD (test)
Pixel AUROC97.7
211
Anomaly SegmentationMVTec AD--
105
Anomaly DetectionVisA (test)
I-AUROC94.3
91
Image-level Anomaly DetectionMVTec AD
AUROC98.6
82
Image-level Anomaly DetectionVisA
AUC94.3
80
Anomaly LocalizationMPDD (test)
Pixel AUROC0.977
60
Anomaly DetectionMPDD (test)--
54
Showing 10 of 49 rows

Other info

Code

Follow for update