Abstract
Time series anomaly detection often faces a trade-off between capturing point-wise spikes and complex contextual patterns. We present the Nominality score conditioned Point/Sequential Reconstruction (NPSR) framework, which integrates point-based and sequence-based reconstruction models. By utilizing a novel "nominality score" as a gating mechanism, NPSR effectively balances local precision with global context. Empirical evaluations across seven major benchmarks demonstrate that NPSR achieves state-of-the-art performance, outperforming existing methods in diverse industrial and server monitoring scenarios.
Introduction
Time series anomalies generally fall into two categories: point anomalies, which are obvious individual outliers like sensor spikes, and contextual anomalies, which appear normal in isolation but are abnormal given the surrounding temporal pattern.
The primary challenge in this field is the "point-sequential detection trade-off." High-capacity sequence models (e.g., LSTMs or Transformers) designed for context often become "noisy" and lose precision for simple point anomalies. Conversely, simple point-wise models are blind to context. NPSR addresses this trade-off, particularly in high-dimensional data where temporal modeling is computationally expensive and prone to error.
Methods
The NPSR framework employs a dual-model architecture to bridge the gap between point and sequential detection.
Dual Reconstruction Models
The system uses two Performer-based architectures (an efficient Transformer variant):
- $M_{pt}$ (Point-based): Reconstructs each time point individually, ignoring neighbors. It is highly effective at identifying point-wise deviations.
- $M_{seq}$ (Sequence-based): Reconstructs a point based on its surrounding context, forcing the model to learn temporal dependencies.
The Nominality Score ($N(t)$)
The "secret sauce" of NPSR is the nominality score, a ratio calculated from the reconstruction errors of both models. It quantifies how "nominal" (normal) a point is from a point-wise perspective.
Induced Anomaly Score ($\hat{A}(t)$)
Instead of using raw error, NPSR calculates an "induced" score using the nominality score as a soft gate. If a point is likely nominal, the gate limits the propagation of the anomaly signal. If a point is likely part of a contextual anomaly, the gate allows the anomaly score to be smoothed and amplified across the sequence, boosting the detection of subtle patterns.
Theoretical and Geometric Intuition
The core idea relies on the geometric relationship between the input data and the reconstructed values from both models. The nominality score effectively measures how much the point-wise reconstruction deviates compared to the sequence-wise expectation. The authors provide theoretical grounding showing that their induced anomaly score is mathematically superior to (or at least as good as) the original anomaly score under specific conditions.
Experimental Results
The authors evaluated NPSR on a comprehensive suite of seven public benchmarks, including SWaT, WADI, PSM, MSL, SMAP, SMD, and MGAB.
- State-of-the-Art Performance: NPSR consistently outperformed nearly all baselines, including TranAD, Anomaly Transformer, and USAD. It achieved the highest F1 scores on 6 out of 7 datasets. For instance, on the SWaT dataset, it reached an F1 of 0.839, significantly higher than TranAD (0.669).
- Point Models are Underrated: A surprising finding is that the simple point-wise model ($M_{pt}$) often outperforms complex sequence models on its own, suggesting that many SOTA models struggle with noise introduced by temporal modeling.
- Robustness: Ablation studies showed that the "soft gate" approach is highly stable across a wide range of induction lengths, making it easier to deploy without exhaustive hyperparameter tuning.
Conclusion and Future Work
NPSR provides a robust solution to the point-sequential trade-off by conditioning anomaly detection on a nominality metric. While highly effective for high-dimensional data, the point-based model struggles with univariate time series due to a lack of cross-channel information. Future research will focus on automated thresholding and exploring more sophisticated dynamic blending of errors from both models.
Summary updated