A Consistent and Efficient Evaluation Strategy for Attribution Methods

Yao Rong, Tobias Leemann, Vadim Borisov, Gjergji Kasneci, Enkelejda Kasneci

Introduction

Explainable Artificial Intelligence (XAI) has become a widely discussed research topic (Adadi & Berrada, 2018). Specifically, feature attribution methods (Springenberg et al., 2015; Ribeiro et al., 2016; Lundberg & Lee, 2017; Sundararajan et al., 2017; Selvaraju et al., 2017) that quantify the importance of input features to a model’s decision are widely used. Such local explanations can help to analyze and debug predictive models (Bhatt et al., 2020b; Adebayo et al., 2020), e.g., in the medical domain (Eitel et al., 2019), in recommender systems (Afchar & Hennequin, 2020), and many other applications. With an increasing number of feature attribution methods proposed in the literature, the need for sound strategies to evaluate these methods is also increasing (Nguyen & Martínez, 2020; Hase & Bansal, 2020; Yeh et al., 2019; Hooker et al., 2019).

Evaluation strategies, proposed to compare different attribution methods, commonly follow an ablation approach by perturbing the input features, e.g., image pixels, deemed most or least important. Specifically, perturbing pixels assigned high importance should decrease predictive quality whereas perturbing unimportant pixels, should hardly affect the predictions. These measures aim to capture the fidelity of explanations (Tomsett et al., 2020), i.e., how well the explanation genuinely reflects the prediction of the underlying model. Fidelity based on a single data sample is known as local fidelity, while global fidelity is measured on the whole data set (Tomsett et al., 2020).

The outcome of evaluation strategies is highly sensitive to parameters such as the perturbation function and order. Depending on the order chosen, i.e., most relevant pixels first or least relevant pixels first, such removal strategies often lead to highly contradictory results. For instance, local attribution methods that seem to perform well in one order may perform rather poorly in the other (Tomsett et al., 2020; Haug et al., 2021; Hooker et al., 2019). This inconsistency makes it hard for researchers to impartially compare between different attribution methods and it is not well understood where the inconsistencies stem from. Moreover, for conducting the global fidelity check, a retraining step is required by some methods (Hooker et al., 2019), which is prohibitively expensive in practice (Tomsett et al., 2020). These two drawbacks and our improvements are illustrated in Figure 1.

In this paper, we aim to overcome these shortcomings and make the evaluation more consistent and efficient. To this end, we propose a new debiased strategy that compensates for confounders causing inconsistencies. Furthermore, we show that in the debiased setting, we can skip the retraining without significant changes in the results. This results in drastic efficiency gains as shown in the lower part of Figure 1. We argue that it is crucial for the community to have sound evaluation strategies that do not suffer from limited accessibility due the required compute capacity. Specifically, we make the following contributions:

We examine the mechanisms underlying the evaluation strategies based on perturbation by conducting a rigorous information-theoretic analysis, and formally reveal that results can be significantly confounded.

To compensate for this confounder, we propose the Noisy Linear Imputation strategy and empirically prove its efficiency and effectiveness. The proposed strategy significantly decreases the sensitivity to hyperparameters such as the removal order.

We generalize our findings to a novel evaluation strategy, ROAD (RemOve And Debias), which can be used to objectively and efficiently evaluate several attribution methods. Compared to previous evaluation strategies requiring retraining, e.g., Remove and Retrain (ROAR) (Hooker et al., 2019), ROAD saves 99 % of the computational costs.

Related Work

There is a plethora of works on different explanation techniques (Tjoa & Guan, 2020), especially attribution methods that assign importance scores to each input features. Popular approaches have been proposed by Springenberg et al. (2015); Lapuschkin et al. (2015); Ribeiro et al. (2016); Kasneci & Gottron (2016); Sundararajan et al. (2017); Fong & Vedaldi (2017); Shrikumar et al. (2017); Smilkov et al. (2017); Petsiuk et al. (2018); Adebayo et al. (2018); Chen et al. (2018); Xu et al. (2020); Covert et al. (2021), and many more.

With the growing number of attribution methods, various scholars have presented desiderata that explanations should fulfill (Bhatt et al., 2020a; Nguyen & Martínez, 2020; Fel et al., 2021; Afchar et al., 2021; Nauta et al., 2022). Doshi-Velez & Kim (2017) consider two subcategories in this field, namely human-grounded metrics relying on human judgment and functional-grounded metrics. The latter do not require a human-generated ground truth that can be hard or even impossible to obtain. Metrics of this type frequently rely on the idea that if the most important part of the image is changed, the output probability of the given black-box model should also change in return. Examples include the Sensitivity-n measure proposed by Ancona et al. (2017) and the infidelity and max-sensitivity metrics by Yeh et al. (2019). Samek et al. (2016) and Petsiuk et al. (2018) also propose to perturb the pixels in the input image according to the importance scores. However, Hooker et al. (2019) show that the perturbation introduces artifacts and results in a distribution shift, putting these no-retraining approaches in question. They propose the Remove and Retrain (ROAR) framework with an extensive model retraining step to adapt to the distribution shift. Therefore, we distinguish between evaluation methods with retraining and no-retraining approaches. ROAR has been adopted in several recent studies (Hartley et al., 2020; Izzo et al., 2020; Meng et al., 2021; Schramowski et al., 2020; Srinivas & Fleuret, 2019) and variations are being proposed in concurrent work (Shah et al., 2021).

