2D-AEF: Low-latency sparse expert routing for network intrusion detection
Network intrusion detection systems must operate under strict latency constraints while maintaining reliable detection performance across heterogeneous traffic patterns. Traditional ensemble methods often improve predictive performance but require multiple model evaluations during inference, increasing computational costs. This paper presents 2D-AEF, a two-stage adaptive framework for network intrusion detection based on sparse conditional computation. A shallow decision-tree gatekeeper routes each traffic sample to a class-specialized expert selected through an offline search over model–feature subset pairs. Unlike conventional ensembles, only one expert is activated during inference, reducing computational overhead. The proposed framework was evaluated on UNSW-NB15 binary, UNSW-NB15 multi-class, and leakage-controlled CIC-IDS2018 robust scenarios. Experimental comparisons included strong standalone baselines and ensemble methods based on hard voting, soft voting, and stacking. Across ten random seeds, 2D-AEF achieved macro-F1 scores of 0.890, 0.461, and 0.871 on the three scenarios, respectively. While not consistently outperforming the strongest classifiers in predictive performance, the proposed framework reduced median inference latency by factors ranging from 6.5x to 12.5x compared with stacking. The results demonstrate that class-conditioned sparse routing provides an effective strategy for balancing detection performance and inference efficiency in network intrusion detection systems.
Authors
- Kelton Augusto Pontara da Costa (ORCID: https://orcid.org/0000-0001-5458-3908)
- João Paulo Papa (ORCID: https://orcid.org/0000-0002-6494-7514)
- Thiago José Lucas (ORCID: https://orcid.org/0000-0002-4749-9342)
- Celso Lisboa (ORCID: https://orcid.org/0009-0005-8862-0646)
- Ronaldo Moreno
Institutions
- Universidade Estadual Paulista (Unesp) (BR)
Publication Details
- Journal
- Computer Networks
- Published
- 2026-11-01
- DOI
- https://doi.org/10.1016/j.comnet.2026.112901
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00