TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data

Shreshth Tuli, Giuliano Casale, Nicholas R. Jennings
1/18/2022
1,282 citations
cs.LG
transformer-attention

Official code: imperial-qore/TranAD (709 stars, Python, BSD-3-Clause, last commit 2024-07-25).

Abstract

Efficient anomaly detection and diagnosis in multivariate time-series data is of great importance for modern industrial applications. However, building a system that is able to quickly and accurately pinpoint anomalous observations is a challenging problem.

Show full abstract

This is due to the lack of anomaly labels, high data volatility and the demands of ultra-low inference times in modern applications. Despite the recent developments of deep learning approaches for anomaly detection, only a few of them can address all of these challenges. In this paper, we propose TranAD, a deep transformer network based anomaly detection and diagnosis model which uses attention-based sequence encoders to swiftly perform inference with the knowledge of the broader temporal trends in the data. TranAD uses focus score-based self-conditioning to enable robust multi-modal feature extraction and adversarial training to gain stability. Additionally, model-agnostic meta learning (MAML) allows us to train the model using limited data. Extensive empirical studies on six publicly available datasets demonstrate that TranAD can outperform state-of-the-art baseline methods in detection and diagnosis performance with data and time-efficient training. Specifically, TranAD increases F1 scores by up to 17%, reducing training times by up to 99% compared to the baselines.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

[VLDB'22] Anomaly Detection using Transformers, self-conditioning and adversarial training.

709198PythonMar 1, 20212 years agoBSD-3-Clause
adversarial-learninganomaly-detectionmulti-head-attentiontransformer-modelsunsupervised-learning

Similar Papers

Cite this paper

@article{tuli2022tranad,
  title  = {TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data},
  author = {Shreshth Tuli and Giuliano Casale and Nicholas R. Jennings},
  year   = {2022},
  eprint = {2201.07284},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.07284}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.07284.svg)](https://codeofpaper.com/paper/2201.07284)

Discussion