Quantum Robustness Verification: A Hybrid Quantum-Classical Neural Network Certification Algorithm

Nicola Franco, Tom Wollschläger, Nicholas Gao, Jeanette Miriam Lorenz, Stephan GünnemannQCE 2022

TL;DR

This paper introduces HQ-CRAN, a novel hybrid quantum-classical algorithm for verifying the robustness of neural networks. By leveraging quantum computing for a specific sub-problem within a Benders decomposition framework, HQ-CRAN aims to overcome the exponential complexity of classical verification methods, offering provable guarantees against adversarial attacks.

What Problem Does This Paper Address?

Machine learning models, particularly neural networks, are vulnerable to adversarial examples – subtle input perturbations designed to fool the model. While empirical defenses exist, they can often be circumvented. Provable robustness certificates offer a stronger guarantee, ensuring a model's prediction remains consistent for all inputs within a defined perturbation budget. However, verifying these certificates for large neural networks is computationally intractable for classical computers due to the exponentially growing search space. This paper tackles this challenge by exploring how near-term quantum computers can accelerate this verification process.

Methods

The core of the proposed method, HQ-CRAN, is a hybrid approach that combines classical and quantum computation using Benders decomposition. This technique breaks down the complex mixed-integer programming (MIP) problem of neural network verification into two sub-problems:

  1. Linear Program (LP): Solved classically. This sub-problem generates "cuts" that refine the search space.
  2. Quadratic Unconstrained Binary Optimization (QUBO): Solved using quantum computers (specifically, quantum annealers or algorithms like QAOA). This sub-problem finds an optimal solution within the refined search space.

The algorithm iteratively solves these two sub-problems until convergence. The authors also introduce improvements to existing Benders decomposition methods, focusing on reducing the number of iterations and limiting the maximum number of qubits required. They derive theoretical bounds for the minimum number of qubits needed for a given certificate quality.

Datasets

The paper evaluates its method on the MNIST dataset.

Key Insights and Ideas

  • Quantum Advantage for Verification: The paper demonstrates a concrete application where quantum computing, even in its current noisy intermediate-scale quantum (NISQ) era, can be applied to a computationally challenging problem in machine learning verification.
  • Benders Decomposition as a Bridge: Benders decomposition is identified as a crucial technique for partitioning the verification problem into manageable classical and quantum sub-problems.
  • Provable Robustness is Computationally Expensive: The paper highlights the inherent difficulty of achieving provable robustness for large neural networks, underscoring the need for novel computational approaches.
  • Hybrid Approach is Necessary for NISQ: Given the limitations of current quantum hardware (small number of qubits, noise), a hybrid quantum-classical approach is essential for practical applications.
  • Qubit Requirements are Quantifiable: The authors provide theoretical bounds on the number of qubits required, offering practical guidance for future quantum hardware implementations.

Key Results

  • Soundness of Certificate: In simulated environments, the HQ-CRAN algorithm is shown to be sound, meaning it provides valid robustness certificates.
  • Improved Efficiency: Compared to prior hybrid Benders decomposition methods, HQ-CRAN reduces the overall number of iterations and limits the maximum number of qubits required.
  • Performance on MNIST: When evaluated on MNIST classifiers, HQ-CRAN achieves comparable certified accuracy to classical methods for smaller perturbation budgets (€), and shows better performance for larger budgets where classical incomplete methods struggle.
  • Quantum Hardware Evaluation: The method was evaluated on both simulated quantum annealers and real quantum hardware (D-Wave Advantage, IBM Quantum), demonstrating its applicability beyond pure simulation. While performance on real hardware is still limited by current capabilities, the results show promise.

Limitations and Future Work

  • Current Quantum Hardware Limitations: The paper acknowledges that current NISQ devices are limited by noise, decoherence, and qubit connectivity, which impacts the performance and scalability of the quantum components.
  • Approximation of Real Variables: The conversion of real-valued variables to binary representations for the QUBO problem is an approximation that can affect the optimality of the certificate.
  • Computational Cost: While aiming for an advantage, the current implementation of HQ-CRAN is still computationally more expensive than classical incomplete verifiers, especially in terms of runtime.
  • Future Work: The authors suggest several avenues for future research, including:
  • Improvements in quantum hardware (more qubits, better connectivity, error correction).
  • More efficient approximations for real-valued variables (e.g., angular or phase encodings).
  • Development of new stopping criteria to further reduce iterations.
  • Exploring bounds for parameters to reduce the number of iterations.
  • Investigating the potential for polynomial speed-up in NP-hard problems, though acknowledging that QC may not solve NP-hard problems in polynomial time with high probability.

Summary updated

Abstract

In recent years, quantum computers and algorithms have made significant progress indicating the prospective importance of quantum computing (QC). Especially combinatorial optimization has gained a lot of attention as an application field for near-term quantum computers, both by using gate-based QC via the Quantum Approximate Optimization Algorithm and by quantum annealing using the Ising model. However, demonstrating an advantage over classical methods in real-world applications remains an active area of research. In this work, we investigate the robustness verification of ReLU networks, which involves solving many-variable mixed-integer programs (MIPs), as a practical application. Classically, complete verification techniques struggle with large networks as the combinatorial space grows exponentially, implying that realistic networks are difficult to be verified by classical methods. To alleviate this issue, we propose to use QC for neural network verification and introduce a hybrid quantum procedure to compute provable certificates. By applying Benders decomposition, we split the MIP into a quadratic unconstrained binary optimization and a linear program which are solved by quantum and classical computers, respectively. We further improve existing hybrid methods based on the Benders decomposition by reducing the overall number of iterations and placing a limit on the maximum number of qubits required. We show that, in a simulated environment, our certificate is sound, and provides bounds on the minimum number of qubits necessary to approximate the problem. Finally, we evaluate our method within simulations and on quantum hardware.
BibTeX
@inproceedings{franco2022quantum,
  author = {Nicola Franco and Tom Wollschläger and Nicholas Gao and Jeanette Miriam Lorenz and Stephan Günnemann},
  title = {{Quantum Robustness Verification: A Hybrid Quantum-Classical Neural Network Certification Algorithm}},
  booktitle = {QCE},
  year = {2022},
  url = {https://openreview.net/forum?id=ITiNO0zXRb},
}
Figure