Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking Adversarially Robust Quantum Machine Learning at Scale

Maxwell T. West, Sarah Erfani|arXiv (Cornell University)|Nov 23, 2022
Adversarial Robustness in Machine LearningComputer Science4 citations
TL;DR

This paper benchmarks the adversarial robustness of quantum variational classifiers (QVCs) at scale using diverse image datasets and advanced adversarial attacks (PGD, FGSM, AutoAttack). It demonstrates that QVCs exhibit significantly enhanced robustness against classical adversarial attacks by learning features undetectable to classical networks, revealing a novel quantum advantage in robustness—though classical attacks can still fool quantum models, enabling a hybrid detection framework.

ABSTRACT

Machine learning (ML) methods such as artificial neural networks are rapidly becoming ubiquitous in modern science, technology and industry. Despite their accuracy and sophistication, neural networks can be easily fooled by carefully designed malicious inputs known as adversarial attacks. While such vulnerabilities remain a serious challenge for classical neural networks, the extent of their existence is not fully understood in the quantum ML setting. In this work, we benchmark the robustness of quantum ML networks, such as quantum variational classifiers (QVC), at scale by performing rigorous training for both simple and complex image datasets and through a variety of high-end adversarial attacks. Our results show that QVCs offer a notably enhanced robustness against classical adversarial attacks by learning features which are not detected by the classical neural networks, indicating a possible quantum advantage for ML tasks. Contrarily, and remarkably, the converse is not true, with attacks on quantum networks also capable of deceiving classical neural networks. By combining quantum and classical network outcomes, we propose a novel adversarial attack detection technology. Traditionally quantum advantage in ML systems has been sought through increased accuracy or algorithmic speed-up, but our work has revealed the potential for a new kind of quantum advantage through superior robustness of ML models, whose practical realisation will address serious security concerns and reliability issues of ML algorithms employed in a myriad of applications including autonomous vehicles, cybersecurity, and surveillance robotic systems.

Motivation & Objective

  • To investigate whether quantum machine learning models, specifically quantum variational classifiers (QVCs), exhibit superior robustness against adversarial attacks compared to classical neural networks.
  • To evaluate the transferability of adversarial attacks across classical and quantum models, testing whether attacks crafted for one domain can deceive the other.
  • To explore the potential for a new form of quantum advantage in machine learning—not in accuracy or speed, but in robustness against adversarial perturbations.
  • To develop and validate a hybrid adversarial attack detection method by combining outputs from classical and quantum classifiers.
  • To assess the impact of quantum noise (depolarization, amplitude damping, bit-flip) on QVC robustness under adversarial conditions.

Proposed method

  • Trained classical neural networks (ConvNet and ResNet18) and quantum variational classifiers (QVCs) on standard datasets including MNIST, FMNIST, CIFAR-10, and Celeb-A using PyTorch and Pennylane.
  • Employed amplitude encoding to map image data into quantum states, followed by deep parameterized quantum circuits with 200, 500, or 1000 layers of single-qubit rotations and CZ entangling gates.
  • Applied high-strength adversarial attacks (PGD, FGSM, AutoAttack) with $ \\_\infty $-norm perturbations controlled by $ \epsilon $, generating both classical and quantum attacks for cross-testing.
  • Conducted adversarial training using PGD with 3 gradient steps and 50% clean/50% adversarial examples to improve robustness.
  • Evaluated robustness under various quantum noise models: depolarizing, amplitude damping, and bit-flip channels, with noise strength parameters $ p $ and $ \gamma $.
  • Proposed a hybrid detection mechanism by comparing predictions from classical and quantum models to identify adversarial inputs that fool one but not the other.

Experimental results

Research questions

  • RQ1Do quantum variational classifiers (QVCs) demonstrate greater robustness against classical adversarial attacks than classical neural networks?
  • RQ2To what extent do adversarial attacks transfer between classical and quantum models—can classical attacks fool quantum models, and vice versa?
  • RQ3Can quantum models learn features that are intractable for classical models, thereby making adversarial attacks ineffective against them?
  • RQ4Does the presence of quantum noise degrade the robustness of QVCs, and how does this affect their security profile?
  • RQ5Can the combination of classical and quantum model predictions enable a new, more reliable method for detecting adversarial examples?

Key findings

  • QVCs exhibit significantly enhanced robustness against classical adversarial attacks, with higher clean accuracy and lower success rates of PGD, FGSM, and AutoAttack across all tested datasets.
  • Classical adversarial examples fail to transfer effectively to deep QVCs (e.g., QVC200, QVC500, QVC1000), indicating that QVCs learn features not detectable by classical models.
  • Surprisingly, classical attacks can still successfully fool QVCs, demonstrating that quantum models are not inherently immune to adversarial perturbations.
  • The hybrid detection framework, based on disagreement between classical and quantum predictions, successfully identifies adversarial examples that evade one model but not the other.
  • Robustness in QVCs is not due to higher accuracy, but stems from learning distinct, non-classical features, suggesting a new form of quantum advantage in robustness.
  • Quantum noise (depolarization, amplitude damping, bit-flip) reduces but does not eliminate the robustness advantage of QVCs, indicating potential for noise-resilient quantum ML deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.