Skip to main content
QUICK REVIEW

[Paper Review] eXplainable AI for Quantum Machine Learning

Patrick Steinmüller, Tobias Schulz|arXiv (Cornell University)|Nov 2, 2022
Explainable Artificial Intelligence (XAI)Computer Science9 citations
TL;DR

This paper proposes qSHAP, a novel explainability method tailored for Parameterized Quantum Circuits (PQCs) in quantum machine learning. By leveraging the Fourier series structure of PQCs, qSHAP accelerates SHAP value computation and reduces noise sensitivity compared to standard xAI methods like Integrated Gradients, achieving polynomial-time complexity in the number of features rather than qubits.

ABSTRACT

Parametrized Quantum Circuits (PQCs) enable a novel method for machine learning (ML). However, from a computational point of view they present a challenge to existing eXplainable AI (xAI) methods. On the one hand, measurements on quantum circuits introduce probabilistic errors which impact the convergence of these methods. On the other hand, the phase space of a quantum circuit expands exponentially with the number of qubits, complicating efforts to execute xAI methods in polynomial time. In this paper we will discuss the performance of established xAI methods, such as Baseline SHAP and Integrated Gradients. Using the internal mechanics of PQCs we study ways to speed up their computation.

Motivation & Objective

  • Address the challenge of applying standard xAI methods to noisy, parametrized quantum circuits (PQCs) due to exponential phase space and probabilistic measurements.
  • Reduce the computational overhead of explainability in NISQ-era quantum machine learning models.
  • Develop a method that scales polynomially with the number of features rather than qubits, improving efficiency for larger circuits.
  • Minimize the adverse impact of quantum noise on explanation quality compared to existing black-box xAI approaches.
  • Enable practical interpretability of PQC-based models for high-risk applications requiring transparency, as mandated by regulations like the EU AI Act.

Proposed method

  • Exploit the mathematical structure of PQCs as truncated Fourier series to decompose model outputs into frequency components.
  • Use quantum circuit sampling to estimate SHAP values via Monte Carlo integration, with sampling size determined by convergence criteria.
  • Apply a Fourier step to identify active Fourier modes, reducing the search space for explanation computation.
  • Implement a polynomial-time post-processing step to compute SHAP values based on identified Fourier modes.
  • Integrate the Fourier decomposition with PolynomialSHAP to enable efficient, approximate SHAP value computation.
  • Optimize the method to minimize reliance on repeated quantum circuit evaluations, reducing runtime on NISQ hardware.

Experimental results

Research questions

  • RQ1How can established xAI methods like Integrated Gradients and SHAP be adapted to the unique challenges of PQCs, such as probabilistic measurements and exponential phase space?
  • RQ2Can the Fourier series representation of PQCs be leveraged to design a more efficient and noise-resilient xAI method than standard black-box approaches?
  • RQ3What is the scaling behavior of xAI methods with respect to the number of qubits and features in PQCs, and can it be improved?
  • RQ4How does noise in NISQ devices affect the reliability and convergence of xAI explanations for quantum machine learning models?
  • RQ5Can the structure of PQCs be used to derive a polynomial-time algorithm for computing SHAP values that avoids exponential scaling?

Key findings

  • qSHAP reduces the exponential scaling of standard xAI methods from the number of qubits to the number of features, enabling feasible computation on larger circuits.
  • The method achieves a significant reduction in noise sensitivity compared to Integrated Gradients and baseline SHAP, improving explanation reliability on noisy NISQ hardware.
  • Runtime for qSHAP on Rigetti-M-11 hardware was 399.5 seconds for a single-qubit model (250 samples), 497.2 seconds for two qubits, and 682.5 seconds for four qubits, with the Fourier and polynomial steps being the dominant non-quantum components.
  • Integrated Gradients required 20 evaluation points per feature and took 240.8 to 343.4 seconds across models, showing higher runtime than qSHAP for comparable explanation quality.
  • The Fourier mode identification step scales exponentially with the number of features, making feature count the primary bottleneck, not qubit count.
  • Theoretical analysis confirms that qSHAP’s complexity is polynomial in the number of features, while standard xAI methods scale exponentially with qubits due to the phase space expansion.

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.