Continual Learning with Strategic Selection and Forgetting for Network Intrusion Detection

Xinchen Zhang, Running Zhao, Zhihan Jiang, Handi Chen, Yulong Ding, Edith C. H. Ngai, Shuang-Hua Yang

TL;DR

This paper introduces SSF, a novel continual learning approach for Intrusion Detection Systems (IDS) that tackles concept drift in dynamic network environments. SSF strategically selects representative new samples and intelligently forgets outdated data to maintain high detection accuracy and adapt to evolving threats with minimal labeling effort.

What Problem Does This Paper Address?

Intrusion Detection Systems (IDS) are vital for cybersecurity, but they struggle in dynamic network environments where both normal user behavior and attack patterns constantly change. This phenomenon, known as "concept drift," means that models trained on old data can quickly become obsolete, leading to missed threats or false alarms. While continual learning aims to address this by updating models over time, existing methods often fail to effectively capture the "drifted" patterns or excessively preserve old, irrelevant knowledge, hindering adaptability. This paper tackles the challenge of building IDSs that can continuously learn and adapt to concept drift efficiently, especially under limited labeling resources.

Methods

The core of SSF lies in its two main innovations: Strategic Sample Selection and Strategic Forgetting.

  • Strategic Sample Selection: Instead of randomly picking new data for training, SSF prioritizes samples that best represent the "drifted" patterns. It does this in two phases:
  • Common Distribution Representation: It uses already labeled old samples to represent the stable, common parts of the data distribution, saving labeling costs.
  • Distribution Drift Representation: It then focuses on selecting new samples that specifically capture the evolving or "drifted" aspects of the data. This ensures the model learns the most critical changes.
  • Strategic Forgetting: When significant concept drift is detected (using a K-S test), SSF intelligently discards outdated samples from its memory buffer. This frees up space for newer, more relevant data, preventing the model from being bogged down by obsolete knowledge and facilitating faster adaptation.

The overall workflow involves:

  1. Drift Detection: Using the K-S test to identify significant changes in data distribution.
  2. Sample Selection: Applying the strategic selection algorithm to identify valuable new samples.
  3. Memory Buffer Update: Incorporating selected new samples and strategically forgetting old ones based on drift detection.
  4. Model Fine-Tuning: Updating the IDS model, with a weighting strategy that gives more importance to new samples to accelerate adaptation to concept drift.

Datasets

The paper evaluates SSF on two widely-used network intrusion detection datasets:

  • NSL-KDD: A benchmark dataset for network intrusion detection.
  • UNSW-NB15: Another comprehensive dataset for network intrusion detection.

The experiments simulate a continual learning scenario where only a small percentage (initially 20% of training data, then incrementally updated with 1% ground truth labels) of new samples are labeled.

Key Insights and Ideas

  • Focusing on the "Drift" is Key: The paper argues that simply treating concept drift as part of the overall data distribution is insufficient. Actively identifying and prioritizing samples that represent the drift itself is crucial for effective adaptation.
  • Intelligent Forgetting is as Important as Learning: Preserving old knowledge is important to avoid catastrophic forgetting, but blindly keeping all old data can be detrimental. SSF's strategic forgetting mechanism allows the model to shed outdated information, making room for and prioritizing new, relevant patterns.
  • Labeling Efficiency Matters: In real-world scenarios, obtaining labeled data is expensive. SSF's strategic selection significantly reduces the need for extensive labeling by intelligently choosing which samples are most valuable to label, achieving high performance with much less labeled data.
  • Dynamic Environments Require Dynamic Solutions: Static models are insufficient for evolving threats. Continual learning methods need to be sophisticated enough to handle the non-stationary nature of network traffic, and SSF offers a promising direction.

Key Results

  • State-of-the-Art Performance: SSF consistently outperforms several established continual learning baselines (AOC-IDS, ER, AGEM, LwF, EWC) and a static model on both NSL-KDD and UNSW-NB15 datasets in terms of accuracy and F1 score.
  • Significant Labeling Resource Reduction: SSF achieves performance levels comparable to other methods using significantly fewer labeled samples. For instance, it achieves similar performance on NSL-KDD with 0.1% labeled data as other methods achieve with 5% (a ~50x reduction), and on UNSW-NB15 with 1% labeled data compared to 20% (a ~20x reduction).
  • Robustness Across Datasets: SSF demonstrates uniformly strong performance across both datasets, unlike some baselines that excel on one but falter on the other.
  • Visual Evidence of Better Feature Separation: t-SNE visualizations show that SSF leads to a clearer separation between normal and abnormal traffic features compared to AOC-IDS, indicating better learning of discriminative patterns.
  • Ablation Studies Confirm Contributions: Experiments without strategic sample selection or strategic forgetting show a notable decrease in performance, highlighting the importance of both components.

Limitations and Future Work

  • Memory Buffer Size: While SSF manages memory efficiently, the fixed memory buffer size is a constraint inherent to many continual learning methods.
  • Future Work: The paper suggests that the proposed SSF framework can be extended to other domains beyond network intrusion detection that experience concept drift. Further research could explore adaptive memory buffer sizing or more sophisticated drift detection mechanisms.

Summary updated

BibTeX
@inproceedings{zhang2025continual,
  author = {Xinchen Zhang and Running Zhao and Zhihan Jiang and Handi Chen and Yulong Ding and Edith C. H. Ngai and Shuang-Hua Yang},
  title = {{Continual Learning with Strategic Selection and Forgetting for Network Intrusion Detection}},
  booktitle = {INFOCOM},
  year = {2025},
  url = {https://openreview.net/forum?id=L6tnTrVEhd},
}
Figure