Generative Active Adaptation

Adapting network intrusion detection to concept drift and class imbalance with minimal labeling

Generative Active Adaptation

Overview

Generative active adaptation is a framework for keeping ML-based network intrusion detection systems (NIDS) accurate as traffic and attacks change. It combines active learning, which selects the most informative samples for labeling, with deep generative models that synthesize additional samples for rare and drifted classes. The end-to-end framework is called NetGuard in the paper.

The Problem

ML-based intrusion detection degrades in practice for two reasons that compound one another:

  • Concept Drift: The statistical behavior of both benign and malicious traffic evolves. A classifier trained on one year of a well-known intrusion dataset saw its F1 score fall from 0.99 to 0.61 on the following year’s data
  • Class Imbalance: Benign samples vastly outnumber malicious ones, particularly for rare or emerging attack types
  • Labeling Cost: Labeling network traffic is labor-intensive, especially for evolving and rare attacks
  • Limits of Uncertainty Sampling: Uncertainty-based active learning struggles to select informative attack samples when most of the drifting traffic is benign

What It Does

The framework operates as a closed loop between a labeled training set and an unlabeled testing set:

  1. Density-Aware Dataset Prior Selection: Fits Gaussian mixture models to the labeled and unlabeled data and selects, within a labeling budget, the unlabeled samples that are most informative about where the distribution has shifted
  2. Labeling: The selected samples are sent to an oracle or human annotator
  3. Conditional Data Augmentation: Deep generative models conditionally synthesize diverse samples from the labeled priors, augmenting underrepresented regions of the feature space
  4. Model Update: The classifier is retrained on the expanded training set

Key Features

  • Handles Drift and Imbalance Together: Addresses both problems in one framework, for multi-class intrusion detection
  • Low Labeling Budget: Evaluated with labeling budgets of 0.1%, 0.5%, and 1% of the target data
  • Generative Backbones: Evaluated with tabular generative models (TVAE and RealTabFormer)

Results

Evaluated on simulated IDS data (CIC-IDS 2017/2018) and a real-world ISP dataset (UGR’16):

  • Overall F1-score improves from 0.60 (without adaptation) to 0.86
  • Rare attacks on CIC-IDS 2018 improve substantially: Infiltration from 0.001 to 0.30, Web Attack from 0.04 to 0.50, and FTP-BruteForce from 0.00 to 0.71

Resources

  • LEAF: Navigating concept drift in cellular networks

Citation

@inproceedings{gupta2026genadapt,
  title={Generative Active Adaptation for Drifting and Imbalanced Network Intrusion Detection},
  author={Gupta, Ragini and Liu, Shinan and Zhang, Xinchen and Zhang, Ruixiao and Benkraouda, Hadjer and Hu, Xinyue and Cao, Phuong and Feamster, Nick and Nahrstedt, Klara},
  booktitle={ACM International Conference on emerging Networking EXperiments and Technologies (CoNEXT)},
  year={2026}
}