QShield: Securing Neural Networks Against Adversarial Attacks using Quantum Circuits
Organizations: Department of Computer Science, Emory University, 201 Dowman Drive, Atlanta, 30322, GA, USA. · Department of Physics, Emory University, 201 Dowman Drive, Atlanta, 30322, GA, USA.
Abstract
Deep neural networks remain highly vulnerable to adversarial perturbations, limiting their reliability in security- and safety-critical applications. To address this challenge, we introduce QShield, a modular hybrid quantum-classical neural network (HQCNN) architecture designed to enhance the adversarial robustness of classical deep learning models. QShield integrates a conventional convolutional neural network (CNN) backbone for feature extraction with a quantum processing module that encodes the extracted features into quantum states, applies structured entanglement operations under realistic noise models, and outputs a hybrid prediction through a dynamically weighted fusion mechanism implemented via a lightweight multilayer perceptron (MLP). We systematically evaluate both classical and hybrid quantum-classical models on the MNIST, OrganAMNIST, and CIFAR-10 datasets, using a comprehensive set of robustness, efficiency, and computational performance metrics. Our results demonstrate that classical models are highly vulnerable to adversarial attacks, whereas the proposed hybrid models with entanglement patterns maintain high predictive accuracy while substantially reducing attack success rates across a wide range of adversarial attacks. Furthermore, the proposed hybrid architecture significantly increased the computational cost required to generate adversarial examples, thereby introducing an additional layer of defense. These findings indicate that the proposed modular hybrid architecture achieves a practical balance between predictive accuracy and adversarial robustness, positioning it as a promising approach for secure and reliable machine learning in sensitive and safety-critical applications.
Figures & tables
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Attack Method | Hyperparameter Configuration |
|---|---|---|
| MNIST | FGSM | |
| PGD | , step size , steps = 10, random initialization = True | |
| APGD | norm, , steps = 10, restarts = 1, seed = 0, loss = cross-entropy, EOT iterations = 1, step size update factor | |
| VMI-FGSM | , step size , steps = 10, momentum decay = 1.0, sampled examples in the neighborhood , neighborhood upper bound | |
| C&W | norm, confidence = 0.0, untargeted attack, learning rate = 0.05, binary search steps = 10, maximum iterations = 5, initial constant = 0.01, halving/doubling limits = 5, batch size = 128 | |
| DeepFool | steps = 50, overshoot parameter = 0.05 |
| Dataset | Attack | Average Per-Sample Adversarial Runtime (s) | |||||
|---|---|---|---|---|---|---|---|
| DNN | CNN | HQCNN- | HQCNN- | HQCNN- | HQCNN- | ||
| None | Linear | Star | Full | ||||
| MNIST | FGSM | 0.00013 | 0.00036 | 0.01866 | 0.01980 | 0.02179 | 0.02427 |
| PGD | 0.00017 | 0.00143 | 0.19266 | 0.22138 | 0.20537 | 0.22468 | |
| APGD | 0.00070 | 0.00197 | 0.21744 | 0.24030 | 0.23729 | 0.25758 | |
| VMI-FGSM | 0.00120 | 0.00996 | 1.07496 | 1.24024 | 1.39194 | 1.33020 | |
Adversarial Robustness
Adversarial robustness studies how well AI systems withstand deliberately crafted inputs, training-data corruption, and other attacks.
See all 479 papers