Only few papers have used and compared different evaluation strategies for attribution methods and a sound theoretical explanation for the differences between them is still missing. Sturmfels et al. (2020) assess different baselines for feature attribution applying the Integrated Gradient method (Sundararajan et al., 2017). They also observe that changing the hyperparameter settings can lead to varying results. Haug et al. (2021) draw the same conclusion for attributions on tabular data. Tomsett et al. (2020) compute the consistency among different, no-retraining evaluation strategies and report an alarmingly low agreement. In this work, we conduct a rigorous analysis of reasons for existing inconsistency and provide a solution to reduce it, which is not studied in previous works. Moreover, our solution also reduces high computational costs caused by retraining.

Preliminaries

In this section, we formally define the pixel-perturbation strategies considered by the following analysis.

We consider a pixel removal strategy, where pixels are successively replaced by imputed values. Consistent with the literature (Tomsett et al., 2020; Samek et al., 2016), we consider two removal orders: MoRF (Most Relevant First) or LeRF (Least Relevant First), where the subsequent removal starts with the most important pixels for the former and the least important ones for the latter. We now provide a formal definition of MoRF with retraining, i.e., the ROAR benchmark, that will be used throughout our analysis. We always use the MoRF order in the analysis presented in this paper. However, an analogous analysis of its counterpart LeRF is possible without much additional effort and can be found in the appendix.

2 Information Theory

We now briefly revisit the central concepts of information theory that will be handy for our analysis and introduce the notation. The fundamental quantity in information theory is the entropy HH of a discrete random variable XX with support supp⁡{X}\operatorname{supp}\left\{X\right\},

The entropy corresponds to the information gained through observation of a realization of this variable. If the random variable considered can be easily inferred, we use p(x)p(x) as a shorthand for P(X=x)P(X=x). Furthermore, we denote the joint entropy between random variables XX and YY by H(X,Y)H(X,Y), which is equivalent to the entropy of their joint distribution. In accordance with Cover & Thomas (2006), we always separate random variables by comma to denote the joint distribution of multiple of variables.

The conditional entropy H(X∣Y)H(X|Y) is the expected amount of information left in a variable, given the observation of a condition YY. The most central concept in our analysis will be mutual information (MI), i.e., the amount of information in one random variable shared with another. For example, by I(x;C)≔H(C)−H(C|x)I(\bm{x};C)\coloneqq H(C)-H\left(C\middle|\bm{x}\right), we denote the MI between the complete feature vector and the class variable CC. We separate arguments by a semicolon and allow single random variables or sets of random variables as arguments to all the defined quantities. For sets, we always consider the joint distribution of their member variables. Please confer Cover & Thomas (2006) for a more profound introduction. We provide a short overview of our notation in Table 1.

Analysis

In this section, we show that the pixel perturbation strategies are susceptible to a previously unknown confounder: The binary mask itself can leak class information that might in not be present in the feature values. After making the connection between the accuracy and mutual information as a theoretical tool in Section 4.1, we formally derive the confounder and identify this leakage on real data in Section 4.2. We subsequently show how to mitigate it through Minimally Revealing Imputation in Section 4.3.

To begin our analysis of the presented strategies and their underlying mechanisms, we first establish the relation between classification accuracy and the mutual information. It is well-known that the classification performance of an optimal classifier in the Bayesian sense (assigning the class with the highest posterior) is dependent on the MI between features and labels (Hellman & Raviv, 1970; Vergara & Estévez, 2014; Meyen, 2016). Nevertheless, the relationship is not a function, but comes in form of upper and lower bounds of the obtainable accuracy. For the simple two-class problem, the bounds are shown in Figure 3 (cf. Section A.1 for derivations). They impose strong limits on the optimal classification performance, if the mutual information I(x;C)I(\bm{x};C) is known.

For the pixel removal strategies that use retraining, this allows us to analyze the frameworks using MI as a surrogate for the attainable accuracy because higher MI almost always leads to higher accuracy. In the MoRF setting with retraining, I(xl′;C)I(\bm{x}_{l}^{\prime};C) will play a key role, because it quantifies the information left in the least important features and thus determines obtainable accuracy which is the outcome of the evaluation. Low mutual information I(xl′;C)I(\bm{x}_{l}^{\prime};C) results in a sharp drop in accuracy and good benchmarking results:

