Skip to main content
QUICK REVIEW

[Paper Review] Graph-Augmented Normalizing Flows for Anomaly Detection of Multiple Time Series

Heppel, Lukas, Gerhardus, Andreas|arXiv (Cornell University)|Feb 16, 2022
Anomaly Detection Techniques and ApplicationsComputer Science36 citations
TL;DR

This paper proposes GANF, a graph-augmented normalizing flow that models interdependencies among multiple time series using a Bayesian network to improve unsupervised anomaly detection. By jointly learning a directed acyclic graph (DAG) and flow parameters, GANF achieves state-of-the-art performance in density estimation and anomaly detection on real-world power grid datasets, while also revealing distribution drift through evolving graph structures.

ABSTRACT

Anomaly detection in multivariate timeseries is used in various domains, such as finance, IT, or aerospace, to identify irregular behavior in the used applications. Prior research in anomaly detection has focused on estimating the joint probability of all variables. Then, anomalies are scored based on the probability they receive. Thereby, the variables' dependencies are only considered implicitly. This work follows recent work in anomaly detection that integrates information about the causal relations between the variables in the timeseries into the detection mechanism. The causal mechanisms of the variables are then used to identify anomalies. An observation is identified as anomalous if at least one of the variables it contains deviates from its regular causal mechanism. These regular causal mechanisms are estimated via the conditional distribution of a variable given its causal parent variables, i.e., the variables having a causal influence on a variable. We further develop previous work by gathering information about the causal parents of the variables by applying causal discovery algorithms adapted to the timeseries setting. We apply Conditional Kernel Density Estimation and Conditional Variational Autoencoders to estimate the conditional probabilities. With this causal approach, we outperform methods that rely on the joint probability of the variables in our synthetically generated datasets and the C-MAPPS dataset, which provides simulation data of turbofan engines. Moreover, we investigate the causal approach’s inferred scores on the C-MAPPS dataset to gather insights into the measurements responsible for the prediction of anomalies. Furthermore, we investigate the influence of deviations from the true causal graph on the anomaly detection performance using synthetic data.

Motivation & Objective

  • To address the challenge of unsupervised anomaly detection in high-dimensional, interdependent multiple time series.
  • To model complex interdependencies among constituent time series using a probabilistic graphical model.
  • To jointly learn the structure of a Bayesian network (DAG) and normalizing flow parameters for improved density estimation.
  • To detect distribution drift by analyzing the evolution of the learned graph structure over time.
  • To provide a scalable, differentiable framework that integrates relational structure learning into normalizing flows for time series data.

Proposed method

  • Proposes GANF, a framework that augments normalizing flows with a Bayesian network to model conditional dependencies among time series.
  • Factorizes the joint density of multiple time series into a product of conditional densities using a DAG structure.
  • Uses a continuous relaxation of the DAG constraint via differentiable differentiability (e.g., using the NOTEARS approach) to allow end-to-end training.
  • Employs a graph-based dependency encoder to summarize parent information for each time series in the flow architecture.
  • Jointly optimizes the DAG adjacency matrix and normalizing flow parameters using a differentiable objective function.
  • Applies normalizing flows (e.g., MAF or RealNVP) to model the conditional densities in a normalizing flow setting with structured dependencies.

Experimental results

Research questions

  • RQ1How can a Bayesian network structure be effectively integrated into a normalizing flow for modeling interdependencies in multiple time series?
  • RQ2Can joint learning of the DAG structure and flow parameters improve anomaly detection performance compared to baseline methods?
  • RQ3Does the learned graph structure reveal meaningful distribution drift over time in long-term time series data?
  • RQ4How does the model perform under label scarcity and high dimensionality typical of real-world time series?
  • RQ5Can the evolving graph structure provide interpretable insights into system dynamics and seasonal patterns?

Key findings

  • GANF achieves the highest AUC-ROC of 0.678 on the PMU-B dataset and 0.705 on PMU-C, outperforming all ablation variants and baselines.
  • The log-density from GANF successfully separates normal and anomalous instances, with a log-density threshold of ~16 distinguishing anomalies.
  • GANF discovers previously undetected anomalous time steps with low density, which were missed by existing labeling.
  • The learned DAG evolves over time, with edge weights showing seasonal patterns that correlate with electricity consumption cycles.
  • Ablation studies confirm that joint training of the DAG and flow parameters is critical, as separate training or independence assumptions degrade performance.
  • The evolution of the DAG structure reveals distribution drift, with edges appearing and disappearing in seasonal clusters, indicating changes in conditional dependencies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.