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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Haoyang, Bai, Yuhu, Zhang, Jiangning, He, Qingdong, Chen, Hongxu, Gan, Zhenye, Wang, Chengjie, Li, Xiangtai, Tian, Guanzhong, Xie, Lei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917949084794880
author He, Haoyang
Bai, Yuhu
Zhang, Jiangning
He, Qingdong
Chen, Hongxu
Gan, Zhenye
Wang, Chengjie
Li, Xiangtai
Tian, Guanzhong
Xie, Lei
author_facet He, Haoyang
Bai, Yuhu
Zhang, Jiangning
He, Qingdong
Chen, Hongxu
Gan, Zhenye
Wang, Chengjie
Li, Xiangtai
Tian, Guanzhong
Xie, Lei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_06564
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detection
He, Haoyang
Bai, Yuhu
Zhang, Jiangning
He, Qingdong
Chen, Hongxu
Gan, Zhenye
Wang, Chengjie
Li, Xiangtai
Tian, Guanzhong
Xie, Lei
Computer Vision and Pattern Recognition
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.
title MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2404.06564