arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.11449cs.LGcs.NI
收藏

NetMamba:通过预训练单向Mamba实现高效网络流量分类

NetMamba: Efficient Network Traffic Classification via Pre-training Unidirectional Mamba

Institute for Network Sciences and Cyberspace, Tsinghua University(清华大学网络科学与网络空间研究院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)

Tongze Wang, Xiaohui Xie, Wenduo Wang, Chuyi Wang, Youjian Zhao, Yong Cui

AI总结:

本文提出NetMamba,采用改进的单向Mamba架构和流量表示方案解决网络流量分类中Transformer效率低及流量表示不足的问题,在六个数据集上实现近99%准确率,推理速度提升最高60倍,并具备优异的小样本学习能力。

摘要:

网络流量分类是一个至关重要的研究领域,旨在提升服务质量、简化网络管理并加强网络安全。为了应对传输加密技术日益增长的复杂性,人们已经提出了各种机器学习和深度学习方法。然而,现有方法面临两大主要挑战。首先,由于广泛使用的Transformer架构具有二次复杂度,这些方法存在模型效率低下的问题。其次,由于丢弃了重要的字节信息而保留了不需要的偏差,它们存在流量表示不充分的问题。为了解决这些挑战,我们提出了NetMamba,这是一种高效的线性时间状态空间模型,配备了全面的流量表示方案。我们采用了一种专门为网络领域选择和改进的单向Mamba架构,而不是Transformer,以解决效率问题。此外,我们设计了一种流量表示方案,从海量流量数据中提取有效信息,同时去除有偏信息。在涵盖三大分类任务的六个公开数据集上的评估实验表明,与最先进的基线方法相比,NetMamba具有卓越的分类性能。它在所有任务中达到了接近99%(部分超过99%)的准确率。此外,NetMamba展示了出色的效率,将推理速度提升了最高60倍,同时保持了相对较低的内存占用。此外,NetMamba展现出卓越的小样本学习能力,能够用更少的标注数据实现更好的分类性能。据我们所知,NetMamba是第一个为网络领域定制Mamba架构的模型。

英文摘要:

Network traffic classification is a crucial research area aiming to enhance service quality, streamline network management, and bolster cybersecurity. To address the growing complexity of transmission encryption techniques, various machine learning and deep learning methods have been proposed. However, existing approaches face two main challenges. Firstly, they struggle with model inefficiency due to the quadratic complexity of the widely used Transformer architecture. Secondly, they suffer from inadequate traffic representation because of discarding important byte information while retaining unwanted biases. To address these challenges, we propose NetMamba, an efficient linear-time state space model equipped with a comprehensive traffic representation scheme. We adopt a specially selected and improved unidirectional Mamba architecture for the networking field, instead of the Transformer, to address efficiency issues. In addition, we design a traffic representation scheme to extract valid information from massive traffic data while removing biased information. Evaluation experiments on six public datasets encompassing three main classification tasks showcase NetMamba's superior classification performance compared to state-of-the-art baselines. It achieves an accuracy rate of nearly 99% (some over 99%) in all tasks. Additionally, NetMamba demonstrates excellent efficiency, improving inference speed by up to 60 times while maintaining comparably low memory usage. Furthermore, NetMamba exhibits superior few-shot learning abilities, achieving better classification performance with fewer labeled data. To the best of our knowledge, NetMamba is the first model to tailor the Mamba architecture for networking.

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

↑