WorksComputer Science
Network Intrusion Detection Adaptability under Spurious Labels: A Noise-Aware Few-Shot Class-Incremental Learning Framework
Abstract
Network Intrusion Detection Systems (NIDSs) must incrementally adapt to emerging attacks, even when only a limited amount of labeled network traffic is available. Consequently, Few-Shot Class-Incremental Learning (FSCIL)-based NIDSs have gained growing attention. However, existing FSCIL-based NIDSs are highly vulnerable to label noise in newly-observed attack classes. To address this limitation, we propose NAFN, a noise-aware FSCIL-based NIDS framework that reduces the impact of mislabeled data during incremental adaptation. NAFN consists of two components: (i) Noise Detection, which identifies and removes mislabeled biflows using noise-detection algorithms, and (ii) Feature Sampling, which estimates class-conditional embeddings from clean biflows, calibrates them with base-class statistics, and resamples synthetic features to recover the original biflow count. The framework follows the Rethink Few-Shot (RFS) teacher-student paradigm with lightweight nearest-neighbor or logistic regression classifiers, and various pretraining & memory selection strategies. Experiments on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID datasets show that NAFN effectively preserves prior knowledge and maintains strong incremental performance even under 50% label noise, consistently improving new-class F1-scores over non-denoised baselines, up to +52%, while being time-efficient and robust in cross-network and high-noise incremental settings. The implementation is publicly available to foster reproducibility.
Introduction
NETWORK Intrusion Detection Systems (NIDSs) play a critical role in safeguarding network security by monitoring traffic and detecting malicious activities. As intrusion techniques become increasingly sophisticated, NIDSs have evolved from early approaches based on port analysis and deep packet inspection to modern detection methods based on Machine Learning (ML) and Deep Learning (DL) [1]. However, traditional ML & DL-based NIDSs are typically trained on closed-world datasets, containing only known benign and attack traffic. In real-world network environments, however, new attacks continually emerge. Recent threat-intelligence reports confirm this trend, driven by ransomware and AI-enabled malicious campaigns. For instance, in Oct. 2025, organizations worldwide faced an average of 1,938 cyberattacks per week, an increase of 2% over the previous month and 5% compared to Oct. 2024 [2]. Consequently, NIDSs struggle to adapt to this ever-changing threat landscape, resulting in limited effectiveness in real deployments. To address this limitation, recent works have explored Class-Incremental Learning (CIL)-based NIDSs [3, 4] to continually learn new attacks while retaining previously acquired knowledge. Nonetheless, CIL suffers from the scarcity of labeled traffic samples for new attacks, particularly in the case of zero-day attacks. The integration of Few-Shot Learning (FSL) [5, 6] with CIL—i.e. Few-Shot Class-Incremental Learning (FSCIL)—has emerged as a promising research direction for attack-traffic detection. FSCIL-based NIDSs aim to incrementally classify new attacks with only a few labeled traffic samples (viz. few shots) without losing performance on previously learned classes.
Despite promising progress [7, 8, 9], existing FSCIL-based NIDS remain fragile in real-world network environments. Most studies assume that the few available samples from new attacks are accurately labeled, which rarely holds true. Unlike base-class datasets that are carefully collected and labeled in controlled settings, new-class attack samples are often gathered from uncontrolled network environments where labels are generated through heuristic rules, automated scripts, or weak supervision, making them prone to errors. Hence, label noise can severely degrade the performance of FSCIL-based NIDS. Since each new attack class contains only a few labeled traffic samples, every mislabeled instance can severely distort the feature distribution, degrading detection performance and introducing classification bias [10]. In contrast, large-sample learning can tolerate noise as its influence is diluted [11]. Although manual relabeling can mitigate this problem, it is costly and undermines the real-time responsiveness required for intrusion detection. Therefore, label noise remains a major challenge that limits the robustness and practical deployment of FSCIL-based NIDS.
In this paper, we propose NAFN, a Noise-Aware FSCIL-based NIDS framework designed to mitigate label noise and enhance robustness in real-world scenarios. NAFN introduces a Noise-Aware Module, consisting of two components: (i) noise detection and (ii) feature sampling. Specifically, the noise detector removes mislabeled traffic samples from new attacks, while the feature sampler generates calibrated embeddings from the remaining clean data to mitigate the impact of sample loss. Since this component is designed as a modular part of NAFN, it can accommodate different noise detection methods. To determine the most suitable choice, we evaluate several candidates, including Local Outlier Factor, Isolation Forest, Example-Level Curriculum Learning, and Prototype-Margin strategy. Ultimately, we adopt Prototype-Margin as the default option due to its superior stability and accuracy. For feature sampling, the module estimates the feature distribution of clean new-class samples (after noise detection) and generates new embeddings based on this distribution. To alleviate distribution bias under few-shot conditions, inspired by the literature on FSL [12], we further introduce a distribution calibration mechanism that leverages statistics from the base classes to align feature distributions of new and existing classes, thereby improving stability and generalization.
NAFN is trained in two stages. First, a base training phase, and then multiple incremental learning phases. During the base training phase, the model learns from the initial classes. When new attacks appear, NAFN performs incremental learning to quickly adapt. We adopt the Rethinking Few-Shot (RFS) approach [13], tailored to incremental learning [7], as the core mechanism enabling NAFN to adapt to new attacks. RFS employs a teacher–student distillation strategy: at each incremental phase, the model from the previous phase acts as the teacher to guide the student, while a small set of samples from old classes (viz. memory) is retained to prevent forgetting. This design enables rapid adaptation to new attacks while maintaining knowledge stability. To further enhance the representation capability of the base model, we explore several pretraining strategies, including reconstruction-based [5, 14], contrastive [15, 16], and hybrid methods [17]. In addition, we propose Mem+, which integrates various exemplar selection strategies to populate the memory. We consider the following strategies: Herding [18], Rainbow [19], and Random Sampling. To summarize, our main contributions are as follows.
We propose NAFN, a Noise-Aware Few-Shot Class-Incremental Learning framework for Network Intrusion Detection Systems (NIDS). It enables continual adaptation to novel attacks with few samples while effectively mitigating catastrophic forgetting, thus fulfilling the core goal of FSCIL-based NIDS. Experiments on three benchmark datasets (CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID) demonstrate that NAFN achieves superior performance in incremental adaptation.
We design a pluggable Noise-Aware Module to mitigate the impact of label noise. This module can identify and remove label noise in new attack traffic and generate new feature embeddings to restore the original data size. Under label noise conditions (noise levels ranging from 10% to 50%), experimental results show a significant performance improvement in F1-score for new attacks, up to +52% w.r.t. the baseline without denoising strategies.
We perform a comprehensive evaluation of NAFN under both individual and combined challenges of cross-network adaptation and label noise. The results show that NAFN achieves consistent and generalizable performance across heterogeneous network datasets and remains robust under severe noise, with the largest observed pAUC improvements reaching 13% for new attacks and 11% for previously unseen attacks in high-noise settings.
The rest of this paper is organized as follows. § 2 reviews recent works relevant to our study and positions our contribution within the existing literature. § 4 formalizes the problem of label noise on FSCIL-based NIDSs and defines our research questions and objectives. Sec. IV provides an overview of NAFN and details each of its components. § 7 describes the experimental setup, while Sec. VI presents a comprehensive evaluation of NAFN on three recent and public datasets. Finally, Sec. VII ends the paper.
Related Works
Background. In recent years, there has been growing research interest in applying ML, and later DL, as the core of AI-based NIDS [30]. Following this first wave, the research community has shifted its focus to addressing the main limitations of ML & DL [3, 31, 32]. Two challenges are particularly relevant, (i) poor performance against network attacks that were not seen during training [3, 4]; (ii) difficulty of gathering and labeling high-quality and up-to-date datasets, which leads to class imbalance, and, consequently, unsatisfactory results [5, 6]. To mitigate the first issue (i), CIL has emerged as a promising direction. Unlike conventional training, where models are retrained from scratch when new classes appear, CIL seeks to incrementally integrate new knowledge without forgetting. CIL approaches typically rely on strategies such as rehearsal, regularization, or dynamic architectures [33]. FSL has shown potential in dealing with the second issue (ii). FSL focuses on enabling models to generalize from a limited number of labeled samples by leveraging prior knowledge acquired from related tasks. FSL approaches typically rely on metric-learning, prototype-based classification, or meta-learning [34]. Efforts to integrate CIL and FSL—i.e. FSCIL—remain relatively underexplored in current literature [7, 8, 9], despite its practical advantages (e.g., rapid adaptation to new threats). In the computer vision domain, FSCIL has been more extensively investigated [35, 36, 37]. The common goal is to prepare models to recognize new classes by exploiting knowledge from previously learned ones. Existing approaches mainly differ in how they allocate and adapt the representation space. For instance, Tao et al. [35] propose a growing Neural Gas Network that dynamically expands its structure to accommodate new classes. Similarly, Zhou et al. [36] reserve embedding space in advance by assigning multiple virtual prototypes. More recently, Wang et al. [37] observe that new-class samples are often misclassified into semantically similar old classes. They leverage this property by calibrating new class prototypes through weighted combinations of old prototypes. In the field of network intrusion detection, FSCIL still faces critical challenges. Particularly, their reliance on only a few labeled samples for adapting to new traffic classes makes them highly vulnerable to label noise. Such noise may arise unintentionally (e.g., labeling in non-controlled
| Reference | Year | FSCIL Used | FSCIL Approach | FSCIL CN | Noise-Aware Capability Present | Denoising Approach | Strat. | Noise-Aware Capability CN | Dataset | Raw | Early | Input |
| Wang et al. [20] | 2021 | ✓ | MAML + MM | ✗ | ✗ | – | – | ✗ | NSL-KDD | ✗ | ✗ | Flow-based statistics |
| Abrishami et al. [21] | 2022 | ✗ | – | ✗ | ✓ | DT + AL w/ US | ✗ | ✗ | IoT-NID | ✗ | ✗ | Flow-based statistics |
| Yuan et al. [22] | 2023 | ✗ | – | ✗ | ✓ | AE + KM + BAL | ✗ | [symbol] | Malicious TLS, CIC-IDS2017, CICMalDroid-2020, IoT-23 | ✓ | ✗ | Per-packet informative fields |
| Yuan et al. [23] | 2023 | ✗ | – | ✗ | ✓ | MCRe | ✗ | [symbol] | Malicious TLS, CIC-IDS2017, CICMalDroid-2020, NSL-KDD, LITNET-2020, UNSW-NB15, IoT-23 | ✗ | ✗ | Flow-based statistics |
| Hallaji et al. [24] | 2023 | ✗ | – | ✗ | ✓ | GAN | ✗ | [symbol] | UNSW-NB15, NIMS | ✗ | ✗ | Flow-based statistics |
| Du et al. [8] | 2024 | ✓ | PN + Mem + PL | ✗ | ✗ | – | – | ✗ | CIC-IDS2017, CSE-CIC-IDS2018 | ✓ | ✓ | Per-packet payload |
| Wang et al. [25] | 2024 | ✓ | MAML + MMD | ✗ | ✗ | – | – | ✗ | CIC-IDS2017, CSE-CIC-IDS2018 | ✗ | ✗ | Flow-based statistics |
| Hosseini and Shi [26] | 2024 | ✓ | FZ + GAT | ✗ | ✗ | – | – | ✗ | NSL-KDD | ✗ | ✗ | Flow-based statistics |
| Cao et al. [27] | 2025 | ✓ | MAML + Mem | ✗ | ✗ | – | – | ✗ | CIC-IDS2017 | ✗ | ✗ | Flow-based statistics |
| Cerasuolo et al. [9] | 2025 | ✓ | FT, FT + Mem, LwF, EWC, EEIL, LUCIR, iCaRL+, BiC | ✗ | ✗ | – | – | ✗ | IoT-23, IoT-NID, TON-IoT, Edge-IIoT | ✓ | ✓ | Per-packet informative fields |
| Meng et al. [28] | 2025 | ✗ | – | ✗ | ✓ | PM | ✗ | [symbol] | Malicious TLS, CIC-IDS2017, CSE-CIC-IDS2018, CIC-Darknet2020 | ✗ | ✗ | Flow-based statistics |
| Zhan et al. [29] | 2025 | ✗ | – | ✗ | ✓ | TEO + KM + CC | ✗ | [symbol] | ISCXVPN2016, CrossPlatform, USTC-TFC2016, Malware2023 | ✓ | ✓ | Per-packet L2 payload |
| Di Monda et al. [7] | 2024 | ✓ | (MN, PN, MON, FT, FZ, RFS) + Mem | ✓ | ✗ | – | – | ✗ | CSE-CIC-IDS2018, IoT-NID | ✓ | ✓ | Per-packet informative fields |
| This work | 2026 | ✓ | (RS, CS, HS)++ RFS + Mem+ | ✓ | ✓ | (LOF, IF, E-CL, PM) + Aug | [symbol] | ✓ | CSE-CIC-IDS2018, IoT-NID, Edge-IIoT | ✓ | ✓ | Per-packet informative fields |
Table 1. Related studies focusing on network intrusion detection with FSCIL and noisy labels. Papers are listed in chronological order by publication year. The final row provides an overview of the current work. The meaning of acronyms is provided at the bottom of the table.
Approach—Few-Shot Class-Incremental Learning approach used; Denoising Approach—Denoising approach used; Strat.—Strategy related to the noise-aware capability; CN—Whether the paper performs Cross-Network analyses; Raw—Whether raw input data is used; Early—Whether early traffic classification is used. Acronyms: Active Learning (AL) with Uncertainty Sampling (AL w/ US), Autoencoder (AE), Augmentation (Aug), Bias Correction (BiC), Boundary Augmentation Loss (BAL), Confidence-based Correction (CC), Contrastive Strategy (CS), Decision Tree (DT), Elastic Weight Consolidation (EWC), End-to-End Incremental Learning (EEIL), Example-Level Curriculum Learning (E-CL), Fine-Tuning (FT), Freezing (FZ), Generative Adversarial Network (GAN), Graph Attention Network (GAT), Hybrid Strategy (HS), Incremental Classifier and Representation Learning (iCaRL+), Isolation Forest (IF), K-Means (KM), Learning a Unified Classifier Incrementally via Re-balancing (LUCIR), Matching Without Forgetting (LwF), Local Outlier Factor (LOF), Maximum Mean Discrepancy (MMD), Memory (Mem), MetaOpNet (MON), Model-Agnostic Meta-Learning (MAML), Model Merging (MM), Multidimensional Constraint Representation (MCRe), Matching Networks (MN), Prototype-Margin (PM), Prototypical Networks (PN), Projection Layer (PL), Reconstruction-based Strategy (RS), Rethinking Few-Shot (RFS), Transformer Encoder-Only (TEO). Symbols: ✓ passing; ✗ lacking; [symbol] denoising approach that makes the model more robust to label noise, [symbol] denoising approach that corrects mislabeled samples; “–” indicates that the field is not relevant for that paper.
environments) or through adversarial manipulation (e.g., label-flipping attacks). Although the literature on label noise in non-FSCIL contexts is growing [21, 22], the availability of larger datasets in these contexts partially mitigates its impact, making it less critical than in FSCIL scenarios.
Literature Review
Table I categorizes the most relevant works that employ FSCIL and address the label noise problem. Research on FSCIL is still in its early stages; the first contribution was proposed in 2021 [20], while most subsequent works appeared between 2024 and 2025 [7, 9, 25, 26, 27]. Studies that address label noise in the context of NIDS remain relatively limited, reflecting the novelty of this research effort [21, 22, 23, 24, 28, 29]. Notably, to the best of our knowledge, no existing work has yet tackled label noise within the FSCIL setting.
Among the FSCIL approaches explored in the literature, the most common is Model-Agnostic Meta-Learning (MAML) [38], originally designed for FSL applications. Works adopting MAML [20, 25, 27] extend it with strategies to handle forgetting and add new classes. In particular, Wang et al. [20] enable MAML for FSCIL through a model growth technique. Wang et al. [25] use Maximum Mean Discrepancy (MMD) to alleviate forgetting by selecting models with similar feature distributions. Cao et al. [27] adopt memory
replay of previous classes during the incremental task. Unlike the aforementioned works, Du et al. [8] adapt Prototypical Networks (PN) [39] to FSCIL using memory replay [27] and introduce session-specific projection layers to improve traffic-feature discriminability. Cerasuolo et al. [9] evaluate several CIL approaches from computer vision and traffic classification under few-shot constraints. In our previous work [7], we adapt a set of FSL approaches to FSCIL by integrating memory replay to mitigate forgetting.
Regarding denoising approaches, state-of-the-art works can be grouped into two strategies. The first aims to build models robust to spurious labels. Yuan et al. [22] design both the model architecture and the loss function to enhance robustness. They employ an Autoencoder coupled with a K-Means to cluster samples in unsupervised fashion, thus reducing the impact of noisy annotations. A Boundary Augmentation Loss is then introduced to regularize decision boundaries. Similarly, Zhan et al. [29] use K-Means to detect noisy labels and correct them based on prediction confidence. They use a Transformer encoder-only for noise robustness. Hallaji et al. [24] adopt a generative approach to inject artificial noise, training classifiers on perturbed samples, viz. vaccination.
The second strategy of works focuses on *correcting mislabeled samples. Specifically, Abrishami et al. [21] use Decision Trees to detect potential label errors, assuming minority labels in a leaf are likely incorrect, and leverage Active Learning to have humans verify uncertain cases. Yuan et al. [23] and Meng et al. [28] both leverage local density and feature similarity to identify reliable prototypes for relabeling. In both papers, samples are reassigned based on their similarity to class prototypes. Yuan et al. [23] introduce a custom loss to preserve class separability, while Meng et al. [28] refine prototype selection by choosing high-density yet diverse samples. Table I highlights that the current literature lacks systematic cross-network analyses [31, 40] in FSCIL and label noise scenarios (e.g., models are trained on one dataset, representing a network environment, and tested on another, or incremental classes belong to a different dataset than the one used for pretraining). The only exception [7] performs a cross-network incremental analysis for FSCIL approaches. To the best of our knowledge, no existing work addresses cross-network studies under noisy-label conditions.
Regarding the datasets, we observe that CIC-IDS2017 and CSE-CIC-IDS2018 are among the most popular choices [7, 8, 22, 23, 25, 27, 28]. Several IoT-oriented datasets are also frequently adopted (i.e. IoT-23, IoT-NID, and Edge-IIoT [7, 9, 21, 22]). While NSL-KDD remains popular [20, 23, 26], despite being over two decades old, it no longer reflects modern network traffic and offers limited relevance for evaluating contemporary NIDS.
Table I also flags the studies that employ raw input [7, 8, 9, 22, 29], i.e. unprocessed network data, in contrast to handcrafted or statistical features. Raw input is naturally aligned with DL approaches, which are capable of automatically extracting meaningful representations. On the other hand, works that rely on statistical features introduce additional pre-processing steps, increasing computational overhead. Furthermore, they weaken the “promise” of end-to-end DL pipelines requiring little or no human intervention.
Finally, the table marks the works adopting an early input strategy [7, 8, 9, 29]. This approach leverages only the initial portion of a traffic object (e.g., the first packets or bytes of the payload) as input, enabling early detection. Remaining works, instead, rely on the entire traffic object, making them suitable only for post-mortem detection, which is effective for offline analysis but unsuitable for live network scenarios. Positioning. The last row of Table I positions our work against the reviewed literature. Building on our previous work [7], which compared multiple FSCIL approaches, we explore different training and adaptation optimizations for FSCIL-based NIDS, including improved pre-training stages and memory selection criteria (referred to as Mem+). Unlike the literature leveraging MAML for FSCIL, which is known for its high computational cost and slow adaptation [41], our method builds upon the more efficient RFS [13]. In our prior study [7], RFS delivered the best performance and is better suited for real-world NIDS deployments. Furthermore, it differs from Wang et al. [25], which adopts a model selection strategy requiring the storage of multiple candidate models, thereby limiting scalability. RFS also differs from FSCIL based on PN [8], whose performance strongly depends on the quality of the learned prototypes. Existing works reveals two main gaps concerning label noise: (i) the lack of studies addressing label noise within the FSCIL setting, and (ii) the absence of comparative analyses across denoising strategies. We address both gaps by systematically evaluating and comparing multiple denoising approaches under FSCIL. Moreover, we ground our denoising strategy, based on filtering and synthesizing clean biflows, in the findings of [42]. In real-world NIDS deployments, the true noise ratio is unknown, making over-cleaning a realistic risk. Under these conditions, Jiang et al. [42] show that filtering significantly outperforms correction. The main limitation of filtering is the reduced sample size, which can increase the generalization error bound; our feature sampling module mitigates this effect. This distinguishes our approach from prior works based on label correction [21, 23, 28]. Equally important, we conduct a cross-network incremental study on both FSCIL and label noise scenarios across three recent and publicly-available datasets. All experiments are performed on raw and early input data to ensure realistic and low-latency NIDS.
Problem Formalization & Research Objectives
In this section, we formalize FSCIL and label noise in the context of NIDS. Next, we present the research objectives of our proposed framework, NAFN.
FSCIL Formalization. The goal of a FSCIL-based NIDS is to continuously adapt to new attack classes using only a few labeled samples, while preserving high classification performance on previously learned classes. Formally, the base training phase refers to training the model on the class set , which includes benign traffic and a set of known attack classes. Each base class contains an average of labeled samples for training, where denotes the average number of samples per base class. This phase produces the initial (base) model used for subsequent incremental learning phases. During each incremental phase , a new set of attack classes appears, corresponding to previously unseen attacks:
This condition ensures that each incremental phase involves previously unseen attack classes. Each new class contains only a small number of labeled samples, where . The primary challenge of FSCIL in the context of NIDS is to achieve rapid adaptation to newly emerging attacks in while preserving high classification performance on previously learned classes in .
Label Noise Formalization. In a real-world FSCIL-based NIDS setting, the limited samples available for new attacks are often affected by label noise. Let the attack dataset for incremental phase be
with the observed (possibly noisy) label of attack sample . For clarity, let denote the ground-truth label. Since each new class contains only labeled samples, the total number of samples for the phase is . Label noise occurs when , e.g., when a sample from attack class is mislabeled as attack . The noise rate is defined as
where is the indicator function. Note that label noise is symmetrically distributed across classes in . Given the small number of samples for each new attack class, even a small noise rate can significantly degrade the discriminative power of the model. Thus, the central challenge addressed in this paper lies in achieving stable incremental learning under the dual constraints of few-shot data and label noise.
Research Questions & Objectives. Building upon the identified challenges, this work formulates the following research questions and their corresponding objectives, centered around the proposed Noise-Aware FSCIL-based NIDS (NAFN).
Q1 Can NAFN address the primary challenge of FSCIL by effectively adapting to new attack classes while retaining previously acquired knowledge?
Figure 10.
Objective. To design and evaluate NAFN for effective adaptation to novel attack classes from few labeled biflows, while retaining prior knowledge, as examined in Secs. VI-A, VI-B, and VI-C.
Q2 How robust is NAFN to label noise, and how effective are its integrated noise detection and feature calibration mechanisms in mitigating the impact of mislabeled samples?
Objective. To enhance robustness to mislabeled samples via noise detection and feature calibration, preserving stable, discriminative features under noisy few-shot conditions (Secs. VI-D, VI-E, and VI-F).
Q3 Can NAFN maintain stable and generalizable performance when adapting across different networks, and remain robust when facing the combined challenges of cross-network adaptation and label noise?
Objective. To assess NAFN’s generalization and stability across datasets, including cross-network adaptation and robustness under combined label noise and domain shift (Sec. VI-G).
Methodology
In this section, we present the overall methodology of NAFN, as illustrated in Figure 1. Particularly, we describe NAFN from three complementary perspectives:
Figure 1. Overview of the NAFN framework. It consists of three main perspectives: (i) NIDS Workflow (horizontal process): from flow processing and feature encoding to the attack-traffic classifier; (ii) Learning Procedure (vertical process): including base training and incremental learning phases with Mem+-based memory selection; (iii) Noise-Aware Module: operating during the incremental learning phase. It detects mislabeled traffic samples and synthesizes feature embeddings.
NIDS Workflow (Horizontal Process). The end-to-end data pipeline—composed of Flow Processor, Feature Encoder, and Attack-Traffic Classifier—transforms raw network traffic into feature embeddings and labels traffic in benign and attack classes (Sec. IV-A).
Learning Procedure (Vertical Process). Describes how NAFN learns across tasks via Base Training and Incremental Learning phases, following the teacher–student paradigm. The Memory Update mechanism (Mem+) preserves representative samples to reduce catastrophic forgetting (Sec. IV-B).
Noise-Aware Module. In addition to these two main processes, NAFN includes the Noise-Aware Module that operates exclusively during the incremental learning phase. It detects mislabeled samples of new attacks and synthesizes calibrated embeddings to maintain clean training data (Sec. IV-C).
By integrating these perspectives—the horizontal workflow, the vertical learning procedure, and the Noise-Aware Module—NAFN achieves robust and continual adaptation to emerging attacks under a noisy few-shot regime.
NIDS Workflow
The NIDS Workflow in Figure 1 outlines the end-to-end process through which raw network traffic is transformed into discriminative feature representations for attack detection. It consists of three sequential modules—Flow Processor, Feature Encoder, and Attack-Traffic Classifier—described below.
Flow Processor. This module transforms raw network traffic into structured traffic data, which then serves as input to the Feature Encoder. The transformation occurs through two main steps: (i) Biflow Splitting and (ii) Input Extraction. In the first step, raw network traffic is organized into bidirectional flows (i.e. biflows). A biflow is formed by merging two unidirectional flows that share the same five-tuple (i.e. source IP, destination IP, source port, destination port, protocol) but travel in opposite directions. This aggregation provides a unified representation of bidirectional communication and avoids redundant flow entries [7, 8, 9, 29]. In the second step, only the first packets of each biflow are retained. This approach enables early detection (§ 2). By doing so, the NIDS can operate without waiting for the entire biflow to end, making it well-suited for real-time detection [7, 8, 9, 29]. From the packets, per-packet features (e.g., packet length and direction) are extracted to form the structured representation. Each biflow is thus represented as an feature matrix . If fewer than packets are available, zero-padding is applied to ensure , and the resulting matrix is normalized to using Min–Max scaling.
Feature Encoder. The Feature Encoder maps each biflow matrix into a -dimensional feature embedding , where denotes the encoder parameterized by . It serves as the backbone representation extractor of NAFN. Structurally, the encoder follows a symmetric U-Net–based architecture enhanced with residual connections [43]. The feature encoder consists of downsampling stages and the corresponding upsampling stages. Each downsampling stage is constructed using a Residual Convolution Block (RCB) comprising two 2D convolutional layers, batch normalization, and LeakyReLU activations, with an identity skip path to stabilize gradient propagation. In the downsampling path, the input is first reshaped to to match the 2D convolutional format, and processed by an initial RCB to yield a feature map of size . The feature map is passed through downsampling stages. Each stage progressively reduces the spatial resolution by pooling while doubling the number of feature channels. The output of the -th downsampling stage () has the shape , where denotes floor division, i.e., . The resulting tensor is flattened and linearly projected to a fixed-length latent vector , which compactly encodes both local packet-level and global flow-level patterns. In the upsampling path, each stage performs transposed convolution to restore the spatial resolution. Upsampled feature maps are concatenated with the corresponding outputs from the downsampling stages through skip connections, restoring finer details. Symmetrically, the output of the -th upsampling stage has the shape . Finally, a convolution layer produces the reconstructed feature map of size , which is used as auxiliary outputs for the reconstruction-based strategy in the base training phase.
Attack-Traffic Classification. The Attack-Traffic Classifier is a decision-making component that operates on the feature embeddings generated by the encoder (). Its objective is to classify benign traffic and multiple attack classes (viz. multi-class misuse detection [44]). Formally, in a generic incremental phase , we train the classifier using the embedded biflows from both the previously learned classes and new ones , where each class provides only labeled biflows. The classifier takes the embedding vector as input and outputs a probability vector over all observed classes . This mapping can be formally expressed as , where denotes the total number of classes. For NAFN, we consider two possible lightweight classifiers, each offering complementary advantages in terms of stability and adaptability. (i) The Nearest-Neighbor (NN) classifier assigns each embedding to the class of its closest sample in the learned feature space. Here, we use a soft NN rule, computing class posterior probabilities via a distance-based softmax over the nearest biflow from each class. This non-parametric approach relies on similarity measures and requires no trainable parameters, ensuring stability and low computational cost. (ii) The Logistic Regression (LR) classifier is a parametric linear model that learns decision boundaries by optimizing a cross-entropy objective. It provides greater discriminative power and flexibility, especially when sufficient labeled biflows are available. These two classifiers can be selected depending on the task configuration and the desired trade-off between stability and plasticity.
Learning Procedure
Figure 1 illustrates the learning procedure of NAFN, describing how the NIDS learns and adapts across sequential phases. In particular, we consider two phases, i.e. Base Training Phase and Incremental Learning Phase, outlined hereinafter.
Base Training Phase. The goal of the base training phase is to construct an effective feature encoder on the base dataset, which consists of known attack classes and benign traffic classes (denoted as ) with ample samples, to learn robust and transferable feature representations from network traffic. Once trained, this feature encoder serves as a teacher model that provides guidance for subsequent incremental phases. To ensure that the encoder learns discriminative and generalizable feature embeddings on , we jointly utilize supervised and self-supervised learning objectives and design three pretraining strategies (see Figure 2):
Figure 2. Overview of the three pretraining strategies.
Reconstruction-based Strategy. According to this strategy, the feature extractor is mirrored to form a decoder that reconstructs the input tensor from the embedding vector . It corresponds to the upsampling path of the U-Net architecture (see Sec. IV-A), where transposed convolutions and skip connections are employed to reconstruct the spatial-temporal structure of a biflow. In addition, a temporary classification head outputs attack-traffic prediction using the embedding . The model is optimized by jointly minimizing the reconstruction loss ❶ and the classification loss (i.e. cross-entropy loss) ❷ (see Figure 2):
where is the reconstructed input, represents the true label for class , and is a balancing coefficient.
Contrastive Strategy. The following strategy introduces a contrastive learning objective to encourage invariant and generalizable representations. Specifically, we adopt the Momentum Contrast (MoCo) [15], where denotes the query embedding produced by the encoder, is the positive embedding obtained from the momentum encoder (an augmented view of the same biflow), and are negative embeddings stored in a dynamic memory queue. The contrastive loss is formulated as:
where is a temperature parameter controlling the softness of the probability distribution and denotes the inner product between two embedding vectors. We generate positive samples via a biflow-specific augmentation, called permutation, in which the original biflow is divided into segments and randomly reordered, simulating variations in packet sequencing [45]. The overall loss combines the contrastive and classification losses:
where is a balancing coefficient. This strategy enhances the invariance and generalization capability of the learned embeddings by contrasting positive and negative pairs across dynamic batches.
Hybrid Strategy. This strategy combines the reconstruction and contrastive losses with the classification loss to fully exploit complementary supervision from multiple objectives, thereby improving the discriminability and robustness of the feature encoder. The overall loss function is formulated as:
Incremental Learning Phase
At each incremental phase , we adopt the RFS approach [13], using the feature extractor from the previous phase as a teacher model to distill knowledge into the new student feature extractor . In this phase, training relies exclusively on the biflows of previously learned classes stored in the memory, with the goal of preserving the stability of their feature representations. Formally, given the teacher model from the previous phase , we update the student using only the classes from phase . Let denote the training set containing biflows selected by Mem+ from the memory bank, the student is optimized by a weighted sum of the classification and KL distillation objectives:
After convergence, during the phase, we freeze the feature extractor of the student to avoid catastrophic forgetting. The frozen model is then used to extract biflow embeddings for the attack-traffic classifier (see Sec. IV-A). Finally, the updated student parameters replace the previous teacher for the next incremental phase .
Memory Update (Mem+). After each incremental phase, the exemplar memory is updated to retain the most representative biflows for all learned classes. We denote the proposed enhanced exemplar selection as Mem+. For each class, we compute feature embeddings using the current model and select the most representative samples. Mem+ supports multiple strategies: Herding [18], Rainbow [19], and random sampling. The memory size is bounded by a fixed budget, ensuring balanced representation across old and new classes. The updated memory bank is then used for the incoming incremental phase to support student training.
Noise-Aware Module
The Noise-Aware Module is the core component of our NAFN framework. It operates only during the incremental learning phase to handle potential spurious labels in newly introduced attack classes, improving robustness in the FSCIL-NIDS setting. It consists of two key components: (i) a Noise Detection Module, which detects and removes mislabeled samples, and (ii) a Feature Sampling Module, which synthesizes additional clean feature embeddings to maintain the original data scale and class balance.
Noise Detection Module. During the incremental learning phase, for each new attack class with feature embeddings , we obtain a denoised subset by filtering out suspected mislabeled items using a denoising strategy. We remove the top anomaly samples, where is a hyperparameter that controls the denoising ratio (i.e. the proportion of samples regarded as noisy). To achieve this goal, we explore four noise detection approaches, each designed to identify noisy samples from different statistical or representation-based perspectives.
Local Outlier Factor (LOF) evaluates the local density deviation of a biflow relative to its neighbors:
Here, denotes the -nearest neighbors of , where controls the neighborhood size, and is the local reachability density.
Isolation Forest (IF) measures the expected isolation path length of each biflow:
where is the expected path length of in the isolation trees, and is a normalization factor depending on the sample size .
Prototype-Margin (ProtoMargin) iteratively refines the class prototype and measures each biflow’s similarity margin between intra- and inter-class prototypes. The prototype is updated as:
where , and denotes the similarity function (e.g., cosine similarity). After iterations, the score of each biflow is computed as:
The top biflows with the highest scores are retained as clean samples.
Example-Level Curriculum Learning (E-CL) trains a temporary classifier for a few epochs across all observed classes [46]. The cross-entropy loss for a biflow with label is:
Here, represents the probability score of sample on its observed label in the classifier output. The biflows with the highest values are regarded as noisy and removed from the training set.
Feature Sampling Module. Since denoising reduces the number of training biflows, the Feature Sampling Module
compensates for this loss by synthesizing new and clean feature embeddings. For each new attack class , it estimates and calibrates a Gaussian distribution from the denoised subset :
To enhance distributional stability, we adapt the estimated Gaussian parameters by fusing the distributional statistics of base classes into the attack class . Let denote the mean and covariance of a base class , and let be the number of samples. The similarity between class and is measured by the Euclidean distance . We assign normalized weights to these base classes as:
The calibrated Gaussian parameters are then computed as:
where and control the fusion ratio. Finally, synthetic embeddings are sampled from and added to the denoised subset to restore a total of samples per class. This calibrated Gaussian sampling strategy effectively preserves discriminative and stable feature representations under both label noise and few-shot conditions.
Experimental Setup
In this section, we present the experimental setup adopted in our evaluation. § 7-A describes the threat model and the related dataset. Next, § 7-B reports the main characteristics defining the FSCIL setup. Finally, § 7-C introduces the performance metrics.
Threat Model & Datasets
In this paper, we tackle a threat model based on flooding, information gathering, brute-force, injection, man-in-the-middle, and malware attacks.
Flooding attacks aim to make targeted resources unavailable by overwhelming them with a large volume of traffic. Flooding is particularly dangerous in IoT environments, where compromised devices can be organized into botnets that generate massive coordinated traffic.
Information Gathering includes activities aimed at discovering vulnerabilities, weak points, and sensitive information about a target resource that can be later exploited.
Brute-Force attacks refer to an effort to gain unauthorized access to a system by systematically attempting multiple username and password combinations.
Injection involves uploading malicious input to a system in order to manipulate its execution logic, access sensitive information, or execute unauthorized commands.
Man-In-The-Middle (MITM) attacks occur when an adversary secretly intercepts the communication between two
parties, allowing the attacker to eavesdrop on sensitive data or manipulate transmitted information.
Malware refers to malicious code that, once installed on a victim system, can perform harmful actions such as stealing sensitive information, disrupting system operations, or enabling remote control by an attacker.
To represent this threat model, we selected three network intrusion detection datasets: CSE-CIC-IDS2018 [47], Edge-IIoT [48], and IoT-NID [49]. This selection is motivated by the fact that they include attack classes aligned with the threat categories described above. Moreover, (i) they cover a wide range of attack scenarios across enterprise, IoT, and Industrial IoT (IIoT) environments; (ii) they are well-established and widely used in current literature [7, 21, 25, 31]; (iii) they are publicly available, ensuring reproducibility; and (iv) they are relatively recent, with the oldest dataset (CSE-CIC-IDS2018) captured in 2018 and the newest (Edge-IIoT) in 2022.
The CSE-CIC-IDS2018 dataset is a widely used benchmark for intrusion detection [7, 8, 25, 28], released by the Canadian Institute for Cybersecurity. It contains realistic benign and attack traffic captured from a simulated enterprise network. The dataset includes 13 classes (1 benign and 12 attacks), covering attacks such as DoS, DDoS, Brute Force, Web attacks, and infiltration. Rather than relying on the released pre-computed features, we extract biflows directly from the PCAP traces and subsequently revise and clean the resulting dataset following the procedure described in [31]. The resulting dataset contains labeled biflows.
The Edge-IIoT dataset is designed for intrusion detection in industrial IoT environments. It captures traffic from edge computing scenarios with various industrial protocols (e.g., Modbus, MQTT). The dataset includes 16 classes (1 benign and 15 attack classes), covering botnets, ransomware, scanning, and various flooding attacks. Starting from the PCAPs, we perform a cleaning phase on Edge-IIoT as in [50]. The final dataset consists of labeled biflows.
The IoT-NID dataset is collected from a realistic smart home environment, containing benign traffic and attacks on IoT devices such as SKT NUGU and EZVIZ Wi-Fi Camera. It includes 10 classes (1 benign and 9 attack classes), with attacks such as Mirai botnet, DoS, MITM, and port scanning. After the PCAP cleaning phase [50], it contains labeled biflows.
Figure 3 shows the number of biflows per class for each dataset, colored according to the attack categories defined in the threat model and ranked in decreasing order.
Figure 3. Statistics of the Number of biflows per class for CSE-CIC-IDS2018 (top), Edge-IIoT (middle) and IoT-NID (bottom) datasets. Bars with diagonal hatching represent the classes used in the incremental phase (), while the plain bars correspond to the base classes ().
FSCIL Setup
This section describes the experimental setup used to evaluate our proposed approach. We detail the class-splitting criteria, evaluation protocol, hyperparameter settings, and implementation specifics to ensure reproducibility.
Class Splitting. All classes in each dataset are divided into base () and new classes () according to the number of per-class biflows. Base classes, including benign traffic and the most frequent attacks, are used for base training, while the three classes with the fewest biflows (i.e. the rarest attacks) are treated as during incremental learning. For simplicity, we consider a single incremental phase in the main experiments, while Appendix C extends the analysis to multiple incremental phases. Figure 3 illustrates the class split via the hatched bars.
Evaluation Scenario. Following common practice in the literature [7, 8, 27, 31], we evaluate NAFN in the FSCIL setting over 100 classification tests. Each test simulates a few-shot classification task involving base and new classes. For each task, we construct a training set containing few labeled per-class biflows (i.e. from 5 to 10) and a test set with 40 biflows per class. The training biflows of the base classes are retrieved from the memory buffer maintained by Mem+, while the training biflows of the novel classes are drawn from the corresponding dataset. This setup evaluates NAFN’s ability to adapt to new attack classes while preserving previously learned knowledge in the FSCIL setting.
Hyperparameter Setup. For the Flow Processor (see Sec. IV-A), in line with previous literature [7, 51], we use the first 20 packets of each biflow () and extract 6 features from each packet (). These features include: (i) packet length, (ii) packet direction, (iii) TCP window size, (iv) inter-arrival time, (v) time-to-live (TTL), and (vi) TCP flags. For the feature encoder, we set the feature embedding size to 320. The number of downsampling operation is configured as , with the corresponding channel sizes specified as , , and . For training, we use a batch size of 64 and the Adam optimizer with a learning rate of . Each model is trained for up to 100 epochs with an early-stopping strategy (patience of 20 epochs) to prevent overfitting. Hyperparameters are selected based on preliminary tuning analyses (omitted for brevity). All random seeds are fixed to 0 for reproducibility, and unless otherwise noted, the same hyperparameter configuration is applied across all datasets and models.1
Performance Metrics
In this paper, we use two performance metrics: the macro F1-score (F1 in short) and pAUC (Partial Area Under the Curve). The definitions are as follows.
Macro F1-score. It evaluates the attack classification capabilities (i.e. multi-class classification of benign and attack-specific traffic) of the NIDS. It is the harmonic mean of per-class Precision and Recall (or True Positive Rate, TPR), averaged equally across both benign and malicious classes. This ensures a fair evaluation that is not skewed by class imbalance. It is defined as:
where denotes the set of all classes.
pAUC. The Area Under the Curve (AUC) evaluates the detection capabilities of the NIDS, i.e. its ability to discriminate between benign and malicious traffic in a binary classification task, by summarizing performance across all possible decision thresholds. The Receiver Operating Characteristic (ROC) curve plots the TPR against the False Positive Rate (FPR, which represents false alarms), and the AUC is the area under this curve. While the AUC provides a comprehensive view of classifier performance, it includes high-FPR regions, which are undesirable in practical NIDS deployments where excessive false positives may lead to blocking benign traffic. To better reflect realistic operational constraints, we therefore adopt the standardized pAUC, which restricts the AUC to a low-FPR range. Specifically, we consider a maximum FPR of (1%), viz.:
which standardizes the partial area such that pAUC = 0.5 indicates random performance and pAUC = 1.0 indicates perfect classification. In the following, F1 and pAUC are averaged over 100 classification tasks and reported with standard deviations to assess stability.
Experimental Results
In this section, we present the empirical evaluation of NAFN. Specifically, Sec. VI-A investigates different pretraining and memory selection strategies. Sec. VI-B analyzes the sensitivity of the NIDS to the number of shots (i.e. labeled biflows from novel attacks). Sec. VI-C examines training and inference efficiency. Secs. VI-D, VI-E and VI-F study robustness and feature separability under label noise. Finally, Sec. VI-G evaluates the cross-network incremental detection performance of NAFN under label noise.
Evaluation Results under Different Pretraining Strategies and Memory Selection Methods
This experiment addresses Q1 (Sec. III), namely whether NAFN can adapt to new attack classes while retaining previously learned knowledge. To this end, we evaluate different combinations of pretraining and memory selection strategies (Mem+) across three datasets to determine the optimal configuration under few-shot conditions. In the incremental learning phase, new attack classes from the same dataset as the base classes are introduced, each containing labeled biflows. Table 2 reports F1-scores for new (F1-New), old (F1-Old), and all classes (F1-All).
| Metric | Mem+ | NN Classifier: W/o Pretrain. | NN Classifier: Reconstr. | NN Classifier: Contras. | NN Classifier: Hybrid | LR Classifier: W/o Pretrain. | LR Classifier: Reconstr. | LR Classifier: Contras. | LR Classifier: Hybrid |
| F1-New | Random | 93.11 ±2.14 | 92.81 ±2.15 | 92.02 ±2.51 | 93.44 ±2.03 | 90.02 ±1.91 | 90.53 ±1.95 | 84.15 ±2.90 | 90.17 ±2.38 |
| F1-New | Rainbow | 90.74 ±2.36 | 92.96 ±2.46 | 93.29 ±2.26 | 93.35 ±2.22 | 89.70 ±2.04 | 90.25 ±1.81 | 90.24 ±1.68 | 90.64 ±1.60 |
| F1-New | Herding | 90.51 ±2.14 | 90.31 ±2.25 | 91.22 ±2.43 | 90.31 ±2.23 | 85.31 ±3.05 | 90.49 ±1.13 | 89.01 ±1.61 | 90.26 ±1.08 |
| F1-Old | Random | 98.25 ±0.53 | 98.26 ±0.51 | 98.03 ±0.57 | 98.40 ±0.46 | 95.38 ±1.75 | 96.00 ±0.63 | 90.07 ±2.89 | 95.95 ±0.66 |
| F1-Old | Rainbow | 97.23 ±0.62 | 98.31 ±0.53 | 98.23 ±0.55 | 98.38 ±0.52 | 95.90 ±0.60 | 95.94 ±0.58 | 96.14 ±0.63 | 95.95 ±0.62 |
| F1-Old | Herding | 96.70 ±0.61 | 96.99 ±0.60 | 97.84 ±0.60 | 96.49 ±0.70 | 91.19 ±3.53 | 95.94 ±0.53 | 95.51 ±0.67 | 95.86 ±0.67 |
| F1-All | Random | 96.97 ±0.81 | 96.89 ±0.77 | 96.53 ±0.95 | 97.16 ±0.74 | 94.04 ±1.71 | 94.63 ±0.84 | 88.59 ±2.83 | 94.50 ±0.95 |
| F1-All | Rainbow | 95.61 ±0.96 | 96.97 ±0.92 | 97.00 ±0.87 | 97.12 ±0.87 | 94.35 ±0.69 | 94.52 ±0.67 | 94.66 ±0.64 | 94.62 ±0.66 |
| F1-All | Herding | 95.15 ±0.87 | 95.32 ±0.89 | 96.19 ±0.97 | 94.95 ±0.94 | 89.72 ±3.34 | 94.58 ±0.58 | 93.88 ±0.79 | 94.46 ±0.62 |
| F1-New | Random | 79.07 ±3.48 | 77.16 ±3.55 | 74.35 ±3.79 | 75.62 ±3.57 | 82.33 ±5.45 | 81.76 ±5.71 | 48.84 ±4.32 | 82.82 ±4.27 |
| F1-New | Rainbow | 76.76 ±4.41 | 77.46 ±3.70 | 73.70 ±3.91 | 75.44 ±3.49 | 53.01 ±11.99 | 80.03 ±7.29 | 79.72 ±7.19 | 79.97 ±6.77 |
| F1-New | Herding | 82.19 ±1.93 | 77.40 ±1.82 | 77.50 ±3.52 | 74.97 ±2.49 | 82.20 ±1.24 | 82.37 ±1.05 | 82.37 ±1.08 | 81.43 ±1.22 |
| F1-Old | Random | 79.48 ±0.87 | 79.51 ±0.83 | 79.58 ±0.81 | 79.41 ±0.86 | 76.04 ±1.32 | 75.74 ±1.58 | 73.51 ±1.26 | 76.53 ±1.26 |
| F1-Old | Rainbow | 79.40 ±0.83 | 79.55 ±0.80 | 79.45 ±0.87 | 79.80 ±0.84 | 75.87 ±2.19 | 75.82 ±1.64 | 78.44 ±1.28 | 78.04 ±1.71 |
| F1-Old | Herding | 80.82 ±1.10 | 78.87 ±1.09 | 79.95 ±1.05 | 79.06 ±1.07 | 79.77 ±1.11 | 79.69 ±1.12 | 79.66 ±1.11 | 79.35 ±1.12 |
| F1-All | Random | 79.40 ±1.11 | 79.04 ±1.08 | 78.53 ±1.12 | 78.65 ±1.15 | 77.30 ±1.16 | 76.94 ±0.71 | 68.58 ±0.76 | 77.79 ±0.74 |
| F1-All | Rainbow | 78.88 ±1.18 | 79.13 ±1.11 | 78.30 ±1.19 | 78.93 ±1.03 | 71.30 ±3.19 | 76.66 ±0.85 | 78.70 ±1.29 | 78.42 ±0.91 |
| F1-All | Herding | 81.09 ±1.11 | 78.58 ±1.01 | 79.46 ±1.27 | 78.24 ±1.11 | 80.25 ±0.98 | 80.22 ±1.00 | 80.20 ±0.97 | 79.77 ±1.00 |
| F1-New | Random | 84.83 ±3.15 | 84.89 ±3.21 | 85.03 ±3.34 | 84.08 ±3.51 | 83.79 ±3.39 | 82.98 ±5.01 | 86.19 ±2.58 | 85.43 ±3.04 |
| F1-New | Rainbow | 84.20 ±3.57 | 83.71 ±3.72 | 86.05 ±2.84 | 84.40 ±3.48 | 83.26 ±3.49 | 83.25 ±1.46 | 84.51 ±3.98 | 84.48 ±3.44 |
| F1-New | Herding | 79.86 ±3.85 | 77.78 ±5.05 | 81.01 ±3.83 | 83.46 ±3.04 | 80.39 ±4.72 | 81.24 ±4.83 | 81.45 ±4.59 | 83.31 ±4.11 |
| F1-Old | Random | 96.19 ±0.92 | 96.46 ±0.94 | 96.03 ±1.08 | 96.87 ±1.00 | 96.03 ±0.77 | 96.34 ±0.77 | 96.33 ±0.73 | 96.23 ±0.80 |
| F1-Old | Rainbow | 96.19 ±0.89 | 96.59 ±0.99 | 97.11 ±0.78 | 96.95 ±0.87 | 95.94 ±0.91 | 96.59 ±0.73 | 96.54 ±0.67 | 96.56 ±0.78 |
| F1-Old | Herding | 92.96 ±2.20 | 91.64 ±2.92 | 88.25 ±2.44 | 94.50 ±1.33 | 94.57 ±2.81 | 95.62 ±2.03 | 91.32 ±4.53 | 95.88 ±1.67 |
| F1-All | Random | 92.78 ±1.39 | 92.99 ±1.36 | 92.73 ±1.53 | 93.03 ±1.55 | 92.36 ±1.41 | 92.33 ±1.68 | 93.29 ±1.12 | 92.99 ±1.32 |
| F1-All | Rainbow | 92.59 ±1.48 | 92.73 ±1.46 | 93.79 ±1.22 | 93.18 ±1.19 | 92.13 ±1.54 | 92.59 ±1.66 | 92.93 ±1.50 | 92.93 ±1.33 |
| F1-All | Herding | 89.03 ±2.40 | 89.47 ±3.36 | 86.08 ±2.37 | 91.19 ±1.69 | 90.31 ±3.05 | 91.30 ±2.41 | 88.36 ±3.86 | 92.11 ±2.04 |
Table 2. TABLE II: Evaluation results on (a) CSE-CIC-IDS2018, (b) Edge-IIoT, and (c) IoT-NID under different pretraining strategies and memory selection methods. NN (left, red heatmap) and LR (right, blue heatmap) are shown side-by-side. For each dataset and each classifier, the entry with the highest mean -New, -Old, and -All is highlighted in bold; the corresponding standard deviation is bolded as well.
Overall, the NN classifier outperforms the LR by an average of 1.37% F1-All. Therefore, the following analyses focus on the results obtained with the NN classifier, while observations regarding LR will only be briefly mentioned.
Performance on CSE-CIC-IDS2018. Hybrid + Random achieves the best overall performance, with F1-New=93.44%, F1-Old=98.40%, and F1-All=97.16% (see Table II(a)). CSE-CIC-IDS2018 contains complex and fine-grained traffic patterns, where Hybrid pretraining provides richer representations by combining reconstruction and contrastive objectives, while Random memory selection avoids the bias of ranking-based heuristics and keeps the retained biflows sufficiently diversified for adaptation.
Performance on Edge-IIoT. The best performance is obtained through W/o pretraining + Herding configuration, achieving F1-New=82.19%, F1-Old=80.82%, and F1-All=81.09% (see Table II(b)). The dataset contains diverse and noisy traffic behaviors, so selecting representative biflows via Herding preserves overall stability. Other pretraining strategies show limited gains or even degradation in F1-New.
Performance on IoT-NID. Contrastive + Rainbow achieves the best overall performance, with F1-New=86.05%, F1-Old=97.11%, and F1-All=93.79% (see Table II(c)). Contrastive pretraining yields discriminative features, while Rainbow memory selection enhances exemplar diversity, jointly supporting both new-class adaptation and old-class retention.
Takeaway. The optimal configuration varies across datasets due to differences in traffic characteristics. On CSE-CIC-IDS2018, Hybrid + Random (NN) and Contrastive + Rainbow (LR) perform best, benefiting from richer representations and informative memory selection. On Edge-IIoT, W/o pretraining + Herding dominates for both classifiers, confirming that exemplar diversity outweighs feature initialization on this dataset. On IoT-NID, contrastive pretraining is the key driver, with Contrastive + Rainbow (NN) and Contrastive + Random (LR) yielding the best trade-off between new- and old-class performance. In the following experiments, we will adopt these optimal configurations.
Sensitivity Analysis to the Number of Shots
The current section further explores Q1 by investigating how the number of shots (i.e. the number of labeled billows per new attack class) affects the adaptation ability of NAFN. We assess the stability and scalability of the model as increases from 5 to 10 shots, providing insight into the trade-off between sample availability and attack classification performance. As in the previous section, new and base classes belong to the same dataset, and we adopt the configuration selected in Sec. VI-A for each dataset. Figure 4(a) and (b) show the -All achieved by NAFN using the NN and LR classifiers, respectively, on the three datasets for varying numbers of shots.
!Comparison of F1-All [%] for NN and LR classifiers across different numbers of shots (K) on the three datasets bbox=0.51,0.73,0.94,0.94
Figure 4. Comparison of -All [%] for NN and LR classifiers across different numbers of shots () on the three datasets. The y-axis is zoomed in between 60% and 100% for clarity.
For the NN classifier (Figure 4(a)), performance remains stable across different , with a slight improvement as increases. On CSE-CIC-IDS2018, -All stays above 92%, rising marginally from 5 to 10 shots. A similar trend appears on IoT-NID (92%–94%), while Edge-IIoT shows the lowest results (≈ 80%), peaking at 81.2% at = 9.
For the LR classifier (Figure 4(b)), the benefit of larger is more evident. On CSE-CIC-IDS2018, performance improves from 87%–88% (5–7 shots) to nearly 94% (9–10 shots), a gain of ≈ 7%. On IoT-NID, the -All remains steady (92%–93%), while on Edge-IIoT, the effect is stronger: -All increases from ≈ 71% (5–7 shots) to 80% (9–10 shots), a gain exceeding 9%.
Takeaway. As expected, the sensitivity analysis shows that increasing the number of shots improves performance for both classifiers, though the degree of improvement varies depending on the dataset. For NN, the gains are relatively small yet consistent, whereas for LR, the effect is more substantial, especially on CSE-CIC-IDS2018 and Edge-IIoT. These findings suggest that while more shots are beneficial overall, the sensitivity to sample size is highly dataset- and classifier-dependent.
Training and Inference Efficiency
TABLE III: Computational overhead across datasets. Base and incremental training times are in seconds; inference time is in microseconds per biflow.
To complement the analyses on Q1, we measure the computational efficiency of NAFN during both the base training and incremental phases. All timings are obtained with the per-dataset configuration selected in Sec. VI-A. Furthermore, we evaluate per-biflow inference latency to assess NAFN’s suitability for real-time NIDS deployment. We report the mean ± standard deviation in seconds (for training) and microseconds (for inference) across the three considered datasets.
Table III shows that the incremental training phase consistently requires far less time than any of the pretraining procedures, regardless of the dataset or strategy. For instance, on CSE-CIC-IDS2018, the heaviest pretraining strategy (Hybrid) requires over 1,400.00s, while student training completes in just 117.21s. On Edge-IIoT, which is the largest dataset, contrastive pretraining takes approximately 4,669.00s, whereas incremental training finishes in only 666.75s, which is less than 15% of the cost. A similar pattern is observed on IoT-NID, where even the lightest pretraining (W/o Pretraining, 456.39s) still exceeds the adaptation time (346.19s). Beyond the training efficiency, the bottom section of Table III highlights the real-time operational capacity of NAFN. Specifically, classifying a single incoming biflow requires merely 7.45–8.62s using the NN classifier, and 25.54–33.25s with the LR classifier. This microsecond-level latency yields a theoretical throughput capable of processing tens to hundreds of thousands of biflows per second, ensuring that NAFN will not become a bottleneck in high-speed networks.
| CSE-CIC-IDS2018 | Edge-IIoT | IoT-NID | |
| Base Training Time (s) | |||
| W/o Pretrain | 139.41 ±0.46 | 740.52 ±1.97 | 456.39 ±1.92 |
| Reconstruction | 214.95 ±0.54 | 832.19 ±2.41 | 490.81 ±1.27 |
| Contrastive | 1,352.22 ±155.49 | 4,669.52 ±969.00 | 1,066.13 ±167.92 |
| Hybrid | 1,400.56 ±113.37 | 4,125.98 ±752.35 | 1,055.94 ±152.43 |
| Incremental Training Time (s / increment) | |||
| Per increment | 117.21 ±8.50 | 666.75 ±193.44 | 346.19 ±92.81 |
| Inference Time (s / biflow) | |||
| NN | 8.45 ±10.20 | 7.45 ±5.73 | 8.62 ±9.42 |
| LR | 32.47 ±15.21 | 25.54 ±17.42 | 33.25 ±16.72 |
Table III.
Takeaway. These findings underscore the practicality of the teacher–student incremental framework, RFS. Once a teacher model has been pretrained, adapting a student model to new attack classes in the incremental training phase is both fast and computationally lightweight. Coupled with the low inference latency per biflow, this dual efficiency makes the NAFN suitable for real-world NIDS deployments.
NAFN under Noisy Labels
This section addresses Q2 by assessing the robustness of NAFN to mislabeled biflows in the incremental data. Unless otherwise stated, each dataset uses the configuration selected in Sec. VI-A. We introduce controlled label noise in the new attack classes, with –50%, where represents clean labels and higher values simulate increasingly severe label corruption. Unless otherwise specified, the denoising ratio is fixed at . We compare four noise detection methods (Sec. IV-C)–ProtoMargin, LOF, IF, and E-CL—against a baseline without denoising approaches (briefly, w/o Denoise). In addition, we include two noisy-label learning baselines: CSIDN [52] and NCR [53]. CSIDN assigns a reliability weight to each biflow based on predictive confidence, down-weighting samples with consistently low probabilities as potential noise. NCR addresses label noise through -NN topological consistency in the latent space, weighting samples according to agreement with their neighborhood and reducing the influence of isolated, inconsistent biflows. Herein, both new and base classes are drawn from the same dataset. Figure 5 displays the performance in terms of -All, -New, and -Old.
Figure 5. Performance comparison of different noise detection methods and noisy-label learning baselines under a fixed denoising ratio and varying noise rates – on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID with NN and LR classifiers. Plots report the F1-score for all classes (F1-All), new classes (F1-New), and old classes (F1-Old).
Overall, performance declines as noise increases from to 50%, with the largest degradation on new attacks due to spurious labels. While w/o Denoise shows high performance under low noise, its -New drops rapidly when noise exceeds 30%, often dropping below 60% and in some cases below 40% at . By contrast, ProtoMargin substantially improves robustness to noisy labels across all datasets and classifiers. For example, on CSE-CIC-IDS2018 with NN, ProtoMargin maintains an -New of 87.03% at 50% noise, compared with only 35.34% of w/o Denoise. Similarly, on Edge-IIoT, ProtoMargin doubles the -New of the baseline under high noise conditions. Even with LR, where improvements are generally smaller, ProtoMargin delivers consistent gains, highlighting that its effect is not limited to the NN classifier. Importantly, ProtoMargin filters labels of noisy biflows from , enhancing new-attack detection without significantly affecting knowledge of existing classes.
Compared with other noise detection methods, ProtoMargin exhibits superior stability and effectiveness. E-CL shows some advantages with LR, particularly under high noise, but it does not achieve the same gains on new attacks as ProtoMargin. LOF and IF, on the other hand, perform poorly, with -New scores often dropping below those of w/o Denoise, indicating that generic outlier detection approaches are ill-suited for incremental scenarios where noise is structured and class-specific. It is worth noting that all methods yield lower -Old scores w.r.t. w/o Denoise. Such a decline occurs because the denoising process inevitably introduces small perturbations to the decision boundaries of old classes, causing minor performance degradation. However, this drop is relatively modest and acceptable when weighed against the gains in -All scores. Furthermore, when evaluated against noisy-label learning baselines (CSIDN and NCR), ProtoMargin continues to show clear advantages in the incremental setting. Although CSIDN and NCR exhibit some resilience against spurious labels w.r.t. w/o Denoise, they struggle to adapt to new attacks under severe noise (e.g., ), resulting in sub-optimal F1-New. Moreover, lacking a denoising mechanism to preserve past knowledge, these baselines show a larger drop in F1-Old. Conversely, ProtoMargin better isolates noisy samples without distorting the decision boundaries, yielding superior F1-All. Overall, ProtoMargin achieves the best trade-off, it mitigates the effects of label noise on new attacks, sustains competitive overall F1-scores, and preserves stability on base classes. At and , denoising causes a limited overall performance loss. Across all methods, the reduction in F1-All remains within , while F1-New and F1-Old decrease by up to approximately 32% and 4%, respectively, with occasional improvements in some settings. For ProtoMargin, F1-All typically decreases by only 1%–5% and F1-Old by less than 2%, while F1-New shows a larger, dataset- and classifier-dependent drop of up to . Thus, even under the setting, ProtoMargin incurs a limited cost on clean incremental data, mainly affecting new-class adaptation.
Takeaway. Addressing label noise in incremental learning is critical, as noise in new attacks can degrade overall performance. ProtoMargin is more stable than w/o Denoise, other noise detection methods, and noisy-label baselines, especially at medium to high noise levels. Moreover, it preserves accuracy on new attacks while keeping base-class performance stable. Therefore, we adopt ProtoMargin as the core of the Noise-Aware Module.
Visual Analysis of NAFN
The following visualization experiment further supports by illustrating how NAFN enhances feature separability under noisy conditions. The analysis uses ProtoMargin as the noise detector, together with the per-dataset configuration selected in Sec. VI-A. Specifically, we visualize the confusion matrices and t-SNE projections of NAFN using the NN and LR classifiers under label noise, as well as the feature distributions of new attack classes.
Confusion Matrices. As shown in Figure 6, each row corresponds to a dataset (CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID). The four column reports results for NN (left) and

