GDformer: Going Beyond Subsequence Isolation for Multivariate Time Series Anomaly Detection
Qingxiang Liu, Chenghao Liu, Sheng Sun, Di Yao, Yuxuan Liang
TL;DR
GDformer tackles unsupervised anomaly detection in multivariate time series by learning global normal representations through a compact global dictionary of Key/Value vectors and prototype-guided similarity, moving beyond horizon-limited subsequence analysis. It replaces standard self-attention with dictionary-based cross-attention to capture global correlations and uses prototypes to define a compact similarity-based decision boundary. Training combines a reconstruction objective with a similarity loss against prototypes, producing per-point anomaly scores via aggregated cross-attention similarity. The approach achieves state-of-the-art results on five real-world benchmarks and demonstrates transferability of the global dictionary across datasets, suggesting strong potential for foundation-model-style anomaly detection in time series.
Abstract
Unsupervised anomaly detection of multivariate time series is a challenging task, given the requirements of deriving a compact detection criterion without accessing the anomaly points. The existing methods are mainly based on reconstruction error or association divergence, which are both confined to isolated subsequences with limited horizons, hardly promising unified series-level criterion. In this paper, we propose the Global Dictionary-enhanced Transformer (GDformer) with a renovated dictionary-based cross attention mechanism to cultivate the global representations shared by all normal points in the entire series. Accordingly, the cross-attention maps reflect the correlation weights between the point and global representations, which naturally leads to the representation-wise similarity-based detection criterion. To foster more compact detection boundary, prototypes are introduced to capture the distribution of normal point-global correlation weights. GDformer consistently achieves state-of-the-art unsupervised anomaly detection performance on five real-world benchmark datasets. Further experiments validate the global dictionary has great transferability among various datasets. The code is available at https://github.com/yuppielqx/GDformer.
