paper-with-me

홈 › Papers

Self-Supervised Transformer-based Contrastive Learning for Intrusion Detection Systems

2025-05-12 · Ippokratis Koukoulis, Ilias Syrigos, Thanasis Korakis

As the digital landscape becomes more interconnected, the frequency and severity of zero-day attacks, have significantly increased, leading to an urgent need for innovative Intrusion Detection Systems (IDS). Machine Learning-based IDS that learn from the network traffic characteristics and can discern attack patterns from benign traffic offer an advanced solution to traditional signature-based IDS. However, they heavily rely on labeled datasets, and their ability to generalize when encountering unseen traffic patterns remains a challenge. This paper proposes a novel self-supervised contrastive learning approach based on transformer encoders, specifically tailored for generalizable intrusion detection on raw packet sequences. Our proposed learning scheme employs a packet-level data augmentation strategy combined with a transformer-based architecture to extract and generate meaningful representations of traffic flows. Unlike traditional methods reliant on handcrafted statistical features (NetFlow), our approach automatically learns comprehensive packet sequence representations, significantly enhancing performance in anomaly identification tasks and supervised learning for intrusion detection. Our transformer-based framework exhibits better performance in comparison to existing NetFlow self-supervised methods. Specifically, we achieve up to a 3% higher AUC in anomaly detection for intra-dataset evaluation and up to 20% higher AUC scores in inter-dataset evaluation. Moreover, our model provides a strong baseline for supervised intrusion detection with limited labeled data, exhibiting an improvement over self-supervised NetFlow models of up to 1.5% AUC when pretrained and evaluated on the same dataset. Additionally, we show the adaptability of our pretrained model when fine-tuned across different datasets, demonstrating strong performance even when lacking benign data from the target domain.

📄 PDF Abstract BibTeX arXiv:2505.08816

Code (1)

koukipp/contrastive_transformers_ids 공식 구현

Tasks

Anomaly DetectionContrastive LearningData AugmentationIntrusion Detection

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

An Investigation into the Performance of Non-Contrastive Self-Supervised Learning Methods for Network Intrusion Detection

2025-09-27 · Hamed Fard, Tobias Schalau, Gerhard Wunder arxiv

Network intrusion detection, a well-explored cybersecurity field, has predominantly relied on supervised learning algorithms in the past two decades. However, their limitations in detecting only known anomalies prompt th…

Network Intrusion DetectionSelf-Supervised LearningRepresentation Learning

Contrastive Self-Supervised Network Intrusion Detection using Augmented Negative Pairs

2025-09-08 · Jack Wilkie, Hanan Hindy, Christos Tachtatzis, Robert Atkinson arxiv

Network intrusion detection remains a critical challenge in cybersecurity. While supervised machine learning models achieve state-of-the-art performance, their reliance on large labelled datasets makes them impractical f…

Network Intrusion DetectionMulti-class ClassificationSelf-Supervised LearningBinary Classification

Self-Supervised Learning of Graph Representations for Network Intrusion Detection

2025-09-20 · Lorenzo Guerra, Thomas Chapuis, Guillaume Duc, Pavlo Mozharovskyi 외 arxiv

Detecting intrusions in network traffic is a challenging task, particularly under limited supervision and constantly evolving attack patterns. While recent works have leveraged graph neural networks for network intrusion…

Network Intrusion DetectionSelf-Supervised LearningRepresentation LearningGraph Neural Network

Applying Self-supervised Learning to Network Intrusion Detection for Network Flows with Graph Neural Network

2024-03-03 · Renjie Xu, Guangwei Wu, Weiping Wang, Xing Gao 외

Graph Neural Networks (GNNs) have garnered intensive attention for Network Intrusion Detection System (NIDS) due to their suitability for representing the network traffic flows. However, most present GNN-based methods fo…

Binary ClassificationContrastive LearningGraph AttentionGraph Embedding+4

Timestamp-Aware Spatio-Temporal Graph Contrastive Learning for Network Intrusion Detection

2026-06-15 · Jianli Dai, Guangwei Wu, Jiacheng Li, Weiping Wang 외 arxiv

Given their effectiveness in modeling the relational structure among network traffic flows, graph neural networks (GNNs) have been widely adopted in network intrusion detection systems (NIDSs). However, most existing GNN…

Network Intrusion DetectionComputational EfficiencyRepresentation LearningContrastive Learning