MambaADv2: Evolving Duality-enhanced State Space Model for Unsupervised Anomaly Detection

Xiaobin Hu, Haoyang He, Bo Yin, Yu He, Lei Xie, Jiangning Zhang, Yu-Gang Jiang, Shuicheng YanarXiv 2026

Here is a concise, engaging summary of the paper MambaADv2: Evolving Duality-enhanced State Space Model for Unsupervised Anomaly Detection.

TL;DR

MambaADv2 introduces a state-of-the-art framework for multi-class unsupervised anomaly detection by leveraging the linear computational complexity of Mamba-3 architectures. By integrating spatial-frequency joint enhancements and a semantics-adaptive scanning strategy, it overcomes the traditional trade-offs between CNNs and Transformers, delivering superior anomaly localization accuracy with real-time throughput.

What Problem Does This Paper Address?

Unsupervised Anomaly Detection (AD) is vital for smart manufacturing and industrial inspection, where finding defects without labeled anomalous training data is the norm. However, traditional approaches suffer from a structural dilemma:

  1. CNN-based models are computationally efficient but struggle to capture long-range spatial dependencies.
  2. Transformer-based models excel at global contextual modeling but suffer from quadratic computational complexity ($\mathcal{O}(N^2)$), forcing them to operate only on low-resolution feature maps, which compromises fine-grained defect localization.

While State Space Models (SSMs) like Mamba offer a linear-complexity alternative ($\mathcal{O}(N)$), early adaptations (like MambaADv1) had limited representational capacity, lacked spatial position awareness, and completely ignored frequency-domain anomaly cues (e.g., how a scratch alters high-frequency textures vs. how a deformation alters low-frequency structures).

Fig. 1. Compared with (a) local CNN-based RD4AD [6] and (b) global Transformer-based UniAD [10], and (c) the preliminary MambaAD [37], our proposed MambaADv2 maintains linear complexity while comprehensively integrating global, local, and frequency information. This expanded receptive field, along with multi-scale features, improves anomaly localization and multi-class detection performance.

Methods

MambaADv2 addresses these bottlenecks through an encoder-decoder framework featuring several novel components:

  • Mamba-3 Core Evolution with RoPE: The authors upgrade the sequence modeling core to a Mamba-3 selective SSM utilizing the State Space Duality (SSD) framework. Crucially, they inject Rotary Position Embedding (RoPE) into the data-dependent projections, preserving vital 2D spatial structures that are typically lost when flattening images into 1D sequences.
  • Spatial-Frequency Joint Enhancement: To catch anomalies that hide in the frequency domain, the Locality-Enhanced State Space (LSS) block is redesigned into a three-branch architecture:
  • Global Branch: Handles long-range dependencies via cascaded Hybrid State Space (HSS) blocks.
  • Local Branch: Replaces standard convolutions with Wavelet Convolutions (WTConv) to perform multi-resolution spatial-frequency analysis.
  • Frequency Branch (Inception Mixer): Splits features into low-, mid-, and high-frequency bands, applying scale-specific modulation to explicitly model spectral normality.
  • Semantics-Adaptive Progressive Scanning (SAPS): Instead of using a rigid, computationally heavy 8-direction scanning mechanism across all layers, SAPS progressively reduces the number of active Hilbert scanning directions from shallow to deep layers (e.g., from 8 down to 2).
Overview of the MambaADv2 architecture and its core components.

Datasets

The model was evaluated across six diverse benchmarks spanning industrial, medical, and natural image domains:

  • MVTec-AD: 15 industrial categories (textures and objects).
  • VisA: 12 complex object categories.
  • Real-IAD: The largest industrial AD benchmark to date, featuring 30 categories and 150K high-resolution images.
  • MVTec-3D: 10 object categories (evaluated on the RGB modality only).
  • COCO-AD: 60 semantically diverse categories derived from MS-COCO to test cross-category generalization.
  • Uni-Medical: A multi-modal medical dataset aggregating brain MRI, liver CT, and retinal fundus images.

Key Insights and Ideas

  • The Scanning-Semantic Paradox: The authors discovered that optimal scanning configurations are intrinsically tied to feature hierarchy. Shallow features are spatially rich and benefit from diverse scanning directions. Conversely, deep abstract features suffer from representational redundancy; excessive scanning actually dilutes effective semantic signals while wasting compute.
  • Dual-Path Synergy: By utilizing Mamba-3's dual computational paths (linear recurrence for local continuity and parallel matrix formulation for global context), the model simultaneously maps out what "normal" looks like globally while magnifying local anomalous deviations.
  • Position Matters in AD: An identical feature value might be perfectly normal in the center of an object but highly anomalous near its edge. Incorporating RoPE provides the exact positional context required to make this distinction.

Key Results

MambaADv2 achieved new state-of-the-art (SoTA) results across all six benchmarks under a unified multi-class setting:

  • MVTec-AD: Achieved a mean Anomaly Detection metric (mAD) of 87.2, outperforming the original MambaAD by 1.2 points.
  • Real-IAD: Reached 74.3 mAD, proving that the architecture scales effectively to massive, large-category datasets.
  • Efficiency & Scalability: Despite the added frequency branches, MambaADv2 maintains a high throughput of 75 FPS and a low memory footprint (2.4 GB). Thanks to Mamba's linear complexity, it successfully processes ultra-high-resolution images (1024×1024) at 7 FPS, where Transformers typically suffer from memory blowup.
  • Faster Convergence: MambaADv2 reaches 95% of its final performance ~100 epochs earlier than its predecessor, thanks to more stable gradient flows from the SSD framework.

Limitations and Future Work

While MambaADv2 excels at static image anomaly detection, the authors note that its sequence modeling capabilities are naturally suited for expansion into spatiotemporal tasks, such as video anomaly detection in dynamic manufacturing environments. Additionally, exploring how to adapt this framework into zero-shot or few-shot learning paradigms remains an open avenue for future research.

Summary updated

BibTeX
@misc{hu2026mambaadv,
  author = {Xiaobin Hu and Haoyang He and Bo Yin and Yu He and Lei Xie and Jiangning Zhang and Yu-Gang Jiang and Shuicheng Yan},
  title = {{MambaADv2: Evolving Duality-enhanced State Space Model for Unsupervised Anomaly Detection}},
  year = {2026},
  eprint = {2606.23126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23126},
}
Figure