Manuscript Offprint
arXiv:2608.28052Explainable Uncertainty Estimation for Reliable Medical AI
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Li Rong Wang
College of Computing and Data Science (CCDS)
Nanyang Technological University (NTU)
A*STAR Centre for Frontier AI Research
Singapore
Jamie Duell
School Of Computing and Digital Technologies
Sheffield Hallam University
South Yorkshire, England
Xinran Xu
CCDS
NTU
Singapore
Thomas C. Henderson
School of Computing
University of Utah
United States
Yu Yue Hew
Department of Haematology
Tan Tock Seng Hospital (TTSH)
Singapore
Pik Wan Erica Chiang
Department of Haematology
TTSH
Singapore
Xiao Wei Al'star Ang
Department of Haematology
TTSH
Singapore
Bingwen Eugene Fan
Lee Kong Chian School of Medicine
NTU
Singapore
Xiuyi Fan
Lee Kong Chian School of Medicine, CCDS
NTU
Singapore
Abstract—Artificial intelligence has strong potential to support clinical decision-making, yet its adoption in healthcare remains limited due to a lack of trust. Uncertainty estimation can signal unreliable predictions, and explainable AI (XAI) can clarify how predictions are made but existing methods treat them separately, providing no feature-level insight into why a prediction is uncertain or which tests to prioritize to reduce it. To address this gap, we propose explainable uncertainty estimation, which unifies uncertainty estimation and XAI to both quantify uncertainty and explain feature-level contributions. We introduce the Expected Gradients Reconstruction Uncertainty Estimate (egRUE), which incorporates prediction explanations into its uncertainty computation and decomposes uncertainty into feature-wise contributions. We prove theoretical properties of egRUE and show through experiments that it improves reliability and interpretability compared to existing methods. A user study with medical experts further demonstrates that egRUE's explanations improve calibrated trust over uncertainty scores alone, increasing confidence in correct predictions and reducing confidence in incorrect ones. By combining prediction uncertainty with feature-level explanations, egRUE strengthens decision-making support in safety-critical healthcare settings, clarifying both when predictions may be unreliable and which features drive that uncertainty.
Index Terms—Uncertainty Estimation, Uncertainty Attribution, Explainability
I. INTRODUCTION
Artificial intelligence shows promise for clinical decision-making [1], [2] but its deployment remains constrained by a lack of trust [3], [4]. Conventional models give definitive predictions, even though uncertainty is intrinsic to medicine. As William Osler famously noted, “Medicine is a science of uncertainty and an art of probability.” Uncertainty estimation in Machine Learning (ML) embraces this inherent uncertainty by quantifying how uncertain a model is about its predictions, thereby enhancing model trustworthiness. It helps users trust the model when it is confident and exercise caution when the model is uncertain and likely to make errors [5], [6]. Notable methods include Gaussian process regressors [7], Monte Carlo dropout [8] and deterministic uncertainty quantification [9]. They produce uncertainty estimations but do not attribute uncertainty to specific sources. This limitation has been noted in attempts to connect uncertainty with explanation [10]–[12].
Explainable Artificial Intelligence (XAI) [13] increases the trustworthiness of ML models by explaining how the model derives its predictions. Explanations are presented as feature-attribution values – values specific to each feature in the input that quantify its importance to the prediction. Popular methods include Integrated Gradients (IG) [14] and SHapley Additive exPlanations (SHAP) [15]. They explain predictions but do not address uncertainty.
In their seminal work on understanding uncertainty in decision-making within cognitive science and human behavior study, [16] propose that:
“Different types of uncertainty can be classified based on their issues (i.e., what the decision maker is uncertain about) and their sources (i.e., what causes this uncertainty).”
and stated how better addressing of the source of uncertainty can eventually lead to improved decision-making. A computerised example of their theory in ML is the following.
Example 1: Consider a lung cancer screening model with a subject having characteristics in the Value columns. The prediction question is whether the subject has lung cancer.
| Feature | Value | U-Exp | Feature | Value | U-Exp |
|---|---|---|---|---|---|
| Alcohol | Yes | 0.11 | Smoker | Yes | 0.48 |
| Sex | Male | 0.24 | Age | 71 | 0.07 |
| BMI | 17.7 | 0.00 | Diet Score | 52 | 0.00 |
| SBP | 126 | 0.00 | DBP | 70 | 0.00 |
| (...another 11 features with different U-Exps...) | |||||
| Prediction: Positive | Overall Uncertainty: 0.916 | ||||
This is a difficult prediction because, although the aging male drinks and smokes, he is otherwise healthy with a good diet and BMI value. The prediction model gives an incorrect positive prediction. However, our explainable uncertainty estimation algorithm attributes the high uncertainty (0.48 in the U-Exp column) to the feature Smoker.
An oncologist interpreted this with:
The binary feature “Smoker” is insufficient. We must know how much he smokes.
From Example 1, we can see that knowing a model is uncertain about its predictions and understanding how a prediction is computed brings more insight to underlying problem. This is pivotal, as the use of XAI without uncertainty quantification can lead to misguided trust in model predictions and assigned importance [17]. Thus, it is critical to combine uncertainty estimation and XAI to facilitate interpretable uncertainty quantification and leverage explanations in uncertainty calculations.
Several methods have recently attempted this combination, notably generative counterfactual explanations like CLUE [18]. While CLUE synthesizes “certain” inputs to explore uncertainty, our work instead uses Feature Attribution to identify specific morphological markers driving uncertainty in the original clinical image. Unlike CLUE, we avoid auxiliary generative models, ensuring faithfulness to patient data.
In this context, the contributions of this work are:
-
Quantify and explain uncertainty in ML predictions;
-
Provide a theoretical evaluation of the proposed method;
-
Evaluate our methods with practicing clinicians.
For the remainder of this paper, after a very brief introduction to the XAI technique used in this work, we introduce the Expected Gradients Reconstruction Uncertainty Estimate (egRUE) (Figure 1). We present theoretical results and provide quantitative experiments on four real-world datasets, demonstrating the superiority of egRUE. To validate the practical utility of our uncertainty explanations, we further conduct a user study with medical experts, showing that egRUE's explanations improve calibrated trust over uncertainty scores alone. Unlike most existing works, which often overlook explaining their estimations, our approach is unique in offering uncertainty explanations within a single prediction model.
Given a function , and an instance , a feature-attribution method produces a dimensional vector of feature-attribution values,