Therefore, in the MoRF setting low mutual information of xl′\bm{x}_{l}^{\prime} and CC is desirableIn LeRF, a higher accuracy and thus higher I(xl′;C)I(\bm{x}_{l}^{\prime};C) is beneficial.

2 Class Information Leakage through Masking

We demonstrate that it is easily possible to leak class information only through the mask’s shape and to harshly manipulate the evaluation score. Therefore, we start by separating the influence of the mask from that of the feature values. Our derivation relies on the multi-information I(C;xl′;M)I(C;\bm{x}_{l}^{\prime};\bm{M}), which is defined by Vergara & Estévez (2014) as follows:

Setting Equation 2 and Equation 3 equal, we arrive at the identity:

The quantities involved are visualized in Figure 4(a). The first term “Feature Information” is the class information contained in the features (and not in the mask) that we wish to estimate. The second term “Mask Information” shows that class-discriminative information in the mask can have a high impact on the result. This influence can be compensated by the “Mitigator” term.

If the Mask Information term is superior to the Mitigator, I(C;M)>I(C;M∣xl′)I(C;\bm{M})>I(C;\bm{M}|\bm{x}_{l}^{\prime}), the evaluation outcome is unfairly increased to a value not justified by the selected features. We term this phenomenon Class Information Leakage, as some discriminative information is “leaked” through the used binary mask M\bm{M}.

The Mitigator can entirely vanish when the mask is perfectly inferable from the imputed image xl′\bm{x}_{l}^{\prime}. This results in a non-compensated effect of Class Information Leakage. We define this imputation operation as follows:

If, for instance, the pixels removed are set to some reserved value indicating their absence, the imputation operator is invertible, as the mask can be reconstructed. Therefore, H(M∣xl′)=H(Il,M−1(xl′)∣xl′)=0H(\bm{M}|\bm{x}_{l}^{\prime}){=}H\left(\mathcal{I}_{l,M}^{-1}(\bm{x}_{l}^{\prime})|\bm{x}_{l}^{\prime}\right){=}0. In this case, also the Mitigator I(C;M|xl′)=0I\left(C;\bm{M}\middle|\bm{x}_{l}^{\prime}\right)=0, because it is bounded by 0=H(M∣xl′)≥I(C;M|xl′)≥00=H(\bm{M}|\bm{x}_{l}^{\prime})\geq I\left(C;\bm{M}\middle|\bm{x}_{l}^{\prime}\right)\geq 0. The Feature Information term is constrained to be positive. Thus, the Mask Information has a non-negligible impact on the Evaluation Outcome because a higher Mask Information term will always increase it. This case is depicted in Figure 4(b).

We can create a simple example that shows how evaluation scores are influenced: Imagine a two-class problem that consists of detecting whether an object is located on the left or the right side of an image. A reasonable attribution method masks out pixels on the left or the right depending on the location of the object. In this case, the retraining step can lead to a classifier that infers the class just from the location of the masked out pixels and obtain high accuracy. This explanation map will be rated far worse in MoRF (no accuracy drop) than it might actually be. In the context of amortized explanation methods, a similar finding has been made by Jethani et al. (2021). We theoretically showed that this problem also arises in evaluation strategies and empirically demonstrate that the leakage is significant for popular attribution methods on real data in Section 5.1.

3 Reduction of Information Leakage

To tackle this problem, we follow an intuitive approach: If we cannot guarantee that there is no class information contained in the mask itself, we have to stop it from leaking the class information into the imputed images. Therefore, we make sure that the mask used cannot be easily inferred from the imputed image. We would like to set I(xl′;M)=0I(\bm{x}_{l}^{\prime};\bm{M})=0, i.e., the mask is independent of the imputed vector allowing to separate the effects as shown in Figure 4(c). Unfortunately, this is not possible in general: If both should be dependent on the class label, they will also have to share a minimal amount of information (that regarding the class). However, we can demand conditional independence and make I(xl′;M)I(\bm{x}_{l}^{\prime};\bm{M}) as small as possible.

In this case, I(C;M)−I(C;M|xl′)=I(xl′;M)−I(xl′;M|C)≈0I(C;\bm{M})-I\left(C;\bm{M}\middle|\bm{x}_{l}^{\prime}\right)=I\left(\bm{x}_{l}^{\prime};\bm{M}\right)-I\left(\bm{x}_{l}^{\prime};\bm{M}\middle|C\right)\approx 0, which implies I(C;M)≈I(C;M|xl′)I(C;\bm{M})\approx I\left(C;\bm{M}\middle|\bm{x}_{l}^{\prime}\right) (also cf. Figure 4(c)), indicating that the Mitigator effectively compensates the Mask Information term.

Debiasing Evaluation Strategies for Local Attribution Methods

With the theoretical analysis in Section 4, we can better understand where the biases come from, and thus mitigate them. Building on the derivations, we now show the strong impact of the Class Information Leakage introduced in Section 4.2 on a real-world data set to highlight the necessity to compensate for this confounder. We explain how we reduce its influence by proposing a novel imputation operator termed Noisy Linear Imputation.

