HybridSwinKAN: Dual-Branch Swin–ConvNeXt Architecture with KAN for Explainable Network Intrusion Detection
Journal: International Journal of Computer Network and Information Security @ijcnis
Article in issue: 6 vol.18, 2026.
Free access
Network intrusion detection systems (NIDS) remain a critical line of defence against escalating cyber threats. While deep learning methods have achieved competitive detection accuracy, existing approaches suffer from limited interpretability, suboptimal feature fusion, and reliance on conventional multi-layer perceptron (MLP) classifiers. This paper proposes HybridSwinKAN, a dual-branch architecture that synergistically integrates Swin Transformer with Group-Rational Kolmogorov–Arnold Networks (GR-KAN) for global feature extraction, ConvNeXt blocks for local pattern capture, a dual-attention gating fusion mechanism for adaptive branch integration, and a B-Spline KAN classification head for inherently interpretable decision-making. The principal novelty of this work is not the individual use of Swin, ConvNeXt, or KAN — each of which exists in prior art — but rather their joint, end-to-end integration through three coupled mechanisms that have not previously been combined: (i) replacing the standard MLP feed-forward sub-layer of every Swin block with GR-KAN, yielding a 3–4× parameter reduction in the FFN while introducing learnable rational activations; (ii) a content-dependent dual-attention gating module that produces a per-sample, per-dimension fusion weight between the global Swin–KAN branch and the local ConvNeXt branch; and (iii) a stacked B-Spline KAN classification head whose learned spline activations are directly visualisable, providing inherent (rather than post-hoc) interpretability. Extensive experiments on four benchmark datasets (NSL-KDD, UNSW-NB15, CIC-IDS2017, and Kaggle Malware) show that HybridSwinKAN attains competitive accuracy of 99.90 %, with F1-scores of up to 99.91 % and a Matthews Correlation Coefficient of 0.9985. To rigorously evaluate generalisation and rule out dataset-specific bias, we additionally conduct cross-dataset transfer experiments (training on one dataset and testing on another), 5-fold stratified cross-validation, and a deployment-feasibility study reporting per-sample latency, throughput, model size, and GPU memory footprint suitable for security operations centre (SOC) deployment. Comprehensive ablation studies, statistical significance testing (Wilcoxon, Friedman–Nemenyi), and multi-method explainability analysis (SHAP, Integrated Gradients, KAN visualisation) validate the contribution of each architectural component and provide actionable insights for security analysts.
Short address: https://sciup.org/15020902
IDS: 15020902 | DOI: 10.5815/ijcnis.2026.06.03