| Explanations | Uncertainty Estimate | |
|---|---|---|
| RUE | ||
| egRUE |
Fig. 1: System architecture for RUE and egRUE.
such that represents each feature's contribution towards the function's output.
Given a prediction function , EG unveils the impact of each input dimension of to its output by computing feature attribution values. Specifically, EG averages the gradients of the prediction function over a distribution of baseline inputs, in which the gradient of the output with respect to the input is computed with:
Clearly, this gradient indicates how changes in the input (x) affect the output of . As we are interested in the Expected Gradient, we average the gradients over a distribution of baseline inputs , namely:
Finally, the feature-attribution value for each feature is computed by multiplying the difference between the input and the baseline with the expected gradient:
EG is considered a robust feature-attribution method as it averages multiple baselines drawn from a distribution .
III. METHODOLOGY
The egRUE framework comprises two components:
-
egRUE: An improved uncertainty estimate informed by XAI feature attribution scores.
-
egRUE Explanations: The decomposition of egRUE to derive feature-wise uncertainty contributions.
We start by introducing uncertainty estimation.
A. Uncertainty Estimation
Uncertainty estimation methods aim to quantify the level of uncertainty associated with a model's predictions.
Definition 1 (Uncertainty Estimation): Given an instance , an uncertainty estimation method is a function that takes and quantifies uncertainty with a real value for some prediction function applied to .
- RUE: In this paper, we build on the Reconstruction Uncertainty Estimate (RUE), an AutoEncoder-inspired uncertainty estimation method [20], [21]. We start by giving a formal definition of RUE.
Consider a dataset , each instance is composed of an input vector and an output vector . By minimising prediction errors on the training set, we derive a prediction model. The prediction model can often be decomposed into two components:
-
The encoder ;
-
The predictor head ;
The encoder encodes the input into salient features in the latent space while the predictor uses the features from the encoder to predict the output.
In addition to the encoder and the predictor, RUE trains an additional component, the decoder . This decoder reconstructs the input given the encoded salient features from the encoder, minimising the reconstruction errors in the training set. With the fit decoder, RUE is defined as the reconstruction error of the decoder for input .
Formally, the reconstruction error in RUE serves as the uncertainty estimate. The higher the reconstruction error, the greater the uncertainty in the prediction.
Definition 2 (RUE Uncertainty): The RUE Uncertainty for an instance x and its reconstruction is:
Intuitively, RUE uncertainty holds as is expected to show concordance with prediction error:
This assertion was motivated by two assumptions:
-
Predictor performs well on instances that are similar to the training set and poorly on dissimilar instances.
-
The decoder which has been trained on the same training set, would reconstruct samples similar to the training set better, yielding a low reconstruction error and vice versa.
-
egRUE: In RUE, uncertainty is computed as the sum of feature-wise reconstruction errors, assuming that each feature contributes equally to prediction uncertainty. However, we hypothesize that features do not contribute evenly to uncertainty, just as they do not contribute evenly to the prediction. Important features contribute more to uncertainty, as the model's inability to reconstruct them indicates higher uncertainty.
Hence, we propose a second uncertainty estimation method, egRUE (Expected Gradients RUE), which extends RUE with feature attribution values from XAI. Before we can compute egRUE, we formally define feature-wise reconstruction errors:
Definition 3 (Feature-wise Reconstruction Error): The feature-wise reconstruction error between an instance and its associated reconstructed instance is:
For a vector , denotes the L1 norm of .
In this work, we adapt EG for feature-attribution computation in egRUE with the following modifications: (1) using the encoder and predictor head of RUE as the prediction model; (2) changing the baseline distribution to sampled instances from the training data distribution D; and (3) using the input instance as the target instance. Thus, the feature-attribution value for each feature j is:
egRUE adjusts the contribution of each feature to prediction uncertainty by weighting feature-wise reconstruction errors with reference to their feature attribution values. These feature-importance-weights are then calculated by normalizing the absolute EG feature-attribution values.
We denote the feature-importance weights as a vector:
and define egRUE as the feature-importance-weighted sum of feature-wise reconstruction errors. Formally,
Definition 4 (egRUE Uncertainty): Given an instance x, let and be its feature-wise reconstruction error and feature-importance weights, respectively. The egRUE Uncertainty of x is :
Compared to RUE uncertainty ( ), egRUE uncertainty ( ) provides a more “targeted” estimation by explicitly considering feature-attribution values computed using EG, using the same prediction model.
B. Uncertainty Explanation
To explain uncertainty estimation, we again consider feature attribution. For an uncertainty estimation , we want to see how does each feature contribute to .
Definition 5 (Uncertainty Explanation): Given an instance x, an uncertainty explanation method is a mapping , with each quantifying the prediction uncertainty contributed by the corresponding .
To compute explanations for RUE and egRUE, we observe that both and are aggregate values of feature-wise reconstruction errors, discounted by prediction feature-attribution values in the case of egRUE. Thus, the feature-wise reconstruction error naturally “explains” how each feature affects the uncertainty estimation.
For RUE, we define RUE Explanation as follows.
Definition 6 (RUE Explanation): Given an instance x, its RUE Explanation is its feature-wise reconstruction error.
For egRUE, we define egRUE explanation as follows.
Definition 7 (egRUE Explanation): Given an instance x, its egRUE Explanation is the Hadamard product of its RUE Explanation and feature-importance values .
Intuitively, as is used to discount features-attributions in uncertainty estimation , the same discount factor is applied in the corresponding explanations in egRUE.
IV. EXPERIMENTS
We present the results of our experiments evaluating uncertainty estimates and their explanations for egRUE. Our evaluation covers two main aspects:
-
Quality of Uncertainty Estimates: Evaluating the reliability, misclassification detection, selective prediction, robustness to false negatives, and out-of-distribution detection of these estimates.
-
Informativeness of Uncertainty Explanations: Assessing whether uncertain features influence prediction error, evaluated qualitatively and quantitatively using “Remove and Retrain” (ROAR) [22].
Our experiments show that egRUE consistently outperforms existing uncertainty estimation methods across reliability, misclassification detection, selective prediction, and robustness to false negatives. Relative to state-of-the-art Deep Ensembles [23]–[26], egRUE achieves gains of 151–330% in reliability, 4–53% in misclassification detection, 32–77% in selective prediction, and 78–98% in robustness to false negatives, while improving out-of-distribution detection by 11-97%. Moreover, egRUE provides explanations that better align with true feature-level uncertainties than RUE.
A. Datasets
We conducted experiments on four medical diagnosis datasets spanning various domains, modalities, and sizes.
a) Singapore Chinese Health Study Lung Cancer: This dataset was derived from the Singapore Chinese Health Study (SCHS) [27], which investigates the influence of diet, genetics, and environment on cancer and other chronic illnesses in the ethnic Chinese population in Singapore. The dataset comprises 23,622 instances. Each instance represents a participant and is characterized by 20 features describing their diet, genetic makeup, and environment, along with a target label indicating whether the participant suffers from lung cancer. After preprocessing, 17,464 data instances remained, of which 1.855% were lung cancer cases.
b) Singapore Chinese Health Study Colorectal Cancer: This SCHS-derived dataset [27] contains 22,901 instances and shares features with the Lung Cancer dataset, except for sleep duration and includes colorectal cancer polygenic scores. After preprocessing, 20,689 instances remained, with 2.576% labelled as colorectal cancer.
c) OCTMNIST: This dataset [28] contains 109,309 retinal OCT images (224×224), split into training (97,477), validation (10,832), and test (1,000) sets. Class distribution is imbalanced: 47% Normal, 34% Choroidal Neovascularization (CNV), 11% Diabetic Macular Edema (DME), and 8% Drusen. To assess uncertainty under distributional shift, we augment the test set with 618 OCTDL [29] instances from overlapping classes. For OOD detection, we use: (1) OCTDL-IN (same classes), (2) OCTDL-OUT (unseen OCTDL classes, e.g., AMD), and (3) 1,000 ChestMNIST X-ray images [30].
d) BloodMNIST: This dataset [31] contains 17,092 blood cell microscopic images (224×224), split into training (11,959), validation (1,712), and test (3,421). It is imbalanced, with 19.5% of instances from the platelet class in the 8-class task. To assess performance under distributional shift, we augment the test set with 3,421 Raabin [32] instances. For OOD detection, we use: (1) Raabin (overlapping classes), (2) 3,421 bone marrow (from unseen classes) [33], and (3) 3,421 ChestMNIST X-ray images [30].
B. Uncertainty Estimation Baselines
We compare egRUE with standard uncertainty baselines, including Entropy [34], Bayesian Neural Networks (BNN) [35], Monte Carlo Dropout (MCD) [8], Deep Ensembles (DE) [36], Deep Evidential Classification (DEC) [37], Posterior Networks (PN) [38], and Gaussian Process (GP) [7].
C. Metrics
Five metrics are used for evaluation in this work.
a) Correlation: [39], [40] Quantifies the reliability of the uncertainty estimate using the Pearson correlation between the cross-entropy loss and the uncertainty estimate. A high correlation indicates a reliable uncertainty estimate.
b) Misclassification Prediction with AUROC: [41], [42] Measures how well uncertainty scores distinguish correct from incorrect predictions, using 0/1 loss as ground truth and uncertainty as prediction scores.
c) AURC: [43] The Area Under the Risk-Coverage Curve measures an uncertainty estimate's effectiveness for selective prediction, where risk is 0/1 loss and coverage is the proportion of certain predictions.
d) -Risk Score: [44] Measures average 0/1 loss on confident instances (instances with normalized uncertainty below ). Low -risk indicates robustness to false negatives (i.e., confident but incorrect predictions).
e) OOD Detection Performance: [34], [36] Measures how well uncertainty distinguishes in-distribution from OOD instances using AUROC, with dataset labels (0=in, 1=OOD) as ground truth and uncertainty as prediction scores.
D. Quantitative Evaluation
- Uncertainty Estimation: Table I evaluates uncertainty estimates in terms of reliability (correlation), selectivity (AUROC, AURC), and robustness to false negatives ( -risk). We observe that egRUE consistently performs well across all three aspects and all four datasets. It shows strong reliability, achieving the highest correlation with error on the
TABLE I: Performance comparison of uncertainty estimates on four datasets. The best-performing uncertainty estimates for each metric have been bolded, and the next best have been underlined.
| UE | Lung Cancer | Colorectal Cancer | ||||||
|---|---|---|---|---|---|---|---|---|
| Corr (↑) | AUROC (↑) | AURC (↓) | σ-Risk (↓) | Correlation (↑) | AUROC (↑) | AURC (↓) | σ-Risk (↓) | |
| egRUE | 0.688 ± 0.151 | 0.835 ± 0.101 | 0.015 ± 0.006 | 0.008 ± 0.001 | 0.602 ± 0.047 | 0.812 ± 0.013 | 0.044 ± 0.015 | 0.016 ± 0.004 |
| Entropy | 0.676 ± 0.121 | 0.814 ± 0.078 | 0.024 ± 0.023 | 0.026 ± 0.014 | 0.703 ± 0.035 | 0.812 ± 0.019 | 0.045 ± 0.020 | 0.000 ± 0.000 |
| MCD | 0.300 ± 0.244 | 0.665 ± 0.133 | 0.039 ± 0.034 | 0.000 ± 0.000 | -0.531 ± 0.301 | 0.307 ± 0.217 | 0.222 ± 0.113 | 0.441 ± 0.324 |
| DE | 0.179 ± 0.671 | 0.617 ± 0.320 | 0.064 ± 0.088 | 0.065 ± 0.094 | -0.262 ± 0.314 | 0.531 ± 0.240 | 0.121 ± 0.105 | 0.164 ± 0.217 |
| PN Alea | 0.486 ± 0.112 | 0.830 ± 0.066 | 0.036 ± 0.025 | 0.010 ± 0.002 | 0.386 ± 0.141 | 0.741 ± 0.137 | 0.031 ± 0.012 | 0.020 ± 0.004 |
| PN Epis | 0.184 ± 0.136 | 0.725 ± 0.113 | 0.053 ± 0.035 | 0.109 ± 0.077 | 0.122 ± 0.091 | 0.653 ± 0.147 | 0.043 ± 0.026 | 0.071 ± 0.061 |
| GPC | 0.115 ± 0.000 | 0.702 ± 0.000 | 0.010 ± 0.000 | 0.010 ± 0.000 | 0.067 ± 0.000 | 0.615 ± 0.000 | 0.018 ± 0.000 | 0.017 ± 0.000 |
| UE | OCTMNIST | BloodMNIST | ||||||
| Corr (↑) | AUROC (↑) | AURC (↓) | σ-Risk (↓) | Correlation (↑) | AUROC (↑) | AURC (↓) | σ-Risk (↓) | |
| egRUE | 0.439 ± 0.039 | 0.786 ± 0.021 | 0.120 ± 0.025 | 0.020 ± 0.016 | 0.552 ± 0.047 | 0.930 ± 0.025 | 0.139 ± 0.013 | 0.003 ± 0.003 |
| Entropy | -0.018 ± 0.066 | 0.681 ± 0.034 | 0.173 ± 0.043 | 0.161 ± 0.037 | -0.113 ± 0.050 | 0.668 ± 0.056 | 0.306 ± 0.067 | 0.330 ± 0.061 |
| MCD | -0.026 ± 0.063 | 0.665 ± 0.033 | 0.176 ± 0.043 | 0.162 ± 0.041 | -0.104 ± 0.059 | 0.667 ± 0.054 | 0.307 ± 0.066 | 0.330 ± 0.060 |
| DE | 0.124 ± 0.032 | 0.757 ± 0.017 | 0.113 ± 0.019 | 0.089 ± 0.017 | 0.220 ± 0.143 | 0.864 ± 0.033 | 0.204 ± 0.034 | 0.157 ± 0.040 |
| PN Alea | -0.046 ± 0.042 | 0.644 ± 0.052 | 0.260 ± 0.089 | 0.263 ± 0.076 | 0.222 ± 0.120 | 0.871 ± 0.042 | 0.202 ± 0.026 | 0.222 ± 0.037 |
| PN Epis | -0.051 ± 0.129 | 0.579 ± 0.129 | 0.296 ± 0.115 | 0.298 ± 0.129 | 0.218 ± 0.165 | 0.864 ± 0.057 | 0.205 ± 0.032 | 0.184 ± 0.045 |
| BNN | -0.007 ± 0.022 | 0.701 ± 0.009 | 0.198 ± 0.011 | 0.176 ± 0.017 | 0.094 ± 0.055 | 0.799 ± 0.021 | 0.165 ± 0.024 | 0.114 ± 0.015 |
| DEC | 0.081 ± 0.022 | 0.624 ± 0.022 | 0.259 ± 0.008 | 0.174 ± 0.033 | 0.383 ± 0.023 | 0.770 ± 0.016 | 0.223 ± 0.007 | 0.490 ± 0.137 |

