Feature Distribution Shift Mitigation with Contrastive Pretraining for Intrusion Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Weixing, Yang, Haojin, Meinel, Christoph, Özkan, Hasan Yagiz, Serna, Cristian Bermudez, Mas-Machuca, Carmen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909179907670016
author Wang, Weixing
Yang, Haojin
Meinel, Christoph
Özkan, Hasan Yagiz
Serna, Cristian Bermudez
Mas-Machuca, Carmen
author_facet Wang, Weixing
Yang, Haojin
Meinel, Christoph
Özkan, Hasan Yagiz
Serna, Cristian Bermudez
Mas-Machuca, Carmen
contents In recent years, there has been a growing interest in using Machine Learning (ML), especially Deep Learning (DL) to solve Network Intrusion Detection (NID) problems. However, the feature distribution shift problem remains a difficulty, because the change in features' distributions over time negatively impacts the model's performance. As one promising solution, model pretraining has emerged as a novel training paradigm, which brings robustness against feature distribution shift and has proven to be successful in Computer Vision (CV) and Natural Language Processing (NLP). To verify whether this paradigm is beneficial for NID problem, we propose SwapCon, a ML model in the context of NID, which compresses shift-invariant feature information during the pretraining stage and refines during the finetuning stage. We exemplify the evidence of feature distribution shift using the Kyoto2006+ dataset. We demonstrate how pretraining a model with the proper size can increase robustness against feature distribution shifts by over 8%. Moreover, we show how an adequate numerical embedding strategy also enhances the performance of pretrained models. Further experiments show that the proposed SwapCon model also outperforms eXtreme Gradient Boosting (XGBoost) and K-Nearest Neighbor (KNN) based models by a large margin.
format Preprint
id arxiv_https___arxiv_org_abs_2404_15382
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Feature Distribution Shift Mitigation with Contrastive Pretraining for Intrusion Detection
Wang, Weixing
Yang, Haojin
Meinel, Christoph
Özkan, Hasan Yagiz
Serna, Cristian Bermudez
Mas-Machuca, Carmen
Machine Learning
Artificial Intelligence
Networking and Internet Architecture
In recent years, there has been a growing interest in using Machine Learning (ML), especially Deep Learning (DL) to solve Network Intrusion Detection (NID) problems. However, the feature distribution shift problem remains a difficulty, because the change in features' distributions over time negatively impacts the model's performance. As one promising solution, model pretraining has emerged as a novel training paradigm, which brings robustness against feature distribution shift and has proven to be successful in Computer Vision (CV) and Natural Language Processing (NLP). To verify whether this paradigm is beneficial for NID problem, we propose SwapCon, a ML model in the context of NID, which compresses shift-invariant feature information during the pretraining stage and refines during the finetuning stage. We exemplify the evidence of feature distribution shift using the Kyoto2006+ dataset. We demonstrate how pretraining a model with the proper size can increase robustness against feature distribution shifts by over 8%. Moreover, we show how an adequate numerical embedding strategy also enhances the performance of pretrained models. Further experiments show that the proposed SwapCon model also outperforms eXtreme Gradient Boosting (XGBoost) and K-Nearest Neighbor (KNN) based models by a large margin.
title Feature Distribution Shift Mitigation with Contrastive Pretraining for Intrusion Detection
topic Machine Learning
Artificial Intelligence
Networking and Internet Architecture
url https://arxiv.org/abs/2404.15382