NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Nominality Score Conditioned Time Series Anomaly Detection by Point/Sequential Reconstruction

Chih-Yu Lai, Fan-Keng Sun, Zhengqi Gao, Jeffrey H. Lang, Duane S. Boning

TL;DR

The paper introduces NPSR (Nominality score conditioned Point/Sequential Reconstruction), a novel unsupervised framework for time series anomaly detection. By combining point-based and sequence-based reconstruction models through a mathematically derived "nominality score," NPSR effectively balances the detection of both isolated spikes (point anomalies) and complex temporal shifts (contextual anomalies), consistently outperforming state-of-the-art baselines.

What Problem Does This Paper Address?

Time series anomaly detection is critical for monitoring complex systems like power grids, water distribution networks, and spacecraft. Anomalies generally fall into two categories:

  1. Point anomalies: Isolated, sudden spikes or drops at a single time point.
  2. Contextual anomalies: Data points that look normal individually but are anomalous given their surrounding context (e.g., a system operating at a slightly slower pace than usual).

Current state-of-the-art methods rely heavily on sequence-based models to capture temporal relationships. However, these models face a tricky trade-off: trying to learn complex time-dependent patterns often introduces noise into the reconstruction, which degrades their accuracy when detecting simple point anomalies. Conversely, models that look only at individual time points completely miss the broader context. This paper aims to bridge this gap without compromising performance on either anomaly type.

Methods

The authors propose a two-stage deviation framework based on the idea that any observed data point is a combination of a nominal value, a contextual deviation, and a point deviation. To model this, NPSR uses two distinct components:

  • Point-based Reconstruction Model ($\mathcal{M}_{pt}$): A Performer-based autoencoder that reconstructs data point-by-point, ignoring temporal context. This model excels at isolating point anomalies.
  • Sequence-based Reconstruction Model ($\mathcal{M}_{seq}$): A Performer-based stacked encoder that predicts a central window of data based on its surrounding context, forcing the network to learn time-dependent relationships.

Using the outputs of both models, the authors calculate a Nominality Score ($N(t)$), which measures how "normal" a time point is based on the ratio of contextual reconstruction error to total observed deviation. This nominality score is then used via a gate function (either hard or soft) to scale the original anomaly score, yielding an Induced Anomaly Score ($\hat{A}(t)$).

The complete architecture and workflow are illustrated below:

Figure 3: (a) Performer-based autoencoder Mpt, (b) Performer-based stacked encoder Mseq, and (c) main scheme for NPSR. GELUs are used as the activation function for each layer.

Datasets

The framework was evaluated on seven prominent public benchmarks:

  • SWaT (Secure Water Treatment): Industrial water treatment dataset with cyber-attack anomalies.
  • WADI (WAter DIstribution testbed): A larger-scale water distribution system dataset.
  • PSM (Pooled Server Metrics): Multiple application server nodes from eBay.
  • MSL (Mars Science Laboratory) & SMAP (Soil Moisture Active Passive): Spacecraft telemetry datasets from NASA.
  • SMD (Server Machine Dataset): Compute cluster metrics from a large internet company.
  • trimSyn: A trimmed synthetic dataset generated using trigonometric functions and Gaussian noise.

Key Insights and Ideas

  • The Power of Point-Based Models: Surprisingly, the authors found that a simple point-based reconstruction model ($\mathcal{M}_{pt}$) often outperforms complex sequence-based models on its own because it exhibits lower variance and avoids the noisy reconstructions associated with temporal modeling.
  • Gating as a Smart Smoother: Rather than using standard moving averages to smooth anomaly scores (which can blur the distinction between normal and abnormal data), NPSR uses the nominality score as a dynamic gate. If a neighboring point is highly likely to be normal, the gate closes, preventing the false propagation of anomaly scores and drastically reducing false positives.
  • Theoretical Superiority: The authors mathematically prove that under certain conditions, the induced anomaly score will always perform equal to or better than the unconditioned anomaly score.

Key Results

NPSR was compared against 14 baseline methods (including popular architectures like TranAD, USAD, OmniAnomaly, and GDN) using the pointwise F1 score ($F1^*$).

  • State-of-the-Art Performance: NPSR achieved the highest $F1^*$ score on 6 out of the 7 datasets.
  • Significant Gains on Complex Datasets: On the challenging WADI dataset, NPSR achieved an $F1^*$ of 0.642, substantially outperforming the next best baseline, GDN (0.570). On SWaT, NPSR reached 0.839 compared to USAD's 0.792.

Limitations and Future Work

Despite its strong performance, NPSR has a few notable limitations:

  • Univariate/Low-Dimensional Data: The point-based model ($\mathcal{M}_{pt}$) struggles with low-dimensional or univariate time series (e.g., the Mackey-Glass benchmark) because it cannot learn meaningful representations without cross-channel correlations.
  • Manual Thresholding: The framework currently lacks an automated method for finding the optimal anomaly threshold ($\theta_a$) during deployment.
  • Purely Contextual Blindspots: Because NPSR relies primarily on the reconstruction error of the point-based model as the foundation for its anomaly score, it can occasionally suffer from false negatives in data segments dominated entirely by subtle contextual anomalies. The authors note that dynamically selecting which model's error to prioritize is a key direction for future research.

Summary updated

BibTeX
@inproceedings{lai2023nominality,
  author = {Chih-Yu Lai and Fan-Keng Sun and Zhengqi Gao and Jeffrey H. Lang and Duane S. Boning},
  title = {{Nominality Score Conditioned Time Series Anomaly Detection by Point/Sequential Reconstruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ljgM3vNqfQ},
}
Figure