cs.CRMar 31, 2026

TrafficMoE: Heterogeneity-aware Mixture of Experts for Encrypted Traffic Classification

Authors: Qing He, Xiaowei Fu, Lei Zhang

Organizations: School of Microelectronics and Communication Engineering, Chongqing University, Chongqing 400044, China.

Abstract

Encrypted traffic classification is a critical task for network security. While deep learning has advanced this field, the occlusion of payload semantics by encryption severely challenges standard modeling approaches. Most existing frameworks rely on static and homogeneous pipelines that apply uniform parameter sharing and static fusion strategies across all inputs. This one-size-fits-all static design is inherently flawed: by forcing structured headers and randomized payloads into a unified processing pipeline, it inevitably entangles the raw protocol signals with stochastic encryption noise, thereby degrading the fine-grained discriminative features. In this paper, we propose TrafficMoE, a framework that breaks through the bottleneck of static modeling by establishing a Disentangle-Filter-Aggregate (DFA) paradigm. Specifically, to resolve the structural between-components conflict, the architecture disentangles headers and payloads using dual-branch sparse Mixture-of-Experts (MoE), enabling modality-specific modeling. To mitigate the impact of stochastic noise, an uncertainty-aware filtering mechanism is introduced to quantify reliability and selectively suppress high-variance representations. Finally, to overcome the limitations of static fusion, a routing-guided strategy aggregates cross-modality features dynamically, that adaptively weighs contributions based on traffic context. With this DFA paradigm, TrafficMoE maximizes representational efficiency by focusing solely on the most discriminative traffic features. Extensive experiments on six datasets demonstrate TrafficMoE consistently outperforms state-of-the-art methods, validating the necessity of heterogeneity-aware modeling in encrypted traffic analysis. The source code is publicly available at https://github.com/Posuly/TrafficMoE_main.

Figures & tables

Explore similar work

CardsList
  1. Treat Traffic Like Trees: A Semantic-Preserving Hierarchical Graph-Based Expert Framework for Encrypted Traffic Analysis

    Jun 3, 2026Yuantu Luo, Jun Tao, Linxiao Yu +1Graph Neural NetworksHierarchical GNNs

  2. Traffic-CBM: A Structurally Interpretable Multimodal Framework for Encrypted Traffic Classification

    Jun 29, 2026Honglei Jin, Wenshuo Chen, Shaofeng Liang +6Encrypted Network Traffic AnalysisMultimodal Classification

  3. GETA: Generalized Encrypted Traffic Analysis

    May 29, 2026Ransika Gunasekara, Rahat Masood, Salil KanhereDomain AdaptationNetwork Intrusion Detection