← Lab /AI/ML

Multi-layer ensemble with autoencoder improves NIDS robustness to adversarial attacks

The proposed multilayer defense increases resilience of ML-based NIDS against GAN and FGSM adversarial traffic

AI/ML arXiv 11 Mar 2026 Defense Prototype evidence

Published as “Enhancing Network Intrusion Detection Systems: A Multi-Layer Ensemble Approach to Mitigate Adversarial Attacks”

Why it matters

The hybrid approach can be adopted in operational NIDS to substantially improve detection of adversarially crafted traffic without prohibitive computational overhead.

Summary

The proposed two-layer hybrid NIDS (stacking classifier + autoencoder with adversarial training) attains roughly 92% detection on NSL-KDD and 99% on UNSW-NB15 and maintains the highest F1-scores (84.23% unmodified, 77.24% under GAN, 89.22% under FGSM) compared to standard ML baselines, showing strong robustness to both GAN- and FGSM-generated attacks; the evidence comes from benchmark experiments on two public datasets.

What they found 2

  1. The two-layer classifier achieved the highest F1-scores across all conditions on NSL-KDD.

    “The proposed two-layer classifier, on the other hand, provided the highest F1-score, achieving 84.23%, 77.24% and 89.22%, respectively, for the unmodified, GAN and FGSM conditions.”

  2. Detection rates under GAN attacks were the best among all models, reaching 87.55% on NSL-KDD and 91.24% on UNSW-NB15.

    “the proposed model achieves the highest detection rates under GAN attacks, reaching an DR of 87.55% on the NSL-KDD 91.24% on the UNSW-NB15 datasets”

Caveats 3

  • While the GAN-based approach does incur a significant decay of 6.99%, it still outperforms KNN, which was the second best model in terms of F1-score.
  • Compared to the previous dataset, the results are slightly lower across all conditions.
  • Ensuring the robustness of NIDS requires regular retraining with emerging attack strategies.

What’s new here 4

  • Combines a stacking ensemble with an autoencoder layer and adversarial training in a single two-layer defense.
  • Trains the GAN generator and discriminator together with a voting classifier to produce realistic adversarial traffic.
  • Evaluates cross-testing where adversarial samples from one method (FGSM) are used to test a model trained on another (GAN).
  • Provides an ablation study quantifying the contribution of each component (stacking, autoencoder, adversarial training).