To empirically confirm our findings, we performed experiments on CIFAR-10 (Krizhevsky et al., 2009). We use the same attribution methods as in Hooker et al. (2019): Integrated Gradients (IG) (Sundararajan et al., 2017) and Guided Backprop (GB) (Springenberg et al., 2015) serve as base explanations, and three ensembling strategies for each are used in addition: SmoothGrad (SG) (Smilkov et al., 2017), SmoothGrad2 (SQ) (Hooker et al., 2019) and VarGrad (Var) (Adebayo et al., 2018). In total, we consider eight attribution methods and provide details and parameters in the supplementary material.

We empirically show that with fixed value imputation with the global mean, the explanation masks are leaking class information. This takes two steps: (1) We show that the Mask Information I(C;M)I(C;\bm{M}) is extremely high. (2) We verify that the Mitigator is small by testing the Invertible Imputation Condition, which implies that class information is leaked into the evaluation outcome through I(C;M)I(C;\bm{M}).

To assess the class information in the mask, we train a ResNet-18 (He et al., 2016) that uses only binary masks M\bm{M} (no pixel values xl\bm{x}_{l}) to predict the class. As we discussed previously, the accuracy of a classifier can be used as a surrogate for the calculation of MI, which is prohibitively expensive for high-dimensional data. The curvesStandard Errors are indicated by shaded areas in all figures. However, they are often hardly visible due to their low magnitude. are shown in Figure 5. Stunningly, the mask alone results in high accuracy curves that reach almost 80 % for IG-SG, only some percent below the accuracy of the classifier on the full inputs. This allows us to conclude that the Mask Information I(C;M)I\left(C;\bm{M}\right) is almost as high as our Evaluation Outcome I(C;xl′)I\left(C;\bm{x}_{l}^{\prime}\right).

To show that the Mitigator is almost zero which leads to class information leakage, we test the Invertible Imputation condition. Therefore, the inverse function Il,M−1\mathcal{I}_{l,M}^{-1} that predicts the imputation mask from the imputed image is required (having this function, finding Il,x−1\mathcal{I}_{l,x}^{-1} is trivial). For the fixed value imputation, an approximate inverse is simple: Setting all pixels in the mask to if the corresponding image pixel has the filling value (which has to be inferred from the distribution). For a stronger verification, we train an imputation predictor network consisting of three convolutional layers, which predicts for each pixel if it was imputed or original. As Figure 6(e) (blue curve) shows, the miss-classification rate when using fixed value imputation is almost zero, i.e., the network can easily recognize the pixels that were imputed. According to our analysis, in this setting close to Invertible Imputation, the Mitigator will be negligibly small.

This leads us to the conclusion that the mask-related leakage fundamentally influences many previous evaluations using fixed value imputation (Shrikumar et al., 2017; Petsiuk et al., 2018; Hooker et al., 2019) and it is essential to stop the information leakage through the masks.

2 Debiasing with Noisy Linear Imputation

To reduce the Class Information Leakage, we propose a better-suited imputation operator Il\mathcal{I}_{l} that adheres to the Minimally Revealing Imputation condition we derived. The remaining process is left unchanged and stays as depicted in Figure 2. However, we face three requirements: (1) We have to get closer to the theoretical condition of Minimally Revealing Imputation. (2) The imputation strategy needs to be highly efficient, since the imputation module has to be run for each image in the data set. (3) We wish to have as few hyper-parameters as possible (preferably none to rule out another confounding factor).

We devise a new strategy called Noisy Linear Imputation, which fulfills the above goals. In this way, our model addresses some of the fundamental problems of existing strategies. Intuitively, we search a way to make more subtle imputations that cannot be easily recognized and result in lower I(xl′;M)I\left(\bm{x}_{l}^{\prime};\bm{M}\right). To this end, we suppose that each pixel can be approximated by the weighted mean of its neighbors (cf. Figure 6(d)) as image pixels are highly correlatedIn fact, for direct and indirect neighbors, ρ=0.89\rho{=}0.89 and ρ=0.82\rho{=}0.82 respectively on CIFAR-10:

where wd,wiw_{d},w_{i} are constant coefficients for direct neighbors and indirect, diagonal neighbors. When setting up a single equation for each removed pixel we arrive at an equation system. For known pixels, we directly plug in their values and only consider each removed pixel as an unknown variable. When neighboring pixels are removed, the equations become connected and cannot be solved independently. Nevertheless, the resulting system is sparse and can be efficiently solved, even for a large number of missing pixels. To choose the neighbor weights for the linear interpolation, we draw inspiration from the graph structure (see Figure 6(d)): Indirect neighbors have distance 2 from the original node in the graph and direct neighbors have distance 1. Hence, we gave the direct neighbors twice the weight of the diagonal ones. Because the weights need to some up to 1 for a weighted interpolation, this leads to wd=16w_{d}{=}\frac{1}{6} and wi=112w_{i}{=}\frac{1}{12}. We add a small random noise (σ=0.1\sigma=0.1) to the solution to ensure that the linear dependency cannot be learned by the model.

