Lens: A Knowledge-Guided Foundation Model for Network Traffic
Xiaochang Li, Chen Qian, Qineng Wang, Jiangtao Kong, Yuchen Wang, Ziyu Yao, Bo Ji, Long Cheng, Gang Zhou, Huajie Shao

TL;DR
Lens is a knowledge-guided foundation model that enhances network traffic classification and generation by integrating network domain knowledge into Transformer-based pretraining, outperforming existing methods on multiple benchmarks.
Contribution
The paper introduces Lens, a novel model that incorporates network knowledge into pretraining and classification, enabling better generalization and performance in network traffic analysis.
Findings
Achieves 96.33% average accuracy on classification tasks
Outperforms baselines on 8 of 12 classification benchmarks
Generates high-fidelity network traffic with up to 33.3% better F1 scores
Abstract
Network traffic refers to the amount of data being sent and received over the Internet or any system that connects computers. Analyzing network traffic is vital for security and management, yet remains challenging due to the heterogeneity of plain-text packet headers and encrypted payloads. To capture the latent semantics of traffic, recent studies have adopted Transformer-based pretraining techniques to learn network representations from massive traffic data. However, these methods pre-train on data-driven tasks but overlook network knowledge, such as masking partial digits of the indivisible network port numbers for prediction, thereby limiting semantic understanding. In addition, they struggle to extend classification to new classes during fine-tuning due to the distribution shift. Motivated by these limitations, we propose \Lens, a unified knowledge-guided foundation model for both…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Traffic and Congestion Control · Network Security and Intrusion Detection · Advanced Optical Network Technologies
MethodsGated Linear Unit · Refunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · SentencePiece · Adafactor · Residual Connection · Attention Dropout · Inverse Square Root Schedule · Layer Normalization · Dense Connections
