Abstract
Interpretability of artificial intelligence (AI) methods, particularly deep neural networks, is of great interest. This heightened focus stems from the widespread use of AI-backed systems. These systems, often relying on intricate neural architectures, can exhibit behavior that is challenging to explain and comprehend. The interpretability of such models is a crucial component of building trusted systems. Many methods exist to approach this problem, but they do not apply straightforwardly to the quantum setting. Here, we explore the interpretability of quantum neural networks using local model-agnostic interpretability measures commonly utilized for classical neural networks. Following this analysis, we generalize a classical technique called LIME, introducing Q-LIME, which produces explanations of quantum neural networks. A feature of our explanations is the delineation of the region in which data samples have been given a random label, likely subjects of inherently random quantum measurements. We view this as a step toward understanding how to build responsible and accountable quantum AI models.
Introduction: The Transparency Crisis in Quantum AI
As Artificial Intelligence (AI) moves into the quantum realm, we face a transparency crisis. Classical deep neural networks are already notoriously difficult to interpret, but Quantum Neural Networks (QNNs) add a layer of "innate and unavoidable randomness" due to the nature of quantum measurements.
The landscape of machine learning can be categorized by the nature of the data and the algorithms used, ranging from purely classical to fully quantum systems. Understanding where a model sits in this taxonomy is vital for choosing the right interpretability tools.
Standard Explainable AI (XAI) tools like LIME (Local Model-agnostic Explanations) work by creating a simple, "white-box" surrogate model to approximate the behavior of a complex "black-box" model around a specific data point. However, these tools assume determinism. In the quantum world, a QNN might classify the same data point differently across multiple measurements. Applying classical XAI to quantum models results in inconsistent, "hallucinated" explanations that vary with every run.
Q-LIME: Embracing Quantum Uncertainty
To address this, researchers introduced Q-LIME (Quantum Local Model-agnostic Explanations). Instead of forcing a single deterministic explanation onto a probabilistic quantum output, Q-LIME embraces uncertainty through a statistical approach.
Methodology
The Q-LIME framework introduces several key innovations:
- Monte Carlo Sampling: The algorithm runs the QNN multiple times for a local region of data, generating a distribution of potential outcomes.
- Surrogate Distribution: Instead of a single surrogate model, Q-LIME produces a distribution ($\Xi$) of trained surrogate models.
- The Region of Indecision: The framework defines a formal "region of indecision" ($R$), where the QNN’s classification is effectively a coin flip (probability $\approx 0.5$).
- The "Band" of Inexplicability: By calculating the Interquartile Range (IQR) of the decision boundaries from the surrogate distribution, the authors visualize a "band" on the classification plot. If a data point falls inside this band, the model is "indecisive," and any specific label it gives is due to chance rather than learned logic.
Experimental Results and Insights
The study utilizes the Iris dataset, simplified to a binary classification task with two features for 2D visualization. The results demonstrate that Q-LIME successfully maps the local region of indecision, providing a more honest representation of model confidence.
Key Insights
- Explicability vs. Inexplicability: A core finding is that some quantum decisions should not be explained. If a prediction is the result of inherent quantum randomness, providing a logical "reason" for it is misleading. Q-LIME identifies these "inexplicable" zones.
- Backward Compatibility: While designed for quantum randomness, the Q-LIME framework is theoretically compatible with classical probabilistic models, such as those using Softmax outputs.
Conclusion and Future Work
Q-LIME represents a significant step toward building responsible and accountable quantum AI models. Future research will focus on scaling the method to high-dimensional data, extending it to multi-class problems, and exploring the use of inherently quantum structures, such as Matrix Product States, as surrogate models.
Summary updated