Lune

CCS2025Top-tier venue

MM4flow: A Pre-trained Multi-modal Model for Versatile Network Traffic Analysis

Luming Yang, Lin Liu, Junjie Huang, Zhuotao Liu, Shiyu Liang, Shaojing Fu, Yongjun Wang

Abstract

Network traffic analysis is a critical research area, playing an essential role in enhancing network security and ensuring high-quality network services. Existing methods, which primarily rely on a single modality, face two significant limitations. First, while existing approaches may achieve strong performance in specific tasks, they often lack sufficient adaptability for diverse tasks. Second, existing pre-trained models are only trained with GB-scale traffic, with which increases the risk of over-fitting and limiting the models' overall performance. To address these challenges, we propose MM4flow, a pre-trained multi-modal model designed for versatile network traffic analysis. We divide network flows into two modalities: raw byte streams and transmission patterns, which encapsulate the content and behavior information, respectively. MM4flow is composed of two key stages: uni-modal pre-training and multi-modal fine-tuning. We develop an efficient data collection scheme enabling TB-scale traffic pre-training. Leveraging a real-world traffic that exceeds 70 TB, MM4flow conducts uni-modal pre-training on each modality with a modified BERT architecture tailored for network flows. For specific downstream tasks, we introduce a modal fusion module based on cross-attention mechanisms. The fusion module facilitates effective integration of multi-modal information, enabling MM4flow to fully utilize both content and behavior cues during fine-tuning with minimal labeled dataset. We evaluate MM4flow on six public datasets covering six various tasks. Extensive experiments demonstrate that MM4flow achieves superior accuracy than baselines. Especially, compared to existing pre-trained models, MM4flow achieves an 84% improvement in accuracy for website identification under encrypted tunnels. Moreover, the pre-trained MM4flow significantly reduces the reliance on high-quality labeled training data for downstream tasks.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Disentangling Multi-View Scanning in Mamba for Network Traffic Anomaly DetectionXinglin Lian, Chengtai Cao, Ting Zhong, Fan ZhouKDD 2026 · 2 citations
  2. CertTA: Certified Robustness Made Practical for Learning-Based Traffic AnalysisJinzhu Yan, Zhuotao Liu, Yuyang Xie, Shiyu Liang et al.USENIX Security 2025
  3. Beyond the Stars: Multimodal Detection of Scams on GitHubTillson Galloway, Kevin Valakuzhy, Manos Antonakakis, Fabian MonroseUSENIX Security 2026
  4. Navigating the Latent Manifold: Proactive Concept Drift Adaptation for Resilient NIDSChao Zha, Zifeng Kang, Tian Liu, Dakun Shen et al.CCS 2026

Related papers

  1. ET-BERT: A Contextualized Datagram Representation with Pre-training Transformers for Encrypted Traffic ClassificationXinjie Lin, Gang Xiong, Gaopeng Gou, Zhen Li et al.WWW 2022 · 490 citations
  2. Yet Another Traffic Classifier: A Masked Autoencoder Based Traffic Transformer with Multi-Level Flow RepresentationRuijie Zhao, Mingwei Zhan, Xianwen Deng, Yanhao Wang et al.AAAI 2023 · 138 citations
  3. Training with Only 1.0 ‰ Samples: Malicious Traffic Detection via Cross-Modality Feature FusionChuanpu Fu, Qi Li, Elisa Bertino, Ke XuCCS 2025
  4. MIETT: Multi-Instance Encrypted Traffic Transformer for Encrypted Traffic ClassificationXu-Yang Chen, Lu Han, De-Chuan Zhan, Han-Jia YeAAAI 2025 · 7 citations
  5. TrafficFormer: An Efficient Pre-trained Model for Traffic DataGuangmeng Zhou, Xiongwen Guo, Zhuotao Liu, Tong Li et al.S&P 2025
Dusk over the sea between two cliffs drawn in fine vertical lines