EG
RUE
egRUE
(a) OCTMNIST

EG
RUE
egRUE
(b) BloodMNIST
Fig. 2: Comparison of Expected Gradients (EG), RUE, and egRUE for mispredicted “Diabetic Macular Edema (DME)” (OCTMNIST) and “Immature Granulocytes” (BloodMNIST) images. Green highlights mark regions driving incorrect predictions (EG) or predictive uncertainty (RUE, egRUE). (2a) EG highlights most of the retina and some artefacts without pinpointing any specific region of uncertainty. RUE significantly overestimates uncertainty regions with even more artefacts. egRUE highlights the edema (triangular region) typical of DME cases. (2b) EG highlights most of the central cell, RUE highlights all cells in the image, while egRUE focuses on the nucleus, whose shape is atypical of a neutrophil, driving model uncertainty.
Lung Cancer, OCTMNIST and BloodMNIST datasets, and the second highest on the Colorectal dataset. In terms of selectivity, egRUE yields the highest AUROC for misclassification prediction on across all datasets, and achieves the lowest and second lowest AURC on Lung Cancer, OCTMNIST, and BloodMNIST datasets – demonstrating its effectiveness for selective prediction. Finally, examining -Risk scores, egRUE shows strong robustness to false negatives, achieving either the lowest or second lowest error on confident predictions across all datasets.
Table II compares the OOD detection performance of uncertainty estimates on the image datasets. egRUE consistently achieves the highest AUROC on both OCTMNIST and BloodMNIST, across OOD datasets with varying degrees of dissimilarity to the training set, indicating superior OOD detection performance.
- Uncertainty Explanation: Figure 2 compares explanations from EG, RUE, and egRUE. In 2a, EG and RUE produce noisy explanations, whereas egRUE clearly highlights the edema-associated triangular region [45]. In 2b, EG produces noisy explanations, and RUE indiscriminately highlights all cells, offering little clinically specific insight. In contrast, egRUE focuses on clinically relevant features: it highlights the indented, rather than uniformly curved, nucleus shape which is atypical of a mature neutrophil but typical of an immature granulocyte. Both examples demonstrate egRUE's superior ability to identify clinically meaningful uncertain features.
Figure 3 evaluates RUE and egRUE uncertainty explanations with the Remove and Retrain (ROAR) metric [22]. This approach assesses the effects of removing uncertain features and retraining the prediction model. Due to class imbalances in all datasets, we used AUC (Area Under the receiver operating characteristic Curve) instead of accuracy for ROAR. The results show that egRUE generally yields a more stable and higher AUC, indicating that egRUE explanations better align with each feature's true uncertainty.
- Ablation: egRUE vs RUE: Comparing egRUE and RUE estimates (Table III), we find that egRUE outperforms RUE across all datasets, highlighting the benefits of incorporating feature-attribution weights into RUE's uncertainty estimation.
TABLE II: Out-of-distribution (OOD) detection AUROC on image datasets. OOD datasets are ordered by increasing dissimilarity from the training set. Best uncertainty estimates are bolded; second-best are underlined.
| UE | OCTMNIST (↑) | ||
|---|---|---|---|
| OCTDL-IN | OCTDL-OUT | ChestMNIST | |
| egRUE | 0.961 ± 0.015 | 0.977 ± 0.007 | 1.000 ± 0.000 |
| Entropy | 0.674 ± 0.031 | 0.386 ± 0.066 | 0.826 ± 0.060 |
| MCD | 0.661 ± 0.034 | 0.392 ± 0.064 | 0.844 ± 0.060 |
| DE | 0.739 ± 0.009 | 0.497 ± 0.029 | 0.900 ± 0.028 |
| PN Alea | 0.625 ± 0.063 | 0.492 ± 0.025 | 0.500 ± 0.107 |
| PN Epis | 0.565 ± 0.052 | 0.483 ± 0.087 | 0.470 ± 0.145 |
| BNN | 0.742 ± 0.014 | 0.734 ± 0.016 | 0.896 ± 0.015 |
| DEC | 0.633 ± 0.012 | 0.669 ± 0.011 | 0.760 ± 0.013 |
| UE | BloodMNIST (↑) | ||
| Raabin-IN | BoneMarrow-OUT | ChestMNIST | |
| egRUE | 0.997 ± 0.001 | 0.946 ± 0.021 | 0.998 ± 0.001 |
| Entropy | 0.657 ± 0.092 | 0.884 ± 0.031 | 0.670 ± 0.221 |
| MCD | 0.657 ± 0.090 | 0.880 ± 0.028 | 0.683 ± 0.215 |
| DE | 0.847 ± 0.050 | 0.943 ± 0.008 | 0.798 ± 0.106 |
| PN Alea | 0.879 ± 0.058 | 0.882 ± 0.016 | 0.905 ± 0.048 |
| PN Epis | 0.875 ± 0.070 | 0.871 ± 0.028 | 0.912 ± 0.070 |
| BNN | 0.820 ± 0.026 | 0.874 ± 0.014 | 0.914 ± 0.015 |
| DEC | 0.764 ± 0.018 | 0.808 ± 0.022 | 0.897 ± 0.037 |

