[Paper Review] Explaining Bayesian Neural Networks
This paper proposes Uncertainty-Aware Importance (UAI), a novel method to explain Bayesian Neural Networks (BNNs) by generating explanation distributions instead of single heatmaps. By averaging relevance maps from posterior samples, UAI captures both feature importance and uncertainty in explanations, enabling risk-averse interpretation through a tunable parameter 𝛼, with experiments showing improved robustness and insight into model behavior across synthetic, benchmark, and real-world pathology data.
To advance the transparency of learning machines such as Deep Neural Networks (DNNs), the field of Explainable AI (XAI) was established to provide interpretations of DNNs' predictions. While different explanation techniques exist, a popular approach is given in the form of attribution maps, which illustrate, given a particular data point, the relevant patterns the model has used for making its prediction. Although Bayesian models such as Bayesian Neural Networks (BNNs) have a limited form of transparency built-in through their prior weight distribution, they lack explanations of their predictions for given instances. In this work, we take a step toward combining these two perspectives by examining how local attributions can be extended to BNNs. Within the Bayesian framework, network weights follow a probability distribution; hence, the standard point explanation extends naturally to an explanation distribution. Viewing explanations probabilistically, we aggregate and analyze multiple local attributions drawn from an approximate posterior to explore variability in explanation patterns. The diversity of explanations offers a way to further explore how predictive rationales may vary across posterior samples. Quantitative and qualitative experiments on toy and benchmark data, as well as on a real-world pathology dataset, illustrate that our framework enriches standard explanations with uncertainty information and may support the visualization of explanation stability.
Motivation & Objective
- To address the lack of instance-level explanation methods for Bayesian Neural Networks (BNNs), despite their built-in uncertainty quantification.
- To bridge the gap between model transparency in BNNs and local explanation methods used in standard DNNs.
- To develop a practical, scalable framework that generates uncertainty-aware explanations for BNN predictions.
- To enable users to choose between intersection (risk-averse) or union (inclusive) explanations via a tunable parameter 𝛼.
- To validate the method on diverse datasets, including real-world histopathology images, to demonstrate its effectiveness in uncovering systematic model behaviors and artifacts.
Proposed method
- The method extends local explanation techniques (e.g., LRP) to BNNs by sampling multiple weight configurations from the posterior distribution.
- For each posterior sample, a relevance map is computed using a standard explanation method like Layer-wise Relevance Propagation (LRP).
- The resulting set of relevance maps forms an explanation distribution, capturing variability in feature importance across different network configurations.
- The uncertainty-aware explanation (UAI) is computed by averaging these maps with a weighted scheme controlled by a hyperparameter 𝛼.
- The parameter 𝛼 allows users to tune the explanation: low 𝛼 emphasizes features consistently important across samples (intersection), high 𝛼 includes features with any positive relevance (union).
- The computational complexity is linear in the number of posterior samples, with 100 samples shown to be sufficient for stable uncertainty estimation.
Experimental results
Research questions
- RQ1How can we generate meaningful, uncertainty-aware explanations for Bayesian Neural Networks, given their inherent predictive distribution?
- RQ2What is the impact of varying the hyperparameter 𝛼 on the interpretability and robustness of the resulting explanations?
- RQ3Can UAI distinguish between genuine model behavior and spurious correlations, such as dataset artifacts or 'clever Hans' behavior?
- RQ4How does the UAI framework compare to standard mean-based explanation baselines in terms of reliability and insightfulness?
- RQ5To what extent can UAI reveal multiple, heterogeneous prediction strategies inherent in BNNs?
Key findings
- UAI successfully generates explanation distributions that reflect both feature importance and uncertainty, enabling more informative and robust interpretations of BNN predictions.
- With high values of 𝛼, UAI reveals features that are relevant under at least a small fraction of sampled network configurations, capturing more diverse and inclusive explanations.
- With low values of 𝛼, UAI identifies features that are consistently important across multiple samples, offering a risk-averse, intersection-based interpretation.
- On the Pascal VOC 2007 dataset, UAI correctly identified a watermark artifact as the primary driver of 'horse' classification, demonstrating its ability to detect systematic model biases.
- Experiments on histopathology data showed that UAI provides more nuanced and trustworthy explanations than standard mean-based baselines, especially in identifying regions of high and low prediction certainty.
- The method achieved stable uncertainty estimates with as few as 100 posterior samples, indicating practical feasibility for real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.