HRGCN: Heterogeneous Graph-level Anomaly Detection with Hierarchical Relation-augmented Graph Neural Networks

Jiaxi Li, Guansong Pang, Ling Chen, Mohammad-Reza Namazi-Rad

Introduction

In modern industrial ecosystems—ranging from cloud platforms and microservice architectures to mobile telecommunications—data is increasingly represented as a complex web of interactions rather than flat logs. These systems are best modeled as heterogeneous graphs, where nodes (e.g., users, servers, cells) and edges (e.g., logins, data transfers, handovers) possess distinct types and semantic meanings.

The core challenge addressed by this research is graph-level anomaly detection: identifying when an entire interaction pattern is abnormal, even if individual events appear benign. For example, while a single failed login is common, a specific sequence such as "Login -> Modify -> Deactivate" across disparate device types may signal a security breach. Existing tools often fail in these scenarios because they either ignore the heterogeneous nature of the data or require extensive labeled datasets of "bad" behavior, which are notoriously difficult to obtain in real-world production environments.

Methodology

To address these challenges, the authors propose HRGCN (Hierarchical Relation-augmented Graph Neural Network), an unsupervised framework designed to detect subtle anomalies in complex systems. The architecture rests on three primary pillars:

1. Hierarchical Relation-Augmentation

Standard Graph Neural Networks (GNNs) typically aggregate information from all neighboring nodes simultaneously, which can lead to the "washing out" of unique relational signatures. HRGCN adopts a more granular approach by segregating message passing based on specific source-destination node pairs and edge types. By learning separate weights for every possible triplet (e.g., User-LTE-Cell), the model preserves the specific semantic flow of the system.

2. Unsupervised Joint Learning

Because labeled anomalies are scarce, HRGCN utilizes a dual-objective loss function to learn from normal data:

  • Deep SVDD (Support Vector Data Description): This component maps all "normal" graphs into a tight hypersphere within a high-dimensional latent space. During inference, any graph falling significantly outside this sphere is flagged as an anomaly.
  • Self-Supervised Task: The model is trained to distinguish between authentic system graphs and "corrupted" versions, forcing the network to learn the underlying structural logic of the system.

3. Heterogeneous Graph Data Augmentation (HetGDA)

To facilitate self-supervised learning without real-world labels, the authors developed HetGDA. This technique generates synthetic anomalies by subtly breaking normal graphs through four methods: randomly swapping node or edge types, or replacing edges based on their statistical rarity. This teaches the model to recognize what "abnormal" looks like by defining the boundaries of "normality."

Experimental Evaluation

The HRGCN framework was evaluated against several state-of-the-art baselines across three distinct datasets:

  • TraceLog: A large-scale dataset of over 132,000 graphs derived from microservice system traces, featuring 14 different types of system faults.
  • FlowGraph: A specialized dataset of 600 graphs capturing system flows during web browsing, including "drive-by download" attacks.
  • Industrial Case Study (TPG Telecom): A real-world application involving 21,849 traces of mobile network events (Users, Cells, and Sectors) used to identify congested or malfunctioning network devices in Australia.

Key Results

HRGCN demonstrated significant performance gains over existing deep learning methods:

  • TraceLog: Achieved an AUC of 0.864, representing a ~20% relative improvement over the next best baseline, DeepTraLog (0.657).
  • FlowGraph: Achieved a perfect 1.0 AUC, demonstrating total separation between normal and malicious browsing patterns.
  • TPG Telecom Case Study: Improved the Average Precision (AP) from 0.41 to 0.78 compared to standard heterogeneous GNNs, highlighting its utility for real-time industrial monitoring.

Discussion and Insights

The research yields several critical insights for the field of anomaly detection:

  • Granularity Matters: In heterogeneous systems, the type of relationship is often more informative than the connection itself. By forcing the network to respect these hierarchies, HRGCN captures the system's operational "flow" more accurately.
  • Synthetic Training is Effective: The success of HetGDA proves that a library of real-world failures is not a prerequisite for high-performance detection. Intelligent data augmentation can effectively define the boundaries of normal behavior.
  • Robustness: The model is specifically designed to ignore intermittent noise (like a single dropped call) and only trigger alerts when the holistic graph structure deviates from the norm.

Limitations and Future Work

The primary trade-off for HRGCN’s high accuracy is computational efficiency. Because the model processes every source-destination-edge triplet separately, it is significantly slower than simpler models. For example, training on the FlowGraph dataset required ~54 seconds per batch, compared to less than 1 second for a standard HetGCN.

Future research will focus on parallelizing these relation-specific computations to support real-time, high-velocity data streams and exploring how the hierarchical approach scales to systems with hundreds of unique node and edge types.

Summary updated

BibTeX
@inproceedings{li2023hrgcn,
  author = {Jiaxi Li and Guansong Pang and Ling Chen and Mohammad-Reza Namazi-Rad},
  title = {{HRGCN: Heterogeneous Graph-level Anomaly Detection with Hierarchical Relation-augmented Graph Neural Networks}},
  booktitle = {DSAA},
  year = {2023},
  doi = {10.1109/dsaa60987.2023.10302626},
}
Figure