mlsanityData to 7 Oct 2026

Applying Self-supervised Learning to Network Intrusion Detection for Network Flows with Graph Neural Network

arXiv 2403.01501 ↗First posted 3 Mar 2024cs.LG cs.CRcited by 7

Not on the map. Why?

Abstract (arXiv)

Graph Neural Networks (GNNs) have garnered intensive attention for Network Intrusion Detection System (NIDS) due to their suitability for representing the network traffic flows. However, most present GNN-based methods for NIDS are supervised or semi-supervised. Network flows need to be manually annotated as supervisory labels, a process that is time-consuming or even impossible, making NIDS difficult to adapt to potentially complex attacks, especially in large-scale real-world scenarios. The existing GNN-based self-supervised methods focus on the binary classification of network flow as benign or not, and thus fail to reveal the types of attack in practice. This paper studies the application of GNNs to identify the specific types of network flows in an unsupervised manner. We first design an encoder to obtain graph embedding, that introduces the graph attention mechanism and considers the edge information as the only essential factor. Then, a self-supervised method based on graph contrastive learning is proposed. The method samples center nodes, and for each center node, generates subgraph by it and its direct neighbor nodes, and corresponding contrastive subgraph from the interpolated graph, and finally constructs positive and negative samples from subgraphs. Furthermore, a structured contrastive loss function based on edge features and graph local topology is introduced. To the best of our knowledge, it is the first GNN-based self-supervised method for the multiclass classification of network flows in NIDS. Detailed experiments conducted on four real-world databases (NF-Bot-IoT, NF-Bot-IoT-v2, NF-CSE-CIC-IDS2018, and NF-CSE-CIC-IDS2018-v2) systematically compare our model with the state-of-the-art supervised and self-supervised models, illustrating the considerable potential of our method. Our code is accessible through https://github.com/renj-xu/NEGSC.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 23 of its 58 references that are in the map. First posted on arXiv 3 Mar 2024.

Builds on

23 of 58 references.

References · 23

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  2. 2017Graph Attention Networkscited by 8,854
  3. 2017Inductive Representation Learning on Large Graphscited by 6,284
  4. 2018Deep Graph Infomaxcited by 1,101
  5. 2021How Attentive are Graph Attention Networks?cited by 818
  6. 2018Computational Optimal Transportcited by 765
  7. 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 420
  8. 2018Adversarial Attacks on Neural Networks for Graph Datacited by 395
  9. 2021Graph Self-Supervised Learning: A Surveycited by 289
  10. 2019Deep Graph Library: A Graph-Centric, Highly-Performant Package for Graph Neural Networkscited by 241
  11. 2021Self-Supervised Learning of Graph Neural Networks: A Unified Reviewcited by 184
  12. 2020Graph Optimal Transport for Cross-Domain Alignmentcited by 103
11 more
  1. 2018Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics: Bot-IoT Datasetcited by 98
  2. 2021AutoGCL: Automated Graph Contrastive Learning via Learnable View Generatorscited by 73
  3. 2021E-GraphSAGE: A Graph Neural Network based Intrusion Detection System for IoTcited by 55
  4. 2020NetFlow Datasets for Machine Learning-based Network Intrusion Detection Systemscited by 45
  5. 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
  6. 2022Anomal-E: A Self-Supervised Network Intrusion Detection System based on Graph Neural Networkscited by 25
  7. 2020Automating Botnet Detection with Graph Neural Networkscited by 23
  8. 2021Evaluating Standard Feature Sets Towards Increased Generalisability and Explainability of ML-based Network Intrusion Detectioncited by 8
  9. 2022Generative Subgraph Contrast for Self-Supervised Graph Representation Learningcited by 8
  10. 2023ARGUS: Context-Based Detection of Stealthy IoT Infiltration Attackscited by 6
  11. 2023Protected or Porous: A Comparative Analysis of Threat Detection Capability of IoT Safeguardscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 1; 2026: 4.

7 papers.