Figure 6. Confusion matrix of NN and LR classifiers on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID with 50% label noise. Each row corresponds to one dataset. The first two columns show results for the NN classifier without and with NAFN (ProtoMargin as noise detection method), respectively; the last two columns present the corresponding results for the LR classifier. We report TPR at a 1% FPR constraint above each subfigure. The theoretical upper bound (i.e. the maximum achievable when trained on 0% noise) is provided in the sub-captions.
(a) CSE-CIC-IDS2018. 0% noise bounds: NN: 82.13%, LR: 96.64% Label encoding: a = DoS GoldenEye, b = DoS Hulk, c = DDoS HOIC, d = Bot, e = Bruteforce-SSH, f = Benign, g = DDoS LOIC-HTTP, h = DOS Slowloris, i = Bruteforce-Web, j = DDoS LOIC-UDP, k = Bruteforce-XSS, l = SQL Injection.
(b) Edge-IIoT. 0% noise bounds: NN: 84.68%, LR: 98.81%. Label encoding: = Benign, = Password Attack, = DDoS UDP Flooding, = DDoS ICMP Flooding, = DDoS HTTP Flooding, = DDoS TCP SYN Flooding, = Port Scanning, = Uploading Attack, = SQL Injection, = Vulnerability Scanner, = XSS, = Backdoor, = Ransomware Attack, = OS Fingerprinting, = MiTM Attack.
(c) IoT-NID. 0% noise bounds: NN: 69.60%, LR: 62.68%. Label encoding: = Benign, = DoS SYN Flooding, = Mirai ACK Flooding, = Port Scanning, = Mirai HTTP Flooding, = Host Discovery, = Mirai UDP Flooding, = OS Detection, = MiTM ARP Spoofing, = Mirai Host Bruteforce.
LR (right), both with and without NAFN (with ProtoMargin). Across all datasets, label noise mainly affects new attacks located in the lower-right region of each confusion matrix. Without NAFN, classifiers exhibit greater confusion, as reflected by the fading of diagonal elements (which is particularly pronounced in Edge-IIoT and IoT-NID). On the other hand, with NAFN, misclassifications are greatly reduced, as can be seen from the diagonal. This outcome underscores that the Noise-Aware Module effectively filters mislabeled biflows and enhances intra-class consistency. Moreover, to address strict operational constraints, we report the binary detection performance () above each subfigure. These metrics confirm that NAFN not only recovers the fine-grained semantic boundaries of specific attacks, but also maintains a highly robust detection rate that approaches the theoretical upper bound achieved in the noiseless setting. Finally, the upper-left regions () remain stable under both noisy and denoised conditions, confirming that label noise primarily affects .
t-SNE
Figure 7 reports the Kernel Density Estimation (KDE) plots generated from 2D t-SNE projection, illustrating the feature distributions of new attack biflows under noisy conditions. Consistent with the setup in Figure 6, each row corresponds to a dataset (CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID), while the four columns show the results of NN and LR classifiers, both with and without NAFN. Projections show that NAFN substantially enhances feature separability across all three datasets. Specifically, when not using NAFN (columns 1 and 3), the feature distributions of the three new classes almost completely overlap, making them indistinguishable. By contrast, with NAFN (columns 2 and 4), the class-specific clusters are much more distinct, highlighting an improved discriminative structure of the feature space.
Figure 7. KDE plot of new attacks affected by label noise, obtained via 2D t-SNE projection. Label encoding is the same as in Figure 6.
Takeaway. Confusion matrices and t-SNE provide a visual corroboration of the classification results: label noise mainly harms the detection of new attacks, while NAFN effectively restores their separability, thereby improving robustness under noisy-label incremental-learning scenarios.
Analysis of Early Detection and Time-to-Insight of NAFN
To further address Q2, we evaluate the real-time detection ability of NAFN under label noise (), confirming its effectiveness for early detection. This analysis focuses on CSE-CIC-IDS2018 and uses the corresponding configuration selected in Sec. VI-A. In detail, we investigate the performance under varying time thresholds , which directly dictate the Time-to-Insight (TTI). TTI is defined as the duration from the arrival of the initial packet of a biflow to its final classification [7], and it dominates inference latency, far exceeding the overhead of feature extraction and embedding. While lower values enhance real-time responsiveness, they increase vulnerability to slow-rate flooding attacks; conversely, higher values improve detection accuracy but delay biflow classification. In this analysis, we focus on CSE-CIC-IDS2018 due to the presence of slow-rate flooding attacks.
Figure 8 illustrates the confusion matrices and corresponding -All scores across , where denotes the maximum flow duration. Despite noise interference, we observe a significant performance leap as increases from 1s to 10s (i.e. -All for NN and LR). Beyond the 10s mark, the detection performance enters a stable plateau, with gains below 1%. Although the highest -All (95.00% for NN and 92.84% for LR) values are achieved at , results show that offers the best balance.

