Skip to main content
QUICK REVIEW

[Paper Review] Learning Graph Structures with Transformer for Multivariate Time Series Anomaly Detection in IoT

Zekai Chen, Dingshuo Chen|arXiv (Cornell University)|Apr 8, 2021
Anomaly Detection Techniques and ApplicationsComputer Science47 references507 citations
TL;DR

This paper proposes GTA, a Transformer-based framework that automatically learns dynamic graph structures among IoT sensors to improve multivariate time series anomaly detection. By using a differentiable Gumbel-softmax-based connection learning policy, a novel Infection Propagation graph convolution, and a multi-branch attention mechanism, GTA achieves state-of-the-art performance on four benchmark datasets with improved efficiency and accuracy over existing methods.

ABSTRACT

Many real-world IoT systems, which include a variety of internet-connected sensory devices, produce substantial amounts of multivariate time series data. Meanwhile, vital IoT infrastructures like smart power grids and water distribution networks are frequently targeted by cyber-attacks, making anomaly detection an important study topic. Modeling such relatedness is, nevertheless, unavoidable for any efficient and effective anomaly detection system, given the intricate topological and nonlinear connections that are originally unknown among sensors. Furthermore, detecting anomalies in multivariate time series is difficult due to their temporal dependency and stochasticity. This paper presented GTA, a new framework for multivariate time series anomaly detection that involves automatically learning a graph structure, graph convolution, and modeling temporal dependency using a Transformer-based architecture. The connection learning policy, which is based on the Gumbel-softmax sampling approach to learn bi-directed links among sensors directly, is at the heart of learning graph structure. To describe the anomaly information flow between network nodes, we introduced a new graph convolution called Influence Propagation convolution. In addition, to tackle the quadratic complexity barrier, we suggested a multi-branch attention mechanism to replace the original multi-head self-attention method. Extensive experiments on four publicly available anomaly detection benchmarks further demonstrate the superiority of our approach over alternative state-of-the-arts. Codes are available at https://github.com/ZEKAICHEN/GTA.

Motivation & Objective

  • To address the challenge of detecting anomalies in multivariate IoT time series with unknown, complex, and nonlinear sensor dependencies.
  • To overcome the quadratic complexity of traditional graph learning and attention mechanisms in high-dimensional sensor data.
  • To model temporal dependencies and topological relationships between sensors simultaneously for improved anomaly detection.
  • To develop an end-to-end, differentiable framework that automatically discovers sensor relationships without prior structural knowledge.

Proposed method

  • A differentiable connection learning policy based on the Gumbel-softmax sampling trick is used to learn bi-directed sensor links, enabling end-to-end training and reducing computational complexity.
  • A novel Infection Propagation (IP) graph convolution is introduced to model the flow of anomaly influence across sensor networks, capturing cascading effects from root causes.
  • A hierarchical context encoding block combines multi-scale dilated convolutions with graph convolutions to model long-range temporal dependencies.
  • A multi-branch attention mechanism is proposed to reduce the quadratic complexity of standard multi-head self-attention while preserving long-range context modeling.
  • The model integrates graph structure learning, temporal modeling via dilated convolutions, and attention-based forecasting in a unified Transformer-based architecture.
  • A dedicated loss term restricts each node’s neighborhood size to improve inference efficiency and reduce noise in learned connections.

Experimental results

Research questions

  • RQ1Can a differentiable, end-to-end method automatically learn meaningful sensor dependencies in multivariate time series without prior topological knowledge?
  • RQ2How does learning dynamic graph structures improve anomaly detection performance compared to static or heuristic graph construction?
  • RQ3Can a multi-branch attention mechanism effectively reduce the computational complexity of self-attention while maintaining performance on long sequences?
  • RQ4To what extent does modeling anomaly propagation through graph convolutions enhance detection of cascading or indirect anomalies?

Key findings

  • GTA achieves state-of-the-art performance on four public benchmarks, including SMAP, MSL, SWaT, and WADI, with significant improvements in F1-score over existing methods.
  • The ablation study confirms that graph learning, the proposed connection learning policy, and the Transformer-based architecture are all essential components, with performance dropping substantially when any is removed.
  • The model successfully localizes anomalies in real cyber-attack scenarios, such as the 25.16-minute WADI attack, by detecting abnormal predictions in downstream sensors even when the attacked sensor remains within normal range.
  • The case study shows that the learned graph structure accurately reflects real topological relationships, with LEAK DIFF PRESSURE linked to multiple downstream sensors due to cascading effects.
  • The multi-branch attention mechanism reduces computational complexity while maintaining high performance, enabling efficient deployment in mobile and IoT environments.
  • The model demonstrates superior generalization on datasets with strong topological dependencies (e.g., SWaT, WADI), where graph structure learning provides greater benefit than on datasets with weaker inter-sensor relationships (e.g., SMAP, MSL).

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.