Generative Adversarial Classification Network with Application to Network Traffic Classification

Rozhina Ghanavi, Ben Liang, Ali Tizghadam · DOI

TL;DR

This paper introduces the Generative Adversarial Classification Network (GACN), a novel deep learning model that jointly imputes missing data and performs classification, optimizing directly for classification accuracy. An extension, SS-GACN, handles partially labeled data, outperforming existing methods in network traffic classification tasks.

What Problem Does This Paper Address?

Machine learning models thrive on complete, informative datasets. However, real-world data, especially in areas like network traffic classification, frequently suffers from missing values. Traditional imputation methods often struggle to preserve the integrity of data crucial for accurate classification. Existing approaches typically impute data first and then classify, failing to align the imputation process with the ultimate goal of maximizing classification performance. This disconnect can lead to suboptimal imputation of features that are actually important for distinguishing between classes, ultimately hindering classification accuracy.

Methods

The core innovation is the Generative Adversarial Classification Network (GACN). GACN integrates three key neural network components:

  • Generator Network (G): This network takes noisy input and attempts to generate realistic values for missing data features.
  • Discriminator Network (D): Similar to standard GANs, this network tries to distinguish between real and imputed data features.
  • Classification Network (A): This network performs the actual classification task.

What makes GACN novel is its joint optimization strategy. Instead of separate imputation and classification steps, GACN uses a weighted loss function that considers the performance of all three networks. This allows the generator to learn to impute features that are most beneficial for the classifier, directly optimizing for classification accuracy. The training involves an iterative three-step process: updating the discriminator and classifier, then updating the generator based on their feedback.

An extension, Semi-Supervised GACN (SS-GACN), is also proposed. This addresses scenarios where not all data samples are labeled. SS-GACN can leverage both labeled and unlabeled data to improve imputation and classification, making it more robust when labeled data is scarce.

Datasets

The authors used a combination of two real-world network traffic datasets:

  • ISCX VPN-nonVPN [18, 19]
  • ISCX Tor-nonTor [20, 21]

These datasets were combined to create a flow dataset for binary QoS classification (delay-sensitive vs. delay-tolerant). To simulate missing data, they started with a complete dataset and then introduced artificial random missingness, assuming a Missing At Random (MAR) model.

Key Insights and Ideas

  • Imputation for Classification: The most significant insight is that imputation should not be a standalone preprocessing step but should be intrinsically linked to the classification objective. By jointly optimizing, GACN can prioritize imputing features that are critical for accurate classification.
  • Feedback Loop for Feature Importance: The classification network provides crucial feedback to the generator, guiding it to impute more carefully for features that have a higher impact on classification accuracy. This is a departure from traditional methods that treat all features equally during imputation.
  • Robustness with Partial Labels: The SS-GACN extension demonstrates that even a small amount of labeled data can significantly boost performance in imputation and classification tasks when combined with unlabeled data, making the approach more practical for real-world scenarios.

Key Results

  • Improved Classification Accuracy: GACN consistently achieved higher classification accuracy compared to GAIN, MICE, and mean imputation across various missingness rates (up to 60%). For instance, at 20% missingness, GACN achieved 0.9022 ± 0.0024 accuracy, outperforming GAIN (0.8575 ± 0.0049).
  • Faster Convergence: GACN demonstrated faster convergence to higher accuracy levels compared to GAIN, especially when using a higher classification loss weight (γ).
  • Accurate Imputation of Important Features: Analysis of imputation Root Mean Squared Error (RMSE) showed that GACN imputes more important features more accurately than GAIN and mean imputation.
  • SS-GACN Performance: In scenarios with only 10% labeled data and 20% missing features, SS-GACN significantly outperformed both GACN (which struggled without labels) and GAIN (which doesn't use labels).

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the iterative nature of GANs and the three-network architecture suggest a potentially higher computational cost compared to simpler imputation methods.
  • Hyperparameter Tuning: The performance of GACN and SS-GACN is sensitive to hyperparameter choices (α, β, γ), as highlighted in the experiments. Finding optimal hyperparameters might require extensive tuning.
  • Future Work: The authors suggest that SS-GACN is a more general algorithm and could be applied to other domains where partially labeled data is common. Further exploration of its applicability and potential extensions to handle different types of missing data mechanisms (beyond MAR) could be valuable.

Summary updated

BibTeX
@inproceedings{ghanavi2021generative,
  author = {Rozhina Ghanavi and Ben Liang and Ali Tizghadam},
  title = {{Generative Adversarial Classification Network with Application to Network Traffic Classification}},
  booktitle = {GLOBECOM},
  year = {2021},
  doi = {10.1109/globecom46510.2021.9685899},
}
Figure