Figure 8. Analysis of Time-to-Insight (TTI) versus detection performance under label noise () on CSE-CIC-IDS2018. The plots illustrate the F1-All scores for NN and LR classifiers as a function of the time threshold . Label encoding: a = DoS GoldenEye, b = DoS Hulk, c = DDoS HOIC, d = Bot, e = Bruteforce-SSH, f = Benign, g = DDoS LOIC-HTTP, h = DOS Slowloris, i = Bruteforce-Web, j = DDoS LOIC-UDP, k = Bruteforce-XSS, l = SQL Injection. (a) NN classifier. (b) LR classifier.
Takeaway. NAFN reaches near-peak accuracy within 10s and achieves the best trade-off at , reducing detection latency by 6× while remaining robust under 50% label noise and effectively mitigating slow-rate attacks.
Cross-Network Incremental Detection Performance
This section tackles Q3, focusing on whether NAFN can consistently sustain robust and generalizable detection performance across diverse network environments. To this end, we evaluate the cross-network incremental detection capability of NAFN by training on traffic from one dataset and incrementally introducing new attack classes from a different dataset, while using the same base and new classes defined in § 7-B. Base training uses, for each base dataset, the configuration selected in Sec. VI-A, and the incremental phase reuses the same encoder and classifier setup with the new classes drawn from the other dataset. To analyze performance under this cross-network setup, we report three distinct pAUCs. Each metric is defined based on the origin and role of the malicious classes involved. Specifically, (i) pAUC: evaluates the ability to retain discrimination between benign and base malicious traffic, where all attacks from the base dataset are grouped into a single malicious class (as explained in § 7-C); (ii) pAUC: measures the ability to detect newly introduced malicious traffic from a different dataset during the incremental learning phase; (iii) pAUC: assesses the detection of unseen malicious traffic from a different network environment. It considers the base classes of the incremental dataset which are observed neither during base training nor during the incremental phase, and are therefore unknown at test time. Table IV reports the three pAUCs for each base–incremental dataset pair, using the NN and LR classifiers. Results are shown without NAFN—both without noise () and with noise ()—as well as for NAFN with noise ().
Cross-network incremental detection performance measured by pAUC[%], pAUC[%], and pAUC[%], comparing benign samples against, respectively, base malicious classes, newly introduced incremental malicious classes, and incremental-dataset base malicious classes treated as unknown. The setting uses from one dataset and from a different network environment. Red cells indicate results without NAFN, while blue cells indicate results with NAFN.
(a) NN Classifier
| Base Dataset | Incr. Dataset | Label Noise | pAUC | pAUC | pAUC |
| CSE-CIC-IDS2018 | Edge-IIoT | 0% | 88.12 | 97.46 | 60.85 |
| CSE-CIC-IDS2018 | Edge-IIoT | 50% | 85.07 | 82.26 | 61.83 |
| CSE-CIC-IDS2018 | Edge-IIoT | 50% | 88.12 | 95.68 | 64.10 |
| CSE-CIC-IDS2018 | IoT-NID | 0% | 90.01 | 58.89 | 50.72 |
| CSE-CIC-IDS2018 | IoT-NID | 50% | 89.68 | 57.21 | 52.22 |
| CSE-CIC-IDS2018 | IoT-NID | 50% | 93.45 | 63.45 | 56.49 |
| Edge-IIoT | CSE-CIC-IDS2018 | 0% | 99.92 | 99.98 | 93.57 |
| Edge-IIoT | CSE-CIC-IDS2018 | 50% | 99.58 | 98.41 | 92.62 |
| Edge-IIoT | CSE-CIC-IDS2018 | 50% | 99.90 | 99.95 | 94.68 |
| Edge-IIoT | IoT-NID | 0% | 99.77 | 94.07 | 88.71 |
| Edge-IIoT | IoT-NID | 50% | 99.28 | 90.03 | 83.91 |
| Edge-IIoT | IoT-NID | 50% | 99.36 | 91.97 | 84.30 |
| IoT-NID | CSE-CIC-IDS2018 | 0% | 94.64 | 95.96 | 72.05 |
| IoT-NID | CSE-CIC-IDS2018 | 50% | 92.47 | 84.00 | 62.45 |
| IoT-NID | CSE-CIC-IDS2018 | 50% | 92.49 | 96.68 | 73.13 |
| IoT-NID | Edge-IIoT | 0% | 98.42 | 93.92 | 66.96 |
| IoT-NID | Edge-IIoT | 50% | 99.36 | 76.53 | 65.34 |
| IoT-NID | Edge-IIoT | 50% | 99.42 | 90.06 | 66.11 |
(b) LR Classifier
| Base Dataset | Incr. Dataset | Label Noise | pAUC | pAUC | pAUC |
| CSE-CIC-IDS2018 | Edge-IIoT | 0% | 98.32 | 91.55 | 64.31 |
| CSE-CIC-IDS2018 | Edge-IIoT | 50% | 96.29 | 91.31 | 63.08 |
| CSE-CIC-IDS2018 | Edge-IIoT | 50% | 96.34 | 92.54 | 63.28 |
| CSE-CIC-IDS2018 | IoT-NID | 0% | 95.27 | 76.67 | 64.91 |
| CSE-CIC-IDS2018 | IoT-NID | 50% | 95.03 | 73.89 | 61.92 |
| CSE-CIC-IDS2018 | IoT-NID | 50% | 95.05 | 74.81 | 65.01 |
| Edge-IIoT | CSE-CIC-IDS2018 | 0% | 99.79 | 100.00 | 93.95 |
| Edge-IIoT | CSE-CIC-IDS2018 | 50% | 99.79 | 98.08 | 93.44 |
| Edge-IIoT | CSE-CIC-IDS2018 | 50% | 99.79 | 100.00 | 94.93 |
| Edge-IIoT | IoT-NID | 0% | 99.93 | 99.62 | 97.56 |
| Edge-IIoT | IoT-NID | 50% | 99.82 | 94.15 | 96.97 |
| Edge-IIoT | IoT-NID | 50% | 99.82 | 95.93 | 96.99 |
| IoT-NID | CSE-CIC-IDS2018 | 0% | 88.12 | 95.19 | 63.69 |
| IoT-NID | CSE-CIC-IDS2018 | 50% | 87.40 | 85.44 | 59.54 |
| IoT-NID | CSE-CIC-IDS2018 | 50% | 88.10 | 89.16 | 59.70 |
| IoT-NID | Edge-IIoT | 0% | 92.38 | 80.50 | 63.93 |
| IoT-NID | Edge-IIoT | 50% | 92.17 | 71.19 | 62.18 |
| IoT-NID | Edge-IIoT | 50% | 92.20 | 78.06 | 62.51 |
Table IV.
Regarding the NN classifier (Table IV(a)), NAFN exhibits strong detection performance according to all three pAUCs. Detection of base malicious classes remains consistently high, with pAUC values often exceeding 95%, indicating that the NIDS effectively retains previous knowledge even in the presence of domain shifts. In contrast, the performance on pAUC and pAUC varies noticeably across dataset pairs. Particularly, combinations involving CSE-CIC-IDS2018 and IoT-NID show greater degradation, reflecting a larger distributional gap. Nonetheless, NAFN mitigates the impact of label noise and domain shift, improving the detection of new and unknown attacks. For example, when adapting from IoT-NID to CSE-CIC-IDS2018, NAFN improves pAUC from 84.00% to 96.68%, and pAUC from 62.45% to 73.13%. Such gains highlight the effectiveness of NAFN in noise filtering and stabilizing incremental adaptation.
The LR classifier (Table IV(b)) exhibits a more stable yet slightly more conservative performance profile. Although pAUC is consistently high (above ), the metrics involving cross-network generalization, namely pAUC$_{\mathrm{inc-mal}} and pAUC, show moderate drops, especially when IoT-NID serves as either the base or incremental dataset. Despite this, NAFN again provides consistent improvements in all settings, albeit with smaller margins w.r.t. NN. These outcomes indicate that LR benefits from noise-aware filtering, although its feature representation is inherently less sensitive to label noise than the NN classifier.
Takeaway. Cross-network experiments show that both NN and LR can adapt to unseen attack classes from heterogeneous environments, with generalization varying by dataset pair. Across all three pAUCs, NAFN consistently improves performance by mitigating label noise and enhancing robustness to unseen malicious biflows. These results indicate that NAFN supports reliable incremental learning and strengthens cross-network transferability under both clean and noisy label conditions.
Conclusions & Future Perspectives
In this paper, we propose NAFN, a Noise-Aware Few-Shot Class-Incremental Learning framework for Network Intrusion Detection Systems (NIDSs). NAFN introduces a teacher–student adaptation approach and a Noise-Aware Module to enable continual adaptation to new attack classes while mitigating the detrimental effects of noisy labels. Through extensive evaluations across three benchmark datasets, we validate the effectiveness of NAFN by addressing a comprehensive set of research questions (Sec. III). With regard to Q1, our experiments show that NAFN can efficiently adapt to new attacks under a few-shot regime while preserving performance on previously learned classes. For Q2, the proposed Noise-Aware Module, via the Prototype-Margin method, significantly ends_mid=1 improves robustness against mislabeled biflows. At label-noise ratios ranging from 10% to 50%, the F1-score on new classes improves by up to +52% w.r.t. the baseline without denoising, consistently outperforming alternative noise detection methods while preserving the separability of new-class representations. Finally, regarding Q3, our cross-network experiments reveal that NAFN maintains stable and transferable detection capabilities across heterogeneous network environments. Even under severe label noise and pronounced domain shifts, NAFN consistently improves cross-network incremental detection, with observed pAUC gains of up to 13% and 11% for new and previously unseen attacks, respectively.
Limitations & Future Avenues. The findings of this manuscript suggest several promising directions for future research to address the current limitations of NAFN. (i) Retransmissions and packet loss in dynamic network environments may alter traffic features, potentially affecting the robustness of NAFN. Future work could address this limitation through adaptive feature extraction or more robust representation learning techniques [54]. (ii) Traffic drift and memory bias accumulation during long-term incremental updates may be reduced by developing scalable memory management strategies or continual prototype calibration methods [55], improving model stability in online or extended deployments. (iii) Explainable AI can increase the transparency and interpretability of the model [50], enabling security operators to better understand detection decisions and enhancing usability in real-world scenarios. (iv) NAFN assumes that the presence of label noise is known; future work could detect label corruption through confidence monitoring or prototype consistency, automatically triggering the denoising pipeline. (v) The paper assumes a symmetric distribution of noise across the new classes. Future work could investigate asymmetric noise distributions based on attack-type similarity.
Appendix
Hyperparameter Sensitivity Analysis
In this section, we conduct a sensitivity analysis of the hyperparameters related to the feature sampling module (Sec. IV-C). Specifically, and control the fusion rates for the base classes and the novel classes (cf. Eqs. (17) and (18)), respectively, while controls the denoising ratio. We vary and over the interval , while setting within . Unless otherwise specified, the default setting is and . To isolate the effect of each factor, we adopt a one-at-a-time protocol: when tuning one hyperparameter, the others are fixed at their default values.
Figure 9 shows the F1-All curves of NAFN over the three hyperparameters on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID, using two classifiers (NN and LR) under label noise with . Overall, NAFN remains stable across and . Changing the fusion rates leads to only marginal performance fluctuations, suggesting that the model is weakly sensitive to the mixture weights between and . In contrast, has a stronger effect since it controls the denoising strength. As increases, NAFN achieves better detection performance under label noise, implying that stronger denoising is beneficial when supervision is heavily corrupted. Notably, the best performance is obtained when is close to the true label-noise ratio , which aligns with the intuition that the denoising ratio should match the corruption level and further corroborates the effectiveness of the Noise-Aware Module. Meanwhile, NAFN remains robust even with conservative denoising (e.g., ). Despite 50% noise, performance does not drop significantly, showing that the framework does not rely on aggressive denoising to work well.
Figure 9. Sensitivity analysis of the Feature Sampling Module hyperparameters on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID with NN and LR under 50% label noise. Columns correspond to , , and ; rows to CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID.
In summary, NAFN is largely insensitive to . In particular, and can be chosen from a broad range without noticeable impact, while provides a controllable knob that adaptively improves performance as the noise level increases.
Ablation of Feature Sampling Module
| Dataset | Classifier | Setting | F1-All | F1-New | F1-Old |
| CSE-CIC-IDS2018 | NN | Denoise-only | 94.96% | 87.04% | 97.59% |
| CSE-CIC-IDS2018 | NN | Denoise + MixUp | 94.98% | 87.00% | 97.65% |
| CSE-CIC-IDS2018 | NN | Denoise + SMOTE | 95.00% | 86.91% | 97.65% |
| CSE-CIC-IDS2018 | NN | Denoise + Ours | 95.01% | 87.02% | 97.66% |
| CSE-CIC-IDS2018 | LR | Denoise-only | 78.66% | 32.74% | 93.97% |
| CSE-CIC-IDS2018 | LR | Denoise + MixUp | 92.81% | 82.94% | 96.18% |
| CSE-CIC-IDS2018 | LR | Denoise + SMOTE | 92.75% | 82.17% | 96.19% |
| CSE-CIC-IDS2018 | LR | Denoise + Ours | 92.84% | 82.74% | 96.21% |
| Edge-IIoT | NN | Denoise-only | 77.15% | 64.93% | 80.20% |
| Edge-IIoT | NN | Denoise + MixUp | 77.56% | 65.65% | 80.35% |
| Edge-IIoT | NN | Denoise + SMOTE | 77.46% | 65.81% | 80.38% |
| Edge-IIoT | NN | Denoise + Ours | 77.35% | 65.91% | 80.21% |
| Edge-IIoT | LR | Denoise-only | 64.26% | 17.08% | 76.06% |
| Edge-IIoT | LR | Denoise + MixUp | 73.58% | 46.88% | 78.86% |
| Edge-IIoT | LR | Denoise + SMOTE | 73.39% | 56.75% | 78.80% |
| Edge-IIoT | LR | Denoise + Ours | 73.25% | 56.19% | 77.51% |
| IoT-NID | NN | Denoise-only | 85.53% | 59.90% | 96.52% |
| IoT-NID | NN | Denoise + MixUp | 85.90% | 60.41% | 96.76% |
| IoT-NID | NN | Denoise + SMOTE | 85.93% | 60.80% | 96.70% |
| IoT-NID | NN | Denoise + Ours | 85.87% | 60.50% | 96.74% |
| IoT-NID | LR | Denoise-only | 78.27% | 48.79% | 90.90% |
| IoT-NID | LR | Denoise + MixUp | 86.43% | 64.21% | 95.96% |
| IoT-NID | LR | Denoise + SMOTE | 86.45% | 64.20% | 95.98% |
| IoT-NID | LR | Denoise + Ours | 86.48% | 64.36% | 95.97% |
Table 5. Ablation of post-denoising compensation strategies. Denoise-only is compared with embedding-space compensation via MixUp, SMOTE, and Ours (Gaussian embedding synthesis fitted on the remaining samples). We report F1-All, F1-New, F1-Old [%].
In the following, we ablate the post denoising compensation stage. Specifically, after the noise detection module, we compare Denoise-only (no compensation) with three embedding-space compensation strategies: MixUp, SMOTE, and Ours (Gaussian embedding synthesis fitted on the remaining samples). Experiments are conducted on the three datasets, using NN and LR. Table V reports F1-All, F1-New, and F1-Old.
Overall, Denoise-only is insufficient and can significantly degrade performance after samples are filtered out. This issue is particularly pronounced for LR, which relies on adequate coverage of the feature space. For instance, on CSE-CIC-IDS2018 with LR, Denoise-only yields only 78.66% F1-All and 32.74% F1-New, resulting in weaker generalization to new classes due to the lack of compensation. On the other hand, biflow compensation restores and often improves performance, suggesting that denoising and compensation play complementary roles: denoising improves sample reliability, while compensation mitigates the distribution gaps caused by filtering. Moreover, our Gaussian embedding synthesis (Denoise+Ours) performs on par with widely-used alternatives such as MixUp and SMOTE in embedding space. Notably, on CSE-CIC-IDS2018 with NN, Denoise+Ours achieves the best results (95.01% F1-All and 87.02% F1-New), slightly outperforming the baselines. These results confirm that post-denoising compensation is crucial for maintaining performance under few-shot filtering, and our approach provides competitive (and occasionally superior) gains relative to standard embedding-space augmentation methods.
Multiple Incremental Results
To complement the single-session protocol used in the main evaluation, we further assess NAFN under a multi-step incremental setting. For each dataset, the rare attack classes originally assigned to are introduced sequentially over three incremental steps, with one new class added at each step. At step , the model is adapted using the available few-shot samples of the current new class, while the previously observed classes are retained through the memory buffer. The evaluation set then includes all classes observed up to that step, allowing us to measure both the adaptation to the newly introduced attack and the preservation of previously acquired knowledge. We keep the same experimental setup used in the main experiments; values are averaged over 100 tasks and reported as mean F1-score with standard deviation.
| Dataset | Classifier | Step | F1-All | F1-New | F1-Old |
| CSE-CIC-IDS2018 | NN | #1 | 99.12 ±0.39 | 96.71 ±1.50 | 99.38 ±0.31 |
| CSE-CIC-IDS2018 | NN | #2 | 99.06 ±0.37 | 99.86 ±0.42 | 98.98 ±0.40 |
| CSE-CIC-IDS2018 | NN | #3 | 97.18 ±0.65 | 85.18 ±4.07 | 98.27 ±0.40 |
| CSE-CIC-IDS2018 | LR | #1 | 99.08 ±0.65 | 96.29 ±1.57 | 99.40 ±0.26 |
| CSE-CIC-IDS2018 | LR | #2 | 99.17 ±0.36 | 99.95 ±0.24 | 99.09 ±0.39 |
| CSE-CIC-IDS2018 | LR | #3 | 94.70 ±0.70 | 76.20 ±4.03 | 96.39 ±0.60 |
| Edge-IIoT | NN | #1 | 82.23 ±1.07 | 92.84 ±3.12 | 81.35 ±1.11 |
| Edge-IIoT | NN | #2 | 83.11 ±1.07 | 100.00 ±0.00 | 81.81 ±1.15 |
| Edge-IIoT | NN | #3 | 80.92 ±1.06 | 55.33 ±4.73 | 82.75 ±1.01 |
| Edge-IIoT | LR | #1 | 82.70 ±1.04 | 92.88 ±3.28 | 81.86 ±1.07 |
| Edge-IIoT | LR | #2 | 83.66 ±0.95 | 100.00 ±0.00 | 82.40 ±1.03 |
| Edge-IIoT | LR | #3 | 79.99 ±1.07 | 54.03 ±1.54 | 81.85 ±1.08 |
| IoT-NID | NN | #1 | 96.77 ±1.11 | 87.48 ±4.83 | 98.10 ±0.64 |
| IoT-NID | NN | #2 | 95.21 ±1.07 | 86.66 ±4.27 | 96.28 ±0.87 |
| IoT-NID | NN | #3 | 93.53 ±1.27 | 88.68 ±4.60 | 94.07 ±1.13 |
| IoT-NID | LR | #1 | 96.67 ±0.99 | 88.63 ±3.54 | 97.82 ±0.69 |
| IoT-NID | LR | #2 | 94.51 ±1.18 | 85.97 ±3.92 | 95.58 ±1.01 |
| IoT-NID | LR | #3 | 92.93 ±1.23 | 88.18 ±4.31 | 93.46 ±1.14 |
Table VI. Multi-step incremental performance of NAFN on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID. Each step introduces one additional rare attack class. Evaluation is performed over all classes observed so far.
Table VI shows that NAFN remains effective beyond a single incremental session. Across datasets and classifiers, F1-Old stays stable after successive updates, indicating that NAFN mitigates catastrophic forgetting even when new attacks are introduced one by one. This behavior is particularly clear on CSE-CIC-IDS2018, where NN preserves F1-Old above 98% across all three steps, and on IoT-NID, where both classifiers retain more than 93% F1-Old at the final step. The overall performance also remains competitive: after three incremental steps, NAFN achieves 97.18%, 80.92%, and 93.53% F1-All with NN on CSE-CIC-IDS2018, Edge-IIoT, and IoT-NID, respectively. The main limitation appears in F1-New when the final introduced class is substantially harder or less separable. For example, on Edge-IIoT, F1-New reaches 100.00% at step #2 but drops to 55.33% for NN and 54.03% for
LR at step #3. A similar, though milder, pattern appears on CSE-CIC-IDS2018 with LR, where the final-step F1-New decreases to 76.20%. These drops highlight that multi-step FSCIL performance depends not only on the number of sessions but also on the intrinsic separability and biflow quality of the newly introduced attack class. Nevertheless, the corresponding F1-Old remains high, showing that the performance loss is concentrated on the current new class rather than caused by broad forgetting.
References
- [1]I. Rakine, A. Oukaira, K. El Guemmat, I. Atouf, S. Ouahabi, M. Talea, and T. Bouragba, “Comprehensive Review of Intrusion Detection Techniques: ML and DL in Different Networks,” IEEE Access, vol. 13, pp. 104 345–104 367, 2025.DOI
- [2]C. P. Research. (2025, Nov.) Global Cyber Attacks Surge in October 2025—Amid Explosive Ransomware Growth and Rising GenAI Threats. Accessed: 2025–11–25. [Online]. Available: https://blog.checkpoint.com/research/global-cyber-attacks-surge-in-october-2025-amid-explosive-ransomware-growth-and-rising-genai-threats/
- [3]Z. Song, Z. Zhao, F. Zhang, G. Xiong, G. Cheng, X. Zhao, S. Guo, and B. Chen, “t2RNN: An Incremental and Interpretable Recurrent Neural Network for Encrypted Traffic Classification,” IEEE Trans. Depend. Sec. Comput., pp. 1–14, 2023.DOI
- [4]X. Zhang, Y. Wang, T. Ohtsuki, G. Gui, C. Yuen, M. Di Renzo, and H. Sari, “Malware Traffic Classification via Expandable Class Incremental Learning With Architecture Search,” IEEE Trans. Inf. Forensics Security, vol. 20, pp. 6074–6085, 2025.DOI
- [5]Z. Zhao, Y. Wang, Y. Lai, S. Yu, and J. Shi, “MUFFIN: A Meta-Knowledge Decoupling-Based Approach to Few-Shot IoT Traffic Classification,” IEEE/ACM Trans. Netw., vol. 34, pp. 411–426, 2026.DOI
- [6]Z. Zhao, Y. Lai, Y. Wang, W. Jia, and H. He, “A Few-Shot Learning Based Approach to IoT Traffic Classification,” IEEE Commun. Lett., vol. 26, no. 3, pp. 537–541, 2022.DOI
- [7]D. Di Monda, A. Montieri, V. Persico, P. Voria, M. De Ieso, and A. Pescapé, “Few-Shot Class-Incremental Learning for Network Intrusion Detection Systems,” IEEE Open Journal of the Communications Society, vol. 5, pp. 6736–6757, 2024.
- [8]L. Du, Z. Gu, Y. Wang, L. Wang, and Y. Jia, “A Few-Shot Class-Incremental Learning Method for Network Intrusion Detection,” IEEE Trans. Netw. Service Manag., vol. 21, no. 2, pp. 2389–2401, 2024.
- [9]F. Cerasuolo, G. Bovenzi, D. Ciuzono, and A. Pescapé, “Attack-Adaptive Network Intrusion Detection Systems for IoT Networks through Class Incremental Learning,” Computer Networks, vol. 263, p. 11228, 2025.DOI
- [10]M. Zhang, X. Zhao, J. Yao, C. Yuan, and W. Huang, “When Noisy Labels Meet Long Tail Dilemmas: A Representation Calibration Method,” in Proc. IEEE/CVF Int. Conference on Computer Vision (ICCV), 2023, pp. 15 890–15 900.arxiv.org/abs/2211.10955
- [11]D. Rolnick, A. Veit, S. Belongie, and N. Shavit, “Deep Learning is Robust to Massive Label Noise,” arXiv preprint arXiv:1705.10694, 2017.arxiv.org/abs/1705.10694
- [12]S. Yang, L. Liu, and M. Xu, “Free Lunch for Few-shot Learning: Distribution Calibration,” in Proc. Int. Conference on Learning Representations (ICLR), 2021.arxiv.org/abs/2101.06395
- [13]Y. Tian, Y. Wang, D. Krishnan, J. B. Tenenbaum, and P. Isola, “Rethinking Few-Shot Image Classification: A Good Embedding is All You Need?” in Proc. European Conference Computer Vision (ECCV), 2020, pp. 266–282.arxiv.org/abs/2003.11539
- [14]I. O. Lopes, D. Zou, I. H. Abdulqadder, F. A. Ruambo, B. Yuan, and H. Jin, “Effective Network Intrusion Detection via Representation Learning: A Denoising Autoencoder Approach,” Computer Communications, vol. 194, pp. 55–65, 2022.DOI
- [15]K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick, “Momentum Contrast for Unsupervised Visual Representation Learning,” in Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 9729–9738.arxiv.org/abs/1911.05722
- [16]Y. Ma, Z. Li, H. Xue, and J. Chang, “A Balanced Supervised Contrastive Learning-Based Method for Encrypted Network Traffic Classification,” Computers & Security, vol. 145, p. 104023, 2024.DOI
- [17]Y. Wang, H. Xu, J. Ma et al., “MTRC: A Self-Supervised Network Intrusion Detection Framework Based on Multiple Transformers-Enabled Data Reconstruction With Contrastive Learning,” Journal of Network and Computer Applications, vol. 243, p. 104300, 2025.DOI
- [18]S.-A. Rebuffi, A. Kolesnikov, G. Sperl, and C. H. Lampert, “iCaRL: Incremental Classifier and Representation Learning,” in Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.arxiv.org/abs/1611.07725
- [19]J. Bang, H. Kim, Y. Yoo, J.-W. Ha, and J. Choi, “Rainbow Memory: Continual Learning with a Memory of Diverse Samples,” in Proc. IEEE/CVF Int. Conference on Computer Vision (ICCV), 2021, pp. 8218–8227.arxiv.org/abs/2103.17230
- [20]T. Wang, Q. Lv, B. Hu, and D. Sun, “A Few-Shot Class-Incremental Learning Approach for Intrusion Detection,” in Proc. IEEE Int. Conference on Computer Communications and Networks (ICCCN), 2021, pp. 1–8.
- [21]M. Abrishami, S. Dadkhah, E. C. P. Neto, P. Xiong, S. Iqbal, S. Ray, and A. A. Ghorbani, “Label Noise Detection in IoT Security based on Decision Tree and Active Learning,” in Proc. IEEE Int. Conference on Smart Communities: Improving Quality of Life Using ICT, IoT and AI (HONET), 2022, pp. 046–053.DOI
- [22]Q. Yuan, C. Liu, W. Yu, Y. Zhu, G. Xiong, Y. Wang, and G. Gou, “BoAu: Malicious Traffic Detection with Noise Labels Based on Boundary Augmentation,” Computers & Security, vol. 131, p. 103300, 2023.DOI
- [23]Q. Yuan, G. Gou, Y. Zhu, Y. Zhu, G. Xiong, and Y. Wang, “MCRe: A Unified Framework for Handling Malicious Traffic with Noise Labels Based on Multidimensional Constraint Representation,” IEEE Trans. Inf. Forensics Security, vol. 19, pp. 133–147, 2023.DOI
- [24]E. Hallaji, R. Razavi-Far, M. Saif, and E. Herrera-Viedma, “Label Noise Analysis Meets Adversarial Training: A Defense Against Label Poisoning in Federated Learning,” Knowledge-Based Systems, vol. 266, p. 110384, 2023.DOI
- [25]Z. Wang, Y. Lu, W. Wu, Y. Lu, and H. Wang, “A Few-Shot and Anti-Forgetting Network Intrusion Detection System based on Online Meta Learning,” in Proc. IEEE Global Communications Conference (GLOBECOM), 2024, pp. 3877–3882.
- [26]M. Hosseini and W. Shi, “Intrusion Detection in IoT Network using Few-Shot Class Incremental Learning,” in Proc. Future of Information and Communication Conference, 2024, pp. 617–636.DOI
- [27]Q. P. X. Cao, D. D. Tran, S. T. T. Ngo, K. H. Nghi, D. T. Phan, and H. V. Pham, “A Study on Few-Shot Learning Approach for Intrusion Detection System with Class Incremental Learning,” in Proc. Int. Conference on Intelligent Information Technology, 2025, pp. 113–120.
- [28]Q. Meng, Q. Yuan, J. Tao, P. Wang, S. Lu, G. Li, Y. Wang, and X. Guan, “When Unknown Threat Meets Label Noise: A Self-Correcting Framework,” IEEE Trans. Depend. Sec. Comput., vol. 23, no. 1, pp. 905–922, 2026.
- [29]M. Zhan, R. Zhao, X. Deng, Z. Xue, Q. Li, Z. Liu, G. Cheng, and K. Xu, “FlowRefiner: A Robust Traffic Classification Framework against Label Noise,” in Proc. Advances in Neural Information Processing Systems, 2025.DOI
- [30]T. Hasan, J. Malik, I. Bibi, W. U. Khan, F. N. Al-Wesabi, K. Dev, and G. Huang, “Securing Industrial Internet of Things Against Botnet Attacks Using Hybrid Deep Learning Approach,” IEEE Trans. Netw. Sci. Eng., vol. 10, no. 5, pp. 2952–2963, 2023.
- [31]D. Monda, F. Rustam, A. D. Jurcut, and A. Pescapé, “Rapid Few-Shot Learning for Resilient Multi-Domain Intrusion Detection,” in Proc. IEEE Global Communications Conference (GLOBECOM), 2025.DOI
- [32]C. Lu, X. Wang, A. Yang, Y. Liu, and Z. Dong, “A Few-Shot Based Model-Agnostic Meta-Learning for Intrusion Detection in Security of Internet of Things,” IEEE Internet Things J., vol. 10, no. 24, pp. 21 309–21 321, 2023.DOI
- [33]M. Masana, X. Liu, B. Twardowski, M. Menta, A. D. Bagdanov, and J. Van De Weijer, “Class-Incremental Learning: Survey and Performance Evaluation on Image Classification,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 45, no. 5, pp. 5513–5533, 2022.DOI
- [34]Y. Wang, Q. Yao, J. T. Kwok, and L. M. Ni, “Generalizing from a Few Examples: A Survey on Few-Shot Learning,” ACM Computing Surveys, vol. 53, no. 3, pp. 1–34, 2020.arxiv.org/abs/1904.05046
- [35]X. Tao, X. Hong, X. Chang, S. Dong, X. Wei, and Y. Gong, “Few-Shot Class-Incremental Learning,” in Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 12 183–12 192.arxiv.org/abs/2004.10956
- [36]D.-W. Zhou, F.-Y. Wang, H.-J. Ye, L. Ma, S. Pu, and D.-C. Zhan, “Forward Compatible Few-Shot Class-Incremental Learning,” in Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 9046–9056.arxiv.org/abs/2203.06953
- [37]Q.-W. Wang, D.-W. Zhou, Y.-K. Zhang, D.-C. Zhan, and H.-J. Ye, “Few-Shot Class-Incremental Learning via Training-Free Prototype Calibration,” in Proc. Advances in Neural Information Processing Systems, vol. 36, 2023, pp. 15 060–15 076.arxiv.org/abs/2312.05229
- [38]C. Finn, P. Abbeel, and S. Levine, “Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks,” in Proc. Int. Conference on Machine Learning (ICML), 2017, pp. 1126–1135.arxiv.org/abs/1703.03400
- [39]J. Snell, K. Swersky, and R. Zemel, “Prototypical Networks for Few-Shot Learning,” in Proc. Advances in Neural Information Processing Systems, vol. 30, 2017.arxiv.org/abs/1703.05175
- [40]G. Apruzzese, L. Pajola, and M. Conti, “The Cross-Evaluation of Machine Learning-based Network Intrusion Detection Systems,” IEEE Trans. Netw. Service Manag., vol. 19, no. 4, pp. 5152–5169, 2022.DOI
- [41]A. Raghu, M. Raghu, S. Bengio, and O. Vinyals, “Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAML,” in Proc. Int. Conference on Learning Representations (ICLR), 2020.arxiv.org/abs/1909.09157
- [42]G. Jiang, J. Zhang, X. Bai, W. Wang, and D. Meng, “Which Is More Effective in Label Noise Cleaning, Correction or Filtering?” in Proc. AAAI Conference on Artificial Intelligence, vol. 38, no. 11, 2024, pp. 12 866–12 873.
- [43]O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation,” in Proc. Medical Image Computing and Computer-Assisted Intervention (MICCAI), 2015, pp. 234–241.arxiv.org/abs/1505.04597
- [44]H.-J. Liao, C.-H. R. Lin, Y.-C. Lin, and K.-Y. Tung, “Intrusion Detection System: A Comprehensive Review,” Journal of Network and Computer Applications, vol. 36, no. 1, pp. 16–24, 2013.
- [45]C. Wang, A. Finamore, P. Michiardi, M. Gallo, and D. Rossi, “Data Augmentation for Traffic Classification,” in Proc. Passive and Active Measurement (PAM), 2024, pp. 159–186.arxiv.org/abs/2401.10754
- [46]X. Que and Q. Yu, “Dual-Level Curriculum Meta-Learning for Noisy Few-Shot Learning Tasks,” in Proc. AAAI Conference on Artificial Intelligence, vol. 38, no. 13, 2024, pp. 14 740–14 748.
- [47]I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization,” Proc. Int. Conference on Information Systems Security and Privacy (ICISSP), vol. 1, pp. 108–116, 2018.DOI
- [48]M. A. Farag, O. Friha, D. Hamouda, L. Maglaras, and H. Janicke, “Edge-IIoTset: A New Comprehensive Realistic Cyber Security Dataset of IoT and IIoT Applications for Centralized and Federated Learning,” IEEE Access, vol. 10, pp. 40 281–40 306, 2022.
- [49]H. Kang, D. H. Ahn, G. M. Lee, J. D. Yoo, K. H. Park, and H. Kim, “IoT Network Intrusion Dataset,” IEEE Dataport, 2019.
- [50]F. Cerasuolo, G. Bovenzi, D. Ciounzono, and A. Pescapé, “Adaptable, Incremental, and Explainable Network Intrusion Detection Systems for Internet of Things,” Engineering Applications of Artificial Intelligence, vol. 144, p. 110143, 2025.DOI
- [51]D. Di Monda, G. Bovenzi, A. Montieri, V. Persico, and A. Pescapé, “IoT Botnet-Traffic Classification Using Few-Shot Learning,” in Proc. IEEE Int. Conference on Big Data (BigData), 2023, pp. 3284–3293.DOI
- [52]A. Berthon, B. Han, G. Niu, T. Liu, and M. Sugiyama, “Confidence Scores Make Instance-Dependent Label-Noise Learning Possible,” in Proc. Int. Conference on Machine Learning (ICML), 2021, pp. 825–836.
- [53]A. Iscen, J. Valmadre, A. Arnab, and C. Schmid, “Learning with Neighbor Consistency for Noisy Labels,” in Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 4662–4671.arxiv.org/abs/2202.02200
- [54]Y. Jiang, X. Wang, Y. Lai, and Y. Wang, “A Packet Sequence Permutation-Aware Approach to Robust Network Traffic Classification,” IEEE Networking Letters, vol. 6, no. 3, pp. 203–207, 2024.
- [55]X. Zhang, R. Zhao, Z. Jiang, Z. Sun, Y. Ding, E. C. Ngai, and S.-H. Yang, “AOC–IDS: Autonomous Online Framework with Contrastive Learning for Intrusion Detection,” in Proc. IEEE Conference on Computer Communications (INFOCOM), 2024, pp. 581–590.arxiv.org/abs/2402.01807





