Mamba Adaptive Anomaly Transformer with association discrepancy for time series

Anomaly detection in time series poses a critical challenge in industrial monitoring, environmental sensing, and infrastructure reliability, where accurately distinguishing anomalies from complex temporal patterns remains an open problem. While existing methods, such as the Anomaly Transformer leveraging multi-layer association discrepancy between prior and series distributions and Dual Attention Contrastive Representation Learning architecture (DCdetector) employing dual-attention contrastive learning, have advanced the field, critical limitations persist. These include sensitivity to short-term context windows, computational inefficiency, and degraded performance under noisy and non-stationary real-world conditions. To address these challenges, we present MAAT (Mamba Adaptive Anomaly Transformer), an enhanced architecture that refines association discrepancy modeling and reconstruction quality for more robust anomaly detection. Our work introduces two key contributions to the existing Anomaly transformer architecture: Sparse Attention, which computes association discrepancy more efficiently by selectively focusing on the most relevant time steps. This reduces computational redundancy while effectively capturing long-range dependencies critical for discerning subtle anomalies. A Mamba-Selective State Space Model (Mamba-SSM) is also integrated into the reconstruction module. A skip connection bridges the original reconstruction and the Mamba-SSM output, while a Gated Attention mechanism adaptively fuses features from both pathways. This design balances fidelity and contextual enhancement dynamically, improving anomaly localization and overall detection performance. Extensive experiments on benchmark datasets demonstrate that MAAT significantly outperforms prior methods, achieving superior anomaly distinguishability and generalization across diverse time series applications. By addressing the limitations of existing approaches, MAAT sets a new standard for unsupervised time series anomaly detection in real-world scenarios. Code available at https://github.com/ilyesbenaissa/MAAT . • MAAT uses Sparse Attention and Mamba-SSM for temporal dependencies. • Block-wise sparse attention reduces costs vs models like DCdetector . • Gated attention merges sparse attention with Mamba-SSM for better detection. • Uses SSM via Mamba for effective complex, noisy data management . • Outperforms Anomaly Transformer and DCdetector in F1, accuracy .

Authors

Institutions

Publication Details

Journal
Engineering Applications of Artificial Intelligence
Published
2025-07-25
DOI
https://doi.org/10.1016/j.engappai.2025.111685
Citations
4
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
9.92
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mamba Adaptive Anomaly Transformer with association discrepancy for time series

Cosimo Distante, Abdellah Zakaria Sellam, Luigi Patrono, Abdelmalik Taleb‐Ahmed et al.
4 citations
Engineering Applications of Artificial Intelligence
Anomaly Detection Techniques and Applications
9.92
article

Mamba Adaptive Anomaly Transformer with association discrepancy for time series

Cosimo Distante, Abdellah Zakaria Sellam, Luigi Patrono, Abdelmalik Taleb‐Ahmed, Ilyes Benaissa
article en
4 citations

Abstract

Anomaly detection in time series poses a critical challenge in industrial monitoring, environmental sensing, and infrastructure reliability, where accurately distinguishing anomalies from complex temporal patterns remains an open problem. While existing methods, such as the Anomaly Transformer leveraging multi-layer association discrepancy between prior and series distributions and Dual Attention Contrastive Representation Learning architecture (DCdetector) employing dual-attention contrastive learning, have advanced the field, critical limitations persist. These include sensitivity to short-term context windows, computational inefficiency, and degraded performance under noisy and non-stationary real-world conditions. To address these challenges, we present MAAT (Mamba Adaptive Anomaly Transformer), an enhanced architecture that refines association discrepancy modeling and reconstruction quality for more robust anomaly detection. Our work introduces two key contributions to the existing Anomaly transformer architecture: Sparse Attention, which computes association discrepancy more efficiently by selectively focusing on the most relevant time steps. This reduces computational redundancy while effectively capturing long-range dependencies critical for discerning subtle anomalies. A Mamba-Selective State Space Model (Mamba-SSM) is also integrated into the reconstruction module. A skip connection bridges the original reconstruction and the Mamba-SSM output, while a Gated Attention mechanism adaptively fuses features from both pathways. This design balances fidelity and contextual enhancement dynamically, improving anomaly localization and overall detection performance. Extensive experiments on benchmark datasets demonstrate that MAAT significantly outperforms prior methods, achieving superior anomaly distinguishability and generalization across diverse time series applications. By addressing the limitations of existing approaches, MAAT sets a new standard for unsupervised time series anomaly detection in real-world scenarios. Code available at https://github.com/ilyesbenaissa/MAAT . • MAAT uses Sparse Attention and Mamba-SSM for temporal dependencies. • Block-wise sparse attention reduces costs vs models like DCdetector . • Gated attention merges sparse attention with Mamba-SSM for better detection. • Uses SSM via Mamba for effective complex, noisy data management . • Outperforms Anomaly Transformer and DCdetector in F1, accuracy .

Engineering Applications of Artificial IntelligenceVol. 160
Centre National de la Recherche Scientifique (FR), University of Biskra (DZ), Innovation Engineering (Italy) (IT), Institut d'Electronique, de Microélectronique et de Nanotechnologie (FR), Institute of Intelligent Systems for Automation (IT), Université Polytechnique Hauts-de-France (FR)
Climate action
Openalex Percentile: Top 2%
Anomaly Detection Techniques and Applications
9.92
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.