arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.17725cs.CRcs.NI
收藏

超越模型缩放:重新思考基于Transformer的网络入侵检测的序列构建

Beyond Model Scaling: Rethinking Sequence Construction for Transformer-based Network Intrusion Detection

Macquarie University(麦考瑞大学)

Zeeshan Zulkifl Shah, Muhammad Ikram, Dali Kaafar, Yipeng Zhou

AI总结:

该研究针对基于Transformer的网络入侵检测,提出会话一致性时间化方法,发现时间化是性能主导因素,会话一致性时间化可大幅提升Macro-F1,更大Transformer无精度增益,关键是保留通信会话语义。

摘要:

基于Transformer的网络入侵检测系统(NIDS)在检测多阶段网络攻击方面展现出强大潜力,但大多数方法采用固定时间化方案构建输入序列,而非将序列构建视为系统设计决策。在基于流的入侵检测中,基于时间戳的窗口划分常将相关攻击活动碎片化,同时合并无关通信,减少了Transformer可用的行为上下文。本文提出一种统一的流水线抽象,将基于Transformer的NIDS分解为四个设计维度(流量表示、时间化、Transformer主干和预测聚合),并提出会话一致性时间化,即从通信会话而非固定时间窗口构建序列。在三个互补的入侵检测数据集上的实验表明,时间化是控制Transformer性能的主导因素:会话一致性时间化的Macro-F1较基于时间戳的窗口划分提升一倍以上,使轻量级Transformer在比预训练模型高得多的推理吞吐量下达到最高0.95的Macro-F1。我们进一步将Transformer规模从0.65M参数调整至3.38M参数,发现更大的Transformer模型尽管计算成本显著更高,却未带来可测量的精度提升,而零样本跨数据集评估在域偏移下仅显示适度增益。这些结果表明,保留通信会话语义而非缩放Transformer容量,是实现准确高效的基于Transformer的入侵检测的关键。

英文摘要:

Transformer-based network intrusion detection systems (NIDS) have shown strong potential for detecting multi-stage cyberattacks, yet most methods construct input sequences using fixed temporalization schemes rather than treating sequence construction as a systems design decision. In flow-based intrusion detection, timestamp-based windowing often fragments related attack activities while merging unrelated communications, reducing the behavioral context available to transformers. We present a unified pipeline abstraction that decomposes transformer-based NIDS into four design dimensions (traffic representation, temporalization, transformer backbone, and prediction aggregation) and propose session-coherent temporalization, which constructs sequences from communication sessions instead of fixed time windows. Experiments on three complementary intrusion detection datasets show that temporalization is the dominant factor governing transformer performance: session-coherent temporalization more than doubles Macro-F1 over timestamp-based windowing, enabling lightweight transformers to achieve up to 0.95 Macro-F1 at substantially higher inference throughput than pretrained models. We further vary the transformer size from 0.65M to 3.38M parameters and find that larger transformer models provide no measurable accuracy improvement despite substantially higher computational cost, while zero-shot cross-dataset evaluation shows only modest gains under domain shift. These results indicate that preserving communication-session semantics, rather than scaling transformer capacity, is the key to accurate and efficient transformer-based intrusion detection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