QGShap: Quantum Acceleration for Faithful GNN Explanations
Haribandhu Jena, Jyotirmaya Shivottam, Subhankar Mishra
TL;DR
QGShap tackles the problem of producing exact Shapley explanations for GNN predictions, which is computationally prohibitive with classical methods. It introduces a quantum-accelerated framework based on amplitude estimation to compute Shapley values exactly while achieving near-quadratic speedups over Monte Carlo approaches. Through experiments on synthetic graph benchmarks (Bridge and BA2-Motif) with a GIN backbone, QGShap demonstrates faithful, stable, and structure-aligned explanations and outperforms several baselines on multiple fidelity-based metrics. The work also discusses current hardware limitations and provides open-source code to foster further development of quantum-ready explainability for graphs.
Abstract
Graph Neural Networks (GNNs) have become indispensable in critical domains such as drug discovery, social network analysis, and recommendation systems, yet their black-box nature hinders deployment in scenarios requiring transparency and accountability. While Shapley value-based methods offer mathematically principled explanations by quantifying each component's contribution to predictions, computing exact values requires evaluating $2^n$ coalitions (or aggregating over $n!$ permutations), which is intractable for real-world graphs. Existing approximation strategies sacrifice either fidelity or efficiency, limiting their practical utility. We introduce QGShap, a quantum computing approach that leverages amplitude amplification to achieve quadratic speedups in coalition evaluation while maintaining exact Shapley computation. Unlike classical sampling or surrogate methods, our approach provides fully faithful explanations without approximation trade-offs for tractable graph sizes. We conduct empirical evaluations on synthetic graph datasets, demonstrating that QGShap achieves consistently high fidelity and explanation accuracy, matching or exceeding the performance of classical methods across all evaluation metrics. These results collectively demonstrate that QGShap not only preserves exact Shapley faithfulness but also delivers interpretable, stable, and structurally consistent explanations that align with the underlying graph reasoning of GNNs. The implementation of QGShap is available at https://github.com/smlab-niser/qgshap.
