Traffic-MoE: A Sparse Foundation Model for Network Traffic Security Analysis
About
As adversaries increasingly weaponize encryption and protocol obfuscation to evade traffic detection, traditional methods are rendered obsolete, necessitating deep learning to unmask sophisticated threats. However, the prohibitive computational costs of existing large models create a critical defense gap, hindering their deployment in real-time and throughput-sensitive environments. To close this vulnerability, we introduce Traffic-MoE, a sparse foundation model tailored for traffic security analysis. By dynamically routing traffic tokens to a small subset of specialized experts, Traffic-MoE effectively decouples model capacity from computational overhead. Extensive evaluations across four security-oriented tasks demonstrate that Traffic-MoE achieves state-of-the-art or highly competitive performance compared to leading competitors. Crucially, it delivers a 70.42% increase in throughput, reduces inference latency by 41.39% while significantly optimizing GPU memory consumption. Beyond efficiency, Traffic-MoE exhibits superior robustness against adversarial traffic shaping and maintains strong detection capabilities in few-shot scenarios, establishing a scalable and resilient paradigm for modern network traffic security analysis.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| IoT/IoMT Attack Detection | CICIoT 2023 (test) | Mean F1 Score78.24 | 31 | |
| Network Traffic Analysis | CICIoMT Time-shift 2024 | Accuracy82.19 | 7 | |
| Network Traffic Analysis | CICIoMT2024 Proportion-shift | Accuracy97.27 | 7 | |
| Network Traffic Analysis | CICIoMT Compose-shift 2024 | Accuracy80.71 | 7 | |
| Network Traffic Analysis | CICIoT2023 Proportion-shift | Accuracy80.52 | 7 | |
| Network Traffic Analysis | CICIoT Compose-shift 2023 | Accuracy63.31 | 7 | |
| Service Classification | ISCXVPN NonVPN 2016 | ACC76.13 | 7 | |
| Service Classification | ISCXVPN 2016 (Mixed) | Accuracy76.79 | 7 | |
| Traffic Detection | ISCXTor NonTor 2016 | Accuracy98.27 | 7 | |
| Traffic Detection | ISCX Tor 2016 | Accuracy90.89 | 7 |