Multivariate time series anomaly detection typically relies on evaluating discrepancies between observations and outputs produced by models trained on normal data. An alternative perspective is to characterize the distribution of normal data through the generative dynamics, i.e., the velocity field, of flow matching models. However, standard flow matching typically adopts linear probability paths that overlook dependencies among variables, leading to a misalignment with the structured data distribution. To address this issue, we propose GRASP, a flow matching framework with a graph-spectral path for multivariate time series anomaly detection. GRASP incorporates graph structure into the probability path by minimizing a fixed-endpoint action that combines kinetic energy with graph Dirichlet energy. This formulation yields a closed-form path based on graph-frequency-dependent hyperbolic interpolation. A velocity predictor trained on normal data then detects anomalies using weighted velocity discrepancies aggregated across source samples, flow times, and graph frequencies. Theoretically, we establish that GRASP is invariant to the choice of Laplacian eigenbasis and decompose its expected oracle anomaly score into bounded endpoint uncertainty and graph-frequency-weighted Fisher discrepancy. Experiments on four benchmarks demonstrate the superior anomaly detection performance of GRASP and validate the effectiveness of its graph-spectral path and weighting mechanism.
Figures & tables
Figure 1: Overview of GRASP for MTS anomaly detection. Left: flow matching with the same linear interpolation for all graph-frequency modes. Middle: GRASP with the graph-spectral path that applies frequency-dependent hyperbolic interpolation. Right: anomaly scoring strategy of GRASP.
Figure 2: Coefficients αk(t) (left) and βk(t) (right) with different ωk .
Figure 4: Unweighted (left) and weighted (right) anomaly signal attribution across time and frequency on SMAP.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Symbol
Description
N,R
Number of variables and length of a time-series window.
G=(N,E)
Sensor graph with node set N and edge set E .
X∈RN×R
Multivariate time-series window.
L
Symmetric normalized graph Laplacian.
Ψ,Λ
Laplacian eigenvector and eigenvalue matrices satisfying L=ΨΛΨ⊤ .
λk,ψk
Laplacian eigenvalue and eigenvector associated with graph-frequency mode k .
Appendix
Table 3: Summary of notation used throughout the paper.
Model
SMAP
SMD
PRC
ROC
Best-F1
PRC
ROC
Best-F1
A-Transformer
0.1340 ± 0.0072
0.5065 ± 0.0071
0.2060 ± 0.0110
0.0720 ± 0.0046
0.5013 ± 0.0049
0.1260 ± 0.0071
FITS
0.1455 ± 0.0047
0.5147 ± 0.0068
0.2798 ± 0.0063
0.2863 ± 0.0026
0.8299 ± 0.0022
0.4025 ± 0.0026
TimesNet
0.1792 ± 0.0071
0.5336 ± 0.0058
0.3161 ± 0.0089
0.2839 ± 0.0053
0.8087 ± 0.0021
0.3713 ± 0.0049
COPOD
0.1927 ± 0.0000
0.5918 ± 0.0000
0.2841 ± 0.0000
0.2139 ± 0.0000
0.7193 ± 0.0000
0.2951 ± 0.0000
HBOS
0.1897 ± 0.0000
0.5650 ± 0.0000
0.2664 ± 0.0000
0.2678 ± 0.0000
0.7378 ± 0.0000
0.3556 ± 0.0000
Appendix
Table 4: Anomaly detection performance comparison on SMAP and SMD.
Model
CICIDS
SWAN
PRC
ROC
Best-F1
PRC
ROC
Best-F1
A-Transformer
0.2396 ± 0.0007
0.4972 ± 0.0025
0.3060 ± 0.0000
0.2817 ± 0.0018
0.5021 ± 0.0014
0.4365 ± 0.0000
FITS
0.1849 ± 0.0013
0.4106 ± 0.0039
0.3126 ± 0.0013
0.3189 ± 0.0120
0.4607 ± 0.0120
0.4365 ± 0.0000
TimesNet
0.1905 ± 0.0021
0.4657 ± 0.0052
0.3121 ± 0.0015
0.3068 ± 0.0080
0.4505 ± 0.0137
0.4365 ± 0.0000
COPOD
0.2214 ± 0.0000
0.5566 ± 0.0000
0.3733 ± 0.0000
0.2792 ± 0.0000
0.5000 ± 0.0000
0.4365 ± 0.0000
HBOS
0.2603 ± 0.0000
0.5586 ± 0.0000
0.3852 ± 0.0000
0.2792 ± 0.0000
0.5000 ± 0.0000
0.4365 ± 0.0000
Appendix
Table 5: Anomaly detection performance comparison on CICIDS and SWAN.
Variant
CICIDS
SWAN
PRC
ROC
Best-F1
PRC
ROC
Best-F1
GRASP
0.3996
0.8108
0.4615
0.7556
0.8758
0.6886
GRASP-mean
0.3764
0.7593
0.4499
0.7552
0.8753
0.6881
GRASP-ER
0.3734
0.7546
0.4497
0.7534
0.8723
0.6857
GRASP-lin
0.3740
0.7543
0.4493
0.7486
0.8714
0.6841
Appendix
Table 6: Ablation results on CICIDS and SWAN.
Variant
SMAP
SMD
CICIDS
SWAN
PRC
ROC
Best-F1
PRC
ROC
Best-F1
PRC
ROC
Best-F1
PRC
ROC
Best-F1
TSMixer
0.3149
0.7015
0.4178
0.4845
0.8567
0.5087
0.3996
0.8108
0.4615
0.7556
0.8758
0.6886
GNN
0.2773
0.6758
0.3881
0.4659
0.8542
0.4926
0.3551
0.7232
0.4459
0.5306
0.6570
0.5188
Transformer
0.2639
0.6347
0.3795
0.4475
0.8272
0.4674
0.3283
0.6407
0.4331
0.5594
0.6758
0.5122
Appendix
Table 7: Ablation study of velocity-field architectures.
Figure 5: Anomaly score contributions across flow times and graph-frequency quantiles on SMD, CICIDS, and SWAN. Up: unweighted anomaly signal. Below: weighted anomaly signal.
Figure 6: Sensitivity to the number of flow-time evaluation points ∣Rad∣ with ∣Xad∣=5 .
Figure 7: Sensitivity to the number of source samples ∣Xad∣ with ∣Rad∣=10 .
Figure 8: Sensitivity to the graph Dirichlet-energy weight τ .
Figure 9: Inference time comparison on SMAP (left) and SMD (right).
Time-Series Anomaly Detection identifies unusual patterns or events in sequential data, from sensor readings and network traffic to health and industrial telemetry.
Unsupervised multivariate time series anomaly detection methods typically identify anomalies through forecasting, reconstruction, or representation discrepancies. However, industrial faults may first alter inter-variable structural patterns while individual trajectories remain close to normal, resulting in weak anomaly signals. In this paper, we propose GSLAD, a prototype-regularized graph structure learning framework that uses structural deviations for anomaly scoring. GSLAD adopts a two-phase training strategy. First, a condition-aware graph learner and a graph-based forecaster are optimized with predictive supervision. The inferred normal graphs are then clustered into multiple structural prototypes representing different normal operating regimes, with edge-wise variability characterizing structural uncertainty. Deviations from these prototypes regularize the graph learner in the second phase, encouraging stable and regime-specific structural patterns. During inference, uncertainty-normalized structural deviation is combined with predictive deviation for anomaly scoring. Experiments on four industrial benchmarks demonstrate strong overall performance of GSLAD and confirm the effectiveness of structural deviation for anomaly detection and diagnosis.
Zepeng Zhang, Fuad Khuri, Keivan Faghih Niresi +1
Intelligent Maintenance and Operations Systems (IMOS) Lab École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland
This paper introduces temporal-conditioned normalizing flows (tcNF), a novel framework that addresses anomaly detection in time series data with accurate modeling of temporal dependencies and uncertainty. By conditioning normalizing flows on previous observations, tcNF effectively captures complex temporal dynamics and generates accurate probability distributions of expected behavior. This autoregressive approach enables robust anomaly detection by identifying low-probability events within the learned distribution. We evaluate tcNF on diverse datasets, demonstrating good accuracy and robustness compared to existing methods. A comprehensive analysis of strengths and limitations and open-source code is provided to facilitate reproducibility and future research.
David Baumgartner, Helge Langseth, Kenth Engø-Monsen +1
Department of Computer Science, Norwegian University of Science and Technology.
The core challenge in unsupervised anomaly detection is identifying abnormal patterns without prior knowledge of their characteristics. While existing methods have addressed aspects of this problem, they often struggle to learn a robust representation of the normal data distribution that is distinct from anomalous patterns. In this paper, we present a novel framework, Unified Unsupervised Anomaly Detection (U2AD), that comprehensively addresses anomaly detection in multivariate time series. Our approach learns the underlying data distribution of normal samples by utilizing score-based generative modeling. We introduce a novel time-dependent score network and a unified training objective that together delineate the manifold of normal data while considering both local and global temporal contexts. Reconstruction is then performed via a deterministic sampling process using an ordinary differential equation solver. Our extensive experimental evaluations demonstrate that U2AD not only outperforms current state-of-the-art methods in detection accuracy but also identifies anomalies at significantly earlier stages of their occurrence.
Prithul Sarker, Sushmita Sarker, Nicholas G. Murray +1