RESTAD: REconstruction and Similarity based Transformer for time series Anomaly Detection
Ramin Ghorbani, Marcel J. T. Reinders, David M. J. Tax
TL;DR
RESTAD addresses unsupervised time-series anomaly detection by augmenting a Transformer with a learnable RBF layer that computes similarity to normal latent patterns. The RBF outputs are fused multiplicatively with reconstruction error to form a robust composite anomaly score, improving sensitivity to subtle anomalies. Across multiple public benchmarks, RESTAD outperforms state-of-the-art baselines with robustness to initialization and RBF placement, highlighting the value of nonparametric density alignment in latent space. This approach has practical impact for detecting subtle deviations in complex time-series without labeled anomalies, and suggests broader applicability of RBF augmentation in deep sequence models.
Abstract
Anomaly detection in time series data is crucial across various domains. The scarcity of labeled data for such tasks has increased the attention towards unsupervised learning methods. These approaches, often relying solely on reconstruction error, typically fail to detect subtle anomalies in complex datasets. To address this, we introduce RESTAD, an adaptation of the Transformer model by incorporating a layer of Radial Basis Function (RBF) neurons within its architecture. This layer fits a non-parametric density in the latent representation, such that a high RBF output indicates similarity with predominantly normal training data. RESTAD integrates the RBF similarity scores with the reconstruction errors to increase sensitivity to anomalies. Our empirical evaluations demonstrate that RESTAD outperforms various established baselines across multiple benchmark datasets.