Figure 6 (top) provides an example of an imputed sample. From the imputed version in Figure 6(c), inference on the mask is significantly harder than the one imputed with fixed values as in Figure 6(b). We again train the imputation predictor for verification and show the results in Figure 6(e). We confirm that our strategy lies significantly closer to the optimal, Minimally Revealing Imputation. Admittedly, there are even more sophisticated imputation strategies, for example building on Generative Adversarial Networks (GANs) such as Generative Adversarial Imputation Nets (GAIN) proposed by Yoon et al. (2018). However, our strategy already achieves considerable improvements and is highly efficient, because it does not require training of a GAN model. For completeness, we include additional experiments with GAN imputation in Appendix B.

Experiments

Having established that our Noisy Linear Imputation fulfills its purpose, in this section, we show that it entails even more benefits in practice. We first highlight how it makes results among different evaluation strategies more consistent in Section 6.1. We then present another considerable advantage in Section 6.2: its agreement with a no-retraining evaluation strategy is sufficiently high, so that the retraining step is no longer required. We name this debiased and no-retraining evaluation framework ROAD (RemOve And Debias). All experiments in this section were conducted on CIFAR-10 using the eight attribution methods mentioned. We also use Food-101 (Bossard et al., 2014), a large-scale dataset of high-resolution images, to validate the generalizability of our method. To this end, we train over 1000 models from scratch on data imputed using the strategies, explanations and removal percentages. Since the results on Food-101 also support the findings from CIFAR-10, we include them in Appendix D.

As we aim for evaluation strategies that are less prone to the hyperparameter setting and allow for a consistent ranking, we study the consistency of evaluation results under the different removal orders MoRF and LeRF. Figure 7 depicts the obtained curves (using “Retrain”). For a clear view, we only show four curves of attribution methods based on IG with retraining and up to 50% pixels are removed. We include the full curves for the IG with its derivatives as well as GB with derivatives in Appendix C. The results using the common fixed value imputation shown in Figure 7(a) and Figure 7(c). The results with our Noisy Linear Imputation are shown in Figure 7(b) and Figure 7(d). In MoRF, a sharp drop in the beginning indicates a better attribution method, while a slight drop is desirable in LeRF. Hence, using fixed imputation, the ranking in MoRF is IG, IG-Var, IG-SQ, IG-SG, whereas the ranking in LeRF is IG-SG, IG, IG-SQ, and IG-Var. We see, for instance, that IG-SG is the worst in MoRF and the best in LeRF. When using the Noisy Linear Imputation, the inconsistency vanishes. The ranking in MoRF is: IG-SG, IG, IG-SQ, and IG-Var, which is the same as in LeRF.

We quantitatively compute the consistency among all eight attribution methods with and without retraining. Concretely, we compute the ranks (from 1=best to 8=worst) of our explanation methods for each percentage of perturbed pixels. We then calculate the Spearman Rank correlation between different evaluation strategies. As shown in Table 2, the correlation score of the fixed value imputation is −0.01-0.01 when using retraining and 0.010.01 when no retraining is applied. This indicates no consistency in the rankings. When we deploy our Noisy Linear Imputation, the results change drastically: The correlation score is improved to 0.610.61 and 0.580.58 with and without retraining, respectively. This might imply that the information leakage is responsible for a major share of the inconsistency.

2 Efficiency

When we apply our Noisy Linear Imputation, we additionally reduce the difference between evaluation with and without retraining. This can be attributed to the reduced distribution shift incurred when using an almost Minimally Revealing Imputation. If all pixels were perfectly imputed, the resulting image would not be out-of-distribution. Since we are interested in the rankings of attribution methods, we again compute Spearman correlation between the rankings obtained with and without retraining and show it in Table 3. The order remains almost always intact between the “Retrain” with Noisy Linear Imputation and the “No-Retrain” variant with Noisy Linear Imputation resulting in a rank correlation of 0.840.84 in using MoRF and 0.940.94 in LeRF. This leads us to the conclusion that “No-Retrain” and “Retrain” end up with a highly similar ranking when using Noisy Linear Imputation. Thus, we conclude that the retraining step is not longer justified and can be skipped without significant distortion of the results. Qualitative results are shown in Section C.3, cf. Figure 17 (CIFAR-10) and Figure 23 (Food-101).

These results allow us to introduce a novel evaluation framework. We refer to the removal with Noisy Linear Imputation and no retraining as ROAD – Remove and Debias. We showed that ROAD is highly consistent with the compensated results of the ROAR, but comes at an enormous advantage: The retraining step is no longer required. This permits to save a vast amount of computation time. In our experiments, evaluation using the ROAD took only 0.7 % of the resources required for ROAR, as given by the runtimes in Table 4 obtained on the same hardware (single Nvidia GTX 2080Ti and 8 Cores).

