arXiv:2410.18658cs.LGcs.CR2024-10被引 1

用滑动窗口和可训练激活函数提升网络入侵检测精度与泛化能力

NIDS Neural Networks Using Sliding Time Window Data Processing with Trainable Activations and its Generalization Capability

  • 基于滑动时间窗处理流量数据,仅需11个基础特征
  • 训练准确率超99%,20个输入特征即可实现高精度
  • 揭示了模型在不同数据集间泛化性能不稳的根源

本文提出一种用于网络入侵检测系统(NIDS)的神经网络方法,基于时间窗口预处理的流数据进行建模。该方法仅依赖11个无需深度包检测的特征,可在多数NIDS数据集中获取,并由常规流量采集器生成。时间窗口通过聚合主机相关信息,有助于识别传统聚合方式遗漏的流量特征。研究了多种网络结构,提出采用受Kolmogorov-Arnold网络(KAN)启发的可训练激活函数,以在更简单的网络结构下获得更高准确率。实验显示,该方法在仅20个输入特征条件下,训练准确率超过99%。同时,本文系统研究了NIDS的泛化能力——这一先前研究中常被忽视的关键问题。使用CICIDS2017数据集及本研究自建的数据集进行泛化测试,结果表明:当更换数据集时,性能显著下降,其根源在于同一类流量在不同数据集中签名差异,而这又源于底层网络差异。进一步发现,部分神经网络的泛化准确率极不稳定,对随机初始化敏感;而参数较少、激活函数优化得当的模型则更具稳定性且表现更优。

原文摘要 · Abstract (English)

This paper presents neural networks for network intrusion detection systems (NIDS), that operate on flow data preprocessed with a time window. It requires only eleven features which do not rely on deep packet inspection and can be found in most NIDS datasets and easily obtained from conventional flow collectors. The time window aggregates information with respect to hosts facilitating the identification of flow signatures that are missed by other aggregation methods. Several network architectures are studied and the use of Kolmogorov-Arnold Network (KAN)-inspired trainable activation functions that help to achieve higher accuracy with simpler network structure is proposed. The reported training accuracy exceeds 99% for the proposed method with as little as twenty neural network input features. This work also studies the generalization capability of NIDS, a crucial aspect that has not been adequately addressed in the previous studies. The generalization experiments are conducted using CICIDS2017 dataset and a custom dataset collected as part of this study. It is shown that the performance metrics decline significantly when changing datasets, and the reduction in performance metrics can be attributed to the difference in signatures of the same type flows in different datasets, which in turn can be attributed to the differences between the underlying networks. It is shown that the generalization accuracy of some neural networks can be very unstable and sensitive to random initialization parameters, and neural networks with fewer parameters and well-tuned activations are more stable and achieve higher accuracy.

入侵检测神经网络时间窗口泛化能力

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。