Proceedings

Keep Experts Diverse: A Task-Aware MoE for Multi-Task Traffic Analysis

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 2608-2616.

https://doi.org/10.24963/ijcai.2026/290

Abstract

Network traffic analysis is crucial for maintaining the security of networks. Yet deploying accurate models on edge nodes remains challenging due to protocol diversity, complex traffic behaviors, and stringent resource constraints. Although recent deep learning models achieve strong performance, their dense architectures incur high inference latency, making them unsuitable for edge deployments.

Mixture-of-Experts offers a promising solution through conditional computation, yet existing methods overlook latent inter-task relations and suffer from severe expert load imbalance, leading to expert collapse and suboptimal efficiency.

To address these limitations, we propose TAMoE, a novel Task-Aware Mixture-of-Experts framework for multi-task network traffic analysis.

TAMoE integrates task semantics into both routing and representation learning through a novel Task-Aware Routing, enabling the router to dynamically select experts conditioned on both traffic features and task information.

Besides, to train stably usable and scalable multi-task models, we further design a collaborative multi-task training strategy that encompasses both a dataset mixed construction and a joint training process.

Experiments on six public benchmarks show that TAMoE achieves state-of-the-art results. Deployment on an NVIDIA® Jetson AGX Orin edge node demonstrates that TAMoE reduces inference latency by 60.6% compared to dense models and lowers the Gini Coefficient from 0.391 to 0.275 relative to Multi-Router MoE, achieving more balanced expert utilization.

  1. [Agarwal et al., 2024] Ishita Agarwal, Aanchal Singh, Aran Agarwal, Shruti Mishra, Sandeep Kumar Satapathy, Sung- Bae Cho, Manas Ranjan Prusty, and Sachi Nandan Mo- hanty. Enhancing road safety and cybersecurity in traf- fic management systems: Leveraging the potential of rein- forcement learning. IEEE Access, 12:9963-9975, 2024.
  2. [Arp et al., 2022] Daniel Arp, Erwin Quiring, Feargus Pendlebury, Alexander Warnecke, Fabio Pierazzi, Chris- tian Wressnegger, Lorenzo Cavallaro, and Konrad Rieck. Dos and don'ts of machine learning in computer secu- rity. In 31st USENIX Security Symposium (USENIX Se- curity 22), pages 3971-3988, Boston, MA, August 2022. USENIX Association.
  3. [Cai et al., 2025] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. A survey on mix- ture of experts in large language models. IEEE Transac- tions on Knowledge and Data Engineering, 2025.
  4. [Chen et al., 2024] Wei Chen, Yuxuan Liu, Zhao Zhang, Fuzhen Zhuang, and Jiang Zhong. Modeling adaptive inter-task feature interactions via sentiment-aware con- trastive learning for joint aspect-sentiment prediction. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 38, pages 17781-17789, 2024.
  5. [Dadkhah et al., 2022] Sajjad Dadkhah, Hassan Mahdikhani, Priscilla Kyei Danso, Alireza Zohourian, Kevin Anh Truong, and Ali A. Ghorbani. Towards the development of a realistic multidimensional iot profiling dataset. In 2022 19th Annual International Conference on Privacy, Security, Trust (PST), pages 1-11, 2022.
  6. [Dandamudi et al., 2025] Sai Ratna Prasad Dandamudi, Jaideep Sajja, and Amit Khanna. Leveraging artificial intelligence for data networking and cybersecurity in the united states. International Journal of Innovative Research in Computer Science and Technology, 13:34-41, 2025.
  7. [Devlin et al., 2018] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understand- ing. arXiv preprint arXiv:1810.04805, 2018.
  8. [Dorfman, 1979] Robert Dorfman. A formula for the gini coefficient. The review of economics and statistics, pages 146-149, 1979.
  9. [Dou et al., 2024] Shihan Dou, Enyu Zhou, Yan Liu, Songyang Gao, Wei Shen, Limao Xiong, Yuhao Zhou, Xiao Wang, Zhiheng Xi, Xiaoran Fan, et al. Loramoe: Alleviating world knowledge forgetting in large language models via moe-style plugin. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1932-1945, 2024.
  10. [Draper-Gil et al., 2016] Gerard Draper-Gil, Arash Habibi Lashkari, Mohammad Saiful Islam Mamun, and Ali A Ghorbani. Characterization of encrypted and vpn traffic using time-related. In Proceedings of the 2nd international conference on information systems security and privacy (ICISSP), pages 407-414, 2016.
  11. [Fedus et al., 2022] William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parame- ter models with simple and efficient sparsity, 2022.
  12. [He et al., 2020] Hong Ye He, Zhi Guo Yang, and Xi- ang Ning Chen. Pert: Payload encoding representation from transformer for encrypted traffic classification. In 2020 ITU Kaleidoscope: Industry-Driven Digital Trans- formation (ITU K), pages 1-8, 2020.
  13. [Jacobs et al., 2022] Arthur S. Jacobs, Roman Beltiukov, Walter Willinger, Ronaldo A. Ferreira, Arpit Gupta, and Lisandro Z. Granville. Ai/ml for network security: The emperor has no clothes. In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, CCS '22, page 1537-1551, New York, NY, USA, 2022. Association for Computing Machinery.
  14. [Javaheri et al., 2023] Danial Javaheri, Saeid Gorgin, Jeong- A Lee, and Mohammad Masdari. Fuzzy logic-based ddos attacks and network traffic anomaly detection methods: Classification, overview, and future perspectives. Infor- mation Sciences, 626:315-338, 2023.
  15. [Lashkari et al., 2017] Arash Habibi Lashkari, Ger- ard Draper Gil, Mohammad Saiful Islam Mamun, and Ali A Ghorbani. Characterization of tor traffic using time based features. In International Conference on Information Systems Security and Privacy, volume 2, pages 253-262.
  16. SciTePress, 2017.
  17. [Lian et al., 2025a] Xinglin Lian, Chengtai Cao, Yan Liu, Xovee Xu, Yu Zheng, and Fan Zhou. Facing anoma- lies head-on: Network traffic anomaly detection via uncertainty-inspired inter-sample differences. In Proceed- ings of the ACM on Web Conference 2025 (WWW), pages 3908-3917, 2025.
  18. [Lian et al., 2025b] Xinglin Lian, Yu Zheng, Zhangxuan Dang, Chunlei Peng, and Xinbo Gao. Semi-supervised anomaly traffic detection via multi-frequency reconstruc- tion. Pattern Recognition, 161:111215, 2025.
  19. [Lian et al., 2026a] Xinglin Lian, Chengtai Cao, Ting Zhong, Yong Wang, Kai Chen, and Fan Zhou. Decom- pose to understand, fuse to detect: Frequency-decoupled anomaly detection for encrypted network traffic. arXiv: 2605.02970, 2026.
  20. [Lian et al., 2026b] Xinglin Lian, Yu Zheng, Yan Liu, Fan Zhou, Chunlei Peng, and Xinbo Gao. Contextual mask- ing distillation for network traffic anomaly detection. IEEE Transactions on Information Forensics and Security, 21:1273-1286, 2026.
  21. [Lin et al., 2022] Xinjie Lin, Gang Xiong, Gaopeng Gou, Zhen Li, Junzheng Shi, and Jing Yu. Et-bert: A contextual- ized datagram representation with pre-training transform- ers for encrypted traffic classification. In Proceedings of the ACM Web Conference 2022, pages 633-642, 2022.
  22. [Liu et al., 2019] Chang Liu, Longtao He, Gang Xiong, Zi- gang Cao, and Zhen Li. Fs-net: A flow sequence net- work for encrypted traffic classification. In IEEE INFO- COM 2019-IEEE Conference On Computer Communica- tions, pages 1171-1179. IEEE, 2019.
  23. [Liu et al., 2024] Lan Liu, Yongjie Yu, Yafeng Wu, Zhanfa Hui, Jun Lin, and Junhan Hu. Method for multi-task learn- ing fusion network traffic classification to address small sample labels. Scientific Reports, 14(1):2518, 2024.
  24. [Lotfollahi et al., 2020] Mohammad Lotfollahi, Mahdi Ja- fari Siavoshani, Ramin Shirali Hossein Zade, and Moham- mdsadegh Saberian. Deep packet: A novel approach for encrypted traffic classification using deep learning. Soft Computing, 24(3):1999-2012, 2020.
  25. [Nascita et al., 2024] Alfredo Nascita, Giuseppe Aceto, Domenico Ciuonzo, Antonio Montieri, Valerio Persico, and Antonio Pescapé. A survey on explainable artificial in- telligence for internet traffic classification and prediction, and intrusion detection. IEEE Communications Surveys & Tutorials, 2024.
  26. [Ren et al., 2019] Jingjing Ren, DJ Dubois, and D Choffnes. An international view of privacy risks for mobile apps, 2019.
  27. [Shao et al., 2019] Guolin Shao, Xingshu Chen, Xuemei Zeng, and Lina Wang. Deep learning hierarchical rep- resentation from heterogeneous flow-level communication data. IEEE Transactions on Information Forensics and Se- curity, 15:1525-1540, 2019.
  28. [Taylor et al., 2016] Vincent F Taylor, Riccardo Spolaor, Mauro Conti, and Ivan Martinovic. Appscanner: Auto- matic fingerprinting of smartphone apps from encrypted network traffic. In 2016 IEEE European Symposium on Security and Privacy (EuroS&P), pages 439-454. IEEE, 2016.
  29. [Upadhyay et al., 2024] Richa Upadhyay, Ronald Phlypo, Rajkumar Saini, and Marcus Liwicki. Sharing to learn and learning to share; fitting together meta, multi-task, and transfer learning: A meta review. IEEE Access, 2024.
  30. [van Ede et al., 2020] Thijs van Ede, Riccardo Borto- lameotti, Andrea Continella, Jingjing Ren, Daniel J. Dubois, Martina Lindorfer, David Choffnes, Maarten van Steen, and Andreas Peter. Flowprint: Semi-supervised mobile-app fingerprinting on encrypted network traffic. Network and Distributed System Security Symposium (NDSS), 27, 2020.
  31. [Wang et al., 2017] Wei Wang, Ming Zhu, Xuewen Zeng, Xiaozhou Ye, and Yiqiang Sheng. Malware traffic classifi- cation using convolutional neural network for representa- tion learning. In 2017 International conference on infor- mation networking (ICOIN), pages 712-717. IEEE, 2017.
  32. [Wang et al., 2024a] Tongze Wang, Xiaohui Xie, Wen- duo Wang, Chuyi Wang, Youjian Zhao, and Yong Cui. Netmamba: Efficient network traffic classification via pre-training unidirectional mamba. arXiv preprint arXiv:2405.11449, 2024.
  33. [Wang et al., 2024b] Ziteng Wang, Jun Zhu, and Jianfei Chen. Remoe: Fully differentiable mixture-of-experts with relu routing. arXiv preprint arXiv:2412.14711, 2024.
  34. [Wei et al., 2024] Xiuying Wei, Skander Moalla, Razvan Pascanu, and Caglar Gulcehre. Building on efficient foun- dations: Effective training of llms with structured feedfor- ward layers. Advances in Neural Information Processing Systems, 37:4689-4717, 2024.
  35. [Zhang et al., 2021] Zhengyan Zhang, Yankai Lin, Zhiyuan Liu, Peng Li, Maosong Sun, and Jie Zhou. Moefication: Transformer feed-forward layers are mixtures of experts. arXiv preprint arXiv:2110.01786, 2021.
  36. [Zhang et al., 2023] Haozhen Zhang, Le Yu, Xi Xiao, Qing Li, Francesco Mercaldo, Xiapu Luo, and Qixu Liu. Tfe- gnn: A temporal fusion encoder using graph neural net- works for fine-grained encrypted traffic classification. In Proceedings of the ACM Web Conference 2023, WWW '23, page 2066-2075, New York, NY, USA, 2023. Associ- ation for Computing Machinery.
  37. [Zhang et al., 2025] Gong-Duo Zhang, Ruiqing Chen, Qian Zhao, Zhengwei Wu, Fengyu Han, Huan-Yi Su, Ziqi Liu, Lihong Gu, and Lin Zhou. Bagging-expert network for multi-task learning: A depolarization solution in multi- gate mixture-of-experts. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 22389-22397, 2025.
  38. [Zhao et al., 2023] Ruijie Zhao, Mingwei Zhan, Xianwen Deng, Yanhao Wang, Yijun Wang, Guan Gui, and Zhi Xue. Yet another traffic classifier: A masked autoencoder based traffic transformer with multi-level flow representation. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 37, pages 5420-5427, 2023.
  39. [Zhou et al., 2022] Yanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du, Yanping Huang, Vincent Zhao, Andrew M Dai, Quoc V Le, James Laudon, et al. Mixture-of-experts with expert choice routing. Advances in Neural Information Processing Systems, 35:7103-7114, 2022.
  40. [Zhou et al., 2025] Guangmeng Zhou, Xiongwen Guo, Zhuotao Liu, Tong Li, Qi Li, and Ke Xu. Trafficformer: An efficient pre-trained model for traffic data. In 2025 IEEE Symposium on Security and Privacy (SP), pages 1844-1860, 2025.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards