[Paper Review] Structural Temporal Graph Neural Networks for Anomaly Detection in Dynamic Graphs
This paper proposes StrGNN, an end-to-end structural temporal Graph Neural Network that detects anomalous edges in dynamic graphs by modeling subgraph structural changes and temporal dynamics. It extracts h-hop enclosing subgraphs around target edges, uses node labeling and graph convolution with SortPooling to capture structural features, and applies GRUs to model temporal evolution, achieving state-of-the-art performance with 0% false negatives and at least 50% fewer false positives in real enterprise systems.
Detecting anomalies in dynamic graphs is a vital task, with numerous practical applications in areas such as security, finance, and social media. Previous network embedding based methods have been mostly focusing on learning good node representations, whereas largely ignoring the subgraph structural changes related to the target nodes in dynamic graphs. In this paper, we propose StrGNN, an end-to-end structural temporal Graph Neural Network model for detecting anomalous edges in dynamic graphs. In particular, we first extract the $h$-hop enclosing subgraph centered on the target edge and propose the node labeling function to identify the role of each node in the subgraph. Then, we leverage graph convolution operation and Sortpooling layer to extract the fixed-size feature from each snapshot/timestamp. Based on the extracted features, we utilize Gated recurrent units (GRUs) to capture the temporal information for anomaly detection. Extensive experiments on six benchmark datasets and a real enterprise security system demonstrate the effectiveness of StrGNN.
Motivation & Objective
- To address the limitation of existing graph embedding methods that focus on node representations while neglecting subgraph structural changes in dynamic graphs.
- To develop an end-to-end model that captures both structural patterns around target edges and their temporal evolution over time.
- To improve anomaly detection performance, especially in real-world systems with low false positive rates and zero false negatives.
- To design a method robust to new nodes and edge changes, avoiding reliance on full historical node knowledge.
Proposed method
- StrGNN extracts h-hop enclosing subgraphs centered on each target edge from dynamic graph snapshots.
- A node labeling function is introduced to identify the role of each node within the subgraph, enhancing structural representation.
- Graph Convolutional Networks (GCNs) with three layers extract hierarchical graph features, followed by a SortPooling layer to produce fixed-size embeddings.
- The temporal module uses Gated Recurrent Units (GRUs) to model sequential changes in subgraph features across timestamps.
- The entire model is trained end-to-end using Adam optimization with a learning rate of 1e-4 and batch size of 32 over 50 epochs.
- The framework does not require node embeddings and is insensitive to new nodes or edge changes in the dynamic graph.
Experimental results
Research questions
- RQ1Can modeling subgraph structural changes around target edges improve anomaly detection in dynamic graphs?
- RQ2How effectively can a temporal graph neural network capture evolving structural patterns for identifying anomalous edges?
- RQ3Can an end-to-end framework outperform existing embedding-based methods in real-world intrusion detection with minimal false positives?
- RQ4To what extent is the proposed method robust to changes in node and edge composition in dynamic graphs?
Key findings
- StrGNN outperforms four baseline methods on all six benchmark datasets, achieving the highest AUC across all anomaly injection rates (1%, 5%, 10%).
- On the UCI Messages dataset, StrGNN's AUC remains stable and high even with increasing training data, peaking at 75% of data and stabilizing thereafter.
- In real enterprise intrusion detection, StrGNN achieved an AUC of 0.99, significantly outperforming the next best baseline (NetWalk at 0.90).
- StrGNN detected all 82 true attack events (100% recall) with only 164 false positives, reducing false positives by at least 50% compared to state-of-the-art methods.
- Visualization of GRU-learned embeddings using PCA clearly separates anomalous from normal subgraph patterns, confirming effective representation learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.