In the end, we illustrate the evaluation results using ROAD among all eight attribution methods in MoRF and LeRF in Figure 8. In MoRF, the best ones are IG-SG, GB-SQ, GB-Var and IG, which have lower accuracies in the beginning, whereas they have higher accuracies in LeRF. GB and GB-Var both perform badly in MoRF and LeRF. We see that some inconsistencies still remain, which cannot be compensated by the current imputation. However, the evaluation strategies might also consider different characteristics of an attribution method (e.g., one might be particularly good at identifying irrelevant pixels), which is why perfect agreement might not even be desirable.

Conclusion and Outlook

We introduced ROAD, an evaluation approach for measuring global fidelity among attribution explanations. ROAD comes with two key advantages over existing methods: (1) it is highly efficient, e.g., permitting a 99% runtime reduction w.r.t. ROAR, and (2) it circumvents the Class Information Leakage issue, which was thoroughly analyzed in this work. We believe the ROAD framework will be beneficial to the research community because it unifies several methods and is more consistent under varying removal orders. Moreover, it is broadly accessible due to its low resource requirements. ROAD is open-sourceAn official implementation is also included in the Quantus framework (Hedström et al., 2022), and can be readily implemented in practical use-cases. Going forward, we plan to investigate more sophisticated imputation models in ROAD as well as other evaluation metrics besides fidelity.

We acknowledge the support by the Cluster of Excellence - Machine Learning: New Perspectives for Science, EXC number 2064/1 - Project number 390727645, and the support of the Training Center for Machine Learning (TCML) Tübingen, funded by the German Federal Ministry of Education and Research (BMBF) with grant number 01IS17054, which provided substantial resources for running our large-scale Food-101 experiment.

References

Appendix A Additional Theory

As we discussed in our main paper, the relationship between Mutual Information (MI) and accuracy is not a function, but comes in form of upper and lower bounds of the obtainable accuracy. If, for example, the binary classification case with equal class priors p(C=0)=p(C=1)=12p(C=0)=p(C=1)=\frac{1}{2} is considered, the following bounds can be derived (Hellman & Raviv, 1970; Meyen, 2016):

where H2−1:→[12,1]H_{2}^{-1}:\rightarrow\left[\frac{1}{2},1\right] is the inverse of the binary entropy with support [12,1]\left[\frac{1}{2},1\right]. For completeness, we restate the proof of this upper bound in Section A.2.

A.2 Reproduction of the proof of the relation between mutual and accuracy in the binary case

In this section, we reproduce the proofs for the upper and lower bounds of bayesian classifier accuracy given a certain amount of mutual information from the master’s thesis by (Meyen, 2016) for completeness. The upper bound given there is tighter than the bounds present in the literature. We consider the following setting (CC, x\bm{x} are random variables):

binary classification problem, C∈ΩC={0,1}C\in\Omega_{C}=\{0,1\}

equal class priors P(C=0)=12,P(C=1)=12P(C=0)=\frac{1}{2},P(C=1)=\frac{1}{2}

discrete features x\bm{x} (which can be the product of multiple random variables)

support set Ωx=supp⁡{x}\Omega_{x}=\operatorname{supp}{\left\{\bm{x}\right\}} of countable size

Let the assumptions stated above be true. Then, the mutual information is the weighted mean of a function of the conditional accuracies Acc⁡(C∣s)\operatorname{Acc}(C|s), where s∈Ωxs\in\Omega_{x}:

In this formulation, p(s)p(s) is a shorthand for P(x=s)P(\bm{x}=s) and H2(p):=−plog⁡p−(1−p)log⁡(1−p)H_{2}(p):=-p\log p-(1-p)\log(1-p) is the entropy for a binary random variable. Proof.

In our consideration, ΩC={0,1}\Omega_{C}=\{0,1\} and P(C=0)=12,P(C=1)=12P(C=0)=\frac{1}{2},P(C=1)=\frac{1}{2}, so H(C)=1H(C)=1. Additionally, the bayesian classifier rule yields

Plugging in the results H(C)=1H(C)=1 and H(C∣s)=H2(Acc⁡(C∣s))H(C|s)=H_{2}(\operatorname{Acc}(C|s)), we obtain the proposed lemma. \hfill□\hfill\square

For the derivation of upper and lower bounds, Jenssen’s inequality is used. 1−H2(⋅)1-H_{2}(\cdot) is a convex function and the {p(s)}s∈Ωx\left\{p(s)\right\}_{s\in\Omega_{x}} are convex multipliers, i.e., they are non-negative and sum up to one. Then,

We can restate this equation in terms of accuracy.

Using that H2(⋅)H_{2}\left(\cdot\right) is decreasing monotonically on the interval [12,1]\left[\frac{1}{2},1\right], so its inverse H2−1H^{-1}_{2} exists, and that Acc⁡(C∣s)≥0.5\operatorname{Acc}(C|s)\geq 0.5:

The inequality sign is flipped again, due to the inverse being monotonically decreasing. Note that the bounds derived for the special case are much tighter than the general ones provided by Vergara & Estévez (2014) and Cover & Thomas (2006, Chapter 2.10), that are not of any use, because they are even less strict than the trivial bound Acc⁡(C∣x)≤1\operatorname{Acc}(C|\bm{x})\leq 1, for the simple case considered here.

For the lower bound, we refer the reader to Hellman & Raviv (1970, eqn. 18), where the term II corresponds to H(C∣x)=H(C)−I(C;x)H(C|\bm{x})=H(C)-I(C;\bm{x}) in our notation. Rewriting the result from Hellman & Raviv (1970) in our notation, we obtain

A.3 Analysis of the LeRF Ordering

For the LeRF benchmark, the quantity of interest in our analysis will be I(xh′;C)I(\bm{x}_{h}^{\prime};C), the class information contained in the filled-in version of the selected high important features. We want to maximize I(xh′;C)I(\bm{x}_{h}^{\prime};C) to obtain a good score,

As before, we can apply the following, general identity:

The interpretation of the terms is analogous to that in our main paper.

For the case of the class-leaking map, we again require the imputation operator to be invertible:

If, for instance, the pixels removed are set to some reserved value indicating their absence, the infilling operator is invertible. In this case, also the Mitigator I(C;M|xh′)=0I\left(C;\bm{M}\middle|\bm{x}_{h}^{\prime}\right)=0 (see Section 4.3 for details). The “Feature Info” term is constrained to be positive. Thus, the Mask Information has a non-negligible impact on the Evaluation Goal, because a higher Mask term will always increase it.

We can create a another example of a spurious explanation map that shows how evaluation scores are influenced even worse for LeRF: Suppose an explanation map that starts masking out pixels at the top for class zero and at the bottom for class one. Thus, a retrained model will be able to infer the category just from the shape of the masked pixels and obtain the best possible accuracy and thus score in the LeRF setting. However, it does not provide a reasonable attribution for the importance of the features.

Appendix B GAN Imputation

We also use Generative Adversarial Imputation Nets (GAIN) proposed by Yoon et al. (2018) as an imputation operator. We first train a GAIN model on CIFAR-10. To find the best-performing setup, we run a hyperparameter selection for the GAIN model. We keep all the default parameters identified by Kachuee et al. (2020), but search for the value of alpha (α\alpha), which can be seen as a weight factor for the reconstruction loss of the non-imputed pixels in the GAN, and the hint_rate (hrhr) parameter, which provides the Discriminator with hints to balance the difficulty of the tasks. We train the models for 100 epochs which resulted in converged MSEs and Frechet Inception Distances (FIDs). We use MSE to the original pixels to assess the generative quality of the model. Kachuee et al. (2020) reported low values for both these parameters to perform well, but did not provide the exact values. We extended their value ranges to α=100\alpha=100 and performed and exhaustive search. The results for the GAIN models on CIFAR-10 can be seen in Table 5. For the experiments we used the best setup with α=100\alpha=100 and hr=0.01hr=0.01.

In Figure 10, we demonstrate imputation results using three operators for one image (a) from CIFAR-10. Compared to the fixed value imputation (b) and noisy linear imputation (c), GAN imputation (d) yields most natural imputed image. Although it cannot perfectly reconstruct the original image, for example the background is noisy and the body color is different from the original one, it is not easy to deduce the mask from (d). A trained imputation predictor also verifies that GAN imputation is closest to the optimal condition, Minimally Revealing Imputation.

However, there are drawbacks of the GAN imputation. It may introduce some new “features” that do not exist in the original sample. For instance the dog in (d) has new patterns on its body. Moreover, it does not give very good results when too many pixels are removed (cf. Figure 12). The GAIN training again requires tuning hyperparameter settings and is highly expensive. Therefore, this model does not allow for the desired improvements (few hyperparameters, efficiency). Compared to GAN, our Noisy Linear imputation does not have these drawbacks. Considering all these factors, we recommend to use Noisy Linear Imputation in the evaluation framework.

Appendix C Additional Experiments on CIFAR-10

In this section, we report implementation details on CIFAR-10 as well as additional results for comparison between fixed value imputation and our Noisy Linear Imputation. We also include GAN imputation results. In Figure 12, an overview of using three different imputations with different perturbation percentages are illustrated.

We train a vanilla ResNet-18 (He et al., 2016) on CIFAR-10 and compute different explanations using the trained model. The model is trained with the initial learning rate of 0.010.01 and the SGD optimizer (Sutskever et al., 2013). We decrease the learning rate by factor 0.10.1 after 2525 and train the model for 4040 epochs on one GPU. The trained model achieves a test set accuracy of 84.5 % (comparable to the model in (Tomsett et al., 2020)). For attributions, we use the same settings as in (Hooker et al., 2019): As base explanations we implement Integrated Gradient (IG) (Sundararajan et al., 2017) and Guided Backprop (GB) (Springenberg et al., 2015). Additionally, we use three ensembling strategies for each: SmoothGrad (SG) (Smilkov et al., 2017), SmoothGrad2 (SG-SQ) (Hooker et al., 2019) and VarGrad (Var) (Adebayo et al., 2018). For each explanation method, we modify the data set using the fraction of pixels η=[0,0.1,0.2,0.3,0.4,0.5,0.7,0.9]\eta=[0,0.1,0.2,0.3,0.4,0.5,0.7,0.9]. Figure 11 illustrates the modified images by using four different explanations in the GB-family within MoRF and LeRF orders (fixed mean value imputation is used).

We use N=5N=5 runs and report averaged results for all CIFAR-10 experiments in our paper and indicate the standard errors (which are very small) as an area behind our plots. In Table 6 and Table 7, we show the mean accuracy and its standard deviation at each the fraction of pixels η\eta for IG-SG and GB-SG explanations. For other explanations we used, the standard deviation at each η\eta in the magnitude of below one percent as well. Mean runtimes (average over 5 runs) for evaluating one explanation method (IG) using all three imputation methods are listed in Table 8.

C.2 Correlation Analysis

In Table 9, we show a full view of the Spearman Correlation of rankings between all twelve different evaluation strategies (“Retrain”/“No-Retrain”, MoRF/LeRF, and fixed value/Noisy Linear/GAN imputation) used in this paper. In this work, our primary focus was on consistency between the respective Retraining/No-Retraining Methods and the consistency between MoRF/LeRF and we mark the results used in the main paper in bold.

C.3 Extended Figures

In this section, we include full qualitative results of using four variants in evaluation strategies (“Retrain”/“No-Retrain”, MoRF/LeRF) for three different imputation operators (fixed value/Noisy Linear/GAN imputation). In Figure 13, the full plots of IG-family attribution methods using fixed value imputation are shown, while Figure 16 illustrates for the GB-based attribution methods. Figure 14 and Figure 17 show the evaluation results when using our Noisy Linear Imputation for IG- and GB-family attribution methods, respectively. From results, we see that using our Noisy Linear Imputation, the consistency between the evaluation rankings conducted in MoRF and LeRF with and without retraining increases, for instance in Figure 14 compared to Figure 13.

Appendix D Additional Experiments on Food-101

We trained a vanilla ResNet-50 (He et al., 2016) on Food-101 (Bossard et al., 2014). Concretely, we trained the model using the SGD optimizer. Additionally the model was trained with the initial learning rate of 0.01. The learning rate was reduced by factor of 0.1 after every 10 epochs. In total, we trained 40 epochs with a batch size of 32 and the model achieved the accuracy of 81.67% on the test set. To run the GAN imputation operator, we first trained a GAIN model on Food-101 as introduced in Appendix B. We used the hyper-parameters α=100\alpha=100 and hr=0.1hr=0.1 and trained the GAIN model with the batch size of 32 for 100 epochs. We computed the eight explanations and run ROAD and ROAR evaluation using the same settings as introduced in Section C.1 for CIFAR-10.

D.2 Correlation Analysis

In Table 10, we show a full view of Spearman Correlation of rankings given by eight different evaluation strategies (“Retrain”/“No-Retrain”, MoRF/LeRF, and fixed/Noisy Linear/GAN imputation) on Food-101. In the table, results marked in bold indicate the consistency of using three imputation operators. We observe that the consistency between the respective Retrain and No-Retrain methods is still very high, which confirms that the efficiency gains reported in the main paper can be realized for larger data sets. Consistency between MoRf/LeRF is improved (over fixed imputation) when using retraining, but decreases slightly when the No-Retraining approach is used. Because the curves are often very close on this dataset (in particular for the No-Retraining setup), small differences might already lead to a change in the ranking and the results are in general noisier than on CIFAR-10. In summary, we observe similar trends, although the consistency gain between MoRF/LeRF in No-Retrain is not as pronounced. Nevertheless, a perfect agreement between MoRF/LeRF might not be desirable.

D.3 Extended Figures

Full qualitative results of using four variants in evaluation strategies (“Retrain”/“No-Retrain”, MoRF/LeRF) for three different imputation operators (fixed value/Noisy Linear/GAN imputation) are listed from Figure 19 to Figure 24. Figure 20 and Figure 23 show the evaluation results when using our Noisy Linear Imputation for IG- and GB-family attribution methods, respectively. From results, we see that using our Noisy Linear Imputation, the consistency between the evaluation results using “Retrain” and “No-Retrain” are more consistent compared to using the fixed value imputation. Therefore, retraining can be safely skipped by using our Noisy Linear Imputation.