Lens: A Knowledge-Guided Foundation Model for Network Traffic

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Xiaochang, Qian, Chen, Wang, Qineng, Kong, Jiangtao, Wang, Yuchen, Yao, Ziyu, Ji, Bo, Cheng, Long, Zhou, Gang, Shao, Huajie
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909989997641728
author Li, Xiaochang
Qian, Chen
Wang, Qineng
Kong, Jiangtao
Wang, Yuchen
Yao, Ziyu
Ji, Bo
Cheng, Long
Zhou, Gang
Shao, Huajie
author_facet Li, Xiaochang
Qian, Chen
Wang, Qineng
Kong, Jiangtao
Wang, Yuchen
Yao, Ziyu
Ji, Bo
Cheng, Long
Zhou, Gang
Shao, Huajie
contents 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 network traffic classification and generation. In pretraining, we propose a Knowledge-Guided Mask Span Prediction method with textual context for learning knowledge-enriched representations. For extending to new classes in finetuning, we reframe the traffic classification as a closed-ended generation task and introduce context-aware finetuning to adapt to the distribution shift. Evaluation results across various benchmark datasets demonstrate that the proposed Lens~achieves superior performance on both classification and generation tasks. For traffic classification, Lens~outperforms competitive baselines substantially on 8 out of 12 tasks with an average accuracy of \textbf{96.33\%} and extends to novel classes with significantly better performance. For traffic generation, Lens~generates better high-fidelity network traffic for network simulation, gaining up to \textbf{30.46\%} and \textbf{33.3\%} better accuracy and F1 in fuzzing tests. We will open-source the code upon publication.
format Preprint
id arxiv_https___arxiv_org_abs_2402_03646
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lens: A Knowledge-Guided Foundation Model for Network Traffic
Li, Xiaochang
Qian, Chen
Wang, Qineng
Kong, Jiangtao
Wang, Yuchen
Yao, Ziyu
Ji, Bo
Cheng, Long
Zhou, Gang
Shao, Huajie
Machine Learning
Networking and Internet Architecture
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 network traffic classification and generation. In pretraining, we propose a Knowledge-Guided Mask Span Prediction method with textual context for learning knowledge-enriched representations. For extending to new classes in finetuning, we reframe the traffic classification as a closed-ended generation task and introduce context-aware finetuning to adapt to the distribution shift. Evaluation results across various benchmark datasets demonstrate that the proposed Lens~achieves superior performance on both classification and generation tasks. For traffic classification, Lens~outperforms competitive baselines substantially on 8 out of 12 tasks with an average accuracy of \textbf{96.33\%} and extends to novel classes with significantly better performance. For traffic generation, Lens~generates better high-fidelity network traffic for network simulation, gaining up to \textbf{30.46\%} and \textbf{33.3\%} better accuracy and F1 in fuzzing tests. We will open-source the code upon publication.
title Lens: A Knowledge-Guided Foundation Model for Network Traffic
topic Machine Learning
Networking and Internet Architecture
url https://arxiv.org/abs/2402.03646