Retrieval‐Based Deep Hybrid Models for Robust Network Intrusion Detection
Bimal Parakkal, Thomas Mazzuchi, Shahram Sarkani
Key points
From the paper's conclusion- Overall, retrieval‐based deep hybrids, benchmarked against a GBDT baseline, offer a practical path to an accurate and drift‐robust IDS.
Abstract
A retrieval‐based deep hybrid model couples a learned encoder with a non‐parametric k‐nearest‐neighbors module that, at inference time, retrieves training records and conditions its predictions on the local neighborhood. Despite strong results on tabular benchmarks, such hybrids and several recent deep tabular architectures have not been systematically evaluated for network Intrusion Detection System (IDS) deployment. We benchmark deep hybrids (TabR, ModernNCA, and TabM), transformer‐based tabular variants (FT‐Transformer, ExcelFormer, and TabNet), MLP with periodic embeddings, image model adaptations, and GBDT baselines (XGBoost and CatBoost) on four public NIDS datasets (UNSW‐NB15, ToN‐IoT, Edge‐IIoTset, and UNR‐IDD) using a consistent training and evaluation pipeline. Retrieval‐augmented deep hybrids (TabR and ModernNCA) emerge as the most effective category of models in our study. TabR attains the highest micro and macro‐accuracy on all four datasets. These improvements come with stronger recall for minority attack classes on imbalanced datasets, as evidenced by smaller gaps between the micro and macro‐accuracies. We introduce RobustTabR, a post hoc TabR‐coupled density‐based credibility scoring method that augments each TabR prediction with a calibrated credibility score. RobustTabR constructs a similarity vector from the ordered distances to TabR's retrieved neighbors, converts this vector into a density signature and evaluates whether that signature resembles density signatures observed for in‐distribution training samples. We evaluate RobustTabR on (i) a controlled near‐to‐far OOD spectrum using synthesized datasets and (ii) cross‐dataset transfer on the NetFlow‐v2 suite. Across these OOD settings, RobustTabR provides a calibrated credibility signal that remains competitive with strong density‐based and post hoc OOD detectors while leaving TabR's trained classifier unchanged. RobustTabR's credibility score enables human‐in‐the‐loop triage, with automated high credibility decisions and low credibility events routed for analyst review. Overall, retrieval‐based deep hybrids, benchmarked against a GBDT baseline, offer a practical path to an accurate and drift‐robust IDS.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Confusion-Aware Explainable Alert Triage for Network Intrusion DetectionApplied Sciences · 2026
- A Deterministic Comparison of Classical Machine Learning and Hybrid Deep Representation Models for Intrusion Detection on NSL-KDD and CICIDS2017Algorithms · 2025
- Intrusion Detection in Sensor-Cloud Networks: A Reproducible Multi-Seed Comparison of XGBoost and a CNN–LSTM–Transformer ModelInformation · 2026
- A transfer-aware, deployment-oriented evaluation framework for NetFlow-based intrusion detection systems (TAN-IDS)PLoS ONE · 2026
- Understanding the adversary: A survey of adversarial machine learning in network intrusion detectionComputer Science Review · 2026
- Autoencoder Versus CNN-1D for Network Traffic Intrusion Detection: A Reproducible Comparative Evaluation with Per-Class Analysis on CSE-CIC-IDS2018Journal of Cybersecurity and Privacy · 2026