[Paper Review] Training a Bidirectional GAN-based One-Class Classifier for Network Intrusion Detection
This paper proposes a bidirectional GAN-based one-class classifier for network intrusion detection that decouples generator and discriminator training to improve synthetic data quality in imbalanced text-based datasets. By allowing the generator and encoder to train more intensively than the discriminator, the model enhances semantic fidelity in generated network traffic, achieving 92.68% F1-score on NSL-KDD, outperforming existing GAN and autoencoder methods.
The network intrusion detection task is challenging because of the imbalanced and unlabeled nature of the dataset it operates on. Existing generative adversarial networks (GANs), are primarily used for creating synthetic samples from reals. They also have been proved successful in anomaly detection tasks. In our proposed method, we construct the trained encoder-discriminator as a one-class classifier based on Bidirectional GAN (Bi-GAN) for detecting anomalous traffic from normal traffic other than calculating expensive and complex anomaly scores or thresholds. Our experimental result illustrates that our proposed method is highly effective to be used in network intrusion detection tasks and outperforms other similar generative methods on the NSL-KDD dataset.
Motivation & Objective
- To address the limitation of standard GANs in imbalanced text-based network intrusion detection, where strong generator-discriminator synchronization fails due to differing semantic representations.
- To improve the quality of synthetic network traffic data by relaxing the training synchronization between generator and discriminator.
- To develop a one-class binary classifier using the trained encoder and discriminator to detect anomalies without complex anomaly scoring.
- To outperform existing autoencoder and GAN-based models in detecting network intrusions on the NSL-KDD dataset.
Proposed method
- Introduces a bidirectional GAN (Bi-GAN) framework where generator and discriminator training iterations are decoupled, allowing the generator and encoder to train more intensively.
- Employs a cross-entropy loss-based stopping condition for the generator, ensuring it reaches a high-quality synthetic data generation state before discriminator updates.
- Uses the encoder to map real network traffic samples into a low-dimensional latent space, preserving semantic relationships.
- Trains the discriminator on both real samples and generator-produced synthetic samples to distinguish between real and fake traffic.
- Constructs a one-class binary classifier using the trained encoder and discriminator to classify traffic as normal or anomalous based on binary output.
- Applies the model to the NSL-KDD dataset, using PCA and latent space visualization to analyze distributional fidelity.
Experimental results
Research questions
- RQ1Can decoupling generator and discriminator training improve the quality of synthetic network traffic data in imbalanced, text-based intrusion detection datasets?
- RQ2How does relaxing the training synchronization between generator and discriminator affect the semantic fidelity of generated samples?
- RQ3Can a one-class binary classifier based on the trained encoder-discriminator pair effectively detect anomalies without computing complex anomaly scores?
- RQ4Does the proposed method outperform existing autoencoder and GAN-based models in terms of F1-score and detection accuracy on the NSL-KDD dataset?
Key findings
- The proposed model achieves a 91.12% accuracy, 87.27% precision, 98.81% recall, and 92.68% F1-score on the NSL-KDD test set.
- The model's AUC-ROC score reaches 0.953, indicating strong discriminative performance between normal and anomalous traffic.
- The generator, trained with more iterations than the discriminator, produces synthetic samples with higher semantic fidelity, as confirmed by latent space visualization.
- The one-class binary classifier successfully detects anomalies without requiring threshold or anomaly score computation, simplifying deployment.
- The model outperforms all benchmarked methods, including AE, DAE, AnoGAN, BiGAN, and other GAN variants, on the NSL-KDD dataset.
- The method demonstrates superior performance on imbalanced data, particularly in detecting rare attack types with high recall (98.81%).
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.