Manuscript Offprint

arXiv:2609.11275

Few-Shot Learning for Network Intrusion Detection: Methods, Datasets, and Performance

Arne Roszeitis, Victor Jüttner, Erik Buchmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Arne Roszeitis, Victor Jüttner, and Erik Buchmann

Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI)

Dresden/Leipzig, Leipzig University, Leipzig, Germany

Email: {arne.roszeitis, victor.juettner, erik.buchmann}@uni-leipzig.de

Abstract. Anomaly-based network intrusion detection systems (NIDS) are an important first line of defense. However, training NIDS for new attack types is challenging, because labeled attack data are rarely available. Few-shot learning (FSL) addresses this problem by learning from few samples. However, the approaches and evaluation settings, that have been investigated so far, vary widely. This work systematically reviews FSL approaches for NIDS published from 2022 to 2026. We conduct a systematic literature review with PRISMA 2020-like reporting to search ACM Digital Library, IEEE Xplore, and Scopus. From a set of 1,358 initial records, we retain 21 studies after screening, deduplication, and quality filtering. We classify the applied FSL approaches, datasets, and experimental parameters and compare reported performance. Meta-learning and convolutional neural networks are the most common approaches, with 8 and 10 studies, respectively. Most studies evaluate five or fewer samples per class, although settings vary. CIC-IDS2017 and CSE-CIC-IDS2018 are the most frequently used datasets. Missing parameters and source code limit reproducibility and direct comparison between approaches.

Keywords: Network Intrusion Detection · Few-Shot Learning · Review

1 Introduction

Network intrusion detection systems [23] (NIDS) identify attacks that cross network boundaries, complement host-based defenses, and provide control points in heterogeneous environments [3]. As today's attackers increasingly use generative AI [17] to modify payloads, alter protocol interactions, and tailor attacks to specific systems [2], NIDS must adapt quickly to new attacks.

Signature-based detection cannot recognize attacks for which no rule exists, and anomaly-based approaches raise alerts without identifying the attack type [23,3]. Supervised, learning-based NIDS close this gap by generalizing from labeled traffic; however, they require labeled samples of every attack class they are expected to recognize. For novel attacks, such labels are scarce, while benign traffic dominates the available data [15]. Few-shot learning [45] (FSL) addresses exactly this situation by learning new classes from a small number of labeled samples, making it a natural fit for intrusion detection under label scarcity.

Driven by this promise, a growing body of studies has applied FSL to network intrusion detection in recent years. However, the field has not yet converged on common practices. There is no consensus on which FSL techniques or combinations perform best, nor on how they should be evaluated. Moreover, the meaning of “few” remains inconsistent, with recent studies using between one and 20 samples per class [51,53]. Studies differ in the number of samples per class, the number of classes, the datasets used, preprocessing steps, and reported metrics, and reporting practices vary widely. Without such common ground, reported results cannot be compared across studies and reproduction is difficult wherever parameters remain undisclosed. To structure the current landscape, we answer three research questions:

RQ1 Which learning techniques are used for few-shot NIDS?

RQ2 Which datasets are used to evaluate these approaches?

RQ3 How are these approaches evaluated?

In this paper, we contribute a systematic literature review following [24] with a PRISMA 2020-like reporting [36] of recent studies on FSL for NIDS. We searched the ACM Digital Library, IEEE Xplore, and Scopus for peer-reviewed studies published between 2022 and 2026. Our search returned 1,358 records, of which we retained 21 studies for detailed analysis after deduplication and filtering according to predefined criteria. For each study, we extract the applied learning technique, datasets, evaluation settings, and reported FSL parameters where available. We organize the studies by their main techniques and compare their reported results where possible.

Most reviewed studies combine multiple learning techniques (17 of 21), with CNNs (10 of 21) and meta-learning (8 of 21) being the most common. Among the 17 studies reporting k, k=5 is the most frequent setting. CIC-IDS2017 and CSE-CIC-IDS2018 are the most widely used datasets, appearing in 11 and 6 studies, respectively. Accuracy, precision, recall, and F1-score are the dominant evaluation metrics, with 15 studies reporting F1-scores. However, evaluation settings vary substantially: five studies omit k, four omit the number of classes n, and most provide no accessible source code. These gaps limit reproducibility and direct comparison.

References (49)