NetGPT:面向网络流量的生成式预训练 Transformer
NetGPT: Generative Pretrained Transformer for Network Traffic
AI总结:
本文提出首个面向网络流量理解与生成的生成式预训练模型 NetGPT,通过多模式统一建模及字段打乱、报文切分和提示标签适配,显著提升多类下游任务性能。
摘要:
互联网上的所有数据都通过网络流量传输,因此对网络流量进行准确建模有助于提升网络服务质量并保护数据隐私。面向网络流量的预训练模型能够利用大规模原始数据学习网络流量的本质特征,并在不考虑特定下游任务的情况下,为输入流量生成具有区分度的结果。有效的预训练模型可以显著优化应用分类、攻击检测和流量生成等下游任务的训练效率与效果。尽管预训练在自然语言处理中取得了巨大成功,但网络领域尚没有相关工作。考虑到网络流量和网络任务的多样化需求与特征,构建网络流量预训练模型并非易事,我们面临多种挑战,尤其是多模式网络流量中异构的首部与有效载荷,以及多样化下游网络任务对上下文的不同依赖关系。为应对这些挑战,本文首次尝试提供一种同时适用于流量理解和生成任务的生成式预训练模型 NetGPT。我们提出多模式网络流量建模,以构建统一的文本输入,并同时支持流量理解和生成任务。我们还通过打乱首部字段、切分流中的报文,以及将多样化任务标签与提示相结合,进一步优化预训练模型对多样化任务的适配效果。借助来自加密软件、DNS、私有工业协议和加密货币挖矿的多样化流量数据集,大量实验证明了 NetGPT 在一系列流量理解和生成任务上的有效性,并且其性能大幅优于当前最先进的基线方法。
英文摘要:
All data on the Internet are transferred by network traffic, thus accurately modeling network traffic can help improve network services quality and protect data privacy. Pretrained models for network traffic can utilize large-scale raw data to learn the essential characteristics of network traffic, and generate distinguishable results for input traffic without considering specific downstream tasks. Effective pretrained models can significantly optimize the training efficiency and effectiveness of downstream tasks, such as application classification, attack detection and traffic generation. Despite the great success of pretraining in natural language processing, there is no work in the network field. Considering the diverse demands and characteristics of network traffic and network tasks, it is non-trivial to build a pretrained model for network traffic and we face various challenges, especially the heterogeneous headers and payloads in the multi-pattern network traffic and the different dependencies for contexts of diverse downstream network tasks. To tackle these challenges, in this paper, we make the first attempt to provide a generative pretrained model NetGPT for both traffic understanding and generation tasks. We propose the multi-pattern network traffic modeling to construct unified text inputs and support both traffic understanding and generation tasks. We further optimize the adaptation effect of the pretrained model to diversified tasks by shuffling header fields, segmenting packets in flows, and incorporating diverse task labels with prompts. With diverse traffic datasets from encrypted software, DNS, private industrial protocols and cryptocurrency mining, expensive experiments demonstrate the effectiveness of our NetGPT in a range of traffic understanding and generation tasks on traffic datasets, and outperform state-of-the-art baselines by a wide margin.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。