Fig. 3: Results of ROAR experiments on the Colorectal Cancer dataset. egRUE yields a more stable, higher AUC than RUE after removing uncertain features, indicating its uncertainty explanations better reflect true uncertainties.
-
Ablation: Attribution Method: We evaluate alternative attribution methods using ROAD (Remove and Debias) [46], which ranks features by uncertainty, progressively removes them (10–90%), and tracks accuracy. The area under accuracy–removal curve quantifies explanation quality, with larger areas indicating stronger attribution. On BloodMNIST, egRUE achieves highest ROAD scores, indicating that alternative attribution methods do not improve uncertainty explanations.
-
Computational Efficiency: We compare the instance-level inference time of egRUE with several sampling-based and deterministic uncertainty methods (Table V). egRUE achieves inference in 0.002s per instance, substantially faster than sampling-based methods such as DE (0.0103s), MCD (0.0125s), and BNN (0.0126s). Deterministic methods like Entropy (0.0013s) and DEC (0.0014s) are slightly faster, but egRUE provides a favorable trade-off between efficiency and robust uncertainty estimation.
TABLE III: Performance comparison of egRUE and RUE on four datasets. The best-performing uncertainty estimates for each metric have been bolded.
| Data | UE | Corr (↑) | AUROC (↑) | AURC (↓) | σ-Risk (↓) |
|---|---|---|---|---|---|
| Lung Cancer | egRUE | 0.688 ± 0.151 | 0.835 ± 0.101 | 0.015 ± 0.006 | 0.008 ± 0.001 |
| RUE | 0.589 ± 0.115 | 0.796 ± 0.092 | 0.021 ± 0.011 | 0.019 ± 0.003 | |
| Colorectal Cancer | egRUE | 0.602 ± 0.047 | 0.812 ± 0.013 | 0.044 ± 0.015 | 0.016 ± 0.004 |
| RUE | 0.542 ± 0.059 | 0.794 ± 0.026 | 0.049 ± 0.021 | 0.018 ± 0.003 | |
| OCT MNIST | egRUE | 0.439 ± 0.039 | 0.786 ± 0.021 | 0.120 ± 0.025 | 0.020 ± 0.016 |
| RUE | 0.395 ± 0.059 | 0.771 ± 0.034 | 0.129 ± 0.028 | 0.051 ± 0.047 | |
| Blood MNIST | egRUE | 0.552 ± 0.047 | 0.930 ± 0.025 | 0.139 ± 0.013 | 0.003 ± 0.003 |
| RUE | 0.583 ± 0.051 | 0.923 ± 0.024 | 0.142 ± 0.013 | 0.004 ± 0.003 |
TABLE IV: Area under the ROAD curve ( ) for each attribution method, paired with RUE.
| egRUE | igRUE | gradCamRUE | guidedBackpropRUE | |
|---|---|---|---|---|
| BloodMNIST | 0.148 | 0.144 | 0.133 | 0.138 |
V. USER STUDY
To evaluate the effectiveness of our uncertainty explanations at fostering calibrated trust in addition to uncertainty scores, we conducted a user study with five medical experts on a blood cell classification task with examples from BloodMNIST. The survey consisted of nine questions evenly split across three categories to observe the impact of uncertainty explanations on calibrated trust in each category. The three categories were characterised by the model prediction's correctness and uncertainty score: (1) correct and low uncertainty, (2) incorrect and high uncertainty, (3) incorrect and low uncertainty. The experts were first shown the blood cell image, the model's prediction, and the uncertainty score, and then they were asked how much they agreed with the model's prediction. Next, the experts were shown the uncertainty explanation and asked if it had influenced their confidence in the model's prediction (increased, no change, or decreased), and to justify their change or non-change.
Firstly, our user study observed that in the presence of uncertainty scores, experts are still prone to overreliance on model predictions: experts agreed with the model's prediction (12 out of 30 responses) of the time, even though the model's prediction was incorrect. This demonstrates that uncertainty estimates alone are not sufficient to combat overconfidence in model predictions. Observing the change in respondents' confidence after adding explanations, we see an improvement in calibrated trust for Cases (1) and (2) (Figure 4), with increased confidence in correct predictions and reduced confidence in incorrect predictions. For Case (3), the effect on confidence appears mixed, but analysing the qualitative justifications for increased confidence paints a fuller
TABLE V: Instance inference time (s) of uncertainty estimates.
| Entropy | DEC | egRUE | PN | DE | MCD | BNN | |
|---|---|---|---|---|---|---|---|
| Time / s | 0.00132 | 0.00139 | 0.00200 | 0.00407 | 0.01026 | 0.01249 | 0.01259 |

