Generating key points…
Answers are grounded in this paper and cite their sources.
Machine-learning-based network intrusion detection systems (NIDS) can achieve high classification performance on benchmark datasets but may fail to generalize to different network environments. Explainable artificial intelligence techniques such as SHapley Additive exPlanations (SHAP) provide insight into model feature importance, but the stability of these explanations does not necessarily indicate successful detection transfer. This study experimentally investigates the relationship between class-wise SHAP attribution drift and detection degradation under cross-dataset distribution shift. Random Forest and XGBoost classifiers were trained and evaluated bidirectionally using selected captures from CIC-IDS2017 and CSE-CIC-IDS2018. Seven harmonized traffic classes and 23 common features were retained, with 5,000 samples per class in each prepared dataset. Class-wise SHAP attribution rankings were compared using Spearman correlation and Top-10 Jaccard similarity. Detection degradation was measured through changes in class-wise recall, while exact permutation tests and Holm correction were used to examine associations between attribution drift and recall degradation. Cross-dataset Macro F1 declined to 0.2500–0.2780, compared with source-holdout scores of 0.8864–0.9695. Despite this decline, mean class-wise Spearman correlations ranged from 0.8226 to 0.9366 for Random Forest and from 0.8602 to 0.9286 for XGBoost, indicating relatively stable feature-attribution rankings despite substantial cross-dataset detection performance degradation. Several classes exhibited high attribution-ranking similarity despite near-zero target recall. The association between attribution drift and recall degradation varied across models and transfer directions, with no association remaining statistically significant after multiple-testing correction. These findings demonstrate that global SHAP attribution-ranking stability and cross-dataset detection performance should be evaluated as distinct properties of intrusion detection models.
No takes yet. Share an insight, caveat, or question.
Karmase et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: