NetMamba: Efficient Network Traffic Classification via Pre-training Unidirectional Mamba
Tongze Wang, Xiaohui Xie, Wenduo Wang, Chuyi Wang, Youjian Zhao, Yong, Cui

TL;DR
NetMamba introduces an efficient, linear-time network traffic classification model using a tailored unidirectional Mamba architecture, achieving high accuracy, speed, and few-shot learning capabilities over multiple datasets.
Contribution
It is the first to adapt the Mamba architecture for network traffic classification, addressing efficiency and representation challenges with a novel traffic scheme.
Findings
Achieves nearly 99% accuracy across tasks
Improves inference speed by up to 60 times
Demonstrates superior few-shot learning performance
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsInternet Traffic Analysis and Secure E-voting · Network Security and Intrusion Detection · Network Packet Processing and Optimization
Methodstravel james · Attention Is All You Need · Dense Connections · Linear Layer · Position-Wise Feed-Forward Layer · Label Smoothing · Residual Connection · Absolute Position Encodings · Byte Pair Encoding · Adam
