Skip to main content
QUICK REVIEW

[Paper Review] Graph-based Solutions with Residuals for Intrusion Detection: the Modified E-GraphSAGE and E-ResGAT Algorithms

Liyan Chang, Paula Branco|arXiv (Cornell University)|Nov 26, 2021
Network Security and Intrusion DetectionComputer Science26 references21 citations
TL;DR

This paper proposes two novel graph neural network (GNN) models—modified E-GraphSAGE and E-ResGAT—designed for intrusion detection by integrating residual learning into graph-based architectures to address extreme class imbalance. The models outperform baseline GNNs, especially in detecting minority attack classes, across four real-world datasets, demonstrating improved robustness and discriminative capability through attention mechanisms and residual connections.

ABSTRACT

The high volume of increasingly sophisticated cyber threats is drawing growing attention to cybersecurity, where many challenges remain unresolved. Namely, for intrusion detection, new algorithms that are more robust, effective, and able to use more information are needed. Moreover, the intrusion detection task faces a serious challenge associated with the extreme class imbalance between normal and malicious traffics. Recently, graph-neural network (GNN) achieved state-of-the-art performance to model the network topology in cybersecurity tasks. However, only a few works exist using GNNs to tackle the intrusion detection problem. Besides, other promising avenues such as applying the attention mechanism are still under-explored. This paper presents two novel graph-based solutions for intrusion detection, the modified E-GraphSAGE, and E-ResGATalgorithms, which rely on the established GraphSAGE and graph attention network (GAT), respectively. The key idea is to integrate residual learning into the GNN leveraging the available graph information. Residual connections are added as a strategy to deal with the high-class imbalance, aiming at retaining the original information and improving the minority classes' performance. An extensive experimental evaluation of four recent intrusion detection datasets shows the excellent performance of our approaches, especially when predicting minority classes.

Motivation & Objective

  • Address the critical challenge of extreme class imbalance in intrusion detection, where malicious traffic is vastly outnumbered by normal traffic.
  • Explore the underutilized potential of graph neural networks (GNNs) in cybersecurity, particularly for modeling network flow topologies.
  • Enhance GNN performance on minority attack classes by integrating residual learning and attention mechanisms.
  • Develop and evaluate two novel GNN-based intrusion detection models: modified E-GraphSAGE and E-ResGAT, with edge-level features and residual connections.
  • Demonstrate the effectiveness of residual learning in preserving information and improving representation learning for imbalanced network intrusion detection.

Proposed method

  • Extend E-GraphSAGE by adding residual connections at the output layer to preserve original node representations and improve gradient flow.
  • Introduce E-ResGAT, a GAT-based model that combines edge features, graph attention mechanisms, and residual learning for better attention to similar or critical network flows.
  • Construct a heterogeneous graph from network flow data, mapping IP addresses and ports to nodes and flows to edges with associated features.
  • Apply t-SNE visualization to analyze learned node representations, evaluating class separability and clustering patterns in the latent space.
  • Use batch-wise training with a fixed batch size of 500, measuring training time and performance across four benchmark datasets.
  • Implement residual connections to stabilize training and enhance feature propagation, especially in neighborhoods dominated by normal traffic.

Experimental results

Research questions

  • RQ1Can residual learning improve the performance of GNNs in detecting minority attack classes within highly imbalanced intrusion detection datasets?
  • RQ2How does integrating the graph attention mechanism into edge-based GNNs affect classification performance and feature representation learning in intrusion detection?
  • RQ3To what extent do residual connections enhance the robustness of GNNs when applied to dynamic and imbalanced network traffic graphs?
  • RQ4How do the learned representations from E-GraphSAGE and E-ResGAT differ in terms of class separability and clustering structure, especially in the presence of class imbalance?
  • RQ5Can GNNs with residual and attention mechanisms outperform standard GNNs in real-world intrusion detection benchmarks?

Key findings

  • The modified E-GraphSAGE model achieved significantly better performance than the original E-GraphSAGE, particularly in detecting minority attack classes across all four datasets.
  • E-ResGAT outperformed both the original GAT and E-GraphSAGE models, showing superior performance on minority classes, especially on the ToN-IoT and CSE-CIC-IDS datasets.
  • On the ToN-IoT dataset, E-ResGAT achieved a macro F1-score of 0.154, with a training time of 7.17 seconds per batch (6.52 + 0.651 seconds for line graph transformation and training).
  • t-SNE visualizations revealed that models with residual connections (E-GraphSAGE Modified and E-ResGAT) produced more distinct and well-separated clusters, especially for minority classes, indicating better discriminative power.
  • On the highly imbalanced UNSW-NB15 dataset, GAT-based models failed to learn long curved cluster patterns observed in other datasets, likely due to attention mechanism limitations in extremely imbalanced neighborhoods.
  • The E-ResGAT model demonstrated consistent improvements in macro F1-score and class separability, confirming the effectiveness of combining residual learning with attention mechanisms in GNNs for intrusion detection.

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.