English

Mean Masked Autoencoder with Flow-Mixing for Encrypted Traffic Classification

Cryptography and Security 2026-04-01 v1 Artificial Intelligence Multimedia Networking and Internet Architecture

Abstract

Network traffic classification using self-supervised pre-training models based on Masked Autoencoders (MAE) has demonstrated a huge potential. However, existing methods are confined to isolated byte-level reconstruction of individual flows, lacking adequate perception of the multi-granularity contextual relationship in traffic. To address this limitation, we propose Mean MAE (MMAE), a teacher-student MAE paradigm with flow mixing strategy for building encrypted traffic pre-training model. MMAE employs a self-distillation mechanism for teacher-student interaction, where the teacher provides unmasked flow-level semantic supervision to advance the student from local byte reconstruction to multi-granularity comprehension. To break the information bottleneck in individual flows, we introduce a dynamic Flow Mixing (FlowMix) strategy to replace traditional random masking mechanism. By constructing challenging cross-flow mixed samples with interferences, it compels the model to learn discriminative representations from distorted tokens. Furthermore, we design a Packet-importance aware Mask Predictor (PMP) equipped with an attention bias mechanism that leverages packet-level side-channel statistics to dynamically mask tokens with high semantic density. Numerous experiments on a number of datasets covering encrypted applications, malware, and attack traffic demonstrate that MMAE achieves state-of-the-art performance. The code is available at https://github.com/lx6c78/MMAE

Keywords

Cite

@article{arxiv.2603.29537,
  title  = {Mean Masked Autoencoder with Flow-Mixing for Encrypted Traffic Classification},
  author = {Xiao Liu and Xiaowei Fu and Fuxiang Huang and Lei Zhang},
  journal= {arXiv preprint arXiv:2603.29537},
  year   = {2026}
}

Comments

Project page \url{https://github.com/lx6c78/MMAE}

R2 v1 2026-07-01T11:45:54.929Z