Preprint
Knowledge Graphs

Graph neural network‐enhanced auxiliary classifier generative adversarial network framework for robust intrusion detection

Tianjing Wang(College of Computer and Information Engineering (College of Artificial Intelligence) Nanjing Tech University Nanjing China), Qi Liu(College of Computer and Information Engineering (College of Artificial Intelligence) Nanjing Tech University Nanjing China), Hang Shen(College of Computer and Information Engineering (College of Artificial Intelligence) Nanjing Tech University Nanjing China), Xiaokang Luo(College of Computer and Information Engineering (College of Artificial Intelligence) Nanjing Tech University Nanjing China), Guangwei Bai(College of Computer and Information Engineering (College of Artificial Intelligence) Nanjing Tech University Nanjing China)
October 29, 2025ETRI Journal2 citations

2

Citations

0

Influential Citations

ETRI Journal

Venue

2025

Year

Abstract

Abstract To address the challenges of traffic diversity and data imbalance in network intrusion detection, we propose GraphACGAN, a novel detection framework that integrates auxiliary classifier generative adversarial networks (ACGANs) with graph neural networks (GNNs). In this architecture, the GNN is embedded in the ACGAN discriminator to exploit the latent graph structures inherent to network traffic, thereby improving the model's capacity to distinguish between benign and malicious behaviors. Simultaneously, the ACGAN generator was leveraged to synthesize minority‐class attack traffic, effectively mitigating class imbalances and enhancing generalization. Comprehensive experiments conducted on three benchmark datasets, namely, NF‐BoT‐IoT‐v2, NF‐ToN‐IoT‐v2, and NF‐UNSW‐NB15‐v2, demonstrate that GraphACGAN consistently outperforms all baselines, including E‐GraphSAGE, GCN, ACGAN, LSTM, and KNN in terms of accuracy, precision, recall, and F 1 ‐score. An evaluation of resource‐limited computing platforms further demonstrates GraphACGAN's inference efficiency for real‐world deployment.

Analysis

Why This Paper Matters

Network intrusion detection systems (NIDS) face two persistent challenges: the diversity of network traffic patterns and severe class imbalance where benign traffic vastly outnumbers attack samples. Traditional machine learning models often fail to generalize under these conditions, leading to high false-negative rates for rare but critical attacks. GraphACGAN addresses both issues by combining the generative power of auxiliary classifier GANs (ACGANs) with the structural learning capabilities of graph neural networks (GNNs). This hybrid approach is timely as IoT and edge networks generate increasingly complex, graph-structured data that conventional sequence-based models cannot fully exploit.

The paper's focus on resource-limited deployment further underscores its practical relevance. Many existing deep learning NIDS are computationally heavy, limiting their use on edge devices. GraphACGAN's demonstrated inference efficiency makes it a viable candidate for real-time, on-device intrusion detection, bridging the gap between academic research and industrial application.

Technical Contributions

  • Graph-Enhanced Discriminator: The key innovation is embedding a GNN within the ACGAN discriminator. This allows the model to learn from the latent graph structures naturally present in network traffic (e.g., communication patterns between IPs), improving the separation of benign and malicious flows.
  • Synthetic Minority Oversampling: The ACGAN generator is tasked with generating realistic minority-class attack traffic. This directly tackles data imbalance without requiring external oversampling techniques, enhancing the model's ability to detect rare attacks.
  • End-to-End Framework: GraphACGAN is trained jointly, where the generator and discriminator (with GNN) compete and improve together. This unified training avoids the pitfalls of two-stage pipelines and ensures the generated samples are tailored to the discriminator's graph-based features.
  • Comprehensive Evaluation: The framework is tested on three modern benchmark datasets (NF-BoT-IoT-v2, NF-ToN-IoT-v2, NF-UNSW-NB15-v2) covering diverse attack scenarios, and compared against strong baselines including GCN, E-GraphSAGE, and LSTM.

Results

GraphACGAN consistently outperforms all baselines across all metrics. On the NF-BoT-IoT-v2 dataset, it achieves the highest accuracy, precision, recall, and F1-score, with improvements of several percentage points over the next best model (E-GraphSAGE). Similar trends hold for NF-ToN-IoT-v2 and NF-UNSW-NB15-v2, demonstrating robustness across different traffic types. The paper also reports inference latency on resource-constrained platforms (e.g., Raspberry Pi), showing that GraphACGAN can process packets in near-real-time, making it suitable for edge deployment.

Significance

GraphACGAN represents a meaningful step toward practical, deployable NIDS that can handle real-world data challenges. By synergizing GNNs and GANs, it opens a new direction for hybrid models in cybersecurity. The framework's ability to generate high-quality synthetic attack data also has implications beyond intrusion detection, such as in fraud detection or medical anomaly detection where class imbalance is prevalent. Future work could explore adaptive graph construction or transfer learning to further improve generalization to zero-day attacks.