Fig. 4: User Study Results: Change in respondents' confidence after the addition of uncertainty explanations.
picture. In all four instances, respondents indicated that their increased confidence stemmed from the uncertainty explanations being consistent with their own sources of uncertainty.
VI. THEORETICAL EVALUATION
We present a theoretical analysis of RUE and egRUE, covering both uncertainty estimation and explanation. First, we evaluate how uncertainty estimates provide bounds on prediction error. Next, we prove that the egRUE feature attribution satisfies key feature-attribution properties. This analysis highlights the robustness and reliability of our methods in providing meaningful insights into model predictions.
A. Uncertainty Estimation
In evaluating an uncertainty estimation method, obtaining theoretical results that bound the prediction error with uncertainty estimation is critical. Such bounding ensures that the model's confidence in its predictions aligns with its actual performance. This alignment is fundamental to the reliability of the developed uncertainty estimation. Both RUE and egRUE provide such bounds. We present the result for RUE first.
Theorem 1: There exists an and an derived from the given prediction model, such that errors of the predictor are bounded by RUE uncertainty:
Theorem 1 states that there exist positive constants and such that for any instance , the difference between the model's prediction and the ground truth is greater than or equal to but less than or equal to . Broadly speaking, this theorem holds because the prediction model and the uncertainty estimation model share the encoder . As the prediction error is “propagated” within the two overlapping models, the error in the reconstruction infers the error in the prediction (under our assumptions of invertible layers and a well-trained prediction model).
We can prove that the egRUE counterpart to Theorem 1 by extending the earlier proof using the following relation between RUE and egRUE:
Proposition 1: For any instance x, it holds that:
Full proofs of all theoretical results can be found in the appendix.
Proposition 1 states that RUE is lower-bounded by egRUE and upper-bounded by egRUE multiplied by a constant. To demonstrate this, we first observe that RUE is computed as the sum of feature-wise reconstruction errors, while egRUE is the weighted sum of these errors. Additionally, we note that in egRUE, all weights are normalized to be less than 1, whereas in the upper bound, the constant ensures that the weights are greater than or equal to 1. By applying the transitive property of inequality, we can extend Theorem 1 with Proposition 1, thereby proving Theorem 2.
Theorem 2: There exists an and an , derived from the given prediction model, such that errors of the predictor are bounded by egRUE:
Theorem 2 states that there exist positive constants such that, for any instance , the difference between the model's prediction and the ground truth is lower bounded by and upper bounded by .
B. Uncertainty Explanation
Our analysis of uncertainty explanation is centered around the following three properties: (1) implementation invariance, (2) sensitivity, and (3) consistency. Implementation invariance states that a uncertainty feature-attribution algorithm should produce the same uncertainty feature-attribution values for functionally equivalent networks.
Property 1 (Implementation Invariance): Let and be two functionally equivalent prediction models. An uncertainty explanation algorithm satisfies implementation invariance if and only if for all , produces the same uncertainty explanation when applied to both and .
Two prediction models are functionally equivalent if for all the same set of inputs, both models produce the same outputs.
The next property is sensitivity, stated as follows.
Property 2 (Sensitivity): If a prediction function does not depend on some feature , then that feature should be assigned an uncertainty feature-attribution of zero.
Sensitivity is desirable because it ensures that only features that are relevant to the prediction have non-zero uncertainty feature-attribution values assigned.
The last property consistency states that, for two models, such that one model receives greater contribution from a feature as seen in the prediction model, then the feature cannot receive a decreased uncertainty feature-attribution value.
Property 3 (Consistency): Let denote setting , then given two prediction models and , an uncertainty explanation algorithm is consistent if and only if for
it holds that
Consistency is desirable as it ensures that feature attributions align with the relative importance of features across different
A function is said to “depend” on a feature, if a change in that feature value results in a change in the function’s output.
models. This property maintains that features contributing more to the output of a model, with the same feature-wise reconstruction error, should consistently receive higher attribution values. We first show that satisfies the implementation invariance property.
Theorem 3: satisfies implementation invariance. This is true, since the learned encoder, decoder and predictor will present the same feature-wise reconstruction error and predicted values, and thus will inherently satisfy implementation invariance.
We proceed to show that extends the theoretical guarantees of , satisfying the implementation invariance, sensitivity and consistency properties.
Theorem 4: satisfies implementation invariance, sensitivity, and consistency.
It is clear that follows a similar proof to Theorem 3 to satisfy implementation invariance, and as the computation of feature-attribution evaluates the gradients of the predictor with respect to the input (chain-rule), the partial derivative of the irrelevant feature will naturally present a zero-value, and therefore return a zero-value uncertainty feature-attribution score for any input feature that is not relevant to the predictor. Finally, we prove consistency, to achieve this we assert that only the prediction head is modified to evaluate consistency, thus maintaining the same reconstruction error (as we are evaluating the same instance x), it is then a natural consequence of EG that consistency holds.
VII. Conclusion
We propose egRUE (Expected Gradient-weighted Reconstruction Uncertainty Estimate), an uncertainty estimation method that quantifies prediction uncertainty while explaining how individual features contribute to it. By integrating Expected Gradient scores into the Reconstruction Uncertainty Estimate (RUE), egRUE provides informative and interpretable uncertainty estimates, addressing the lack of trust that limits AI adoption in medicine.
We establish egRUE's reliability through theoretical analysis and experiments on four real-world healthcare datasets. We prove egRUE bounds prediction error and demonstrate consistent improvements in misclassification detection, selective prediction, robustness to false negatives, and out-of-distribution detection compared to state-of-the-art methods. Theoretical analysis shows that egRUE explanations satisfy invariance, sensitivity, and consistency, while Remove-and-Retrain experiments confirm they align more closely with true sources of uncertainty than RUE. A user study with medical experts shows that egRUE's explanations improve calibrated trust over uncertainty scores alone, increasing confidence in correct predictions and reducing confidence in incorrect ones. By revealing both when and why a model is uncertain, egRUE enhances trust and supports risk-aware clinical decision-making.
ACKNOWLEDGMENT
This research is supported by the Singapore Ministry of Health’s National Medical Research Council under its Population Health Research Grant MOH-002116-00 and the Centre of AI in Medicine (C-AIM).
REFERENCES
[1] N. Sheliemina et al., “The use of artificial intelligence in medical diagnostics: Opportunities, prospects and risks,” HEM, vol. 5, no. 2, pp. 104–124, 2024.
[2] A. S. Rawat, J. Rajendran, and S. S. Sikarwar, “Introduction to ai in disease detection—an overview of the use of ai in detecting diseases, including the benefits and limitations of the technology,” AI in Disease Detection: Advancements and Applications, pp. 1–26, 2025.
[3] M. Alonso, A. M. Astobiza, and R. Ortega Lozano, “Ai-mediated healthcare and trust: a trust-construct and trust-factor framework for empirical research,” Artif. Intell. Rev., vol. 58, no. 11, p. 337, 2025.
[4] M. Hassan, A. Kushniruk, and E. Borycki, “Barriers to and facilitators of artificial intelligence adoption in health care: scoping review,” JMIR Hum. Factors., vol. 11, p. e48633, 2024.
[5] L. Marusich, J. Bakdash, Y. Zhou, and M. Kantarcioglu, “Using AI Uncertainty Quantification to Improve Human Decision-Making,” in ICML, 2024, pp. 34949–34960.
[6] S. Y. Toh, C. Cai, L. R. Wang, X. Bai, J. Ngeow, and X. Fan, “The effect of explainable ai and uncertainty quantification on medical students’ perspectives of decision-making ai: A cancer screening case study,” in CHI EA, 2025, pp. 1–13.
[7] C. Williams and C. Rasmussen, “Gaussian processes for regression,” in NeurIPS, vol. 8, 1995.
[8] Y. Gal and Z. Ghahramani, “Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning,” in ICML. USA: PMLR, Jun. 2016, pp. 1050–1059.
[9] J. Van Amersfoort, L. Smith, Y. W. Teh, and Y. Gal, “Uncertainty estimation using a single deep deterministic neural network,” in ICML, 2020, pp. 9690–9700.
[10] D. Watson, J. O'Hara, N. Tax, R. Mudd, and I. Guy, "Explaining predictive uncertainty with information theoretic shapley values," in NeurIPS, vol. 36, 2023, pp. 7330–7350.
[11] H. Wang, B. A. Biswas, and Q. Ji, “Optimization-Based Uncertainty Attribution Via Learning Informative Perturbations,” in ECCV, vol. 15136. Switzerland: Springer, 2025, pp. 237–253.
[12] S. L. Chau, K. Muandet, and D. Sejdinovic, “Explaining the uncertain: Stochastic shapley values for gaussian process models,” in NeurIPS, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, Eds., vol. 36, 2023, pp. 50 769–50 795.
[13] W. Yang, Y. Wei, H. Wei, Y. Chen, G. Huang, X. Li, R. Li, N. Yao, X. Wang, X. Gu et al., “Survey on explainable ai: From approaches, limitations and applications aspects,” HCIN, vol. 3, no. 3, pp. 161–188, 2023.
[14] M. Sundararajan, A. Taly, and Q. Yan, “Axiomatic attribution for deep networks,” in ICML, vol. 70, 2017, p. 3319–3328.
[15] S. M. Lundberg and S. Lee, “A unified approach to interpreting model predictions,” in NeurIPS, USA, 2017, pp. 4765–4774.
[16] R. Lipshitz and O. Strauss, “Coping with uncertainty: A naturalistic decision-making analysis,” OBHDP, vol. 69, no. 2, pp. 149–163, 1997.
[17] T. Chiaburu, F. Haußer, and F. Bießmann, “Uncertainty in xai: Human perception and modeling approaches,” MAKE, vol. 6, no. 2, pp. 1170–1192, 2024.
[18] J. Antorán, U. Bhatt, T. Adel, A. Weller, and J. M. Hernández-Lobato, "Getting a clue: A method for explaining uncertainty estimates," in ICLR, 2021.
[19] G. Erion, J. D. Janizek, P. Sturmfels, S. M. Lundberg, and S.-I. Lee, “Improving performance of deep learning models with axiomatic attribution priors and expected gradients,” Nat. Mach. Intell., vol. 3, no. 7, p. 620–631, 2021.
[20] L. R. Wang, T. C. Henderson, and X. Fan, “An uncertainty estimation model for algorithmic trading agent,” in IAS, 2024, pp. 459–465.
[21] L. Korte, L. R. Wang, and X. Fan, “Confidence estimation in analyzing intravascular optical coherence tomography images with deep neural networks,” in IEEE CAI, Singapore, 2024, pp. 358–364.
[22] S. Hooker, D. Erhan, P.-J. Kindermans, and B. Kim, “A benchmark for interpretability methods in deep neural networks,” in NeurIPS, vol. 32, 2019.
[23] K. Wang, C. Shen, X. Li, and J. Lu, “Uncertainty quantification for safe and reliable autonomous vehicles: A review of methods and applications,” T-ITS, 2025.
[24] S. Zaidi, A. Zela, T. Elsken, C. C. Holmes, F. Hutter, and Y. Teh, "Neural ensemble search for uncertainty estimation and dataset shift," in NeurIPS, vol. 34, 2021, pp. 7898–7911.
[25] R. Rahaman et al., “Uncertainty quantification and deep ensembles,” in NeurIPS, vol. 34, 2021, pp. 20063–20075.
[26] Y. Ovadia, E. Fertig, J. Ren, Z. Nado, D. Sculley, S. Nowozin, J. Dillon, B. Lakshminarayanan, and J. Snoek, "Can you trust your model's uncertainty? evaluating predictive uncertainty under dataset shift," NeurIPS, vol. 32, 2019.
[27] J. H. Hankin, D. O. Stram, K. Arakawa, S. Park, S.-H. Low, H.-P. Lee, and M. C. Yu, “Singapore chinese health study: development, validation, and calibration of the quantitative food frequency questionnaire,” Nutr Cancer, vol. 39, no. 2, pp. 187–195, 2001.
[28] D. S. Kermany, M. Goldbaum, W. Cai, C. C. Valentim, H. Liang, S. L. Baxter, A. McKeown, G. Yang, X. Wu, F. Yan et al., “Identifying medical diagnoses and treatable diseases by image-based deep learning,” cell, vol. 172, no. 5, pp. 1122–1131, 2018.
[29] M. Kulyabin, A. Zhdanov, A. Nikiforova, A. Stepichev, A. Kuznetsova, M. Ronkin, V. Borisov, A. Bogachev, S. Korotkich, P. A. Constable et al., “Octdl: Optical coherence tomography dataset for image-based deep learning methods,” Sci. Data, vol. 11, no. 1, p. 365, 2024.
[30] X. Wang, Y. Peng, L. Lu, Z. Lu, M. Bagheri, and R. M. Summers, "Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases," in CVPR, 2017, pp. 2097–2106.
[31] A. Acevedo, A. Merino, S. Alférez, Á. Molina, L. Boldú, and J. Rodellar, "A dataset of microscopic peripheral blood cell images for development of automatic recognition systems," Data Brief, vol. 30, p. 105474, 2020.
[32] Z. M. Kouzehkanan, S. Saghari, E. Tavakoli, P. Rostami, M. Abaszadeh, F. Mirzadeh, E. S. Satlsar, M. Gheidishahran, F. Gorgi, S. Mohammadi et al., “Raabin-wbc: a large free access dataset of white blood cells from normal peripheral blood,” BioRxiv, pp. 2021–05, 2021.
[33] C. Matek, S. Krappe, C. Münzenmayer, T. Haferlach, and C. Marr, "Highly accurate differentiation of bone marrow cell morphologies using deep neural networks on a large image data set," Blood, vol. 138, no. 20, pp. 1917–1927, 2021.
[34] A. Malinin and M. Gales, “Predictive Uncertainty Estimation via Prior Networks,” in NeurIPS, vol. 31, 2018.
[35] D. J. MacKay, “A practical bayesian framework for backpropagation networks,” Neural Comput., vol. 4, no. 3, pp. 448–472, 1992.
[36] B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” in NeurIPS, vol. 30, 2017.
[37] M. Sensoy, L. Kaplan, and M. Kandemir, “Evidential Deep Learning to Quantify Classification Uncertainty,” in NeurIPS, vol. 31, 2018.
[38] B. Charpentier, D. Zügner, and S. Günnemann, “Posterior Network: Uncertainty Estimation without OOD Samples via Density-Based Pseudo-Counts,” in NeurIPS, vol. 33, 2020, pp. 1356–1367.
[39] L. Mi, H. Wang, Y. Tian, H. He, and N. N. Shavit, “Training-Free Uncertainty Estimation for Dense Regression: Sensitivity as a Surrogate,” in AAAI, vol. 36, 2022, pp. 10042–10050.
[40] U. Upadhyay, S. Karthik, Y. Chen, M. Mancini, and Z. Akata, "BayesCap: Bayesian Identity Cap for Calibrated Uncertainty in Frozen Neural Networks," in ECCV, 2022, pp. 299–317.
[41] C. Corbière, N. Thome, A. Bar-Hen, M. Cord, and P. Pérez, “Addressing failure prediction by learning model confidence,” in NeurIPS, vol. 32, 2019.
[42] F. Zhu, Z. Cheng, X.-Y. Zhang, and C.-L. Liu, “Rethinking confidence calibration for failure prediction,” in ECCV, 2022, pp. 518–536.
[43] Y. Ding, J. Liu, J. Xiong, and Y. Shi, “Revisiting the Evaluation of Uncertainty Estimation and Its Application to Explore Model Complexity-Uncertainty Trade-Off,” in CVPRW. IEEE, 2020, pp. 22–31.
[44] L. R. Wang, T. C. Henderson, Y. S. Ong, Y. Y. Ng, and X. Fan, “Towards trustworthy vital sign forecasting: Leveraging uncertainty for prediction intervals,” in ICDM, 2025.
[45] G. Panozzo, B. Parolini, E. Gusson, A. Mercanti, S. Pinackatt, G. Bertoldo, and S. Pignatto, “Diabetic macular edema: an oct-based classification,” in Semin. Ophthalmol., vol. 19. Taylor & Francis, 2004, pp. 13–20.
[46] Y. Rong, T. Leemann, V. Borisov, G. Kasneci, and E. Kasneci, “A consistent and efficient evaluation strategy for attribution methods,” in ICML, vol. 162, 2022, pp. 18770–18795.
APPENDIX
A. Implementation Details
Tabular experiments were repeated 10 times, image experiments 5 times; we report mean and standard deviation. Architecture, hyperparameters, seed settings, and computing infrastructure information are in the code repository: https://github.com/lr98769/egrue_icdm
B. Proof of Theorem 1
Theorem 5: There exists an and derived from the given prediction model such that errors of the predictor are bounded by RUE uncertainty:
To prove Theorem 1, we assume the predictor model is a multi-layer perceptron (MLP) with L layers, each containing k nodes and employing a linear activation function. Each layer comprises a weight matrix and a bias vector . Layers 1 to M of the predictor model are referred to as the encoder, while layers to L constitute the predictor head. The forward propagation operation of each layer is described as:
We define “Layer-wise Error” ( ) as a vector which fulfills the following constraint:
Using Equation 1 and 2, we can simplify the definition of “Layer-wise Error” ( ) to:
Following Equation 3 and assuming that is invertible, we arrive at another definition of “Layer-wise Error” ( ):
\Delta^{[l-1]}=W^{[l]}^{-1}\Delta^{[l]}. \tag{4}Finally, we define the “Layer-wise Loss” ( ) of layer l as the L1 norm of “Layer-wise Error” in layer l:
where represents the i-th element of .
We decompose Theorem 1 into 2 bounds relating layer-wise loss at layer M with prediction and reconstruction error:
Since both the decoder and predictor are MLPs, we can generalise both bounds to the following lemma:
Lemma 1: In an MLP with layers, where each layer has a layer-wise loss , there exists such that:
To demonstrate the first statement (Equation 6) in Lemma 1, we make the following observations:
- The layer-wise loss in layer is bounded from above by maximum per-output loss multiplied by .
- Following Equations 3 and 5 and applying the triangle inequality, the per-output loss is bounded from above by the maximum weight in each node multiplied by the layer-wise loss from the previous layer .
By applying the above two observations recursively with the transitive property of inequalities, we obtain the following inequality (Equation 10), which shows that there exists a p such that Equation 6 is satisfied, thereby proving the first statement of Lemma 1.
The second statement of Lemma 1 (Equation 7) can be proved similarly. First, we derive the following inequality using the triangle inequality and Equations 4 and 5.
\left|\delta_{i}^{[l]}\right|\leq\max_{j\in\{1,\ldots,k\}}\left|W^{[l+1]}_{ij}^{-1}\right|\times\mathcal{L}^{[l+1]}. \tag{11}Applying Equation 8 and Equation 11 recursively with the transitive property of inequalities, we obtain the following inequality (Equation 12), demonstrating that there exists a q such that Equation 7 is satisfied, thereby proving the second statement of Lemma 1.
\mathcal{L}^{[l]}\leq\underbrace{k^{L-l}\times\prod_{d\in\{l+1,\ldots,L\}}\max_{i,j\in\{1,\ldots,k\}}\left|W^{[d]}_{ij}^{-1}\right|}_{q}\times\mathcal{L}^{[L]}. \tag{12}With both statements of Lemma 1 proven, we have demonstrated that Theorem 1 holds.
C. Proof of Theorem 3
To prove implementation invariance for , we note that by definition one assumes the same input (x) and the same output of any two functionally equivalent networks. Therefore, since is simply the returned feature-wise reconstruction errors given as an output from the egRUE network architecture, regardless of implementation, the reconstruction error will be maintained for the same input and outputs.
D. Proof of Theorem 4
From Theorem 3, it is clear that the feature-wise reconstruction error in satisfies implementation invariance. Thus, it is enough to show that EG satisfies the implementation invariance property in order for implementation invariance to hold for . As presented by the authors in [14] (Remark 3), EG is a reformulation of IG to an expectation over many baselines, and any feature-attribution method of the same form satisfies implementation invariance.
To show this, we evaluate the gradients used for the explanation, which naturally satisfy implementation invariance, as one can simply look at the chain-rule for the gradients. For egRUE, one can look at the input x, encoder and predictor head , where . From this, we note that:
Thus, the intermediary layers of the network are the implementation details described by . Since one can ignore the term for any two functions, by back-propagation, it is clear the explanation given by the gradient of any two functions will be the same, assuming the same input and output.
Following this is the sensitivity property, it is clear the reliance on the gradients from the predictor head ensures sensitivity holds with respect to the input, as if any is irrelevant to the returned value will be zero. Therefore, the explanation is given such that:
Consistency follows naturally, if one considers the same input instance and thus same , the change in prediction probability is reflected by EG, and therefore is the normalised reflection of this change. To achieve this, we can consider two prediction heads, and , such that we have the following , to show consistency holds, we can simply consider a single baseline instance and input , and rewrite the expectation as an integral over an single instance. We can simply note that,
where is the parameterization of at a point along a path from a baseline instance to the instance to explain .
The gradient (resp. ) contains the partial derivatives of each with respect to (resp. ), and since each partial derivative reflects the importance of each with respect to (resp. ), we can see a change in the predictor with respect to an input feature is the same regardless of implementation detail. Thus, it is reasonable to assess the magnitude of . By identifying this change in (resp. ) with respect to a single , consistency holds.