FlowletFormer: Network Behavioral Semantic Aware Pre-training Model for Traffic Classification

Liming Liu, Ruoyu Li, Qing Li, Meijia Hou, Yong Jiang +1 more
8/27/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Network traffic classification using pre-training models has shown promising results, but existing methods struggle to capture packet structural characteristics, flow-level behaviors, hierarchical protocol semantics, and inter-packet contextual relationships. To address these challenges, we propose FlowletFormer, a BERT-based pre-training model specifically designed for network traffic analysis. FlowletFormer introduces a Coherent Behavior-Aware Traffic Representation Model for segmenting traffic into semantically meaningful units, a Protocol Stack Alignment-Based Embedding Layer to capture multilayer protocol semantics, and Field-Specific and Context-Aware Pretraining Tasks to enhance both inter-packet and inter-flow learning. Experimental results demonstrate that FlowletFormer significantly outperforms existing methods in the effectiveness of traffic representation, classification accuracy, and few-shot learning capability. Moreover, by effectively integrating domain-specific network knowledge, FlowletFormer shows better comprehension of the principles of network transmission (e.g., stateful connections of TCP), providing a more robust and trustworthy framework for traffic analysis.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025flowletformer,
  title  = {FlowletFormer: Network Behavioral Semantic Aware Pre-training Model for Traffic Classification},
  author = {Liming Liu and Ruoyu Li and Qing Li and Meijia Hou and Yong Jiang and Mingwei Xu},
  year   = {2025},
  eprint = {2508.19924},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.19924v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.19924.svg)](https://codeofpaper.com/paper/2508.19924)

Discussion