arXiv:2611.12219cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12219

An Empirical Evaluation of Quantum Kernel Stability in Network Intrusion Detection

Sreejonty Chakraborty, Adrita Rahman Tory, Muhammad Aminur Rahaman, Khondokar Fida Hasan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1st Sreejonty Chakraborty

Department of Computer Science and Engineering

Bangladesh University of Business and Technology

Dhaka, Bangladesh

sreejonty8012@gmail.com

2nd Adrita Rahman Tory

Department of Computer Science and Engineering

Bangladesh University of Business and Technology

Dhaka, Bangladesh

adritatory@bubt.edu.bd

3rd Muhammad Aminur Rahaman

Department of Data Science and Engineering

Bangladesh University of Business and Technology

Dhaka, Bangladesh

aminur@bubt.edu.bd

4th Khondokar Fida Hasan ∗^{*}

Cybersecurity Discipline, School of Professional Studies

University of New South Wales (UNSW)

Canberra, Australia

fida.hasan@unsw.edu.au

Abstract—Quantum kernel methods have been proposed for network intrusion detection, yet their performance limitations are often attributed to noise in current quantum hardware. This study evaluates that assumption through a controlled analysis of Pegasos-QSVC on the NSL-KDD and ToN-IoT datasets. We perform 56 quantum experiments using one exact noiseless statevector backend and three noise-simulated superconducting backends while keeping preprocessing, PCA features, data splits, and classical baselines identical. XGBoost achieves accuracies of 98.94% on NSL-KDD and 99.41% on ToN-IoT, compared with 91.80% and 82.98% for Pegasos-QSVC. The quantum model also exhibits substantially greater seed-dependent variability. Eight runs collapse into degenerate classifiers, including four recall-collapse cases and four trivial-positive classifiers. Notably, two failures occur on the noiseless backend, demonstrating that hardware noise is not a necessary condition for classifier collapse. Kernel Gram matrix analysis further reveals low effective rank and severe ill-conditioning even in the absence of noise, indicating intrinsic fragility in the learned quantum representation. These results show that average accuracy alone can conceal operationally unacceptable behavior and highlight the importance of reporting worst-case performance, seed-level variability, class-specific metrics, and explicit degeneracy tests in quantum intrusion detection studies.

Index Terms—Quantum Machine Learning, Intrusion Detection, Cybersecurity

I. INTRODUCTION

Intrusion detection systems are expected to operate at a consistent, predictable level of performance, not just a high average one. NIST identifies stable, tunable detection behavior as a core requirement for intrusion detection and prevention systems, since operators calibrate alert thresholds and staffing around an expected detection rate [1]. Classical machine learning has been applied to this problem for two decades, and survey work shows these methods now deliver largely consistent results across a range of network conditions [2]. Hybrid classical pipelines combining feature selection with gradient-boosted models have reported accuracy above 99% on standard intrusion detection benchmarks [3].

Quantum machine learning has recently been applied to the same task. Quantum kernel methods, introduced by Havlicek et al. as a way to map classical data into richer feature spaces using quantum circuits [4], have motivated a growing number of intrusion detection studies. Cirillo and Esposito trained a Pegasos quantum support vector classifier [5], a variational quantum classifier, and a hybrid quantum classical network on ToN-IoT and NSL-KDD, and reported that Pegasos-QSVC with a ZFeatureMap reached 93.05% accuracy averaged across four random seeds [6]. Gouveia and Correia reported an earlier quantum assisted detector whose accuracy varied considerably depending on the dataset used [7]. This growing body of work is generally optimistic about the near-term potential of quantum methods for this task.

Most of these studies attribute shortfalls to hardware noise. When a quantum model underperforms a classical baseline, the gap is typically explained by gate error, decoherence, and finite measurement shots inherent to current NISQ-era devices [8], with the implied conclusion that better hardware will close the gap [6]. This explanation can be tested directly. Running the same model on a noiseless simulator removes gate error and decoherence entirely. If performance recovers, hardware noise was the cause. If it does not, the explanation does not hold, and better qubits will not fix it.

This work makes three primary contributions:

  • We conduct a matched evaluation of Pegasos-QSVC across noiseless and noise-simulated backends and of classical baselines (XGBoost and SVM) on NSL-KDD and ToN-IoT and found that the role of hardware noise is not primary in performance instability.

  • We identify and characterize two distinct forms of seed-dependent classifier degeneration: recall collapse and trivial-positive classification, occurring in 8/56 runs in-

Corresponding author, Email: fida.hasan@unsw.edu.au including 2 on the noiseless backend. These demonstrate why average accuracy alone can conceal operationally unacceptable behaviour in security-critical applications.

  • We analyse the kernel Gram matrices to investigate the observed instability and find the noiseless kernels exhibit low effective rank and severe ill-conditioning on both datasets, providing evidence that the instability may originate partly from the representation itself. This motivates the use of worst-run performance, seed-level variability, class-specific metrics, and explicit degeneracy tests when evaluating quantum intrusion detection models.

The remainder of the paper proceeds from evidence to mechanism. Section 2 situates this work relative to the Cirillo and Esposito benchmark [6] and the quantum kernel concentration literature [9], [10]. Section 3 describes the pipeline, the backends, and the criteria used to identify failure across all 56 runs. Section 4 reports results in the order the evidence requires: accuracy, then the collapse events, then the kernel geometry that explains them. Section 5 argues that averaged accuracy alone is an insufficient reporting standard for a security critical classifier, and Section 6 states what this study did not test.