WorksComputer Science
A Search Worth a Billion Pixels: Explaining Gigapixel Classifiers
Abstract
Perturbation-based attribution methods explain model predictions without accessing their internal representations, but scaling them to high-resolution images requires balancing perturbation granularity and computational cost. Fine-grained perturbations require many model evaluations, whereas coarse masks may overlook small but relevant evidence. We introduce Wavelet Find-and-Refine (WaFR), a model-agnostic attribution method combining adaptive hierarchical search with sparse multiscale regression. By selectively refining regions that influence the prediction, WaFR maintains fine-grained localisation with a computational cost that depends on the spatial distribution of the evidence. As image resolution increases to 8,192 pixels per side, WaFR maintains a Pointing Game score of at least .995 in controlled localisation experiments, including at matched forward-pass budgets. On gigapixel whole-slide images, it requires a median of 176 forward passes and achieves the highest mean patch-level AUROC among the evaluated perturbation-based methods (.949).
Introduction
Deep neural networks support decisions in medicine [6, 16, 33], manufacturing [2] and science [25]. A pathologist interpreting a model’s tumour score, or an engineer examining a defect score, needs to understand which regions of the image contribute to the prediction [53]. Attribution methods address this problem by assigning importance to regions of the input [40, 48, 59]. Unlike gradient- and activation-based approaches [46, 52], perturbation-based methods estimate regional importance from changes in model predictions under masking, without accessing internal representations [37, 39, 44].
As image resolution increases, the spatial granularity of perturbations becomes critical. Methods based on fixed-resolution masks progressively aggregate larger image regions, potentially overlooking small but discriminative evidence. Conversely, approaches that preserve a fixed spatial granularity by evaluating individual regions require an increasing number of forward passes as the image grows.
This trade-off is particularly relevant for industrial inspection and digital pathology, where discriminative structures may occupy only a small fraction of images containing millions or billions of pixels [6]. Explaining predictions at these scales therefore requires controlling computational cost without sacrificing the spatial resolution needed to identify relevant evidence.
Hierarchical perturbation methods organise regions into progressively finer partitions, concentrating forward passes where coarse perturbations indicate relevant evidence [10, 43, 53]. Their cost depends on how many regions require refinement. Haar wavelets provide a complementary, spatially localised multiscale representation [38] that can describe structured signals sparsely [30], without determining which image regions should be refined.
We introduce Wavelet Find-and-Refine (WaFR), a model-agnostic attribution method combining adaptive hierarchical search with sparse multiscale regression. At the reference input resolution, regression estimates regional contributions from random perturbations. On larger images, prediction changes guide selective refinement over a dyadic partition, while regression ranks regions left unresolved by the search. A Haar low-pass baseline preserves coarse spatial content during perturbation. When few regions are expanded per level, the search cost grows with the hierarchy’s depth rather than with an exhaustive spatial partition.
Our contributions are threefold: (i) a hierarchical perturbation strategy with a cost bound conditional on the number of expanded regions; (ii) its integration with sparse multiscale regression to rank regions left unresolved by the search; and (iii) an evaluation of localisation, fidelity and computational cost across image scales, including matched forward-pass comparisons.
Related work
Gradient- and activation-based methods. These methods require access to the internal state of the model, so they are model-specific. Input gradients provide local attribution [48], extended through path integration in Integrated Gradients [52] or noise averaging in SmoothGrad [49]. Activation-based methods use intermediate feature maps, weighted by gradients in Grad-CAM [46] and Grad-CAM++ [7], or by prediction scores in Score-CAM [57]. Even Score-CAM, which uses forward passes, requires internal activations; these maps also inherit the resolution of the chosen feature layer.
Figure 1. Overview of WaFR. (a) : sparse regression on random masks over patches. (b) : hierarchical search, then the same regression on 127 masks; the final map ranks leaves with first. Red: positive; blue: negative; thick frame: relevant node; outline: tumour.
Perturbation-based methods. These methods only probe the model with perturbed inputs, so they are model-agnostic. Occlusion [59] estimates regional importance by masking one region at a time, while RISE [40] perturbs multiple regions simultaneously and averages their masks weighted by the prediction scores. LIME [44] and KernelSHAP [37] fit additive surrogate models to the responses of perturbed inputs, whereas Sobol [17] and HSIC [39] estimate the influence of mask variables through variance decomposition and kernel dependence, respectively. Other approaches, including LIMA [8], MoXI [51] and PhaseWin [20], select informative subsets of image regions according to their effect on the prediction.
Hierarchical methods. HiPe [10] refines regions according to their attribution scores. h-Shap [53] recursively partitions images into quadrants and computes Shapley values using 16 forward passes per expanded node, with a cost bound under a multiple-instance assumption. In contrast, WaFR uses regional score differences to guide refinement and regression to rank unresolved regions. PartitionSHAP [36] and ShapBPT [43] estimate Owen values over hierarchical binary partitions, with costs depending on the chosen hierarchy and expanded nodes.
Wavelets and explanations. CartoonX [30], ShearletX [31] and WAM [28] optimise attributions in transformed image representations using gradients. WCAM [27] instead perturbs groups of wavelet coefficients and estimates Sobol indices [17]. Unlike adaptive spatial search, these approaches operate on a chosen multiscale representation rather than selecting regions for recursive refinement.
Whole-slide images. WSI classifiers typically aggregate patch features through multiple-instance learning [24, 32]. Explanations may use attention or internal relevance propagation, as in xMIL [22]; transformer features can also exhibit high-norm background tokens that distort attention maps [9, 11, 13]. HiPe [10] illustrates hierarchical perturbation on a whole slide.
Method
WaFR operates on model predictions under spatial perturbations. Let denote the ratio between the image side and the reference input side of the model. At it estimates patch attribution by sparse regression (§ 3.2); for it first performs adaptive hierarchical search and then ranks unrefined regions through regression (§ 3.3).
Problem setting
Let be a classifier and an image of side and channels. We consider a target class and denote its logit by . We count the cost of an explanation in forward passes.
The contribution of a region , where denotes the image domain, is estimated by replacing its pixels with a reference image and measuring the resulting change in prediction. Since the reference determines which information is removed by the perturbation, we use a Haar low-pass baseline that retains coarse spatial content. Specifically, replaces each pixel with the mean of its cell in a grid of square blocks. When is a power of two, this corresponds to the Haar low-pass approximation of , so replacing a region made of whole squares with removes its Haar detail coefficients finer than the squares while keeping their means. With , the indicator, denoting the binary map of and the Hadamard product, the perturbed image and its associated score difference are
A positive indicates that removing reduces the target-class score.
Occlusion requires forward passes for square patches of side , regardless of where relevant evidence occurs. Independent perturbations also fail to capture some interactions between regions.
Sparse regression on random masks
Rather than perturbing regions independently, WaFR estimates their contributions from masks that retain or remove multiple regions simultaneously, as in RISE [40]. The image is divided into patches, yielding 256 regional effects independently of image resolution. This partition also supports four levels of a discrete Haar representation.
We draw binary masks , where retains patch and replaces it with the corresponding patch of . Each mask is sampled from a matrix of independent Bernoulli (0.5) variables, bilinearly interpolated with a random spatial shift and thresholded at 0.5 after averaging over each patch. This construction introduces spatial correlation between masked regions, while each patch remains visible in approximately half of the perturbations. Let denote the target-class logit of the image produced by mask .
Following additive surrogate approaches [37], we approximate the prediction score as
where is an intercept and contains the estimated patch effects. We regularise this estimation using complementary sparse representations: individual patches for localised evidence and Haar coefficients for spatially coherent effects. Let contain the orthonormal Haar basis of the patch matrix, including its constant component. At each scale , three wavelets describe horizontal, vertical and diagonal contrasts within squares of patches, giving 255 wavelets in addition to the constant component. We express the patch effects as
where represent patch-wise and multiscale contributions, respectively. The coefficients are estimated through an -penalised least-squares objective,
We select per image by five-fold cross-validation over 30 log spaced values down to of the all-zero threshold.
The factor of two in Eq. (3) controls the relative penalty assigned to the two representations. Under the common penalty, constant regions of up to patches are less costly to represent through , whereas larger coherent regions can be represented more economically through . Since both components describe the same patch effects, their decomposition is determined by the regularisation rather than being uniquely identified by the observations. The resulting estimate,
provides a sparse attribution map at patch resolution.
Sparsity, however, can assign identical values, often zero, to many patches, preventing a complete ranking of the image. To distinguish these patches, we complement with a dense estimate derived from the same random masks. For each patch , is the difference between the mean target-class softmax probability over masks retaining that patch and the mean probability over masks removing it. After upsampling both estimates to image resolution and smoothing with a Gaussian of standard deviation equal to half a patch, the attribution map is
The weight 0.15 is selected on the reference-resolution setting. At , WaFR uses masks plus one forward pass of the original image (1,024 forward passes).
Hierarchical search
For , each patch of the regression partition spans pixels per side, which may conceal smaller evidence. WaFR therefore refines selected regions hierarchically before applying regression to the remainder.
The search is based on the assumption that regions whose removal has little effect on the prediction do not need further subdivision. This assumption allows computational effort to be concentrated on selected regions, but does not guarantee that every relevant structure will be recovered. In particular, redundant evidence or interactions among spatially separated regions can make the removal of an individual region appear unimportant even when its contents contribute to the prediction.
We initialise the search with a partition of the image and recursively divide selected regions into four quadrants, forming a quadtree. Let denote the regions evaluated at depth , with containing the 16 initial squares. At each depth, regions are selected according to the magnitude of their score difference relative to the largest difference at that depth:
where is a relative threshold. The absolute value includes regions whose masking increases the prediction score. The children of the selected regions form ; regions that are not expanded remain leaves.
Since the node with the largest satisfies Eq. (7) unless all differences vanish, refinement continues until the region side reaches or forward passes are reached. Of these forward passes, 127 are reserved for the regression stage. If the search approaches this maximum, selected regions are expanded in descending order of . The initial search requires one forward pass of the original image and 16 forward passes for its first partition. Each expanded node then requires four additional passes. With
if at most nodes are expanded at each depth, the number of forward passes used by the search is bounded by
Doubling the image side adds one search level when is fixed, requiring at most additional forward passes if the number of expanded nodes per level remains bounded by . For spatially diffuse evidence, more nodes may require refinement, increasing the search cost.
The score differences collected during the search define an initial attribution map. For a pixel , let denote the depth of the smallest evaluated node containing it, and let be the area of node in pixels. We define
This weighting prioritises small regions with positive score differences, while reducing the influence of their coarser ancestors. The tree map therefore ranks regions identified through refinement, but does not provide a complete ordering of the remaining image.
To estimate attribution outside these regions, WaFR draws 127 additional random masks over the image partition and applies the regression of § 3.2. In this regime, the dense correction is computed using the target-class logit rather than its softmax probability. The final attribution ranks first the pixels belonging to leaves smaller than a regression patch and with , ordered by their tree attribution, and subsequently all remaining pixels according to from Eq. (6). If the search produces no such fine leaves, the final attribution is .
For whole-slide models, the search operates on the grid of model patches rather than individual pixels. Perturbations are applied in pixel space using , with the tissue filter excluding fully masked tiles when they no longer satisfy its threshold. The tissue bounding box defines the search domain, excluding regions without tissue. The finest node corresponds to one 224px model patch. Unlike Eq. (7), only nodes with positive score differences above the relative threshold are expanded. The procedure also evaluates the fully masked slide and respects . The 127 regression masks act on a partition of the tissue bounding box, and the final map prioritises positively contributing leaves smaller than a regression region in both spatial dimensions. When the search identifies fine leaves with positive tree attribution, they are ranked first. Remaining regions receive non-positive scores, except on whole slides, where residual positive attribution is limited to 1% of that assigned to the selected leaves. Otherwise, we use the positive part of .
Experimental setup
Datasets. On ImageNet [12], we use 1,000 validation images, one per class. GridPG [42] combines four ImageNet images of different classes into a grid of 448 px, providing a known region for each class; we use 500 grids per model. Following h-Shap [53], we also construct a Synthetic Dataset in which the evidence is known exactly. Each scene contains a checkerboard target of side 16 to 256 px, surrounded by squares with other periodic patterns on a random textured background, and the models predict whether the target is present.
VisA [61] and Real-IAD [56] provide industrial images with pixel-level defect annotations. We use 100 defective VisA images (512-1,168 px) and 92 Real-IAD images (512-2,992 px). For digital pathology, CAMELYON16 [15] provides lymph-node whole-slide images with annotated tumour regions. We evaluate 100 lesion crops from 49 slides, with sides ranging from 512 to 8,192 px, and tumour-positive and normal CAMELYON16 test slides, with sides of 26,880 to 110,848 px (1.0-5.5 pixels).
Models. We use publicly available ResNet-50 [21] and VGG16 [47] on ImageNet and GridPG, and DSMIL [32], a dual-stream multiple-instance classifier, on whole slides. For DSMIL, perturbations modify image pixels: unchanged tiles reuse cached features, partially masked tiles are re-encoded, and fully masked tiles are typically rejected by the tissue filter. For VisA, Real-IAD and CAMELYON16 crops, we finetune ImageNet-pretrained ResNet-18 models. The industrial models aggregate spatial logits through log-sum-exp pooling, whereas the crop classifier uses an attention-based multiple-instance head [24]. Small CNNs are used for the Synthetic Dataset. We explain the predicted-class logit on ImageNet, each class logit on GridPG, and the positive-class logit on the remaining datasets. The reference input side is 224 px: on ImageNet and elsewhere. DSMIL uses 224-px patches.
Baselines. We compare WaFR with 12 perturbation-based attribution methods: Occlusion [59], RISE [40], LIME [44], KernelSHAP [37], PartitionSHAP [36], h-Shap [53], ShapBPT [43], Sobol [17], HSIC [39], LIMA [8], MoXI [51] and WCAM [27]. We use their official implementations and reported configurations. A random attribution map and a centre-weighted Gaussian of standard deviation provide two controls.
We report Saliency [48], Integrated Gradients [52], SmoothGrad [49], Grad-CAM [46] and Grad-CAM++ [7] as separately evaluated internal-access references. XRAI [26] is excluded because it relies on Integrated Gradients, while PhaseWin [20] selects among a predefined number of regions and does not provide a corresponding image-size scaling configuration.
Matched numbers of forward passes. We additionally compare methods at approximately WaFR’s number of forward passes on the same synthetic images and CAMELYON16 crops. This number sets the sample counts of RISE, HSIC, LIME and KernelSHAP, and caps PartitionSHAP, ShapBPT and HiPe [10]. On whole slides, we also evaluate HiPe without a forward-pass cap. Occlusion matches it within 10 %; on synthetic images, Occlusion and RISE use the mean number of forward passes of WaFR per model and side. Sobol retains its power-of-two design on admissible grids (3 × 3 to 7 × 7) and may stay below it. h-Shap, LIMA, MoXI and WCAM have no direct control of their forward passes and are excluded.
Metrics. Localisation. When annotated evidence is available, we measure whether the attribution is concentrated within its spatial extent. The Pointing Game 1 (↑) counts a hit when the highest-ranked pixel lies within the target region , defined by the target square on the Synthetic Dataset or the object mask on 2. Unlike the original metric, we do not use a 15-pixel tolerance and resolve ties by random selection. This avoids rewarding coarse maps merely because their maximum overlaps a tolerance region, whose relative size would also change with image resolution.
The energy-based Pointing Game (EPG) 3 (↑) measures the proportion of positive attribution within the bounding box of , while the GridPG score 4 (↑) measures this proportion within the cell associated with the target class. We additionally compute the AUROC (↑), comparing attribution values inside with those in a local window obtained by enlarging its bounding box by pixels per side. Restricting the negative pixels to this neighbourhood prevents distant background regions from dominating the score on very large images. For whole slides, the same local AUROC is computed at the resolution of the model patches, and the Pointing Game counts a hit when the top-ranked model patch is at least half tumour, on the tumour slides that contain such a patch. These metrics assess correspondence with annotated regions, which need not coincide with all the evidence used by the classifier.
Fidelity. We measure the response of the model when image regions are removed or restored according to their attribution ranking. At 224 px, we use Deletion (↓) and Insertion (↑) [40], with steps of 1 % of the pixels (502 pixels) and 101 points per curve, together with μFidelity (↑) [3]. The latter measures, as in [39], the Spearman correlation between the attribution assigned to randomly selected patches and the corresponding prediction-score changes.
For high-resolution images, we use logarithmically spaced Deletion steps because relevant evidence may occupy less than 0.01 % of the image and be removed entirely by the first step of a linearly spaced curve. On whole slides, Deletion progressively removes the highest-ranked 0.1-10 % of tissue patches and averages the tumour-class probability along the resulting curve. Since deletion may introduce inputs outside the training distribution [45], we report fidelity alongside localisation rather than treating either as sufficient on its own.
Computational cost. We report forward passes and execution time. On whole slides, each forward pass denotes a DSMIL bag evaluation, reusing cached features for unchanged tiles and re-encoding partially masked tiles.
Statistical analysis. We report mean scores with 95 % bootstrap confidence intervals for high-resolution experiments. At standard resolution, confidence interval half-widths do not exceed 0.02 and are omitted for brevity. Comparisons with WaFR use paired two-sided sign-flip tests, with Holm correction [23] across the baselines of each metric. On whole slides, paired differences are computed only on slides explained by both methods and reported with 95 % bootstrap confidence intervals. Failure to reject a difference is not interpreted as evidence of equivalence.
Implementation details. We set and at , with px (one 224-px model patch on slides). The patch and dense weights were tuned once on ResNet-50 at 224 px, on held-out ImageNet images, and then used unchanged across datasets. All experiments are implemented in PyTorch and executed on NVIDIA H100 NVL GPUs with 94 GB of memory. Methods exceeding the available memory or execution-time limits are not run. Further implementation details and parameter sensitivity analyses are provided in the supplementary material.
Results
Efficiency
Computational cost and image resolution. On the Synthetic Dataset, where each image contains a single target, WaFR requires an average of 4.7 additional forward passes per doubling of the image side (95% CI: 4.4–5.1), from 168 at 256 px to 188–222 at 8,192 px, while refining to 8-px nodes and maintaining Pointing Game ≥ .995. Baselines that enlarge their perturbation regions with fall to at most .07 at 8,192 px (Figure 3a). For an additive classifier with fixed-size targets ranging from 1 to 16, forward passes increase with target count (Spearman’s ), from 178 to 585 at 1,024 px and from 201 to 772 at 8,192 px, while target recall remains ≥ .95 and is never reached. This is consistent with the dependence of Eq. (9) on the number of expanded regions. Keeping patches of a predefined size would require forward passes growing with (Occlusion, WCAM, KernelSHAP) or (LIMA, MoXI; Table 1).
| Method | VisA AUROC ↑ | VisA EPG ↑ | VisA log Del. ↓ | Real-IAD AUROC ↑ | Real-IAD EPG ↑ | Real-IAD log Del. ↓ | CAMELYON16 crops AUROC ↑ | CAMELYON16 crops EPG ↑ | CAMELYON16 crops log Del. ↓ | CAMELYON16 slides AUROC ↑ | CAMELYON16 slides Time (s) ↓ | Growth |
| Random map | .500 ±.001 | .019 ±.006 | .956 ±.138 | .500 ±.000 | .029 ±.005 | .927 ±.011 | .500 ±.001 | .047 ±.010 | .899 ±.014 | .509 ±.035 | 0 | |
| Centre map | .688 ±.023 | .034 ±.010 | .986 ±.121 | .671 ±.017 | .047 ±.008 | .922 ±.011 | .681 ±.015 | .083 ±.016 | .946 ±.014 | .564 ±.045 | 0 | |
| Occlusion | .769 ±.035 | .237 ±.043 | .851 ±.108∗ | .823 ±.017 | .298 ±.021 | .818 ±.014 | .568 ±.026 | .120 ±.026 | .848 ±.024 | .625 ±.057 | 0.6 | |
| RISE | .923 ±.018∗ | .021 ±.006 | .897 ±.173 | .959 ±.010∗ | .031 ±.005 | .793 ±.022 | .620 ±.030 | .049 ±.010 | .860 ±.016 | .608 ±.047 | 38,691 | none |
| LIME | .656 ±.042 | .056 ±.010 | .916 ±.098 | .700 ±.016 | .093 ±.009 | 1.130 ±.037 | .599 ±.019 | .064 ±.013 | .871 ±.030 | .744 ±.062 | 6,390 | none |
| KernelSHAP | .691 ±.033 | .116 ±.038 | .953 ±.120 | .839 ±.016 | .243 ±.017 | .850 ±.015 | .662 ±.025∗ | .148 ±.023 | .837 ±.015 | .778 ±.051 | 80.1 | |
| PartitionSHAP | .825 ±.051 | .377 ±.073 | .794 ±.124∗ | .874 ±.021 | .745 ±.030 | .804 ±.047∗ | .697 ±.026 | .244 ±.042∗ | .750 ±.035∗ | .736 ±.035 | 2.4 | |
| h-Shap | .652 ±.024 | .429 ±.055 | .866 ±.115∗ | .664 ±.011 | .357 ±.038 | .851 ±.014 | .560 ±.027 | .185 ±.056 | .852 ±.019 | .922 ±.013∗ | 255 | |
| ShapBPT | .876 ±.029 | .176 ±.035 | .870 ±.111∗ | .886 ±.019 | .208 ±.017 | – | .739 ±.025 | .178 ±.028 | .802 ±.027 | – | ||
| Sobol | .886 ±.027 | .271 ±.041 | .736 ±.064∗ | .917 ±.013 | .376 ±.021 | – | .752 ±.024 | .157 ±.029 | .896 ±.052∗ | – | 16,361 | |
| HSIC | .864 ±.028 | .187 ±.032 | .875 ±.080 | .895 ±.013 | .260 ±.019 | – | .683 ±.022∗ | .120 ±.022 | .907 ±.024 | .797 ±.043 | 766 | none |
| LIMA | .796 ±.036 | .039 ±.011 | .832 ±.076∗ | .739 ±.026 | .036 ±.006 | .890 ±.012 | .629 ±.029 | .096 ±.025 | .827 ±.022 | .725 ±.055 | 982 | |
| MoXI | .677 ±.036 | .019 ±.005 | .961 ±.121 | .765 ±.022 | .033 ±.005 | .896 ±.019 | .382 ±.037 | .039 ±.009 | .946 ±.025 | .685 ±.050 | 1,707 | |
| WCAM | .821 ±.026 | .076 ±.017 | .883 ±.061 | .772 ±.018 | .097 ±.011 | .877 ±.012 | .655 ±.030∗ | .079 ±.019 | .917 ±.017 | – | 45,939 | |
| WaFR | .919 ±.026 | .648 ±.068 | .766 ±.095 | .957 ±.011 | .895 ±.025 | .737 ±.019 | .684 ±.031 | .220 ±.045 | .774 ±.027 | .949 ±.020 | 6.3 |
Table 1. High-resolution images. Mean over image sides; slides: patch-level AUROC on the tumour slides and execution time on one slide; log Del.: Deletion with log-spaced steps; Growth: forward passes for patches of a predefined size (: relevant nodes per depth). ±: 95 % CI; bold: best; underline: second; ∗: not statistically different from WaFR (paired sign-flip test, Holm correction); –: not run.
Figure 3. Localisation against image side. (a) Pointing Game (↑) on the Synthetic Dataset; (b, c) Pointing Game and EPG (↑) on CAMELYON16 crops; (d, e) the same on Real-IAD. Black: WaFR with its 95 % CI; grey dots: perturbation-based baselines; band: their range; grey line: their median; dashed: best gradient- or activation-based method.
Whole-slide images. On whole slides, WaFR requires a median of 176 forward passes (range: 166-902). On the slide timed in Table 1, it uses 458 passes, against 27,968 for h-Shap and 4,096 for HSIC. Occlusion and PartitionSHAP are faster on this slide, with 50 and 500 passes, but at lower AUROC. At its official settings and without a forward-pass cap, HiPe completes 16 of 20 slides, with a median of 54,726 passes (range: 13,881-702,419); the remaining four do not complete within 870,000 passes.
On the eight tumour slides that HiPe completes, its patch-level AUROC (.924) and Pointing Game (.875) are lower than those of WaFR on the same slides (.961 and 1.000), whose AUROC overall is .949. Other methods face limitations at this scale: ShapBPT exceeds the available memory, with a projected requirement of 1.8 TB, while the official Sobol design becomes degenerate under the evaluated slide configuration.
Localisation and fidelity
Whole-slide localisation. On the tumour slides, WaFR achieves the highest mean patch-level AUROC among the evaluated perturbation-based methods, .949, compared with .922 for h-Shap and .797 for HSIC (Table 1). Its paired improvements are .32 over Occlusion, .34 over RISE, .20 to .26 over LIME, PartitionSHAP, LIMA and MoXI, and .15 over HSIC (); KernelSHAP and h-Shap are .17 and .03 below WaFR on them. On the tumour slides that the model classifies as tumour, WaFR also achieves better slide Deletion than Occlusion, RISE and h-Shap, with paired differences of .03 [95% CI: .02, .05], .05 [.03, .07] and .06 [.04, .08], respectively. These results support its ability to identify tumour-associated regions with relatively few forward passes, without establishing superiority over every perturbation-based baseline. Grad-CAM, which accesses the model’s gradients and intermediate representations, achieves better tumour localisation and lower slide Deletion than WaFR.
High-resolution images. The relative performance of attribution methods depends on whether localisation or fidelity is measured. On VisA and Real-IAD, WaFR achieves the highest EPG among perturbation-based methods (.648 and .895, respectively; against each baseline). This ranking persists when all methods retain only positive attributions within the top 0.1, 0.5, 1, 5 or 10% of pixels; even at 0.1% on VisA, WaFR exceeds RISE (.658 vs. .585; Holm-adjusted ). Retaining regression values outside refined leaves also preserves this ranking (EPG .620 and .865). On CAMELYON16 crops, WaFR ranks second to PartitionSHAP (.220 vs. .244; not significant), but exceeds the remaining perturbation-based methods. For log-scale Deletion, WaFR achieves the best score on Real-IAD and ranks second on VisA and CAMELYON16 crops, without significant differences from the respective best methods. On VisA, its Deletion is lower than that of five perturbation-based methods, including RISE and LIME (), and than HSIC in a separate test on stored maps. In AUROC, WaFR performs comparably to RISE on VisA (.919 vs. .923) and Real-IAD (.957 vs. .959), with no significant differences, while Sobol and ShapBPT obtain higher scores on CAMELYON16 crops (.752 and .739 vs. .684).
Images at the reference resolution. At 224 px, WaFR achieves the highest Fidelity on both ResNet-50 and VGG16, .537 and .570, compared with .494 and .533 for PartitionSHAP, the next best method ( against every perturbation-based baseline; Table 2). On VGG16, it also obtains the lowest Deletion (.049), comparable to PartitionSHAP (.051). On GridPG, it achieves the highest share, .905, compared with .846 for KernelSHAP, the next best method ( against every perturbation-based baseline). However, RISE and PartitionSHAP achieve higher Insertion on both models, and PartitionSHAP obtains lower Deletion on ResNet-50.
| Method | ResNet-50 Del. ↓ | Ins. ↑ | μFid. ↑ | VGG16 Del. ↓ | Ins. ↑ | μFid. ↑ | GridPG share ↑ |
| Random map | .152 | .352 | -.050 | .090 | .239 | -.043 | .250 |
| Centre map | .194 | .576 | .184 | .169 | .507 | .172 | .250 |
| Occlusion | .192 | .655 | .310 | .107 | .615 | .440 | .655 |
| RISE | .130 | .736 | .382 | .115 | .675 | .386 | .280 |
| LIME | .134 | .718* | .391 | .111 | .635* | .388 | .627 |
| KernelSHAP | .142 | .645 | .397 | .117 | .557 | .386 | .846 |
| PartitionSHAP | .066 | .734 | .494 | .051* | .659 | .533 | .748 |
| h-Shap | .332 | .513 | .118 | .267 | .433 | .159 | .797 |
| ShapBPT | .125 | .714* | .435 | .096 | .640* | .457 | .844 |
| Sobol | .111 | .667 | .455 | .097 | .582 | .477 | .686 |
| HSIC | .109 | .674 | .448 | .100 | .604 | .470 | .787 |
| LIMA | .141 | .675 | .256 | .115 | .605 | .287 | .386 |
| MoXI | .315 | .564 | -.050 | .220 | .508 | .032 | .309 |
| WCAM | .182 | .649 | .316 | .167 | .573 | .317 | .570 |
| WaFR | .069 | .717 | .537 | .049 | .640 | .570 | .905 |
| VisA r > 1 | AUROC ↑ | EPG ↑ | log Del. ↓ | Synthetic PG ↑ | Slides AUROC ↑ | ||
| WaFR | .916 | .668 | .785 | .997 | .949 | ||
| A1 − quadtree | +.015 | +.422 | +.021 | +.331 | +.009 | ||
| A3 − Haar baseline | +.001 | +.093 | −.042 | +.000 | – | ||
| A4 − Haar wavelets | +.001 | +.000 | −.001 | +.000 | +.001 | ||
| A6 − random masks | +.120 | +.004 | −.033 | +.000 | +.041 | ||
| ResNet-50 r = 1 Del. ↓ | Ins. ↑ | VGG16 Del. ↓ | Ins. ↑ | ||||
| WaFR | .069 | .717 | .049 | .640 | |||
| A3 − Haar baseline | +.005 | +.015 | +.006 | +.008 | |||
| A4 − Haar wavelets | −.012 | +.019 | −.005 | +.026 | |||
| A3+A4 − both | −.012 | +.045 | −.004 | +.051 | |||
| A5 − sparse regression | +.048 | −.008 | +.048 | −.032 | |||
| A7 − probability in | +.003 | +.012 | +.002 | +.010 |
Table 2. (a) ImageNet (224 px) and GridPG; (b) ablations. (a) Bold/underline: best/second; *: no significant difference from WaFR. (b) Differences relative to WaFR (+ favours WaFR); VisA: mean over image–side pairs; A3 on slides: identical maps due to tissue filtering.
Localisation across image sizes. Figure 3b-Figure 3e compares Pointing Game and EPG as image resolution increases on CAMELYON16 crops and Real-IAD. The Pointing Game of WaFR remains between .52 and .64 on the crops and between .79 and .86 on Real-IAD, whereas several perturbation-based methods deteriorate with resolution. For instance, HSIC falls from .63 to .07 on Real-IAD. RISE is the closest on Real-IAD: its Pointing Game is comparable to that of WaFR at 512 px, and WaFR is higher by .090, .118 and .291 at 1,024, 2,048 and 2,992 px (). WaFR also maintains the highest EPG among the perturbation-based methods at each evaluated resolution, although no difference is significant at 8,192 px after Holm correction. This behaviour does not extend uniformly to local AUROC: on CAMELYON16 crops, Sobol and ShapBPT frequently obtain higher scores, while on Real-IAD RISE is level with WaFR at every resolution. Figure 2 illustrates the attribution maps across image sizes.
Figure 2. Attribution maps from 224 px images to whole slides. Rows: image side (px), dataset and model. Columns: the input with the ground truth outlined, five perturbation-based methods and the best gradient- or activation-based method. Numbers: forward passes.
Matched numbers of forward passes. At matched numbers of forward passes (Table 3), on the Synthetic Dataset, WaFR maintains a Pointing Game of at least .995 up to 8,192 px and exceeds every evaluated baseline by at least .17 from 1,024 px onwards. Its EPG is also higher by at least .55 at every image size. At 512 px, however, RISE achieves a comparable Pointing Game, and HiPe locates the target slightly more often (.999 against .996, after Holm correction). As resolution increases, the Pointing Game of HiPe and RISE falls to .036 and .250 at 8,192 px, respectively, while that of WaFR remains at least .995. On CAMELYON16 crops, the differences are smaller, but WaFR has the higher Pointing Game and EPG in 79 of the 80 comparisons of Table 3; the exception is HiPe at 512 px.
| Synthetic Dataset 512 | 1k | 2k | 4k | 8k | CAMELYON16 crops 512 | 1k | 2k | 4k | 8k | |
| Side (px) | 512 | 1k | 2k | 4k | 8k | 512 | 1k | 2k | 4k | 8k |
| WaFR passes | 175 | 191 | 220 | 224 | 195 | 316 | 369 | 407 | 487 | 559 |
| WaFR PG | .996 | .996 | .996 | .995 | 1.000 | .566 | .617 | .636 | .580 | .520 |
| WaFR EPG | .934 | .935 | .939 | .939 | .953 | .303 | .258 | .200 | .166 | .171 |
| ΔPointing Game ↑ Occlusion | .530 | .729 | .760 | .877 | .993 | .013 | .136 | .264 | .252 | .235 |
| RISE | .018 | .177 | .263 | .483 | .750 | .383 | .250 | .485 | .356 | .300 |
| Sobol | .972 | .979 | .873 | .952 | 1.000 | .233 | .205 | .319 | .356 | .500 |
| HSIC | .672 | .861 | .850 | .949 | 1.000 | .002 | .128 | .314 | .220 | .370 |
| LIME | .650 | .574 | .527 | .532 | .511 | .300 | .314 | .404 | .430 | .167 |
| KernelSHAP | .831 | .909 | .924 | .971 | .999 | .075 | .127 | .332 | .289 | .311 |
| PartitionSHAP | .770 | .854 | – | – | – | .212 | .200 | – | – | – |
| ShapBPT | .878 | .929 | .940 | – | – | .136 | .209 | .374 | – | – |
| HiPe | −.003 | .450 | .497 | .689 | .964 | −.010 | .076 | .140 | .135 | .210 |
| ΔEPG ↑ Occlusion | .550 | .720 | .758 | .849 | .948 | .065 | .061 | .071 | .051 | .114 |
| RISE | .923 | .935 | .941 | .944 | .961 | .196 | .217 | .123 | .113 | .198 |
| Sobol | .908 | .916 | .922 | .939 | .961 | .095 | .147 | .113 | .087 | .197 |
| HSIC | .830 | .881 | .886 | .923 | .952 | .117 | .099 | .114 | .096 | .141 |
| LIME | .877 | .910 | .934 | .940 | .969 | .173 | .206 | .127 | .197 | .330 |
| KernelSHAP | .793 | .855 | .865 | .914 | .952 | .028 | .060 | .082 | .091 | .156 |
| PartitionSHAP | .765 | .816 | – | – | – | .057 | .035 | – | – | – |
| ShapBPT | .875 | .900 | .904 | – | – | .093 | .094 | .114 | – | – |
| HiPe | .813 | .852 | .865 | .903 | .951 | .087 | .077 | .098 | .080 | .116 |
Table 3. Attribution at matched forward-pass budgets. The first rows report WaFR’s mean forward passes and scores. Remaining methods use approximately the same forward-pass budgets; score differences are computed on the subset of images evaluated by both methods (positive values favour WaFR).
Ablation tests
Table 2 evaluates the contribution of each component of WaFR. Removing the quadtree (A1) reduces the Pointing Game on the Synthetic Dataset from .997 to .665 and the EPG on VisA from .668 to .246. On whole slides, A1 keeps a similar AUROC (.009 lower) with at least as many forward passes, but its Pointing Game on the tumour slides falls from 1.000 to .600. The hierarchical search is therefore responsible for much of the fine-scale localisation obtained at high resolution. The Haar components contribute at different stages. Compared with constant grey, the Haar low-pass baseline improves EPG on VisA by .093 and reduces mean search forward passes from 143 to 98. The Haar dictionary improves Insertion at : removing it (A4) lowers Insertion by .019 and .026, while removing both components (A3+A4) yields larger decreases of .045 and .051. At , the dictionary primarily affects the ranking outside refined leaves, with negligible changes in Pointing Game and EPG. The random-mask regression instead affects the ranking of regions not explicitly resolved by the search. Removing it (A6) leaves the Synthetic Dataset Pointing Game unchanged, but decreases AUROC on VisA by .120 and on whole slides by .041. Conversely, the search alone achieves better log-scale Deletion on VisA while requiring 127 fewer forward passes. At , removing sparse regression (A5) increases Deletion by .048 on both evaluated models, while changes to the Haar representation produce opposing effects on Deletion and Insertion.
Conclusion
We introduced WaFR, a model-agnostic attribution method combining adaptive hierarchical search with sparse multiscale regression. Controlled experiments show that its computational cost depends on the distribution of evidence, with limited growth across image resolutions when few regions require refinement. On gigapixel whole-slide images, WaFR substantially reduces forward passes while retaining competitive localisation and fidelity. Hierarchical search resolves fine-scale evidence, while regression ranks unresolved regions. These advantages remain conditional on the evidence distribution: redundant or interacting regions may escape refinement, and diffuse evidence increases cost. Future work will investigate best-first refinement and finer within-patch attribution.
Table S1 maps each section of this supplement to the part of the main paper it completes. Beyond specifying the algorithm, component ablations and experimental protocol, the additional evaluations characterise WaFR across interfaces, domains and failure modes: it retains the highest patch-level AUROC and Pointing Game when all whole-slide methods share the same cached-feature interface (Table S19), preserves its localisation without parameter retuning on a second slide model, on slides from five additional hospitals and with an object detector on large aerial images (Sec. D), covers a larger fraction of annotated foci on multi-focus slides (Sec. B), and remains consistent on ViT-B/16 and DeiT-B/16 (Table S25) as well as under a common top- % post-processing and signed map composition (Table S3 and Table S15).
| Main paper | Section |
| Method (Sec. 3): regimes, baseline, search, number of forward passes, final map | Sec. A |
| Ablations (Tab. 2): role of each component, regime rule, parameters | Sec. B |
| Setup (Sec. 4): datasets, models, baselines, metrics, statistics, cost | Sec. C |
| Whole slides (Sec. 5): generalisation to a second slide model and to other hospitals, cached features; object detection on DOTA | Sec. D |
| Limitations (Sec. 6): redundant evidence | Sec. E |
| Tables 1 to 3, Fig. 3: complete tables | Sec. F |
| Figure 2: attribution maps of every method | Sec. G |
Table S1. Reading guide. Main paper: section or table; right: section of this supplement.
| Map | VisA | Real-IAD | Crops | Crops 8k | ResNet-50 | VGG16 |
| T (paper) | .648 (1) | .895 (1) | .220 (2) | .171 (1) | .915 (1) | .896 (1) |
| U1 (signed) | .620 (1) | .865 (1) | .217 (2) | .171 (1) | .911 (1) | .892 (1) |
| U2 (regression) | .187 (6) | .272 (5) | .117 (8) | .045 (4) | .785 (5) | .769 (4) |
Table S3. Sign convention of WaFR maps. Mean EPG and GridPG (↑); in parentheses: rank among 13 perturbation-based methods (Crops 8k, 8,192 px crops: among 10). T: map of the paper; U1: signed regression values outside the selected leaves; U2: regression map without the search.
| Method | Full | 0.1 | 0.5 | 1 | 5 | 10 | Mean |
| VisA | |||||||
| Occlusion | .237 | .248 | .248 | .248 | .241 | .238 | .244 |
| RISE | .021 | .585 | .480 | .405 | .195 | .122 | .358 |
| LIME | .056 | .413 | .319 | .257 | .126 | .092 | .242 |
| KernelSHAP | .116 | .159 | .159 | .159 | .138 | .125 | .148 |
| PartitionSHAP^a | .377 | .514 | .476 | .448 | .395 | .384 | .443 |
| h-Shap | .429 | .428 | .428 | .428 | .429 | .429 | .428 |
| ShapBPT^r | .181 | .369 | .348 | .324 | .253 | .227 | .304 |
| Sobol^r | .281 | .450 | .407 | .370 | .292 | .284 | .361 |
| HSIC^r | .194 | .379 | .355 | .326 | .226 | .205 | .298 |
| LIMA | .039 | .205 | .205 | .205 | .146 | .105 | .173 |
| MoXI | .019 | .247 | .164 | .127 | .046 | .031 | .123 |
| WCAM | .076 | .257 | .226 | .200 | .142 | .117 | .188 |
| WaFR | .648 | .658 | .649 | .649 | .648 | .648 | .650 |
| Random map | .019 | .019 | .019 | .019 | .019 | .019 | .019 |
| Centre map | .034 | .085 | .084 | .077 | .068 | .064 | .076 |
| Real-IAD | |||||||
| Occlusion | .298 | .327 | .327 | .327 | .306 | .299 | .317 |
| RISE | .031 | .769 | .617 | .515 | .277 | .191 | .474 |
| LIME | .093 | .586 | .412 | .336 | .196 | .148 | .336 |
| KernelSHAP | .243 | .305 | .305 | .305 | .271 | .253 | .287 |
| PartitionSHAP^a | .745 | .853 | .828 | .803 | .755 | .747 | .797 |
| h-Shap | .357 | .359 | .358 | .357 | .357 | .357 | .357 |
| ShapBPT^r a | .212 | .452 | .455 | .432 | .333 | .292 | .393 |
| Sobol^r | .390 | .621 | .578 | .527 | .411 | .395 | .507 |
| HSIC^r | .268 | .453 | .441 | .423 | .320 | .288 | .385 |
| LIMA | .036 | .109 | .127 | .137 | .125 | .094 | .118 |
| MoXI | .033 | .324 | .251 | .200 | .090 | .058 | .184 |
| WCAM | .097 | .155 | .153 | .153 | .151 | .139 | .150 |
| WaFR | .895 | .905 | .897 | .895 | .895 | .895 | .898 |
| Random map | .029 | .029 | .028 | .028 | .029 | .029 | .029 |
| Centre map | .047 | .074 | .078 | .080 | .080 | .078 | .078 |
| CAMELYON16 crops | |||||||
| Occlusion | .120 | .139 | .139 | .139 | .134 | .128 | .136 |
| RISE | .049 | .182 | .172 | .162 | .125 | .105 | .149 |
| LIME | .064 | .125 | .108 | .101 | .084 | .077 | .099 |
| KernelSHAP | .148 | .169 | .169 | .169 | .164 | .157 | .166 |
| PartitionSHAP^a | .244 | .267 | .262 | .260 | .254 | .248 | .259 |
| h-Shap | .185 | .199 | .195 | .189 | .185 | .185 | .190 |
| ShapBPT^r a | .181 | .262 | .264 | .255 | .220 | .205 | .241 |
| Sobol^r | .160 | .220 | .208 | .198 | .176 | .169 | .194 |
| HSIC^r | .122 | .168 | .166 | .161 | .143 | .136 | .155 |
| LIMA^a | .096 | .121 | .121 | .121 | .114 | .107 | .117 |
| MoXI | .039 | .059 | .042 | .034 | .028 | .029 | .038 |
| WCAM | .079 | .143 | .137 | .131 | .106 | .098 | .123 |
| WaFR | .220 | .230 | .224 | .221 | .220 | .220 | .223 |
| Random map | .047 | .046 | .046 | .047 | .047 | .047 | .047 |
| Centre map | .083 | .174 | .170 | .168 | .160 | .151 | .165 |
Table S15. EPG under common top- post-processing. EPG (↑), mean over image sides, of the full map and of the top % of the pixels; Mean: over . Bold/underline: best/second among perturbation-based methods; grey: references. Map stored at 256 to 330 px. Not run on the largest image sides because of its cost (Table S16); not ranked.
| Method | AUROC | PG | Fwd. | Time (s) |
| Occlusion | .624 | .12 | 50 | 0.05 |
| RISE | .638/.784 | .02/.18 | 256/4,096 | 0.30/4.73 |
| LIME | .818/.815 | .18/.19 | 256/1,000 | 1.37/1.83 |
| HSIC | .793/.796/.796 | .16/.16/.18 | 256–4,096 | 0.22–3.71 |
| PartitionSHAP | .736 | .02 | 500 | 1.97 |
| h-Shap6 | .917 | .02 | 24,151 | 21.91 |
| WaFR | .949 [.929, .965] | .89 | 178 | 1.06 |
Table S19. Whole-slide comparison on a shared cached-feature interface. PG: Pointing Game; Fwd.: median forward passes; Time: median warm time. Values separated by /: one per number of forward passes in Fwd. (HSIC: 256, 1,024 and 4,096). [ ]: 95 % CI. 33 of 49 slides (31 of 45 for AUROC and PG) completed within the limit of 40,000 forward passes.
| Method | ViT-B/16 Deletion | Insertion | Fidelity | Pointing Game | EPG | DeiT-B/16 Deletion | Insertion | Fidelity | Pointing Game | EPG |
| References | ||||||||||
| Random map | .302 .013 | .563 .017 | -.033 .008 | .385 .061 | .391 .032 | .330 .013 | .545 .017 | -.020 .007 | .385 .061 | .391 .032 |
| Centre map | .327 .013 | .625 .016 | .112 .012 | .692 .057 | .500 .037 | .335 .011 | .614 .015 | .072 .010 | .692 .057 | .500 .037 |
| Gradient- and activation-based | ||||||||||
| Saliency | .260 .012† | .592 .015† | .025 .011† | .348 .069 | .395 .034 | .279 .012† | .567 .015† | .007 .009† | .332 .061 | .369 .035 |
| Integrated Gradients | .210 .011† | .603 .016† | .057 .009† | .453 .061 | .423 .031† | .237 .010† | .593 .016† | .021 .007† | .340 .057 | .352 .037 |
| SmoothGrad | .173 .011† | .651 .015† | .126 .015† | .616 .040† | .512 .032† | .196 .011† | .638 .014† | .051 .013† | .601 .042† | .491 .032† |
| Grad-CAM | .329 .014 | .583 .017† | .042 .014† | .517 .062† | .451 .042† | .221 .011† | .635 .015† | .058 .011† | .850 .045† | .513 .034† |
| Grad-CAM++ | .368 .014 | .564 .019 | -.011 .011† | .377 .061 | .352 .044 | .324 .012 | .582 .015† | .029 .010† | .443 .067 | .437 .036† |
| Perturbation-based | ||||||||||
| Occlusion | .300 .013 | .676 .014† | .217 .012† | .537 .050† | .454 .035† | .396 .016 | .656 .014† | .191 .013† | .594 .049† | .439 .039† |
| RISE | .223 .026† | .744 .022† | .175 .029† | .787 .115† | .395 .063† | .292 .031 | .701 .024† | .135 .027† | .803 .098† | .394 .063† |
| LIME | .220 .025† | .719 .027† | .215 .023† | .746 .090† | .591 .055† | .275 .028† | .685 .026† | .168 .024† | .711 .101† | .558 .062† |
| KernelSHAP | .219 .012† | .674 .016† | .213 .013† | .802 .040† | .670 .030† | .329 .015 | .652 .015† | .111 .013† | .812 .044† | .682 .030† |
| PartitionSHAP | .173 .021† | .729 .025† | .303 .026† | .895 .076† | .537 .059† | .248 .029† | .697 .024† | .225 .029† | .811 .091† | .534 .054† |
| h-Shap | .355 .011 | .586 .017† | .088 .012† | .731 .049† | .724 .049† | .451 .013 | .576 .017† | .051 .011† | .698 .052† | .692 .052† |
| ShapBPT | .171 .009† | .713 .014† | .200 .013† | .778 .044† | .610 .028† | .209 .010† | .678 .012† | .084 .014† | .775 .044† | .593 .027† |
| Sobol | .190 .022† | .678 .031† | .205 .028† | .721 .115† | .567 .056† | .290 .029† | .635 .028† | .095 .030† | .689 .115† | .513 .055† |
| HSIC | .226 .012† | .691 .014† | .232 .016† | .628 .061† | .531 .028† | .348 .016 | .641 .015† | .117 .015† | .547 .061† | .506 .030† |
| LIMA | .227 .022† | .695 .028† | .162 .023† | .629 .109† | .487 .060† | .332 .028 | .654 .028† | .104 .022† | .669 .106† | .462 .063† |
| MoXI | .295 .028 | .677 .030† | .057 .020† | .407 .120 | .377 .065 | .354 .031 | .639 .030† | .100 .017† | .463 .126 | .384 .067 |
| WCAM | .292 .027 | .670 .030† | .137 .025† | .607 .131 | .476 .054† | .342 .027 | .642 .027 | .059 .024† | .607 .131 | .464 .057† |
| Ours | ||||||||||
| WaFR | .151 .010† | _.739_ .012† | .343 .013† | _.822_ .053† | .578 .026† | _.237_ .014† | .706 .012† | _.208_ .015† | .781 .053† | .546 .026† |
Table S25. ImageNet, ViT-B/16 and DeiT-B/16. Notation as in Table S24.
We also illustrate how single-region search behaves under redundant evidence and targets centred on quadtree boundaries (Sec. E).
Method details
This section specifies the two regimes and the baseline (Sec. A.1), the hierarchical search (Sec. A.2) and the regression with the final map (Sec. A.3). The parameters of WaFR (Table S2) are the same on every image dataset; on whole slides, the nodes and the maximum of the search differ (last rows). Algorithm S1 summarises both regimes.
| Part | Parameter | Value |
| Rule | search if | |
| Haar low-pass side | ||
| Tree | root partition | nodes |
| Tree | relative threshold | of the depth maximum |
| Tree | finest node side | px (4 to 8 px) |
| Tree | max. passes | 2,048 (search ) |
| Tree | stopping | no relevant node, finest side, |
| Regr. | patch grid | |
| Regr. | mask sampling | Bernoulli(0.5), bilinear, random shift |
| Regr. | patch retained if | mean interpolated value |
| Regr. | masks | 1,023 (); 127 () |
| Regr. | total passes | 1,024 (); () |
| Regr. | regression | , 5-fold CV over 20 penalties |
| Regr. | columns | 256 patches (weight 2) + 256 Haar |
| Regr. | dense term | probability (), logit () |
| Regr. | smoothing of | Gaussian, half a patch |
| Regr. | weight of | 0.15 |
| Slides | nodes | groups of patches in the tissue box |
| Slides | search maximum | 2,048, plus 127 masks (total ) |
Table S2. Parameters of WaFR. Regr.: sparse regression.
Regimes and baseline
Two regimes. Let be the reference input side of the model and (§ 3 of the main paper). At , WaFR fits the sparse regression of § 3.2 of the main paper on 1,023 random masks, which with the forward pass of gives 1,024 forward passes. At , it runs the hierarchical search of § 3.3 of the main paper and then fits the same regression on 127 random masks, with at most forward passes in total.
Baseline. The baseline partitions the image into squares and replaces every pixel with the mean of its square. When is a power of two, this is the Haar low-pass approximation of at side [38]: replacing a region made of whole squares with removes the Haar detail coefficients finer than the squares and keeps their means. Both the search and the regression mask with .
Image dimensions. When the image dimensions do not align with the squares or with the quadtree, boundaries are rounded to whole pixels, so nodes at the same depth differ in width or height by at most one pixel. Non-square images are split along each axis separately.
Hierarchical search
Quadtree. The search starts from a partition of the image. At depth , each node has side , with boundaries rounded as above. Each split halves the side of a node, and the search stops splitting once the node side is at most px. The maximum depth is therefore , with nodes expanded only at depths ; depending on the image size, nodes at the maximum depth have sides of 4 to 8 px. At each depth, the relevant nodes are those of (7) of the main paper, with . Before it expands nodes at a depth, the search counts how many groups of four children fit within the forward passes that remain for the search, , and splits at most that many relevant nodes, those with the largest ; they form (Algorithm S1). Figure S1 shows the leaves on a Real-IAD [56] image, a CAMELYON16 [15] crop and a whole slide.

Figure S1. How WaFR partitions the image.
Number of forward passes. The following statement counts the forward passes of the search; it is conditional on the number of nodes expanded at each depth.
Proposition 1. Let be the relevant nodes split at depth and . The search uses
forward passes. The subsequent sparse regression requires 127 additional forward passes, giving a total of for WaFR.
Proof. The search evaluates once and reuses its output to compute each score difference . Evaluating the 16 nodes of requires 16 additional forward passes. Each split node introduces four children, each requiring one forward pass. Since every child has a unique parent, no node is evaluated twice. Summing over the depths gives the equality. Since at each of the depths, . At each depth, the search splits at most nodes; hence, . The regression then evaluates 127 random masks, giving forward passes in total. □
The bound depends on , the maximum number of nodes expanded at any depth. When few nodes are expanded per depth, the number of forward passes grows with the depth of the quadtree. For spatially diffuse evidence, more nodes may require refinement, increasing the search cost.
Relevant nodes per depth. The equality of Proposition 1 holds on all 1,007 pairs of image and side of VisA [61], Real-IAD and the CAMELYON16 crops. Real defects and lesions span several nodes at finer depths, so the number of nodes expanded at depth increases with depth (Figure S2): it stays below 17 on average on VisA and Real-IAD and rises from 3.3 to 27.4 on the 8,192 px crops. No search reached its limit of forward passes (means of 76 to 435; maximum 1,857).
Figure S2. Relevant nodes per depth. Shaded: ±SD.
Number of targets. The count of Proposition 1 grows with the number of nodes that contain evidence. On new Synthetic Dataset scenes at 1,024, 4,096 and 8,192 px with targets, we explain the trained CNN (Sec. C.1) and two synthetic models that combine the scores of the unmasked targets by their mean (additive) or minimum (conjunctive); object recall is the fraction of targets found. For the additive model, the forward passes increase with (Spearman correlation .95 to .98, object recall ; § 5 of the main paper); the conjunctive model behaves likewise, with 591 forward passes and object recall .988 at .
Whole slides. On whole-slide images, WaFR operates on the 224 px patches used by DSMIL [32] at 20× magnification. The search is restricted to the bounding box of the tissue mask, skips nodes without tissue, and stops when a node contains a single model patch; a node is split only when its score difference is positive and above the relative threshold. The search also evaluates the fully masked slide, the lower end of the score range of the slide, in addition to , giving two initial evaluations instead of one, so that , where is the depth needed to reach a single model patch. On whole slides, limits only the search; the regression adds 127 forward passes, giving at most 2,175. Both the search nodes and the 16 × 16 regression regions are aligned with patch boundaries, so each mask either leaves a patch unchanged or replaces it entirely with its Haar low-pass version. The 127 regression masks cover the tissue bounding box, and the patches outside it remain visible. Section D.3 describes how a masked slide is evaluated.
Algorithm S1 WaFR for one image and model , with , px and . : forward passes.
Require: image of side
; evaluate ;
if then
for 1,023 random masks
fit Eq. (4); from the probability of the class
return
end if
partition; evaluate , ; ;
while the nodes of are wider than do
selected nodes of
the nodes of with the largest
if then break
end if
quadrants of ; evaluate their ; ;
end while
map of the visited nodes
for 127 random masks; fit Eq. (4); from the logit; from Eq. (6)
return leaves smaller than a patch with first, by ; then all other pixels by , below zero; if no such leaf
Sparse regression and final map
Masks and regression. The random masks [40] are generated from a fixed seed, so the same masks are used for every model. At , the 127 masks are the first 127 of the 1,023 masks generated with that seed. The regression [54] uses the logit of the explained class; the prediction on the original image is not included in the fit. The Haar basis on the patch grid consists of a constant function and 255 horizontal, vertical and diagonal wavelets, defined over dyadic squares of side 16, 8, 4 and 2 patches [38]. Both and are upsampled to the image resolution by nearest-neighbour interpolation, after which only is smoothed. In Eq. (6) of the main paper, a term is divided by its maximum absolute value only when this maximum is positive; a term that is zero everywhere stays zero. If the cross-validated regression selects no column, and the map is (zero if is zero as well).
With the 127 masks at , this happens for 1.2 % of the pairs of image and side on VisA, 1.6 % on the CAMELYON16 crops and 0.1 % of the GridPG [42] targets, and never on Real-IAD and the Synthetic Dataset.
Map composition. At , the final map combines the leaves of the search with the map of the 127 regression masks. Pixels of leaves smaller than a regression patch () with keep their tree attribution. All other pixels receive , where is their rank in divided by the number of pixels and is half the smallest retained tree attribution. These values keep the order of and are negative, below those of the selected leaves. If no leaf qualifies, the final map is . The sign is a design decision: positive attribution is reserved for the regions that the search resolved. Metrics that use only the order of the pixels (AUROC, Pointing Game [60], Deletion, Insertion [40]) do not depend on it, whereas EPG [57] and GridPG sum the positive attribution and do. Table S3 gives the map of the paper (T) with two other compositions on the same searches: U1 has the same pixel order as T but keeps the signed regression values outside the selected leaves, and multiplies the tree attribution of the selected leaves by the smallest factor that keeps them above these values; U2 is the regression map alone, without the search. With U1, WaFR keeps its rank on every benchmark, with EPG .049 (VisA) and .030 (Real-IAD) below T (paired per image, sides averaged); without the search (U2), the scores and ranks fall on every benchmark of Tab. S3.
Map on whole slides. On whole slides, leaves that were not split, have a positive score difference and , and are smaller than a regression region in both dimensions keep their tree attribution. All other tissue patches receive , where is their normalised rank in and . These values keep the order of and stay below the selected leaves.
Role of each component
WaFR uses the Haar wavelets in two places and the search in a third. The Haar low-pass baseline defines what a perturbation removes: the detail finer than inside the masked region. The Haar wavelets of the regression are a prior on the patch effects. The search decides where the resolution is spent. This section follows the pipeline, from the baseline (Sec. B.1) to the parameters (Sec. B.6).
Table S4 adds to the ablations of Tab. 2 of the main paper all intervals and the joint removals of both Haar components (A2, named A3+A4 in Tab. 2 of the main paper) and of the low-pass baseline and the sparse regression (A10, which combines A3 and A5). It uses 254 to 255 VisA pairs of image and side, 2,680 Synthetic Dataset scenes, the 10 tumour slides of the 20-slide cohort (WaFR: .947, against .949 on the 45 slides of Tab. S29) and 1,000 ImageNet [12] images per model. Table S5 repeats the ablations under ROAD [45] (Sec. C.3) and under log-scale Deletion with blurred replacement; on VisA, ROAD uses the initial segment of the curve and the bootstrap groups the image sides by image. Removing the sparse regression (A5) or the dense term (A9) raises ROAD on both ImageNet models, and the Deletion advantage of A4 at in Tab. S4 is not reproduced under ROAD (difference within .001).
Low-pass baseline
Search cost. Constant grey (A3) removes the colour of the masked region in addition to its fine detail, so more coarse nodes exceed the relative threshold and the search expands more nodes. Across the 100 VisA images, the Haar low-pass baseline reduces the mean number of search forward passes by 31.5% relative to constant grey (97.7 against 142.7; fewer passes on 78 of 100 images, sign test ). On Real-IAD (35 physical samples, all image sides), the reduction is 17% relative to constant grey and 16% relative to the image mean (100.8 against 121.5 and 120.3 passes; Holm [23] ), with a mean EPG and AUROC not lower than with either. With the search limited to 77, 153 or 305 passes, reaching an EPG of .60 on VisA takes on average 270.4 forward passes (search plus 127 masks) with the low-pass baseline, against 305.7 with constant grey and 305.8 with the image mean (Holm ; 432 is counted when .60 is not reached). At a search limit of 305 passes, its EPG is higher than with constant grey and with the image mean by .096 (Holm ).
Evidence removal and surrogate fit. With 1,023 masks, the Haar low-pass baseline raises the held-out of the regression over constant grey by .071 on ResNet-50 [21] and .068 on VGG16 [47], so the model responses are closer to additive when the coarse content is kept. With the low-pass baseline, ROAD is also lower than with constant grey on
ResNet-50, VGG16 and VisA (A3 in Table S5). Against a Gaussian blur tuned per image to the same mean squared difference to the input (mean px), replacing the annotated object of the 247 ImageNet-S50 [19] images with the low-pass baseline lowers the target-class logit more, by 1.54 on ResNet-50 and 1.75 on VGG16 (Holm ). Under single-patch masking of px patches (244 images with patches inside and outside the object), fewer background patches change the logit more than the median object patch: 16.2 % with the low-pass baseline, against 18.5 % with the matched blur and 22.4 % with constant grey on ResNet-50 (Holm ).
| Ablation | ResNet-50 ROAD | VGG16 ROAD | VisA ROAD | VisA blur log Del. |
| A3 − Haar low-pass baseline | +.017 [+.014, +.020] | +.014 [+.012, +.017] | +.033 [+.014, +.062] | +.024 [+.004, +.044] |
| A4 − Haar wavelets | −.001 [−.003, +.001] | −.001 [−.003, +.001] | +.000 [−.001, +.002] | +.001 [−.003, +.005] |
| A5 − sparse regression | +.015 [+.012, +.018] | +.017 [+.014, +.020] | +.003 [−.000, +.006] | +.010 [−.010, +.031] |
| A6 − random masks | – | – | +.016 [+.001, +.027] | −.014 [−.112, +.066] |
| A7 − probability in | +.003 [+.002, +.005] | +.002 [+.001, +.003] | – | – |
| A8 − single patches | −.002 [−.005, +.000] | +.000 [−.002, +.002] | +.008 [+.004, +.012] | +.006 [−.011, +.030] |
| A9 − term | +.020 [+.017, +.023] | +.011 [+.009, +.013] | +.004 [+.001, +.009] | −.004 [−.019, +.012] |
| A2 − both Haar parts | +.019 [+.015, +.022] | +.011 [+.008, +.013] | +.034 [+.016, +.063] | +.023 [+.003, +.042] |
| A10 − baseline, regression | +.025 [+.021, +.029] | +.028 [+.024, +.031] | +.038 [+.018, +.069] | +.027 [−.011, +.061] |
Table S5. Ablations under ROAD and blur-based log-scale Deletion. Paired difference ablated − WaFR (+: WaFR is better), 95 % bootstrap CI. Blur log Del.: log-scale Deletion with blurred replacement. Bold: above .01, CI above 0 and Holm ; –: not applicable.
Hierarchical search
Search and perturbation. Removing the quadtree (A1) lowers EPG on VisA by .422 and the Pointing Game on the Synthetic Dataset by .331 (Table S4). Table S6 runs Occlusion [59], KernelSHAP [37], RISE [40] and HiPe [10] with their own baselines and with the Haar low-pass baseline of WaFR, so that the search and the reference image change separately. The statistical unit is the VisA image, the Real-IAD sample and the crops slide (RISE: 20, 18 and 24 units; HiPe: image sides up to 1,024 px). The low-pass baseline changes the EPG of these methods by −.04 to +.06. With the same baseline, WaFR has the higher EPG in all 12 comparisons of dataset and method (Holm in 11) and the higher Pointing Game in all 12 comparisons (Holm in 9).
| VisA | Synthetic | CAMELYON16 slides | ||||
| AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | Pointing Game ↑ | AUROC ↑ | ||
| WaFR | .916 | .668 | .785 | .997 | .947 | |
| A1 − quadtree | +.015 [+.000, +.031] | +.422 [+.367, +.475] | +.021 [−.026, +.053] | +.331 [+.313, +.349] | +.009 [−.008, +.028] | |
| A3 − Haar low-pass baseline | +.001 [−.014, +.014] | +.093 [+.046, +.146] | −.042° [−.097, −.009] | +.000 [−.000, +.001] | – | |
| A4 − Haar wavelets | +.001 [−.001, +.003] | +.000 [+.000, +.000] | −.001 [−.002, +.001] | +.000 [+.000, +.000] | +.001 [−.001, +.003] | |
| A6 − random masks | +.120 [+.087, +.149] | +.004 [−.001, +.008] | −.033° [−.062, −.008] | +.000 [+.000, +.000] | +.041 [+.009, +.082] | |
| ImageNet, ResNet-50 | ImageNet, VGG16 | |||||
| Deletion ↓ | Insertion ↑ | Deletion ↓ | Insertion ↑ | |||
| WaFR | .069 | .717 | .049 | .640 | ||
| A3 − Haar low-pass baseline | +.005 [+.003, +.007] | +.015 [+.011, +.019] | +.006 [+.004, +.008] | +.008 [+.004, +.012] | ||
| A4 − Haar wavelets | −.012° [−.015, −.010] | +.019 [+.016, +.022] | −.005 [−.006, −.004] | +.026 [+.023, +.029] | ||
| A2 − both Haar parts | −.012° [−.015, −.009] | +.045 [+.040, +.049] | −.004 [−.006, −.003] | +.051 [+.046, +.055] | ||
| A10 − baseline, regression | +.049 [+.044, +.054] | −.002 [−.007, +.004] | +.053 [+.049, +.057] | −.017° [−.024, −.011] | ||
| A5 − sparse regression | +.048 [+.043, +.053] | −.008 [−.013, −.003] | +.048 [+.044, +.052] | −.032° [−.038, −.026] | ||
| A7 − probability in | +.003 [+.002, +.004] | +.012 [+.010, +.014] | +.002 [+.001, +.003] | +.010 [+.008, +.012] | ||
| A8 − single patches | +.010 [+.008, +.013] | −.007 [−.011, −.003] | +.012 [+.010, +.013] | −.005 [−.008, −.001] | ||
| A9 − term | −.003 [−.005, −.001] | +.028 [+.025, +.032] | −.003 [−.004, −.002] | +.044 [+.040, +.047] |
Table S4. Ablations, with all intervals. WaFR: mean. Other rows: paired difference, WaFR − ablated for ↑ and ablated − WaFR for ↓ (+: WaFR is better), 95 % bootstrap CI. Bold: above the margin (.02 for AUROC, EPG and Pointing Game; .01 otherwise) with the CI above 0; °: the ablated method is better by more than the margin, CI below 0. –: A3 on slides, identical maps due to tissue filtering.
| Metric / method | VisA Baseline B | VisA WaFR | VisA Search | VisA Value | Real-IAD WaFR | Real-IAD Search | Real-IAD Value | Crops WaFR | Crops Search | Crops Value |
| EPG — Occlusion | .665 | +.374 | −.001 | .910 | +.562 | +.013 | .297 | +.110 | +.003 | |
| EPG — KernelSHAP | .692 | +.502 | +.056 | .910 | +.661 | −.039 | .297 | +.059 | −.009 | |
| EPG — RISE | .617 | +.579 | .000 | .873 | +.835 | .000 | .236 | +.164 | −.001 | |
| EPG — HiPe | .669 | +.411 | +.010 | .919 | +.537 | +.005 | .313 | +.083 | +.001 | |
| AUROC — Occlusion | .908 | +.184 | −.035 | .966 | +.152 | −.020 | .708 | +.162 | +.012 | |
| AUROC — KernelSHAP | .910 | +.116 | +.104 | .966 | +.089 | +.004 | .709 | +.008 | +.003 | |
| AUROC — RISE | .923 | +.088 | −.064 | .942 | +.001 | −.021 | .688 | +.063 | +.004 | |
| AUROC — HiPe | .908 | +.010 | −.004 | .965 | +.012 | −.004 | .700 | +.011 | −.007 | |
| Pointing Game — Occlusion | .676 | +.493 | −.009 | .837 | +.595 | +.012 | .614 | +.249 | +.017 | |
| Pointing Game — KernelSHAP | .676 | +.492 | +.048 | .837 | +.621 | −.028 | .615 | +.181 | −.032 | |
| Pointing Game — RISE | .618 | +.176 | +.025 | .770 | +.003 | +.059 | .614 | +.295 | −.118 | |
| Pointing Game — HiPe | .676 | +.144 | +.024 | .864 | +.155 | −.024 | .608 | +.058 | −.043 |
Table S6. Search and perturbation reference. B: baseline method. Search: WaFR − B with the Haar low-pass baseline; Value: B with the low-pass baseline − B with its own; + favours WaFR or the low-pass baseline. WaFR: mean over the same units. Bold: Holm within each dataset and metric.
Localisation and number of forward passes. On the 2,048 px CAMELYON16 crops and Real-IAD images, Fig. S3 runs RISE, HSIC [39] and KernelSHAP at the per-image number of forward passes of WaFR and at 512, 1,024 and 2,048 forward passes, and limits the forward passes of WaFR from 204 to 2,048. RISE runs on 24 crops from 24 slides and on 23 images of 18 samples. The means are grouped over slides or samples, so the EPG of WaFR on the crops is .236 there, against .200 per crop in Table 3 of the main paper. The EPG and Pointing Game curves of the three methods stay nearly flat from 512 to 2,048 forward passes, whereas WaFR reaches its EPG at the smallest limit (204). By the area under each curve, WaFR has the higher Pointing Game against all three methods on both datasets (Holm ) and the higher EPG on Real-IAD (Holm ) and against HSIC and KernelSHAP on the crops (Holm ). Without a limit, HiPe uses on average 2,479 and 1,435 forward passes on the crops and Real-IAD, with lower localisation scores than WaFR (Figure S3).
Figure S3. Localisation against the number of forward passes. All metrics ; upper left: higher score with fewer forward passes.
HiPe without a forward-pass limit. HiPe is also hierarchical, but splits a region when its attribution exceeds the midpoint between the smallest and largest attribution at its depth (Sec. C.2). Without the limit of Table 3 of the main paper, on all pairs of image and side of Table 1, HiPe uses 2.8 to 4.7 times the median forward passes of WaFR (per pair, HiPe / WaFR: VisA 586 / 208, Real-IAD 924.5 / 224, crops 1,660.5 / 356), has lower EPG and Pointing Game on all three datasets, and matches WaFR in AUROC (Table S7).
| Metric | WaFR | HiPe | Difference [95 % CI] | Difference [95 % CI] | ||
| VisA | ||||||
| EPG | .648 | .212 | +.421 [+.364, +.476] | <.001 | +.421 [+.364, +.476] | <.001 |
| Pointing Game | .660 | .456 | +.168 [+.111, +.227] | <.001 | +.168 [+.111, +.227] | <.001 |
| AUROC | .919 | .904 | +.006 [−.010, +.021] | .44 | +.006 [−.010, +.021] | .44 |
| log-scale Deletion | .766 | .747 | −.027 [−.071, +.009] | .21 | −.027 [−.071, +.009] | .21 |
| Real-IAD | ||||||
| EPG | .895 | .273 | +.622 [+.579, +.662] | <.001 | +.665 [+.614, +.713] | <.001 |
| Pointing Game | .821 | .619 | +.201 [+.141, +.262] | <.001 | +.205 [+.110, +.295] | <.001 |
| AUROC | .957 | .953 | +.004 [−.003, +.010] | .29 | +.002 [−.004, +.008] | .52 |
| log-scale Deletion | .737 | .737 | .000 [−.017, +.016] | .98 | +.001 [−.022, +.022] | .93 |
| Crops | ||||||
| EPG | .220 | .129 | +.094 [+.061, +.129] | <.001 | +.105 [+.069, +.145] | <.001 |
| Pointing Game | .584 | .442 | +.135 [+.074, +.198] | <.001 | +.116 [+.048, +.186] | .002 |
| AUROC | .684 | .688 | −.009 [−.036, +.018] | .51 | −.003 [−.032, +.026] | .87 |
| log-scale Deletion | .774 | .806 | +.029 [+.015, +.042] | <.001 | +.033 [+.019, +.046] | <.001 |
Table S7. HiPe without a forward-pass limit on the high-resolution images. WaFR, HiPe: mean over image sides. Difference: WaFR − HiPe, paired over units (+: WaFR is better; log-scale Deletion: HiPe − WaFR) with 95 % bootstrap CI; : two-sided paired test. Grouped unit: VisA image, Real-IAD sample, crops slide.
On whole slides without the 870,000-pass limit of § 5 of the main paper, HiPe finishes all 20 slides (Sec. C.1) with a median of 88,997 forward passes (range 13,881 to 2,397,918 and up to 50,744 s on a single slide (wall time of the quality run; Table S8), against a median of 176 for WaFR. On the 10 tumour slides, the patch-level AUROC is .947 for WaFR and .870 for HiPe (exact two-sided paired test, ), and the Pointing Game is 1.000 and .900.
| Slide | Tumour | Forward passes | Wall time (s) | AUROC ↑ | PG ↑ | Deletion ↓ |
| test_122 | yes | 62,615 | 3,159 | .929 | 1.000 | .930 |
| test_121 | yes | 110,959 | 3,039 | .754 | 1.000 | .960 |
| test_094 | yes | 265,729 | 6,022 | .987 | 1.000 | .946 |
| test_008 | yes | 242,599 | 9,603 | .998 | 1.000 | .913 |
| test_074 | yes | 67,035 | 4,396 | .963 | .000 | .958 |
| test_048 | yes | 46,837 | 1,581 | .885 | 1.000 | .950 |
| test_066 | yes | 23,323 | 1,669 | .878 | 1.000 | .938 |
| test_016 | yes | 2,397,918 | 50,744 | .758 | 1.000 | .855 |
| test_092 | yes | 702,419 | 20,368 | .996 | 1.000 | .921 |
| test_090 | yes | 1,653,395 | 40,319 | .547 | 1.000 | .965 |
| test_119 | no | 13,881 | 1,821 | – | – | .956 |
| test_124 | no | 16,538 | 2,038 | – | – | .957 |
| test_115 | no | 25,453 | 2,219 | – | – | .958 |
| test_123 | no | 1,721,159 | 40,524 | – | – | .961 |
| test_070 | no | 20,585 | 2,123 | – | – | .961 |
| test_098 | no | 19,521 | 1,378 | – | – | .960 |
| test_109 | no | 1,426,547 | 27,792 | – | – | .964 |
| test_076 | no | 45,275 | 2,890 | – | – | .944 |
| test_080 | no | 183,076 | 6,499 | – | – | .852 |
| test_037 | no | 492,679 | 17,018 | – | – | .965 |
Table S8. HiPe on whole slides, per slide. PG: Pointing Game; Deletion: slide Deletion over 0 to 100 % of the tissue removed. –: slide without tumour (no ground truth).
Several tumour foci. 41 of the 45 CAMELYON16 tumour slides of Table S29 contain several annotated tumour foci. On these slides, the 5% highest-ranked tissue patches of WaFR reach .517 of the foci on average (fraction of foci containing at least one of them), more than for every perturbation-based method (.139 to .392; Holm ).
| Method | mean | wins | ||||||
| WaFR | 45 | .949 | – | – | – | 40 | – | – |
| Occlusion | 45 | .625 | +.324 [+.269, +.382] | <.001 | 45/45 | 40 | +.033 [+.021, +.047] | <.001 |
| RISE | 45 | .608 | +.340 [+.295, +.386] | <.001 | 45/45 | 40 | +.051 [+.034, +.070] | <.001 |
| LIME | 45 | .744 | +.204 [+.149, +.261] | <.001 | 39/45 | 40 | +.011 [+.001, +.022] | .062 |
| KernelSHAP | 38 | .778 | +.167 [+.120, +.219] | <.001 | 36/38 | 34 | +.040 [+.025, +.056] | <.001 |
| PartitionSHAP | 45 | .736 | +.213 [+.181, +.248] | <.001 | 45/45 | 40 | +.046 [+.033, +.061] | <.001 |
| h-Shap | 31 | .922 | +.025 [−.003, +.049] | .071 | 24/31 | 27 | +.057 [+.039, +.077] | <.001 |
| ShapBPT | n.r. | n.r. | ||||||
| Sobol | n.r. | n.r. | ||||||
| HSIC | 45 | .797 | +.152 [+.110, +.197] | <.001 | 40/45 | 40 | +.026 [+.015, +.039] | <.001 |
| LIMA | 45 | .725 | +.224 [+.172, +.278] | <.001 | 42/45 | 40 | +.045 [+.030, +.062] | <.001 |
| MoXI | 45 | .685 | +.264 [+.218, +.313] | <.001 | 44/45 | 40 | +.019 [+.012, +.028] | <.001 |
| WCAM | n.r. | n.r. | ||||||
| Saliency | 45 | .994 | −.045 [−.063,−.030] | <.001 | 1/45 | 40 | −.084 [−.103,−.065] | <.001 |
| Integrated Gradients | 10 | .392 | +.556 [+.404, +.709] | .002 | 10/10 | 9 | +.065 [+.016, +.119] | .10 |
| SmoothGrad | 44 | .943 | +.008 [−.014, +.032] | .53 | 22/44 | 39 | +.009 [−.003, +.023] | .15 |
| Grad-CAM | 45 | .993 | −.045 [−.062,−.030] | <.001 | 3/45 | 40 | −.091 [−.109,−.072] | <.001 |
| Grad-CAM++ | 44 | .994 | −.043 [−.061,−.028] | <.001 | 3/44 | 39 | −.094 [−.113,−.075] | <.001 |
| Random map / order | 45 | .509 | +.440 [+.403, +.477] | <.001 | 45/45 | 40 | +.060 [+.042, +.080] | <.001 |
| Centre map | 45 | .564 | +.384 [+.335, +.432] | <.001 | 43/45 | 40 | +.060 [+.041, +.079] | <.001 |
Table S29. Whole slides, per method. Left: patch-level AUROC (); right: slide Deletion (). : slides; : paired difference (+: WaFR is better) with 95 % bootstrap CI over slides; : two-sided paired test, Holm correction over the nine perturbation-based methods; gradient- and activation-based methods: uncorrected (left), Holm correction among them (right); references: uncorrected; wins: slides on which WaFR is higher. n.r.: no map. Random map / order: random map (left), random patch order (right). Slide Deletion: slides classified as tumour by DSMIL. Fewer slides: KernelSHAP, design limit on 7 slides; h-Shap, time or forward-pass limit on 14; SmoothGrad and Grad-CAM++, memory limit on 1; Integrated Gradients, the 10 tumour slides of the 20-slide cohort (Sec. C.1).
Quadtree-boundary alignment. A target on the boundary between nodes is split among them, so each holds part of it. On Synthetic Dataset scenes at 2,048 px for all 8 models, one target is shifted by 0, 1/8, 1/4 or 1/2 of its side from the corner of four nodes, a node boundary at every depth. At every offset, WaFR has a Pointing Game of 1.000 with 201 to 270 forward passes, and AUROC of 1.000, .951, .900 and .995, against .885, .782, .693 and .522 for h-Shap [53].
Haar prior in the regression
At on the 1,000 ImageNet images, the Haar wavelets of the regression act as a multiscale prior on the patch effects (Table S9 and Figure S4). At , removing them (A4) only reorders the pixels outside the refined leaves, so EPG and the Pointing Game in Table S4 are equal by construction.
| ResNet-50 WaFR | ResNet-50 A4 | ResNet-50 Perm. | VGG16 WaFR | VGG16 A4 | VGG16 Perm. | |
| Insertion ↑ | .690 | .667 | .683 | .617 | .587 | .607 |
| Fidelity ↑ | .468 | .458 | .464 | .497 | .491 | .494 |
| Held-out ↑ | .612 | .580 | .604 | .627 | .602 | .620 |
| Seeds ↑ | .530 | .440 | .486 | .524 | .445 | .480 |
| Masks to reach A4 ↓ | 51 | 127 | 62 | 46 | 127 | 64 |
Table S9. Haar wavelets with 127 random masks at . A4: WaFR without the Haar wavelets; Perm.: WaFR with the patches permuted inside the Haar wavelets. Seeds: mean Spearman correlation between the maps of two seeds. Masks to reach A4: random masks needed to reach the Insertion of A4 with 127 masks.
Figure S4. Insertion against the number of random masks (). Shaded: 95 % CI.
Sample efficiency and stability. With 127 random masks, adding the Haar wavelets to the patch columns (WaFR against A4) raises Insertion by .023 on ResNet-50 and .030 on VGG16, and the mean Spearman correlation between the maps of five seeds by .090 and .079 (Table S9; Holm for every metric of the table). With 1,023 masks, the gain in correlation across seeds is .081 and .054. On the first 500 images, with mask counts on a logarithmic grid from 16 to 1,023, WaFR reaches the 127-mask Insertion of A4 with 51 masks on ResNet-50 and 46 on VGG16, 2.48 and 2.74 times fewer.
Number of masks. With the same number of masks, the Haar wavelets give the higher Insertion at every count from 32 to 1,023 on both models (Figure S4; Holm ).
Refitting WaFR and the ablations A3, A4 and A3+A4 on the first 64 to 1,023 masks, WaFR with 64 masks reaches the mean Insertion of A3+A4 with 1,023 masks (A4 needs 256 masks to reach it).
Spatial layout of the wavelets. A fixed random permutation of the 256 patch indices inside the Haar basis (Perm. in Table S9) keeps the number and the norms of the columns and removes their spatial adjacency. With 127 masks, the true layout has the higher Insertion (by .007 on ResNet-50 and .009 on VGG16) and correlation across seeds (by .044 on both; Holm ). At 32, 64, 127 and 256 masks, the true layout is higher in all 16 combinations of model and count (Holm ).
Both Haar parts. The low-pass baseline changes the model responses, and the Haar wavelets regularise the regression. At , removing both (A3+A4) lowers Insertion by more than the sum of the two single removals: with the paired advantage of WaFR over ablation , is +.011 on ResNet-50 and +.017 on VGG16 (Holm ). At high resolution, the contribution of the Haar wavelets therefore lies in the low-pass baseline, which lowers the cost of the search; in the regression, they act at , where WaFR reaches the 127-mask Insertion of A4 with 2.5 to 2.7 times fewer masks.
Regression after the search
Ranking outside the selected leaves. At , the search resolves the fine evidence, and the 127 random masks order the pixels outside the selected leaves. Without the regression (A6), the search tree is the same and the other pixels are ranked by the per-pixel score difference of their leaf. The Pointing Game is then unchanged on all 36 pairs of model and slide of the Synthetic Dataset, and EPG changes by at most .004 on VisA, Real-IAD and the CAMELYON16 crops. With the regression, AUROC is higher on every high-resolution dataset: on VisA and on whole slides (Table S4; patch-level AUROC from .906 to .947, higher on 9 of the 10 tumour slides), by .075 on Real-IAD, and by .055 to .103 across image sides on the CAMELYON16 crops. On VisA, the lower log-scale Deletion of A6 in Table S4 is reversed under ROAD, where WaFR is lower by .016 (Table S5).
Regime rule
Number of masks at . Beyond 63 masks, the metrics are stable on all datasets (Figure S5); with no random masks, AUROC is lower by .083 on VisA, .025 on the Synthetic Dataset at 512 px and .032 on whole slides.
Figure S5. Sensitivity of WaFR to its parameters. One row per parameter, one panel per metric; horizontal axis: changed value (the value of Table S2 is at zero). Shaded: 95 % bootstrap CI.
Fidelity at . Among all ablations, Fidelity [3] decreases most without the sparse regression (A5), without the low-pass baseline and the regression (A3+A5), and without the dense term (A9) (Table S10).
Table S10. Ablations at : Fidelity. WaFR: mean. Other rows: paired difference WaFR − ablated (+: WaFR is better) with 95 % bootstrap CI. Bold: difference above .02 and CI above 0.
| Fidelity \uparrow$, | ResNet-50 | VGG16 | ||
| WaFR | .537 | .570 |
| A3 − Haar baseline | −.004 [−.008, −.000] | +.000 [−.003, +.003] |
| A4 − Haar wavelets | +.003 [+.002, +.004] | +.001 [+.001, +.002] |
| A2 − both Haar parts | −.001 [−.004, +.003] | +.003 [−.000, +.007] |
| A10 − baseline, regression | +.024 [+.018, +.030] | +.031 [+.025, +.036] |
| A5 − sparse regression | +.026 [+.021, +.031] | +.032 [+.027, +.037] |
| A7 − probability in | +.014 [+.012, +.016] | +.014 [+.013, +.016] |
| A8 − single patches | +.007 [+.006, +.009] | +.005 [+.004, +.007] |
| A9 − term | +.024 [+.022, +.026] | +.024 [+.023, +.026] |
Table S10.
Regime rule. The rule (§ 3.3 of the main paper) runs the search when the image is larger than the input of the model. Table S11 runs each regime where the rule does not select it: the sparse regression alone (1,024 forward passes) on GridPG (, 100 grids per CNN) and on 43 VisA images at 512 px (), and the search followed by 127 masks on 100 ImageNet images at 224 px (, ResNet-50). At , the search raises the GridPG share on both CNNs and the EPG on VisA with 2.7 and 5.2 times fewer forward passes. At 224 px, the regression alone has the better Deletion, Insertion and Fidelity.
Table S11. Search and regression across regimes. Search: hierarchical search plus 127 masks; Regr.: sparse regression alone, 1,024 forward passes; Fwd.: mean forward passes of the search. : Search − Regr. (+ favours the search; sign inverted for Deletion) with 95 % bootstrap CI. Del.: Deletion; log Del.: log-scale Deletion; Ins.: Insertion; Fid.: Fidelity. ImageNet: 100 other validation images (Table S14).
| Model | Metric | Fwd. | Search | Regr. | [95 % CI] |
| GridPG, 448 px () | |||||
| ResNet-50 | GridPG | 373 | .889 | .802 | +.087 [+.041, +.128] |
| AUROC | .935 | .924 | +.011 [+.002, +.020] | ||
| VGG16 | GridPG | 376 | .905 | .814 | +.091 [+.050, +.130] |
| AUROC | .914 | .916 | −.002 [−.012, +.008] | ||
| VisA, 512 px () | |||||
| ResNet-18 | EPG | 198 | .664 | .408 | +.255 [+.187, +.325] |
| AUROC | .897 | .903 | −.006 [−.026, +.020] | ||
| log Del. | .811 | .837 | +.026 [−.017, +.062] | ||
| ImageNet, 224 px () | |||||
| ResNet-50 | Del. | 306 | .056 | .040 | −.017 [−.025, −.009] |
| Ins. | .554 | .604 | −.050 [−.068, −.033] | ||
| Fid. | .295 | .532 | −.237 [−.279, −.198] |
Table S11.
Parameters
We change one parameter at a time around the values of Table S2 (Figure S5), on the Synthetic Dataset (8 pairs of model and target size, 20 scenes per side up to 2,048 px; 5 scenes of two models at 8,192 px), 30 VisA images, 5 CAMELYON16 training tumour slides ( and number of masks) and 100 ImageNet images (; dense and patch weights). The maximal number of forward passes (512 to 4,096) and mask counts above 63 leave all metrics nearly unchanged. The relative threshold trades forward passes against log-scale Deletion without changing the Pointing Game on the Synthetic Dataset: and .75 use slightly fewer forward passes with higher log-scale Deletion (+.013 and +.024 at 2,048 px), and uses more (278 against 220 on the Synthetic Dataset at 2,048 px, 329 against 236 on VisA) without lower Deletion. The finest node side sets the spatial granularity: nodes of 16 and 32 px lower EPG and Pointing Game, and nodes of 4 px raise EPG by .045 on the Synthetic Dataset and .059 on VisA with about 25 % more forward passes. On ImageNet, removing the dense term lowers Insertion by .046 and Fidelity by .030, weights above 0.15 trade higher Insertion for higher Deletion, and a patch weight of 4 instead of 2 lowers Insertion by .012.
Evaluation protocol
This section gives the datasets and models (Sec. C.1), the baselines (Sec. C.2), the metrics (Sec. C.3) and the statistics and cost (Sec. C.4).
Datasets and models
ImageNet. For Deletion and Insertion, we used 1,000 ImageNet validation images [12], one per class (Table S12). For the Pointing Games, we used 250 images of ImageNet-S50 [19], five for each of its 50 classes, with their masks.
| Dataset | Instances | (px) | Ground truth | Model explained | Source |
| ImageNet val [12] | 1,000 images | 224 | – | ResNet-50, VGG16, ViT-B/16, DeiT-B/16 | public |
| ImageNet-S50 [19] | 250 images | 224 | object mask | ResNet-50, VGG16, ViT-B/16, DeiT-B/16 | public |
| GridPG [42] | 500 grids per model | 448 | cell of the class | ResNet-50, VGG16 | public |
| Synthetic Dataset | 2,680 scene–side pairs | 256–8,192 | square, 16–256 | 5 CNNs (8 pairs of model and ) | ours |
| VisA [61] | 100 defective images | 512–1,168 | defect mask | ResNet-18 per category | ours |
| Real-IAD [56] | 92 defective images | 512–2,992 | defect mask | ResNet-18 per category | ours |
| CAMELYON16 crops [15] | 100 crops, 49 slides | 512–8,192 | lesion mask | ResNet-18 + attention MIL [24] | ours |
| CAMELYON16 slides [15] | 20 slides, 10 with tumour; 39 more tumour slides | whole slide | tumour patches | DSMIL [32] | public |
| DOTA [58] | 20 images | 4,654–7,297 | object boxes | YOLO11x-OBB [29] | public |
Table S12. Datasets and models. : image side; : target side. Source: public weights or trained by us (ours). MIL: multiple-instance learning; DSMIL: dual-stream MIL network.
GridPG. Each grid holds four images of different classes in a grid of 448 448 px, and each of the four classes is explained. As in Rao et al. [42], an image enters a grid only if the model classifies it with a confidence of at least 0.99. We used 500 grids per model, each with 4 targets.
Synthetic Dataset. Following the synthetic evaluation of h-Shap [53], we constructed a localisation benchmark with known ground truth. Each scene contains a target pattern of side , distractors drawn from four other textures, and a textured multi-scale background. The distractors have sides of 16, 32 or 64 px, with an average of 1.5 per 512 512 px. Each scene is rendered at the largest image size and centre cropped to obtain smaller images, preserving the target across resolutions. The model predicts whether the target is present, and the ground truth is its bounding square. We include a scene only if the model predicts correctly both with and without the target, with a logit gap of at least 1 at every image size. The dataset contains 8 model–target-size combinations, with ranging from 16 to 256 px and image side from 256 to 8,192 px, yielding 2,680 scene–size pairs. For each model, we use 100 to 250 scenes per image size up to 1,024 px, 30 at 2,048 and 4,096 px, and 10 to 30 at 8,192 px. The Synthetic Dataset can be reproduced using the code provided with our implementation.
Industrial inspection. From VisA [61], we used 100 defective test images, 8 or 9 for each of its 12 categories. From Real-IAD [56], we used 92 defective images, 46 each of regulator and terminal block. These are the only two ...
Real-IAD categories whose model reaches a sensitivity and a specificity of at least 0.9 at every image side . We explain each image at native resolution on nested square crops of side 512, 1,024 and 2,048 px where they fit, plus the largest square. The ground truth is the largest connected defect region, and the smallest crop contains all of it. The largest square. side is 1,168 px for VisA and 2,992 px for Real-IAD.
Histopathology. We use the 129 official test slides of CAMELYON16 [15]. For the crop experiments, we extracted 100 regions containing annotated lesions from 49 tumour slides, with 1 to 3 regions per slide. Each region is represented by nested square crops, ranging from 512 to 8,192 px at approximately 1 µm per pixel. A crop is included at a given size only if the entire lesion fits within it. This gives 78, 90, 96 and 100 crops at 512, 1,024, 2,048 and 4,096 px, respectively. At 8,192 px, we use the first 20 crops. The annotated lesion defines the ground truth; in 7 crops, two lesions touch and their union is used as the target.
Slide cohorts. On complete CAMELYON16 slides, a cohort of 20 of the 129 test slides, 10 with tumour and 10 without, gives the forward passes, the slide Deletion and HiPe without a forward-pass limit (Sec. B.2); its 10 tumour slides give the patch-level AUROC and Pointing Game and the second slide model (Sec. D.1). For localisation, the 39 other tumour slides from which the crops were extracted are added; of these 49 tumour slides, 45 contain at least one model patch with at least 50 % tumour and give the patch-level AUROC. ShapBPT [43], Sobol [17] and WCAM [27] were not evaluated on whole slides (Sec. C.4). 50 annotated CAMELYON17 [4] slides from five hospitals are explained with the same DSMIL, without retraining (Sec. D.2).
Models. On ImageNet, we explain four public models as published: ResNet-50 [21], VGG16 [47] and ViT-B/16 [13] with the torchvision7 weights, and DeiT-B/16 [55] with the timm8 weights; on GridPG, we explain ResNet-50 and VGG16. We explain the predicted-class logit on ImageNet and each target-class logit on GridPG, using the corresponding softmax probabilities for evaluation.
For whole slides, we use DSMIL [32] with the authors’ pretrained weights on CAMELYON16. Every method perturbs the slide pixels before the feature extraction, not the stored features. The slides are divided into 224 px patches at 20× magnification, read directly at the slide level of approximately 0.5 µm per pixel. We use the authors’ tissue filter to exclude patches without sufficient tissue.
For VisA and Real-IAD, we trained a separate defect classifier for each category. Each classifier uses an ImageNet-pretrained ResNet-18 [21], truncated after its third stage. It processes images at their native resolution and produces a logit map, which is aggregated by log-sum-exp pooling [41]. On full test images, the classifiers achieve a mean balanced accuracy of 0.944 across the VisA categories. For CAMELYON16 crops, we use a ResNet-18 to extract patch features, which are aggregated by an attention-based multiple-instance head [24]. On patches excluded from the evaluation set, this model achieves a sensitivity and a specificity of at least 0.9 at every image side . For the Synthetic Dataset, we trained convolutional neural networks (CNNs) with max, log-sum-exp or attention pooling to detect the target pattern. Each model achieves a sensitivity and a specificity of at least 0.9 at every image side in its evaluated range. For models with a single output, we use a sigmoid instead of a softmax to obtain probabilities. Table S13 shows training hyperparameters.
| Synthetic Dataset | VisA, Real-IAD | CAMELYON16 crops | |
| Architecture | Custom fully convolutional network (stride 16, receptive field 128 or 1,120 px) with max, log-sum-exp, or gated attention pooling [24]. | ResNet-18 (up to stage 3, stride 16) with log-sum-exp pooling. | ResNet-18 (stage 4, stride 32), gated attention head [24] (hidden size 128). |
| Parameters | 61k–165k | 2.8M | 11.2M (patch), 132k (head) |
| Initialisation | Random | ImageNet (frozen batch norm) | ImageNet (patch), random (head) |
| Training data | 32k–56k target size . | Official splits. | 29 slides (61k patches; 3k tiles for head). |
| Input & augmentation | Crops ; flips and 90° rotations. | Two-phase: patches (256 or 384 px) then crops or full image; flips, rotations, colour. | 128 px patches (512–4,096 px tiles for head); geometric, stain, and blur. |
| Optimisation | Binary cross-entropy, AdamW [35] (learning rate to ), cosine decay [34], batch size 48–64. | Binary cross-entropy, AdamW (learning rate to ), one-cycle [50], batch size 32 then 4. | Binary cross-entropy, AdamW (learning rate patch, head), batch size 256 / 8. |
| Duration | 4,000–7,000 steps | 2,100 steps (VisA), 3,800 steps (Real-IAD) | 12 epochs (patch), 40 epochs (head) |
| Selection & criteria | Minimum validation loss. Target: sensitivity and specificity for all . | Maximum development balanced accuracy. Target: sensitivity and specificity across and full image. | Maximum development AUROC (patch), last epoch (head). Target: sensitivity and specificity . |
Table S13. Summary of model training. : target side; : image side.
Reduced cohorts. Table S14 lists every subset used in this supplement. The draws marked as seeded are random with a fixed seed, balanced over the classes or categories, and made from file names and labels only.
| Cohort | Size | Rule | Reason | Used in |
| ImageNet | 1,000 | seeded, one per class, validation set | cost | Tabs. S24 and S25 |
| slower methods (a) | 250 | first 250 of the 1,000 | cost | Tabs. S24 and S25 |
| mask counts | 500 | first 500 of the 1,000 | cost | Sec. B.3 |
| regime rule, parameters | 100 | seeded, validation images not in the 1,000 | cost | Secs. B.5 and B.6 |
| ImageNet-S50 | 250 | seeded, five per class | cost | Tabs. S24 and S25 |
| with a usable mask | 247 | mask neither the full image nor empty after the crop | ground truth | Table S24 and Sec. B.1 |
| single-patch masking | 244 | a px patch inside and one outside the object | ground truth | Sec. B.1 |
| slower methods (a) | 61 | first 62 of the 250, all 50 classes; 61 with a usable mask | cost | Tabs. S24 and S25 |
| GridPG, per model | 500 grids | images with confidence [42] | protocol | Table S26 |
| slower methods (a), regime rule | 100 grids | first 100 grids per model | cost | Table S26 and Sec. B.5 |
| VisA | 100 | seeded, 8 or 9 per category | cost | Secs. B and F |
| regime rule; parameters | 43; 30 | of 46 images not in the 100: whole defect within the 512 px window; first 30 | geometry; cost | Secs. B.5 and B.6 |
| Real-IAD | 92 | seeded, 46 per category; categories whose model reaches sensitivity and specificity at every | model accuracy | Sec. F |
| CAMELYON16 crops | 100 | 1 to 3 lesion regions per slide, 49 slides; a side only if the lesion fits | ground truth | Sec. F |
| 8,192 px | 20 | first 20 crops | cost | Sec. F |
| Synthetic Dataset | 2,680 | 100 to 250 scenes per side up to 1,024 px, 30 at 2,048 and 4,096 px, 10 to 30 at 8,192 px | cost | Sec. B and Table S28 |
| parameters | 20 per side; 5 | seeded scenes not in the 2,680, up to 2,048 px; 8,192 px, 2 models | cost | Sec. B.6 |
| redundancy; node corner | 64; 32 | seeded scenes not in the 2,680, 2,048 px, 1, 2 or 4 copies; target on a node corner | protocol | Sec. E; Sec. B.2 |
| CAMELYON16 slides | 20 | seeded, 10 with tumour and 10 without, of the 129 test slides | cost | Secs. B.2 and D.1 |
| CAMELYON16 tumour slides | 49 | the 10 tumour slides above and the 39 slides of the crops | ground truth | Table S29 |
| AUROC, Pointing Game | 45 | a model patch with at least 50 % tumour | ground truth | Tabs. S19 and S29 |
| slide Deletion | 40 | classified as tumour by DSMIL | protocol | Table S29 |
| CAMELYON17 | 50 | all lesion-annotated slides | – | Sec. D.2 |
| AUROC; slide Deletion | 35; 30 | a patch with at least 50 % tumour; classified as tumour | ground truth | Table S18 |
| CAMELYON16 training slides | 5; 5 | tumour slides with exhaustive annotation; 3 with tumour and 2 without | ground truth; cost | Sec. B.6; Table S20 |
| 2,048 px crops, VisA, Real-IAD (RISE) | 24; 20; 23 | first 24 crops (24 slides); first 20 of the 100; first 23 images (18 samples) | cost | Sec. B.2 |
Table S14. Reduced cohorts. Size, selection rule, reason and use. Indented rows: further subsets of the same dataset.
Baselines
We use the authors’ implementations and recommended settings, with adaptations described below when necessary.
Occlusion and Monte Carlo sampling methods. For Occlusion [59], we use the Xplique implementation [18] with patch and stride , as Novello et al. [39]. RISE [40] uses random masks with keep probability 0.5; following the original paper, we use 8,000 masks for ResNet-50 and 4,000 for VGG16. With no configuration given for transformers, we also use 4,000 masks for ViT-B/16 and DeiT-B/16. At high resolution, RISE uses 4,096 masks. On whole slides, the localisation runs of RISE and LIME [44] use 256 masks and 256 samples, whereas the execution times of the paper are projected for 4,096 masks and 1,000 samples (Sec. C.4). For Sobol [17], we use 32 Quasi-Monte Carlo designs of masks (3,936 forward passes); for HSIC [39], masks with 1,536 forward passes.
Linear and Shapley methods. LIME [44] and KernelSHAP [37] use 50 superpixels from simple linear iterative clustering [1]; KernelSHAP and PartitionSHAP [36] use the official shap package [37], PartitionSHAP with a blurred baseline. For h-Shap [53], we use the authors’ relative threshold (70th percentile of the scores at each depth) and a mean reference image. ShapBPT [43] uses 1,000 forward passes and averages the logits over five backgrounds.
Subset selection and wavelets. LIMA [8] and MoXI [51] use the settings recommended by their authors. For WCAM [27], we use three wavelet levels, a grid size of and eight designs.
HiPe. HiPe [10] replaces a masked region by its mean pixel value and splits a region when its attribution exceeds the midpoint between the minimum and maximum values
at that depth. The attribution map is resized using nearest-neighbour interpolation, with a batch size of 32. On images, refinement continues until the regions have a side of 4 to 8 px, the finest node side of WaFR (Table S2), without a fixed maximum depth. On whole slides, HiPe uses the same DSMIL model, slides, patches and ground truth as h-Shap.
References and controls. On high-resolution images and the Synthetic Dataset, RISE, Sobol, HSIC and Occlusion replace masked pixels with zero as model input. We also report Saliency [48], Integrated Gradients [52] (50 steps, black baseline), SmoothGrad [49] (25 samples, noise 0.15), Grad-CAM [46] and Grad-CAM++ [7]. Random and centre-weighted maps serve as independent controls.
Adaptations. Where official implementations do not support the evaluated input format, we adapt them as follows. On whole slides, LIMA and MoXI select regions on a thumbnail while evaluations use the full-resolution slide classifier; the region selections are mapped back to the slide. For ViT-B/16 and DeiT-B/16, Grad-CAM and Grad-CAM++ use the last transformer block with the token-to-image reshape of the official pytorch-grad-cam9 example. For MoXI, we retain the ordering and sign returned by its implementation, which ranks all patches; the source paper describes an early-stopping variant. For WCAM, we retain the approximation coefficients in accordance with the paper, rather than following the alternative choice in its notebook. These adaptations are applied consistently within each comparison and are stated to delimit rather than extend, claims about official implementations.
Granularity. Occlusion, RISE, HSIC and Sobol use the patch and mask sizes of their official protocols, which grow with the image side; with a predefined patch side in pixels, their number of forward passes would grow with the number of patches (Sec. C.4). Four experiments compare WaFR with baselines in settings closer to its own: HiPe, whose regions reach the finest node side of WaFR, without a cap on its forward passes (Sec. B.2); all whole-slide baselines evaluated on the same patch-aligned cached-feature interface as WaFR (Sec. D.3); Occlusion, KernelSHAP, RISE and HiPe with the Haar low-pass baseline of WaFR (Sec. B.2); and
RISE, HSIC and KernelSHAP with the forward passes of WaFR and with up to 2,048 (Sec. B.2).
Evaluation metrics
Fidelity metrics. Deletion [40] removes pixels in order of decreasing attribution and measures how quickly the predicted probability decreases. Insertion follows the reverse procedure, adding pixels to a blurred image and measuring how quickly the probability increases. Both metrics are computed as the area under the corresponding curve, with lower values preferred for Deletion and higher values for Insertion. At 224 px, we use the official RISE implementation, removing or restoring 1 % of the pixels (502 pixels) at each step. Fidelity [3] measures the Spearman correlation between the attribution of randomly selected patches and the score decrease when they are removed. We use the Xplique implementation [18], as in HSIC [39], with higher values indicating better fidelity.
Log-scale Deletion. At high resolution, the evidence can cover less than 0.01 % of the image. A Deletion curve with linear steps removes it entirely in its first step, so the curve cannot show whether the map ranked it first. On high-resolution data, we therefore remove pixels in log-spaced fractions from to 1 of the image and set them to grey. We normalise the prediction score between the full and the fully removed image; it exceeds 1 when masking raises the score above . The score is the area under that curve over the log fraction (lower is better).
Localisation. Localisation measures how well attribution maps identify annotated regions. The Pointing Game [60] counts a hit when the top-ranked pixel of the map, at the native image size, lies on an annotated region of the image (the target square on the Synthetic Dataset; any annotated object, defect or lesion on the other datasets). When several pixels share the maximum, the top-ranked pixel is drawn at random among them, and the score of the image is the expected hit: on ImageNet-S50, the share of the tied pixels that lie on the region; on the other datasets, the mean over 20 random orders of the pixels, drawn from a fixed seed and shared by all methods. On whole slides, a hit is a top-ranked model patch that is at least half tumour. This is the Pointing Game of every table and figure. The Pointing Game breaks ties at random because counting a hit whenever any tied pixel lies on the region would reward block-wise or uniform maps: a uniform map would score 1.000. For the energy-based Pointing Game, images whose target bounding box covers more than half the image are excluded, following the original protocol [57]. AUROC is computed separately for each image and then averaged, giving each image equal weight rather than pooling pixels across images as in anomaly-detection benchmarks [61]. On whole slides, AUROC is evaluated only on tumour slides, with patches containing at least 50% tumour considered positive.
EPG with a common post-processing. The EPG counts the positive attribution inside the box of the evidence, so it depends on how a method scales its map and where it puts zero, not only on the order of the pixels. Every stored map is therefore also scored after one common post-processing. For a fraction of the pixels, , we keep the highest pixels of the map, set all other pixels to zero, and compute the official EPG on the result; pixels tied at the threshold share the remaining weight. We also report the mean over the five values of . The maps of Sobol, HSIC and ShapBPT were stored at a side of 256 to 330 px, and we score them at that size; for these maps (marked in Table S15), the full-map values may differ from Table 1 of the main paper by up to .014. On VisA and Real-IAD, WaFR has the highest EPG at every and on the mean over (Holm for the mean on both datasets); at on VisA, it exceeds RISE by .078 over images (Holm ). On the CAMELYON16 crops, it has the highest EPG among the methods run on every image side; with PartitionSHAP and ShapBPT, which were not run on the largest sides, it ranks second or third, with no significant difference from the first method (Holm ), as in Table 1 of the main paper. The rank-normalised EPG replaces every pixel by its normalised average rank in the map and computes the EPG on these ranks; we compare each method with WaFR on the pairs of image and side that both have; there, no method exceeds WaFR by more than .001 on VisA, and WaFR has the highest mean on Real-IAD.
ROAD. Deletion can reward the shape of the removed region rather than the removed content [45]. ROAD [45] replaces the removed pixels by noisy linear imputation from their neighbours. On the 1,000 ImageNet images, WaFR has a lower ROAD score than each of the seven perturbation-based methods evaluated with ResNet-50 (.139, against .148 for PartitionSHAP to .266 for Occlusion; Holm ), and than each of them except PartitionSHAP with VGG16 (.114 against .116, ). With ViT-B/16 and DeiT-B/16, its ROAD score is .190 and .215, lower than that of each of the seven methods (Holm ) except ShapBPT with DeiT-B/16 (.208, Holm ). On VisA and Real-IAD, ROAD is computed on the initial segment of the log-spaced removal fractions above, from to of the image. On this segment, WaFR also scores lower than each of the six perturbation-based methods evaluated on Real-IAD (Holm ; PartitionSHAP and ShapBPT on 184 and 276 of the 368 pairs of image and side) and than each of them except PartitionSHAP on VisA (Holm ).
Statistics and timing
Statistics. Each table cell gives the mean and a 95 % percentile bootstrap confidence interval [14] (1,000 resamples of images, grids, scenes or slides). We test each method against the random map with a paired sign-flip test. We correct the -values with Holm’s method [23] over the roster. We also compare methods in pairs with the same test; on the slides, the test is exact when a pair has at most 12 slides and uses 10,000 random sign flips otherwise.
Statistical unit. The sides of one image share their content, and so do the crops of one slide. In Table 1 and Table 3 of the main paper, the unit of the bootstrap and of the test is the pair of image and side. We also repeat both with a unit that groups the dependent pairs: the image on VisA (100 images, all sides pooled), the physical sample on Real-IAD (category and sample id; 35 samples, 92 images, each sample photographed from several cameras), and the slide on the CAMELYON16 crops (100 crops from 49 slides). For each unit, we average the paired differences over its pairs, then flip the signs of the unit means and resample the units with all their pairs; on the Synthetic Dataset, each scene is already one unit. With the grouped units, 94 of the 99 comparisons of Table 1 and 349 of the 354 paired tests behind Table 3 of the main paper keep their significance outcome, and no significant effect reverses direction.
Timing protocol. For each method and image side, the timing pass makes one timed call per image, after one untimed warm-up call, and reports the median over 4 images at 224 to 2,048 px (3 for h-Shap at 224 px) and the time of 1 image at 4,096 px, at 8,192 px and on the slide. Section D.3 also reports the times of all whole-slide methods on the same cached-feature interface. A method that would need hours on the slide (RISE, LIME, Sobol, WCAM) runs only the start of its sequence of forward passes (120; 10 for WCAM), and we project its time as the measured time plus the remaining forward passes times the time per forward pass. The timer covers the whole method call, including the baseline, setup and the CPU-side estimation.
Cost of every method. Under the official protocols of Sec. C.2, the perturbation-based methods keep their forward passes nearly constant across image sides (Table S16; whole-slide times with and without the feature cache in Table S19 and Table S20) by enlarging their perturbation regions with (LIME keeps 1,000 samples over a predefined number of superpixels). With patches of a predefined side in pixels, the number of patches is : Occlusion needs forward passes, Sobol [17], WCAM , and KernelSHAP at least samples. Pairwise methods scale as , with forward passes for MoXI [51] () and a similar number for LIMA [8], whereas RISE, HSIC and LIME choose their number of samples independently of the number of patches. For WaFR, Proposition 1 gives the forward passes of the search; ShapBPT needs memory that grows with to build its partition tree [43]. From 4,096 to 8,192 px, the execution time grows 4.7 times for WaFR (1.10 to 5.20 s on two timed scenes with 208 and 176 forward passes), against 1.8 (Occlusion) to 6.3 (KernelSHAP and h-Shap).
| Method | 224 | 2k | 8k | Slide | Fixed patch | Time (s) 2k | Time (s) Slide |
| Gradient- and activation-based | |||||||
| Saliency | 1 | 1 | 1 | 1 | 1 | 0.003 | 5.8 |
| Int. Gradients | 51 | 51 | 51 | 51 | 1 | 0.13 | 207 |
| SmoothGrad | 25 | 25 | 25 | 25 | 1 | 3.5 | 741 |
| Grad-CAM | 1 | 1 | 1 | 1 | 1 | 0.002 | 4.0 |
| Grad-CAM++ | 1 | 1 | 1 | 1 | 1 | 0.10 | 23.5 |
| Perturbation-based | |||||||
| Occlusion | 50 | 50 | 50 | 50 | 0.21 | 0.6 | |
| RISE | 8,000 | 4,096 | 4,096 | 4,096 | none | 136 | 38,691 |
| LIME | 1,000 | 1,000 | 1,000 | 1,000 | none | 171 | 6,390 |
| KernelSHAP | 1,002 | 1,002 | 1,002 | 1,002 | 49 | 80.1 | |
| PartitionSHAP | 5,000 | 5,000 | n.r.^m | 500 | 846 | 2.4¶ | |
| h-Shap | 64 | 64 | 64 | 27,968 | 0.05 | 255 | |
| ShapBPT^1 | 1,000 | 1,000 | 1,000§ | n.r.^m | 41.0 | n.r.^m | |
| Sobol^2 | 3,936 | 3,936 | 3,936 | n.r.^d | 4.2 | 16,361 | |
| HSIC | 1,536 | 1,536 | 1,536 | 4,096 | none | 1.6 | 766 |
| LIMA | 1,766 | 1,742 | n.r.^t | 1,702 | 367 | 982 | |
| MoXI | 19,306 | 19,306 | 19,306 | 19,307 | 13.6 | 1,707 | |
| WCAM^3 | 6,288 | 6,288 | 6,288 | n.r.^d | 14.3 | 45,939 | |
| Ours | |||||||
| WaFR | 1,024 | 200§ | 176§ | 458 | 0.38 | 6.3¶ |
Table S16. Cost across resolutions. Forward passes (backward for gradient methods) at 224 px, 2k px, 8k px and on one slide. Fixed patch: order in (context independent of patches; : nodes per depth). ¶: cached patch features. Italics: projected. §: timed image only. n.r.^{d,m,t}: design, memory, or time limit.
| Method | Fwd. | Time per slide |
| Occlusion | 50 | 5.2 min [3.1, 6.3 min] |
| RISE | 256 | 17 min [11 29 min] |
| LIME | 256 | 19 min [15 35 min] |
| PartitionSHAP | 500 | 53 min [29 min, 1.1 h] |
| LIME | 1,000 | 1.1 h [0.9, 2.1 h] |
| KernelSHAP | 1,002 | 1.3 h [0.7, 1.6 h] |
| LIMA | 1,523–1,828 | 1.7 h [1.1, 3.5 h] |
| HSIC | 4,096 | 4.3 h [3.2, 7.2 h] |
| RISE | 4,096 | 4.4 h [2.9, 7.6 h] |
| h-Shap | 12,916–34,636 | 19 h [8 h, 2.1 d] |
| MoXI | 19,307 | 20 h [14 24 h] |
| HiPe | 88,997 | 3.9 d [3.4, 8.9 d] |
| WaFR | 164–456 | 16 min [8.2, 32 min] |
Table S20. Whole-slide time without the feature cache. Five CAMELYON16 training slides, three with tumour; Fwd.: forward passes; time per slide: median [range]. WaFR: measured end to end; other methods: setup plus Fwd. times from the median of 12 timed forward passes; HiPe: median Fwd. of Sec. B.2.
Generalisation across models and datasets
This section covers a second slide model (Sec. D.1), other hospitals (Sec. D.2), the cached interface (Sec. D.3) and a public object detector on aerial images (Sec. D.4).
Second slide model
The second slide model is a gated attention-based multiple-instance network (ABMIL) [24] that replaces the aggregation head of DSMIL on the same patch features. Trained on 216 CAMELYON16 training slides and selected on 54 validation slides (epoch 36, validation AUC .952), ABMIL attains a slide-level test AUC of .972 [.946, .992] across the 129 test slides, comparable to DSMIL (.970). WaFR and the perturbation-based baselines explain it on the 10 tumour slides of the 20-slide cohort (Sec. C.1) using the same settings as for DSMIL, together with single-patch leave-one-out perturbation and ABMIL’s internal attention weights as references (Table S17). Slide Deletion uses the 9 slides classified as tumour (RISE and HSIC: 6; h-Shap: 4).
| Method | AUROC | AUROC | PG | Del. | Forward passes | ||
| WaFR | 10 | .939 | – | – | 1.000 | .562 | 200 |
| Occlusion | 10 | .696 | +.243 [+.140, +.354] | .008 | .215 | .717 | 50 |
| RISE | 7 | .766 | +.178 [+.060, +.305] | .094 | .357 | .650 | 256 |
| HSIC | 7 | .808 | +.136 [+.048, +.232] | .094 | .286 | .636 | 1,024 |
| h-Shap | 4 | .980 | −.039 [−.071, −.007] | .25 | .500 | .410 | 42,667 |
| Leave-one-out | 10 | .561 | +.377 [+.227, +.519] | – | 1.000 | .539 | 18,299 |
| Attention | 10 | .995 | −.056 [−.094, −.026] | – | 1.000 | .279 | 1 |
Table S17. Whole-slide localisation on ABMIL. : slides for AUROC; PG: Pointing Game; Del.: slide Deletion; forward passes: median per slide. AUROC, PG: . : WaFR − method on common slides (+: WaFR is better), 95 % bootstrap CI; : Holm-corrected over perturbation-based methods. Grey: references.
On ABMIL, WaFR has a Pointing Game of 1.000 with a median of 200 forward passes. It exceeds Occlusion in patch-level AUROC on all 10 slides (Holm ) and in slide Deletion across the 9 slides classified as tumour by .155 [.079, .233], Holm p = .016), has higher mean AUROC than RISE and HSIC on the 7 slides they completed (no significant difference, Holm p = .094), and surpasses exhaustive single-patch leave-one-out perturbation by +.377 AUROC while requiring roughly 90 times fewer forward passes. Within the 40,000-pass model limit, h-Shap completes only 4 of the 10 slides (a run stops at the first forward pass above the limit, the 40,001st; its count of 42,667 adds 2,666 repeated identical masks answered from a cache) with lower Pointing Game accuracy and no statistically significant AUROC difference from WaFR (). As an internal-access reference, ABMIL’s native attention achieves higher AUROC ().
Other hospitals
The 50 lesion-annotated lymph-node slides of CAMELYON17 [4] come from five hospitals, with other staining protocols and slide scanners; the CAMELYON16 DSMIL explains them without retraining. Because all 50 slides contain tumour, we evaluate patch-level AUROC and Pointing Game on the 35 slides containing at least one patch with at least 50% tumour, and slide Deletion on the 30 slides classified as tumour by DSMIL (3 to 7 of 10 per hospital). Paired differences against Occlusion, RISE, and h-Shap are evaluated on the slides explained by both methods using 95% bootstrap confidence intervals and two-sided paired tests with Holm correction [23] (Table S18).
| Method | AUROC / | PG | Del. / | Fwd. | |
| WaFR | 35/30 | .948 [.918, .970] | .714 | .538 | 182 |
| h-Shap | 33/29 | +.046 [+.022, +.070] | .030 | +.032 [+.019, +.048] | 19,328 |
| RISE | 24/20 | +.329 [+.251, +.410] | .042 | +.039 [+.017, +.064] | 256 |
| Occlusion | 35/30 | +.359 [+.279, +.436] | .074 | +.027 [+.014, +.040] | 50 |
Table S18. Cross-hospital generalisation on CAMELYON17. WaFR row: means; other rows: paired difference in AUROC and Del. (+: WaFR is better). [ ]: 95 % CI. : slides for AUROC / Deletion; PG: Pointing Game; Del.: slide Deletion; Fwd.: median forward passes.
On these slides, WaFR has a mean patch-level AUROC of .948 with a median of 182 forward passes per slide, exceeding h-Shap (mean AUROC .905 on 33 slides), RISE, and Occlusion in both patch-level AUROC (Holm for each) and slide Deletion, with over 100 times fewer forward passes than h-Shap. In slide Deletion, WaFR also outperforms a random patch ordering by +.043 [.024, .064]. Across hospitals, WaFR’s patch-level AUROC remains be tween .892 and .981, reaching .980 on the 16 slides with macro-metastases (largest lesion above 2 mm) and .918 on the 18 slides with micro-metastases (0.2 to 2 mm) [4]; the remaining slide has only isolated tumour cells.
Cached-feature interface
Evaluation of a masked slide. Before the explanation, the original patches and their low-pass versions are processed by the DSMIL tissue filter. The patch encoder extracts features only from patches that pass the filter, and these features are stored. For a masked slide, DSMIL builds a bag from the stored features and passes it to the multiple-instance aggregator. Unchanged patches contribute their original features. Masked patches contribute their low-pass features only if they pass the tissue filter. Since the low-pass replacement is the mean colour of a square of side , it is nearly uniform and usually fails the filter. Such patches are therefore excluded from the bag. WaFR thus treats the multiple-instance aggregator as a black box on the patch embeddings that the DSMIL pipeline extracts and filters once. Because every mask is a union of whole patches, the stored embeddings give exactly the forward pass of DSMIL on the masked slide, and WaFR evaluates different masks without running the patch encoder again. In contrast, Occlusion and h-Shap may mask only part of a patch. These patches mix original and low-pass pixels and are re-encoded if they still pass the filter.
¹ ShapBPT (slide): 364 s, 5.3 GiB at 16 Mpx; proj. ≧34 h, ≈1.8 TB.
² Sobol (slide, design): 7.7 s/pass; proj. 2,112 passes (≈4.5 h).
³ WCAM (slide, design): 7.3 s/pass; proj. 6,288 passes (≈13 h).
Masked patches in the bag. Keeping every masked patch in the bag with the features of its low-pass pixels, on the 20 slides of the cohort, leaves WaFR nearly unchanged (Figure S6): on the 10 tumour slides, patch-level AUROC differs by −.002 [−.004, −.000], Pointing Game remains 1.000, and map Spearman correlations between the two protocols range from .925 to 1.000, while slide Deletion differs by less than .001 across all 20 slides. For Occlusion, the map correlations fall to −.594 and the slide Deletion is higher by .008 (Holm = .001).
Figure S6. Whole-slide sensitivity to retaining masked patches in the bag. Standard bag: masked patches excluded by the tissue filter; fixed bag: masked patches retained. One point per slide; dashed: identity.
All methods on the interface. In pixel space, the execution time of a whole-slide method also counts the encoding of partially masked patches. We therefore run all whole-slide baselines on the same patch-aligned cached-feature interface, with whole-patch masks, so that no method runs the patch encoder during the explanation (Table S19). On the 45 tumour slides of the patch-level AUROC (Sec. C.1), WaFR has the highest patch-level AUROC and Pointing Game, above each of the ten baseline configurations in paired AUROC by .03 to .32 (two-sided paired test, Holm ); the comparison with h-Shap uses the 31 slides that it completes within 40,000 forward passes. Forward passes and times in Table S19 are medians over all 49 tumour slides. The one-time patch feature extraction (median 37 s per slide on 10 slides) is shared by all methods and therefore does not affect the comparison between them.
Without the cache, WaFR takes 8 to 32 minutes per slide (median 16), within the range of the methods run with few forward passes, Occlusion with 50 and RISE and LIME with 256 (3 to 35 minutes, Table S20). Their localisation is worse (Pointing Game .02 to .18 against .89 for WaFR, Table S19). With its default 1,000 samples, LIME takes 2 to 8 times as long as WaFR and barely changes the localisation on this model (AUROC .815, Pointing Game .19). At their default budgets, the other methods take from about one hour to several days per slide.
Object detection on aerial images
The experiments of the main paper explain classifiers. An object detector also predicts where each object lies, but the question that an attribution map answers stays the same: which regions of the image produce the prediction score of a class. We therefore apply WaFR to a detector, on a task and a domain that the main paper does not cover, without changing its search, its baseline or its parameters.
DOTA [58] contains aerial and satellite images annotated with oriented boxes of 15 object classes. We filter 20 images of the DOTA v1.0 validation split with a longest side of at least 4,000 px that contain 1 to 3 objects of a class, the largest first and at most two per class, before computing any output of the detector. Their longest side ranges from 4,654 to 7,297 px, whereas the target objects have a median longest side of 124 px, and four of them are smaller than 30 px.
The detector is YOLO11x-OBB [29], with its public weights trained on DOTA v1.0, which processes an image in overlapping patches of 1,024 px; we explain , the largest pre-sigmoid score (logit) of class over all patches and anchors before non-maximum suppression. With px, the rule of § 3.3 of the main paper selects the hierarchical search on every image ( from 4.5 to 7.1). The methods are those of Table 1 of the main paper, compared among perturbation-based methods, with Integrated Gradients and Grad-CAM as separately evaluated internal-access references, and the metrics are those of Sec. C.3, with AUROC and the Pointing Game computed over all objects of the explained class. PartitionSHAP, ShapBPT and LIMA did not run at these image sizes because of memory or time constraints.
WaFR has the highest AUROC (.975) and EPG (.533), with a median of 310 forward passes per image, and its paired differences are positive against every other method on both metrics (Table S21; paired sign-flip tests, Holm ). Integrated Gradients has a higher Pointing Game (.800) but an AUROC of .494: since is a maximum over
| Method | AUROC mean | Pointing Game mean | EPG mean | Forward passes | ||||
| perturbation-based | ||||||||
| Occlusion | 20 | .857 .069 | +.118 [+.065, +.177] | .055 .041 | +.665 [+.473, +.840] | .037 .036 | +.495 [+.319, +.670] | 50 |
| RISE | 20 | .927 .072 | +.047 [+.005, +.113] | .250 .175 | +.470 [+.265, +.682] | .005 .007 | +.527 [+.338, +.710] | 4,096 |
| LIME | 20 | .800 .066 | +.175 [+.118, +.233] | .467 .181 | +.252 [+.060, +.447] | .009 .007 | +.524 [+.343, +.706] | 1,000 |
| KernelSHAP | 20 | .938 .050 | +.036 [+.013, +.074] | .020 .024 | +.700 [+.510, +.868] | .031 .027 | +.501 [+.317, +.677] | 1,002 |
| PartitionSHAP | – | n.r.m,t | – | |||||
| ShapBPT | – | n.r.m,t | – | |||||
| h-Shap | 20 | .759 .080 | +.216 [+.146, +.285] | .105 .090 | +.615 [+.425, +.792] | .027 .020 | +.506 [+.323, +.680] | 64 |
| Sobol | 20 | .891 .109 | +.083 [+.007, +.191] | .100 .125 | +.620 [+.408, +.815] | .046 .039 | +.487 [+.306, +.665] | 3,936 |
| HSIC | 20 | .940 .044 | +.035 [+.014, +.063] | .050 .075 | +.670 [+.470, +.857] | .022 .022 | +.510 [+.326, +.689] | 1,536 |
| LIMA | – | n.r.m,t | – | |||||
| MoXI | 20 | .507 .116 | +.467 [+.353, +.581] | .100 .125 | +.620 [+.420, +.818] | .006 .008 | +.527 [+.340, +.706] | 19,306 |
| WCAM | 20 | .900 .056 | +.075 [+.040, +.116] | .000 .000 | +.720 [+.525, +.890] | .006 .005 | +.526 [+.338, +.712] | 6,288 |
| gradient- and activation-based | ||||||||
| Integrated Gradients | 20 | .494 .012 | +.481 [+.452, +.505] | .800 .175 | −.080 [−.250, +.082] | .195 .080 | +.337 [+.194, +.475] | 51 |
| Grad-CAM | 20 | .720 .128 | +.254 [+.135, +.386] | .050 .075 | +.670 [+.443, +.875] | .008 .007 | +.525 [+.334, +.705] | 1 |
| Random map | 20 | .501 .004 | +.474 [+.447, +.493] | .000 .000 | +.720 [+.522, +.893] | .005 .007 | +.528 [+.342, +.710] | 0 |
| Centre map | 20 | .513 .113 | +.462 [+.346, +.582] | .000 .000 | +.720 [+.528, +.890] | .009 .012 | +.524 [+.333, +.707] | 0 |
| WaFR | 20 | .975 .023 | – | .720 .177 | – | .533 .188 | – | 310 |
Table S21. Object detection. : images with a map; : 95 % CI; : WaFR − method (+: WaFR is better) with 95 % CI; forward passes: median per image; bold / underline: best / second among perturbation-based methods; : memory or time limit; grey: controls.
patches, its gradient is zero outside the winning patch, so Integrated Gradients marks one object and leaves the rest of the image, including the other objects of class , tied at zero. Figure S13 shows the maps on four of the images.
Figure S13. Attribution maps: DOTA with YOLO11x-OBB. Blue boxes: zoom on the target object, coloured by the rank of each pixel within the zoom window. Symbols in Sec. G.
Limitations and failure cases
The hierarchical search refines a region only when masking it changes the prediction score by more than the relative threshold (Eq. (7) of the main paper). Evidence whose individual removal produces little or no change in the output therefore escapes refinement, whereas structures sensitive to partial masking are still resolved.
Redundant evidence. When a model aggregates multiple copies of the target through an OR rule, removing a redundant copy leaves the remaining copies active and produces little or no change in the prediction score, so its node falls below the threshold of Eq. (7) and is not expanded. In Figure S7(a, b), only one copy triggers refinement while the remaining copies stay in coarse nodes, so WaFR recovers one of two and one of four copies. Redundancy affects every removal-based method: on Synthetic Dataset scenes at 2,048 px with two or four copies of the target, explained for the 8 trained CNNs, WaFR, h-Shap, Occlusion and RISE each recover .29 to .70 of the copies, and WaFR keeps the highest mean AUROC (.974 and .942).
Figure S7. Redundant targets and a target across a node corner (). Synthetic Dataset, 1,024 px. (a, b) OR model with two and four copies of the target; (c) trained CNN with a target centred on a node corner. Yellow: expanded nodes; white: evaluated nodes not expanded; solid: target found; dashed: target missed.
Target across a node corner. Because the quadtree partitions along fixed dyadic boundaries, a target centred on the corner of four nodes is divided across four regions at every depth, which could reduce the score difference of each individual node. In Figure S7(c), however, masking part of the target still lowers the output of the trained CNN enough to exceed the relative threshold, so the search refines the nodes around the corner and resolves the target. Across the controlled scenes of Sec. B.2, WaFR attains an object recall of 1.000 both when the target aligns with the quadtree grid and when it is centred on a four-node corner. A split target thus still changes the score when partly masked; a redundant copy does not, yet every removal-based search depends on such a change in the score.
Complete tables
This section completes the tables of the main paper with 95 % bootstrap confidence intervals, Holm-corrected paired tests against the random map (Sec. C.4), and the five gradient- and activation-based methods as references.
High-resolution images
In Table 1 of the main paper, log-scale Deletion for ShapBPT, Sobol, and HSIC on VisA and the CAMELYON16 crops is evaluated from attribution maps stored at a side of 256 to 330 px (omitted from the per-side tables); on the same images, this storage agrees with native-resolution Deletion within .001 for Occlusion and within −.018 (VisA) and +.006 (crops) for RISE, whereas it distorts smooth maps on Real-IAD (+.16 for RISE), so those Real-IAD cells are omitted. Table S22 gives an interval for every entry of Table 1 (slide times of RISE, LIME, Sobol and WCAM projected; slide AUROC of RISE and LIME with 256 masks).
Table S22. Real high-resolution images and whole slides, with all intervals. VisA, Real-IAD, crops: mean over image sides. AUROC: in a window around the target; EPG: energy-based Pointing Game; slides: patch-level AUROC and time on one slide; last column: forward passes for patches of a predefined size (none: no such rule; : relevant nodes per depth, up to ). ±: 95 % CI; ∗: not statistically different from WaFR (paired test, Holm correction). Bold: best; underline: second; grey: random and centre maps; –: not computed.
| Method | VisA AUROC ↑ | VisA EPG ↑ | VisA log-scale Deletion ↓ | Real-IAD AUROC ↑ | Real-IAD EPG ↑ | Real-IAD log-scale Deletion ↓ | CAMELYON16 crops AUROC ↑ | CAMELYON16 crops EPG ↑ | CAMELYON16 crops log-scale Deletion ↓ | CAMELYON16 slides AUROC ↑ | CAMELYON16 slides Execution time (s) ↓ | Forward passes at predefined patch size |
| Random map | .500 ± .001 | .019 ± .006 | .956 ± .138 | .500 ± .000 | .029 ± .005 | .927 ± .011 | .500 ± .001 | .047 ± .010 | .899 ± .014 | .509 ± .035 | 0 | |
| Centre map | .688 ± .023 | .034 ± .010 | .986 ± .121 | .671 ± .017 | .047 ± .008 | .922 ± .011 | .681 ± .015 | .083 ± .016 | .946 ± .014 | .564 ± .045 | 0 | |
| Occlusion | .769 ± .035 | .237 ± .043 | .851 ± .108∗ | .823 ± .017 | .298 ± .021 | .818 ± .014 | .568 ± .026 | .120 ± .026 | .848 ± .024 | .625 ± .057 | 0.6 | |
| RISE | .923 ± .018∗ | .021 ± .006 | .897 ± .173 | .959 ± .010∗ | .031 ± .005 | .793 ± .022 | .620 ± .030 | .049 ± .010 | .860 ± .016 | .608 ± .047 | 38,691 | none |
| LIME | .656 ± .042 | .056 ± .010 | .916 ± .098 | .700 ± .016 | .093 ± .009 | 1.130 ± .037 | .599 ± .019 | .064 ± .013 | .871 ± .030 | .744 ± .062 | 6,390 | none |
| KernelSHAP | .691 ± .033 | .116 ± .038 | .953 ± .120 | .839 ± .016 | .243 ± .017 | .850 ± .015 | .662 ± .025∗ | .148 ± .023 | .837 ± .015 | .778 ± .051 | 80.1 | |
| PartitionSHAP | .825 ± .051 | .377 ± .073 | .794 ± .124∗ | .874 ± .021 | .745 ± .030 | .804 ± .047∗ | .697 ± .028∗ | .244 ± .042∗ | .750 ± .035∗ | .736 ± .035 | 2.4 | |
| h-Shap | .652 ± .024 | .429 ± .055 | .866 ± .115∗ | .664 ± .011 | .357 ± .038 | .851 ± .014 | .560 ± .027 | .185 ± .056 | .852 ± .019 | .922 ± .013∗ | 255 | |
| ShapBPT | .876 ± .029 | .176 ± .035 | .870 ± .111∗ | .886 ± .019 | .208 ± .017 | – | .739 ± .025 | .178 ± .028 | .802 ± .027 | – | – | |
| Sobol | .886 ± .027 | .271 ± .041 | .736 ± .064∗ | .917 ± .013 | .376 ± .021 | – | .752 ± .024 | .157 ± .029 | .896 ± .052∗ | – | 16,361 | |
| HSIC | .864 ± .028 | .187 ± .032 | .875 ± .080 | .895 ± .013 | .260 ± .019 | – | .683 ± .022∗ | .120 ± .022 | .907 ± .024 | .797 ± .043 | 766 | none |
| LIMA | .796 ± .036 | .039 ± .011 | .832 ± .076∗ | .739 ± .026 | .036 ± .006 | .890 ± .012 | .629 ± .029 | .096 ± .025 | .827 ± .022 | .725 ± .055 | 982 | |
| MoXI | .677 ± .036 | .019 ± .005 | .961 ± .121 | .765 ± .022 | .033 ± .005 | .896 ± .019 | .382 ± .037 | .039 ± .009 | .946 ± .013 | .685 ± .050 | 1,707 | |
| WCAM | .821 ± .026 | .076 ± .017 | .883 ± .061 | .772 ± .018 | .097 ± .011 | .877 ± .012 | .655 ± .030∗ | .079 ± .019 | .917 ± .017 | – | 45,939 | |
| WaFR | .919 ± .026 | .648 ± .068 | .766 ± .095 | .957 ± .011 | .895 ± .025 | .737 ± .019 | .684 ± .031 | .220 ± .045 | .774 ± .027 | .949 ± .020 | 6.3 |
Table S22.
The same image sides. Slower methods stop at a time or memory limit at the largest sides, so the methods of Table 1 do not all explain the same image sides. Table S23 compares WaFR with each perturbation-based method on the pairs of image and side that both explained: WaFR has the higher EPG in all 36 comparisons (Holm in 35) and the higher Pointing Game in 34 (Holm ).
Table S23. WaFR against each perturbation-based method on the same image sides. Paired difference WaFR − method (+: WaFR is better) with 95 % bootstrap CI over pairs of image and side; : pairs with EPG; *: not significant (two-sided paired test, Holm correction over the 12 methods).
| Method | VisA | VisA EPG ↑ | VisA Pointing Game ↑ | Real-IAD | Real-IAD EPG ↑ | Real-IAD Pointing Game ↑ | CAMELYON16 crops | CAMELYON16 crops EPG ↑ | CAMELYON16 crops Pointing Game ↑ |
| Occlusion | 252 | +.383 [-.341, +.428] | +.497 [+ .451, +.552] | 368 | +.597 [+.567, +.628] | +.619 [+ .580, +.657] | 384 | +.096 [+ .073, +.122] | +.306 [+ .262, +.351] |
| RISE | 255 | +.638 [+.590, +.685] | +.208 [+.140, +.274] | 368 | +.864 [+.840, +.886] | +.154 [+.106, +.203] | 331 | +.175 [+.139, +.212] | +.198 [+.133, +.267] |
| LIME | 251 | +.577 [+.532, +.621] | +.327 [+.273, +.381] | 328 | +.790 [+.762, +.817] | +.278 [+.233, +.327] | 292 | +.159 [+.120, +.201] | +.234 [+.175, +.287] |
| KernelSHAP | 241 | +.574 [+.526, +.622] | +.561 [+.510, +.613] | 368 | +.652 [+.623, +.682] | +.612 [+.573, +.649] | 380 | +.060 [+.033, +.089] | +.223 [+.173, +.273] |
| PartitionSHAP | 197 | +.302 [+.256, +.345] | +.184 [+.125, +.243] | 184 | +.160 [+.135, +.186] | +.073 [+.017, +.133] | 168 | +.035∗ [−.003, +.074] | +.050∗ [−.026, +.121] |
| h-Shap | 255 | +.191 [+.154, +.229] | +.315 [+.265, +.369] | 348 | +.538 [+.500, +.575] | +.610 [+.567, +.651] | 370 | +.038 [+.011, +.066] | +.199 [+.154, +.246] |
| ShapBPT | 255 | +.473 [+.429, +.517] | +.354 [+.297, +.409] | 276 | +.686 [+.655, +.717] | +.506 [+.449, +.560] | 264 | +.076 [+ .045, +.112] | +.157 [+ .099, + .213] |
| Sobol | 255 | +.342 [+.303, +.384] | +.310 [+.239, +.381] | 368 | +.519 [+ .490, + .549] | +.349 [+ .291, + .405] | 383 | +.054 [+ .031, + .078] | +.055 [+ .002, + .114] |
| HSIC | 255 | +.431 [+ .386, + .474] | +.397 [+ .332, + .464] | 368 | +.635 [+ .606, + .666] | +.505 [+ .456, + .556] | 384 | +.093 [+ .067, + .120] | +.193 [+ .135, + .256] |
| LIMA | 255 | +.615 [+ .568, + .662] | +.522 [+ .472, + .573] | 296 | +.848 [+ .820, + .876] | +.743 [+ .698, + .788] | 258 | +.133 [+ .099, + .176] | +.285 [+ .225, + .346] |
| MoXI | 255 | +.640 [+ .592, + .688] | +.400 [+ .339, + .462] | 368 | +.862 [+ .838, + .885] | +.500 [+ .448, + .555] | 294 | +.189 [+ .148, + .231] | +.127 [+ .061, + .202] |
| WCAM | 255 | +.566 [+ .522, + .612] | +.514 [+ .448, + .578] | 368 | +.798 [+ .772, + .822] | +.715 [+ .669, + .759] | 314 | +.148 [+ .115, + .186] | +.137 [+ .074, + .207] |
Table S23.
ImageNet and GridPG
ImageNet across four architectures. The intervals for both parts of Table 2 of the main paper are in Table S4, S24 and S26. Table S24 and S25 extend Table 2 of the main paper to ViT-B/16 and DeiT-B/16 and add Pointing Game and EPG localisation on ImageNet-S50 (247 of the 250 images, excluding two masks that cover the full image and one that is empty after the centre crop), alongside Fidelity (200 samples per map, Sec. C.3). WaFR explains all 1,000 ImageNet images and all 247 ImageNet-S50 images with all four models. On ViT-B/16, it has the lowest mean Deletion and the highest mean Fidelity among the perturbation-based methods, and on DeiT-B/16 the highest mean Insertion. Methods marked use reduced subsets: 61 ImageNet-S50 images for localisation, and the first 250 of the 1,000 images for Deletion, Insertion and Fidelity, whose values on all 1,000 images are in the lower group of Table S24 for ResNet-50 and VGG16; where baseline runs reached memory limits on individual images, averages are over the completed images (550 to 1,000 of 1,000, and 127 to 250 on reduced subsets).
Table S24. ImageNet, ResNet-50 and VGG16. Deletion, Insertion and Fidelity on ImageNet; Pointing Game and EPG on ImageNet-S50. : reduced subset; lower group: these methods on all 1,000 images. : 95 % CI; better than the random map (one-sided paired test, Holm correction); bold/underline: best/second among perturbation-based methods; –: not computed; n.r.m: memory or time limit.
| Method | ResNet-50 Deletion | ResNet-50 Insertion | ResNet-50 Fidelity | ResNet-50 Pointing Game | ResNet-50 EPG | VGG16 Deletion | VGG16 Insertion | VGG16 Fidelity | VGG16 Pointing Game | VGG16 EPG |
| References | ||||||||||
| Random map | .152 .009 | .352 .016 | -.050 .008 | .385 .061 | .391 .032 | .090 .007 | .238 .012 | -.043 .008 | .385 .061 | .391 .032 |
| Centre map | .193 .011 | .577 .018 | .184 .015 | .692 .057 | .500 .037 | .169 .010 | .507 .020 | .172 .014 | .692 .057 | .500 .037 |
| Gradient- and activation-based | ||||||||||
| Saliency | .126 .009 | .467 .017 | .228 .015 | .603 .061 | .474 .033 | .077 .007 | .371 .015 | .305 .018 | .692 .057 | .491 .031 |
| Integrated Gradients | .142 .010 | .381 .018 | .080 .009 | .615 .065 | .500 .032 | .093 .008 | .265 .015 | .119 .010 | .725 .057 | .529 .033 |
| SmoothGrad | .098 .007 | .626 .017 | .373 .017 | .757 .035 | .600 .034 | .068 .005 | .529 .018 | .377 .016 | .720 .034 | .568 .032 |
| Grad-CAM | .153 .009 | .685 .016 | .384 .012 | .800 .050 | .522 .032 | .109 .008 | .611 .018 | .430 .013 | .795 .050 | .531 .030 |
| Grad-CAM++ | .156 .010 | .672 .017 | .360 .014 | .806 .049 | .486 .031 | .113 .008 | .582 .018 | .435 .013 | .834 .045 | .526 .031 |
| Perturbation-based | ||||||||||
| Occlusion | .192 .015 | .655 .017 | .310 .020 | .718 .043 | .520 .036 | .107 .008 | .615 .017 | .440 .014 | .743 .039 | .528 .032 |
| RISE | .125 .019 | .735 .030 | .393 .029 | .803 .115 | .398 .063 | .111 .018 | .673 .033 | .401 .029 | .869 .082 | .398 .064 |
| LIME | .132 .017 | .714 .034 | .403 .023 | .773 .079 | .629 .059 | .108 .016 | .639 .033 | .406 .021 | .802 .082 | .611 .063 |
| KernelSHAP | .142 .010 | .645 .018 | .397 .015 | .799 .045 | .679 .033 | .117 .009 | .556 .019 | .386 .018 | .760 .048 | .655 .034 |
| PartitionSHAP | .063 .010 | .728 .032 | .496 .025 | .824 .089 | .667 .053 | .052 .009 | .656 .032 | .539 .023 | .821 .088 | .664 .052 |
| h-Shap | .332 .014 | .513 .019 | .118 .015 | .705 .047 | .666 .053 | .266 .014 | .433 .018 | .159 .015 | .745 .047 | .737 .047 |
| ShapBPT | .125 .008 | .714 .016 | .435 .015 | .826 .042 | .637 .030 | .096 .006 | .640 .019 | .457 .015 | .815 .041 | .639 .030 |
| Sobol | .113 .015 | .660 .037 | .448 .030 | .787 .099 | .657 .055 | .097 .013 | .576 .039 | .489 .028 | .885 .082 | .643 .061 |
| HSIC | .109 .007 | .674 .017 | .448 .018 | .814 .049 | .662 .029 | .100 .007 | .604 .019 | .470 .024 | .794 .057 | .637 .031 |
| LIMA | .144 .008 | .664 .034 | .248 .026 | .698 .101 | .504 .067 | .108 .014 | .607 .034 | .292 .026 | .704 .102 | .520 .071 |
| MoXI | .314 .028 | .550 .039 | -.035 .025 | .405 .115 | .363 .065 | .212 .023 | .500 .038 | .035 .025 | .362 .122 | .385 .066 |
| WCAM | .185 .023 | .648 .036 | .317 .027 | .754 .115 | .557 .059 | .173 .021 | .579 .037 | .347 .025 | .623 .131 | .528 .061 |
| Ours | ||||||||||
| WaFR | .069 .006 | .717 .016 | .537 .012 | .846 .045 | .606 .027 | .049 .004 | .640 .017 | .570 .011 | .850 .045 | .611 .028 |
| Methods marked , on all 1,000 images | ||||||||||
| RISE | .130 .010 | .736 .015 | .382 .014 | – | – | .115 .009 | .675 .015 | .386 .014 | – | – |
| LIME | .134 .008 | .718 .016 | .391 .011 | – | – | .111 .007 | .635 .013 | .388 .013 | – | – |
| PartitionSHAP | .066 .005 | .734 .015 | .494 .012 | – | – | .051 .004 | .659 .016 | .533 .012 | – | – |
| Sobol | .111 .008 | .667 .018 | .455 .014 | – | – | .097 .007 | .582 .019 | .477 .014 | – | – |
| LIMA | .141 .009 | .675 .016 | .256 .012 | – | – | .115 .008 | .605 .018 | .287 .013 | – | – |
| MoXI | .315 .014 | .564 .020 | -.050 .012 | – | – | .220 .012 | .508 .018 | .032 .012 | – | – |
| WCAM | .182 .011 | .649 .019 | .316 .014 | – | – | .167 .010 | .573 .018 | .317 .014 | – | – |
Table S24.
GridPG per model. Table S26 gives the pooled GridPG share of Table 2 for ResNet-50 and VGG16 separately. Methods marked use 100 of the 500 grids per model.
| Method | ResNet-50 | VGG16 | Pooled | Method | ResNet-50 | VGG16 | Pooled |
| Perturbation-based | References | ||||||
| Occlusion | .617 .009† | .695 .007† | .655 .005 | Random map | .250 .000 | .250 .000 | .250 .000 |
| RISE | .277 .001† | .284 .001† | .280 .001 | Centre map | .250 .000 | .250 .000 | .250 .000 |
| LIME | .662 .010† | .592 .012† | .627 .009 | Gradient- and activation-based | |||
| KernelSHAP | _.872_ .005† | .817 .006† | _.846_ .006 | Saliency | .451 .004† | .434 .005† | – |
| PartitionSHAP | .694 .016† | .802 .014† | .748 .011 | Integrated Gradients | .429 .006† | .395 .005† | – |
| h-Shap | .831 .017 | .760 .020† | .797 .013 | SmoothGrad | .548 .007† | .417 .007† | – |
| ShapBPT | .860 .005† | _.825_ .006† | .844 .004 | Grad-CAM | .816 .005† | .769 .006† | – |
| Sobol | .705 .016† | .667 .018† | .686 .012 | Grad-CAM++ | .427 .002† | .392 .004† | – |
| HSIC | .826 .006† | .744 .009† | .787 .005 | Ours | |||
| LIMA | .388 .006† | .384 .005† | .386 .004 | WaFR | .915 .008† | .896 .008† | .905 .006 |
| MoXI | .292 .005† | .325 .003† | .309 .003 | ||||
| WCAM | .613 .018† | .527 .017† | .570 .012 | ||||
| Ours | |||||||
| WaFR | .915 .008† | .896 .008† | .905 .006 |
Table S26. GridPG per model. Share of positive attribution in the target cell (†). Pooled: ResNet-50 and VGG16; notation as in Table S24.
High-resolution images per side
Table S27 gives VisA and Real-IAD for each image side . Figure S8 details Figure 3 of the main paper: it gives the Pointing Game, window AUROC and EPG of every method per image side on the CAMELYON16 crops and Real-IAD.
Table S27. VisA and Real-IAD per image side. : image side (px); AUROC: window AUROC. : 95 % CI; better than the random map (one-sided paired test, Holm correction); bold/underline: best/second; : pre-selected subset; n.r.: memory or time limit; –: not computed (map stored at a reduced side).
| VisA, 512 to 1,024 px | ||||||||||||
| Method | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ |
| Occlusion | .745 ±.046† | .359 ±.066† | .812 ±.063 | .771 ±.185 | .250 ±.217 | 1.558 ±.753 | .714 ±.059† | .270 ±.126† | .793 ±.050† | .792 ±.055† | .246 ±.069† | .761 ±.112 |
| RISEᵃ | .915 ±.029† | .047 ±.013† | .901 ±.110 | .903 ±.086 | .014 ±.010 | .680 ±.200 | .888 ±.044† | .045 ±.044† | .768 ±.078 | .928 ±.039† | .014 ±.005† | .920 ±.238 |
| LIMEᵃ | .650 ±.060† | .162 ±.033† | .942 ±.091 | .716 ±.184 | .051 ±.044 | 1.019 ±.398 | .713 ±.072† | .063 ±.049† | 1.016 ±.097 | .641 ±.060† | .037 ±.010† | .841 ±.320 |
| KernelSHAP | .673 ±.042† | .154 ±.049† | .858 ±.101 | .790 ±.119 | .327 ±.262 | 1.701 ±.986 | .675 ±.069† | .112 ±.098† | .923 ±.047 | .694 ±.056† | .074 ±.048† | .874 ±.107 |
| PartitionSHAPᵃ | .849 ±.034† | .389 ±.059† | .842 ±.078 | .756 ±.178 | .480 ±.258 | .800 ±.396 | .807 ±.065† | .258 ±.116† | .894 ±.095 | .887 ±.039† | .382 ±.069† | .638 ±.302† |
| h-Shap | .601 ±.027† | .558 ±.081† | .877 ±.087 | .566 ±.056 | .279 ±.250 | 1.630 ±.809 | .688 ±.052† | .402 ±.112† | .816 ±.061 | .646 ±.036† | .442 ±.104† | .711 ±.292† |
| ShapBPT | .898 ±.029† | .256 ±.049† | – | .818 ±.207 | .241 ±.209 | – | .874 ±.052† | .184 ±.098† | – | .886 ±.041† | .148 ±.047† | – |
| Sobolᵃ | .878 ±.031† | .417 ±.066† | – | .877 ±.135 | .201 ±.156 | – | .874 ±.044† | .277 ±.104† | – | .875 ±.053† | .284 ±.079† | – |
| HSIC | .865 ±.031† | .322 ±.059† | – | .859 ±.165 | .173 ±.143 | – | .806 ±.054† | .216 ±.108† | – | .901 ±.039† | .192 ±.058† | – |
| LIMAᵃ | .786 ±.039† | .081 ±.025† | .840 ±.083 | .754 ±.176 | .030 ±.027 | 1.097 ±.364 | .723 ±.065† | .061 ±.046† | .815 ±.065 | .814 ±.057† | .027 ±.011† | .759 ±.255 |
| MoXIᵃ | .576 ±.051† | .041 ±.012 | 1.010 ±.063 | .683 ±.122 | .014 ±.009 | .982 ±.170 | .654 ±.095† | .041 ±.040 | .921 ±.064 | .760 ±.059† | .015 ±.006† | .967 ±.139 |
| WCAMᵃ | .833 ±.032† | .151 ±.040† | .887 ±.040 | .824 ±.131 | .066 ±.053 | .875 ±.177 | .799 ±.046† | .106 ±.078† | .813 ±.065 | .812 ±.048† | .066 ±.025† | .891 ±.092 |
| WaFR | .900 ±.029† | .678 ±.082† | .828 ±.082 | .856 ±.169 | .456 ±.320 | .595 ±.146 | .886 ±.050† | .674 ±.114† | .729 ±.065† | .941 ±.034† | .683 ±.107† | .815 ±.144 |
| VisA, 1,056 to 1,168 px | ||||||||||||
| Method | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ |
| Occlusion | .869 ±.054† | .228 ±.079† | .397 ±.206 | .883 ±.045† | .338 ±.173† | .843 ±.056† | .568 ±.186 | .058 ±.029 | .730 ±.083 | .807 ±.071† | .150 ±.074† | .916 ±.161† |
| RISEᵃ | .931 ±.062† | .012 ±.008† | .514 ±.131 | .984 ±.006 | .018 ±.012† | .934 ±.058 | .954 ±.058 | .008 ±.006 | 1.604 ±1.318 | .880 ±.078† | .008 ±.005† | .853 ±.122 |
| LIMEᵃ | .800 ±.088† | .044 ±.015† | .414 ±.245 | .483 ±.123 | .035 ±.019† | 1.046 ±.060 | .663 ±.175 | .034 ±.023 | 1.055 ±.530 | .579 ±.063 | .021 ±.012† | .995 ±.123 |
| KernelSHAP | .814 ±.120† | .174 ±.117† | .433 ±.179 | .597 ±.115 | .045 ±.042† | .965 ±.026 | .591 ±.103 | .012 ±.014 | .916 ±.065 | .693 ±.103† | .032 ±.023† | .957 ±.085 |
| PartitionSHAPᵃ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ |
| h-Shap | .683 ±.060† | .549 ±.179† | .345 ±.239† | .634 ±.059† | .551 ±.203† | .897 ±.058† | .745 ±.123 | .356 ±.166 | .737 ±.233 | .656 ±.072† | .299 ±.135† | .912 ±.199† |
| ShapBPT | .879 ±.089† | .184 ±.094† | – | .907 ±.051† | .166 ±.088† | – | .942 ±.059 | .174 ±.077 | – | .807 ±.088† | .051 ±.027† | – |
| Sobolᵃ | .944 ±.046† | .311 ±.109† | – | .931 ±.040† | .352 ±.163† | – | .878 ±.116 | .154 ±.084 | – | .834 ±.129 | .173 ±.092† | – |
| HSIC | .916 ±.053† | .169 ±.066† | – | .942 ±.045† | .262 ±.136† | – | .839 ±.134 | .064 ±.026 | – | .786 ±.107 | .102 ±.058† | – |
| LIMAᵃ | .869 ±.040† | .034 ±.020† | .453 ±.148 | .850 ±.076† | .026 ±.021† | .921 ±.057 | .810 ±.127 | .040 ±.057 | .852 ±.351 | .763 ±.088† | .016 ±.009† | .916 ±.190† |
| MoXIᵃ | .678 ±.123† | .011 ±.007† | .587 ±.252 | .883 ±.069† | .022 ±.013† | .904 ±.048 | .669 ±.152 | .007 ±.005 | 1.343 ±.900 | .512 ±.117 | .005 ±.003† | .969 ±.110 |
| WCAMᵃ | .890 ±.039† | .067 ±.044† | .672 ±.065 | .880 ±.068† | .088 ±.060† | .963 ±.049 | .824 ±.083 | .033 ±.020 | 1.086 ±.414 | .703 ±.097† | .031 ±.021† | .879 ±.070 |
| WaFR | .938 ±.058† | .668 ±.214† | .327 ±.200† | .966 ±.023† | .712 ±.226† | .902 ±.051 | .944 ±.055 | .752 ±.250 | 1.106 ±.672 | .918 ±.078† | .564 ±.203† | .830 ±.152 |
| Real-IAD | ||||||||||||
| Method | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ | AUROC ↑ | EPG ↑ | log-scale Deletion ↓ |
| Occlusion | .801 ±.041† | .566 ±.056† | .856 ±.028† | .849 ±.037† | .380 ±.058† | .826 ±.029† | .847 ±.030† | .158 ±.026† | .823 ±.024† | .796 ±.026† | .086 ±.016† | .769 ±.028† |
| RISEᵃ | .935 ±.027† | .091 ±.017† | .864 ±.048† | .971 ±.014† | .025 ±.005† | .803 ±.049† | .968 ±.018† | .007 ±.001† | .788 ±.043† | .961 ±.020† | .003 ±.001† | .718 ±.050† |
| LIMEᵃ | .731 ±.030† | .277 ±.033† | 1.087 ±.067 | .684 ±.031† | .062 ±.011† | 1.146 ±.085 | .692 ±.032† | .022 ±.004† | 1.162 ±.066 | .692 ±.044† | .011 ±.002† | 1.215 ±.084 |
| KernelSHAP | .880 ±.024† | .520 ±.049† | .873 ±.032† | .896 ±.028† | .306 ±.047† | .840 ±.027† | .814 ±.036† | .091 ±.018† | .870 ±.030† | .767 ±.028† | .053 ±.011† | .816 ±.028† |
| PartitionSHAPᵃ | .859 ±.027† | .771 ±.040† | .868 ±.080 | .889 ±.036† | .719 ±.046† | .741 ±.046† | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ |
| h-Shap | .515 ±.012† | .304 ±.087† | .918 ±.080 | .571 ±.024† | .340 ±.085† | .905 ±.031† | .764 ±.027† | .467 ±.063† | .822 ±.027† | .805 ±.026† | .316 ±.052† | .759 ±.031† |
| ShapBPT | .899 ±.026† | .368 ±.036† | – | .901 ±.027† | .179 ±.029† | – | .859 ±.036† | .076 ±.022† | – | n.r.ᵗ | n.r.ᵗ | n.r.ᵗ |
| Sobolᵃ | .894 ±.024† | .657 ±.052† | – | .927 ±.033† | .487 ±.050† | – | .940 ±.025† | .233 ±.038† | – | .906 ±.023† | .127 ±.022† | – |
| HSIC | .904 ±.052† | .552 ±.055† | – | .946 ±.019† | .316 ±.047† | – | .892 ±.029† | .112 ±.018† | – | .838 ±.026† | .058 ±.011† | – |
| LIMAᵃ | .756 ±.046† | .106 ±.025† | .891 ±.023† | .788 ±.046† | .029 ±.006† | .881 ±.026† | .738 ±.048† | .007 ±.002† | .907 ±.021† | .673 ±.065† | .003 ±.001† | .880 ±.031 |
| MoXIᵃ | .661 ±.043† | .093 ±.016† | .941 ±.035† | .768 ±.042† | .026 ±.004† | .883 ±.045† | .826 ±.042† | .008 ±.002† | .989 ±.045† | .806 ±.040† | .004 ±.001† | .861 ±.037 |
| WCAMᵃ | .863 ±.036† | .261 ±.041† | .893 ±.024† | .831 ±.037† | .094 ±.018† | .880 ±.027† | .720 ±.040† | .023 ±.005† | .896 ±.023† | .674 ±.040† | .011 ±.003† | .837 ±.019† |
| WaFR | .944 ±.022† | .910 ±.046† | .819 ±.036† | .962 ±.024† | .900 ±.048† | .761 ±.043† | .963 ±.024† | .872 ±.055† | .714 ±.038† | .959 ±.022† | .898 ±.049† | .656 ±.046† |
Table S27.
Figure S8. Localisation metrics across image sides for individual methods. Dashed: gradient- and activation-based references; a curve ends at a time or memory limit.
Synthetic Dataset
On the Synthetic Dataset (Table S28), RISE uses 4,096 masks at every side, 21 to 24 times the median number of forward passes of WaFR (168 to 196 per scene), and takes about 360 times longer than WaFR on the timed 2,048 px scene (Table S16). Table 3 of the main paper compares the methods at equal numbers of forward passes.
| Occlusion | RISE | LIME | Kernel-SHAP | Partition-SHAP | h-Shap | ShapBPT | Sobol | HSIC | LIMA | MoXI | WCAM | WaFR | |
| attention pooling, px | |||||||||||||
| 256 | .967 ± .005† | .999 ± .000† | .882 ± .046† | .931 ± .011† | .846 ± .037† | .672 ± .018† | .975 ± .004† | .995 ± .003† | .988 ± .002† | .910 ± .019† | .896 ± .043 | .990 ± .006 | .998 ± .000† |
| 512 | .953 ± .005† | .999 ± .000† | .912 ± .032† | .937 ± .009† | .887 ± .029† | .825 ± .019† | .965 ± .004† | .990 ± .003† | .972 ± .004† | .893 ± .038† | .893 ± .074 | .994 ± .004 | .996 ± .000† |
| 1024 | .835 ± .011† | .993 ± .002† | .925 ± .023† | .832 ± .015† | .919 ± .030† | .899 ± .019† | .916 ± .008† | .957 ± .010† | .852 ± .015† | .831 ± .028† | .838 ± .201 | .922 ± .031 | .991 ± .002† |
| 2048 | .652 ± .021† | .987 ± .007† | .901 ± .090† | .684 ± .025† | n.r.t. | .871 ± .027† | .829 ± .020† | .797 ± .070† | .796 ± .035† | .681 ± .055† | .774 ± .169 | .961 ± .035 | .987 ± .004† |
| 4096 | .500 ± .000 | .985 ± .008† | .953 ± .037 | .568 ± .033† | n.r.t. | .742 ± .020† | n.r.t. | .795 ± .070† | .796 ± .035† | .622 ± .084 | .554 ± .048 | .916 ± .045 | .984 ± .006† |
| LSE pooling, px | |||||||||||||
| 256 | .963 ± .006† | .999 ± .000† | .925 ± .024† | .962 ± .006† | .900 ± .024† | .624 ± .001† | .978 ± .002† | .996 ± .001† | .989 ± .001† | .921 ± .041† | .927 ± .041 | .993 ± .004 | .997 ± .000† |
| 512 | .953 ± .007† | .999 ± .000† | .948 ± .020† | .947 ± .007† | .914 ± .026† | .773 ± .015† | .971 ± .004† | .990 ± .003† | .977 ± .003† | .941 ± .017† | .928 ± .035 | .987 ± .017 | .996 ± .000† |
| 1024 | .823 ± .014† | .994 ± .002† | .918 ± .035† | .819 ± .016† | .927 ± .034† | .867 ± .023† | .915 ± .008† | .958 ± .012† | .850 ± .015† | .830 ± .029† | .869 ± .058 | .937 ± .040 | .991 ± .001† |
| 2048 | .648 ± .019† | .987 ± .004† | .947 ± .018† | .678 ± .036† | n.r.t. | .850 ± .029† | .803 ± .031† | .842 ± .058† | .798 ± .037† | .691 ± .045† | .720 ± .092 | .932 ± .053 | .984 ± .006† |
| 4096 | .500 ± .000 | .980 ± .010† | .944 ± .039 | .573 ± .027† | n.r.t. | .728 ± .026† | n.r.t. | .823 ± .064† | .797 ± .037† | .527 ± .044 | .519 ± .058 | .867 ± .054 | .978 ± .011† |
| max pooling, px | |||||||||||||
| 256 | .965 ± .004† | .999 ± .000† | .923 ± .017† | .965 ± .003† | .887 ± .027† | .620 ± .003† | .977 ± .001† | .996 ± .001† | .988 ± .001† | .895 ± .025† | .817 ± .192 | .994 ± .003 | .997 ± .000† |
| 512 | .958 ± .003† | .999 ± .000† | .934 ± .017† | .944 ± .004† | .911 ± .025† | .776 ± .010† | .968 ± .002† | .990 ± .002† | .974 ± .002† | .948 ± .014† | .983 ± .019 | .998 ± .001 | .996 ± .000† |
| 1024 | .823 ± .009† | .994 ± .001† | .923 ± .022† | .820 ± .009† | .926 ± .024† | .866 ± .014† | .913 ± .005† | .958 ± .006† | .838 ± .009† | .842 ± .019† | .961 ± .030 | .930 ± .053 | .991 ± .001† |
| 2048 | .656 ± .027† | .982 ± .008† | .907 ± .074† | .681 ± .050† | n.r.t. | .822 ± .045† | .825 ± .022† | .793 ± .098† | .781 ± .045† | .715 ± .039† | .928 ± .039 | .868 ± .098 | .977 ± .008† |
| 4096 | .500 ± .000 | .962 ± .026† | .895 ± .099 | .570 ± .029† | n.r.t. | .695 ± .028† | n.r.t. | .788 ± .099† | .781 ± .045† | .558 ± .079 | .564 ± .067 | .913 ± .077 | .966 ± .014† |
| 8192 | .549 ± .021† | .709 ± .051† | .871 ± .103 | .561 ± .030† | n.r.t. | .616 ± .038† | n.r.t. | .554 ± .181 | .531 ± .105† | .530 ± .030 | .622 ± .069 | .978 ± .010† | |
| LSE, large receptive field, px | |||||||||||||
| 256 | .956 ± .009† | .999 ± .000† | .911 ± .026† | .962 ± .006† | .890 ± .030† | .634 ± .013† | .976 ± .002† | .996 ± .001† | .988 ± .002† | .903 ± .035† | .951 ± .024 | .989 ± .011 | .997 ± .000† |
| 512 | .955 ± .005† | .999 ± .000† | .936 ± .023† | .935 ± .009† | .921 ± .024† | .784 ± .015† | .966 ± .004† | .992 ± .002† | .977 ± .003† | .907 ± .042† | .914 ± .097 | .989 ± .011 | .997 ± .000† |
| 1024 | .824 ± .015† | .993 ± .001† | .916 ± .033† | .815 ± .016† | .922 ± .025† | .875 ± .020† | .911 ± .008† | .950 ± .013† | .854 ± .015† | .806 ± .024† | .832 ± .147 | .911 ± .023 | .991 ± .001† |
| 2048 | .656 ± .018† | .978 ± .008† | .956 ± .033† | .674 ± .048† | n.r.t. | .870 ± .028† | .811 ± .022† | .784 ± .056† | .788 ± .034† | .680 ± .038† | .775 ± .104 | .901 ± .052 | .983 ± .006† |
| 4096 | .500 ± .000 | .952 ± .025† | .973 ± .009 | .598 ± .034† | n.r.t. | .741 ± .025† | n.r.t. | .785 ± .055† | .788 ± .034† | .561 ± .053 | .538 ± .113 | .941 ± .050 | .976 ± .012† |
| 8192 | .572 ± .059† | .702 ± .054† | .910 ± .121 | .569 ± .037† | n.r.t. | .590 ± .056 | n.r.t. | .570 ± .067† | .589 ± .080† | .561 ± .001† | .525 ± .103 | .663 ± .192 | .989 ± .009† |
| LSE, large receptive field, fine-tuned, px | |||||||||||||
| 512 | .833 ± .013† | .995 ± .001† | .903 ± .022† | .781 ± .023† | .945 ± .023† | .886 ± .017† | .913 ± .009† | .952 ± .012† | .855 ± .017† | .759 ± .061† | .857 ± .054 | .974 ± .009 | .990 ± .002† |
| 1024 | .701 ± .015† | .981 ± .006† | .892 ± .028† | .670 ± .020† | .904 ± .018† | .855 ± .016† | .812 ± .014† | .868 ± .037† | .715 ± .019† | .663 ± .039† | .741 ± .200 | .797 ± .090 | .981 ± .005† |
| 2048 | .637 ± .030† | .894 ± .008† | .895 ± .075† | .579 ± .051† | n.r.t. | .712 ± .017† | .685 ± .031† | .695 ± .093† | .579 ± .008† | .535 ± .096 | .784 ± .140 | .730 ± .131 | .980 ± .010† |
| 4096 | .500 ± .000 | .834 ± .077† | .929 ± .012 | .534 ± .028† | n.r.t. | .573 ± .024† | n.r.t. | .579 ± .014† | .562 ± .008† | .480 ± .054 | .523 ± .200 | .626 ± .034 | .977 ± .013† |
| LSE, large receptive field, fine-tuned, px | |||||||||||||
| 512 | .975 ± .003† | .999 ± .000† | .965 ± .009† | .940 ± .009† | .916 ± .037† | .648 ± .001† | .976 ± .002† | .996 ± .002† | .990 ± .001† | .926 ± .026† | .954 ± .034 | .997 ± .001 | .997 ± .000† |
| 1024 | .955 ± .004† | .999 ± .000† | .949 ± .013† | .929 ± .034† | .912 ± .034† | .795 ± .015† | .964 ± .003† | .990 ± .002† | .974 ± .005† | .946 ± .013† | .998 ± .001 | .979 ± .015 | .996 ± .000† |
| 2048 | .816 ± .029† | .995 ± .002† | .966 ± .009† | .811 ± .026† | n.r.t. | .862 ± .032† | .897 ± .017† | .955 ± .010† | .870 ± .027† | .818 ± .053† | .947 ± .025 | .848 ± .078 | .994 ± .001† |
| 4096 | .657 ± .022† | .987 ± .008† | .972 ± .012 | .678 ± .041† | n.r.t. | .855 ± .029† | n.r.t. | .823 ± .082† | .783 ± .039† | .658 ± .083 | .837 ± .139 | .869 ± .085 | .992 ± .004† |
| 8192 | .618 ± .070 | .934 ± .038† | .876 ± .088 | .594 ± .089 | n.r.t. | .672 ± .061† | n.r.t. | .700 ± .085† | .596 ± .021† | n.r.t. | .506 ± .104 | .634 ± .121 | .978 ± .027† |
| LSE, large receptive field, fine-tuned, px | |||||||||||||
| 1024 | .976 ± .002† | .999 ± .000† | .840 ± .032† | .945 ± .009† | .925 ± .032† | .656 ± .010† | .972 ± .003† | .996 ± .001† | .988 ± .002† | .922 ± .021† | .936 ± .109 | .942 ± .074 | .996 ± .000† |
| 2048 | .963 ± .004† | .999 ± .000† | .870 ± .029† | .920 ± .015† | n.r.t. | .768 ± .039† | .962 ± .006† | .990 ± .001† | .977 ± .004† | .940 ± .024† | .984 ± .095 | .751 ± .253 | .997 ± .001† |
| 4096 | .829 ± .016† | .995 ± .002† | .871 ± .028 | .821 ± .021† | n.r.t. | .867 ± .045† | n.r.t. | .967 ± .011† | .829 ± .025† | .873 ± .023 | .893 ± .038 | .628 ± .211 | .995 ± .002† |
| LSE, large receptive field, fine-tuned, px | |||||||||||||
| 2048 | .960 ± .012† | .999 ± .000† | .675 ± .014† | .917 ± .023† | n.r.t. | .623 ± .002† | .965 ± .005† | .997 ± .002† | .990 ± .003† | .931 ± .034† | .956 ± .024 | .986 ± .011 | .996 ± .001† |
| 4096 | .954 ± .009† | .998 ± .001† | .680 ± .036† | .929 ± .015† | n.r.t. | .780 ± .029† | n.r.t. | .991 ± .004† | .975 ± .006† | .946 ± .020† | .973 ± .015 | .970 ± .014 | .994 ± .001† |
Table S28. Synthetic Dataset, window AUROC (↑). One group per model and target side, one row per image side (px). LSE: log-sum-exp pooling; receptive field 128 px unless large; : target side. Bold/underline: best/second per row; other notation as in Table S27.
Whole slides
On the 45 CAMELYON16 tumour slides with at least one patch of at least 50 % tumour, WaFR uses a median of 179 forward passes per slide (range 160 to 667) and has a Pointing Game of .889 (40 of 45 slides). Its patch-level AUROC is higher than that of Occlusion, RISE, LIME, KernelSHAP, PartitionSHAP, HSIC, LIMA and MoXI on at least 39 of the 45 slides (KernelSHAP: 36 of 38; Holm for each) and than that of h-Shap on 24 of the 31 slides that h-Shap completes within 40,000 forward passes. Its mean slide Deletion, .522, is lower than that of each of the nine perturbation-based methods (Holm for eight) and than a random patch order. Table S29 gives the patch-level AUROC on these 45 slides and the slide Deletion on the 40 slides classified as tumour by DSMIL; each method is paired with WaFR on their common slides.
Attribution galleries
Figure S9 to S13 show examples of the attribution maps of WaFR and of every method of the tables, from the same runs as the tables. Each map shows the rank of its pixels, and only the top 10 % of pixels are coloured; a dashed outline marks the ground truth, a filled dot (open circle) the top-1 pixel inside (outside) it, a black frame WaFR, and the number below a map the forward passes of that run: n.r. denotes a method with no stored map for that instance.
Figure S9. Attribution maps: ImageNet-S50 and GridPG 2 × 2 with ResNet-50, VisA with ResNet-18. GridPG outline: target cell. Symbols in Sec. G.
Figure S10. Attribution maps: Real-IAD with ResNet-18, CAMELYON16 whole slide with DSMIL. Blue boxes: zoom on the target region. Symbols in Sec. G.
Figure S11. Attribution maps: CAMELYON16 crops, ResNet-18 with attention-based MIL. Blue boxes: zoom on the target region. Symbols in Sec. G.
Figure S12. Attribution maps: Synthetic Dataset, max-pooling CNN (receptive field 128 px, target 32 px). Symbols in Sec. G.
References
- [1]Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurélien Lucchi, Pascal Fua, and Sabine Süsstrunk. SLIC superpixels compared to state-of-the-art superpixel methods. IEEE Trans. Pattern Anal. Mach. Intell., 34(11):2274–2282, 2012.pubmed.ncbi.nlm.nih.gov/22641706
- [2]Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. MVTec AD – A comprehensive real-world dataset for unsupervised anomaly detection. In CVPR, pages 9592–9600. Computer Vision Foundation / IEEE, 2019.DOI
- [3]Umang Bhatt, Adrian Weller, and Jose M. F. Moura. Evaluating and aggregating feature-based model explanations. In IJCAI, pages 3016–3022. ijcai.org, 2020.arxiv.org/abs/2005.00631
- [4]Péter Bándi, Oscar Geessink, Quirine Manson, Marcory Van Dijk, Maschenka Balkenhol, Meyke Hermsen, Babak Ehteshami Bejnordi, Byungjae Lee, Kyunghyun Paeng, Aoxiao Zhong, Quanzheng Li, Farhad Ghazvinian Zanjani, Svitlana Zinger, Keisuke Fukuta, Daisuke Komura, Vlado Ovtcharov, Shenghua Cheng, Shaoqun Zeng, Jeppe Thagaard, Anders B. Dahl, Huangjing Lin, Hao Chen, Ludwig Jacobsson, Martin Hedlund, Melih Çetin, Eren Halici, Hunter Jackson, Richard Chen, Fabian Both, Jorg Franke, Heidi Küsters-Vandevelde, Willem Vreuls, Peter Bult, Bram van Ginneken, Jeroen van der Laak, and Geert Litjens. From detection of individual metastases to classification of lymph node status at the patient level: The CAMELYON17 challenge. IEEE Trans. Medical Imaging, 38(2):550–560, 2019.DOI
- [6]Gabriele Campanella, Matthew G. Hanna, Luke Geneslaw, Allen Miraflor, Vitor Werneck Krauss Silva, Klaus J. Busam, Edi Brogi, Victor E. Reuter, David S. Klimstra, and Thomas J. Fuchs. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nature Medicine, 25(8):1301–1309, 2019.DOI
- [7]Chattopadhyay, A., Sarkar, A., Howlader, P., & Balasubramanian, V. N. (2018). Grad-cam++: Generalized gradient-based visual explanations for deep convolutional networks. WACV, 839–847.
- [8]Ruoyu Chen, Siyuan Liang, Jingzhi Li, Shiming Liu, Li Liu, Hua Zhang, and Xiaochun Cao. Less is more: Efficient black-box attribution via minimal interpretable subset selection. CoRR, abs/2504.00470, 2025.arxiv.org/abs/2504.00470
- [9]Richard J. Chen, Chengkuan Chen, Yicong Li, Tiffany Y. Chen, Andrew D. Trister, Rahul G. Krishnan, and Faisal Mahmood. Scaling vision transformers to gigapixel images via hierarchical self-supervised learning. In CVPR, pages 16123–16134. IEEE, 2022.arxiv.org/abs/2206.02647
- [10]Jessica Cooper, Ognjen Arandjelovic, and David J. Harrison. Believe the HiPe: Hierarchical perturbation for fast, robust, and model-agnostic saliency mapping. Pattern Recognit., 129:108743, 2022.arxiv.org/abs/2103.05108
- [11]Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In ICLR. OpenReview.net, 2024.arxiv.org/abs/2309.16588
- [12]Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Li, F.-F. (2009). ImageNet: A large-scale hierarchical image database. CVPR, 248–255.
- [13]Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houlby, N. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. ICLR.
- [14]Efron, B., & Tibshirani, R. (1993). An Introduction to the Bootstrap. In Springer.
- [15]Bejnordi, B. E., Veta, M., van Diest, P. J., van Ginneken, B., Karssemeijer, N., Litjens, G., van der Laak, J. A. W. M., & al., . et . (2017). Diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women with breast cancer. JAMA, 318(22), 2199–2210.
- [16]Andre Esteva, Brett Kuprel, Roberto A. Novoa, Justin Ko, Susan M. Swetter, Helen M. Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639):115–118, 2017.DOI
- [17]Thomas Fel, Rémi Cadène, Mathieu Chalvidal, Matthieu Cord, David Vigouroux, and Thomas Serre. Look at the variance! efficient black-box explanations with Sobol-based sensitivity analysis. In NeurIPS, pages 26005–26014, 2021.arxiv.org/abs/2111.04138
- [18]Fel, T., Hervier, L., Vigouroux, D., Poché, A., Plakoo, J., Cadène, R., Chalvidal, M., Colin, J., Boissin, T., Béthune, L., Martin Picard, A., Nicodeme, C., Gardes, L., Flandin, G., & Serre, T. (2022). Xplique: A deep learning explainability toolbox. In CoRR: Abs/2206.04394.
- [19]Gao, S., Li, Z.-Y., Lin, M.-H. Y., Cheng, M.-M., Han, J., & Torr, P. H. S. (2023). Large-scale unsupervised semantic segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(6), 7457–7476.
- [20]Gu, Z., Zhang, J., Liu, L., Chen, X., & Zhang, H. (2026). Phasewin: An efficient search algorithm for faithful visual attribution. In CoRR: Abs/2606.18008.
- [21]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778. IEEE Computer Society, 2016.arxiv.org/abs/1512.03385
- [22]Hense, J., Idaji, M. J., Eberle, O., Schnake, T., Dippel, J., Ciernik, L., Buchstab, O., Mock, A., Klauschen, F., & Rotter, K.-R. M. (2024). xmil: Insightful explanations for multiple instance learning in histopathology. NeurIPS.
- [23]Sture Holm. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70, 1979.DOI
- [24]Ilse, M., Tomczak, J. M., & Welling, M. (2018). Attention-based deep multiple instance learning. ICML, 2132–2141.
- [25]Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., & al., . et . (2021). Highly accurate protein structure prediction with AlphaFold. Nature, 596(7873), 583–589.
- [26]Andrei Kapishnikov, Tolga Bolukbasi, Fernanda B. Viegas, and Michael Terry. Xrai: Better attributions through regions. In ICCV, pages 4947–4956. IEEE, 2019. 4arxiv.org/abs/1906.02825
- [27]Gabriel Kasmi, Laurent Dubus, Yves-Marie Saint Drenan, and Philippe Blanc. Assessment of the reliability of a model’s decision by generalizing attribution to the wavelet domain. In NeurIPS Workshop XAI in Action: Past, Present, and Future Applications, 2023. 2, 4, 22, 23arxiv.org/abs/2305.14979
- [28]Gabriel Kasmi, Amandine Brunetto, Thomas Fel, and Jayneel Parekh. One wave to explain them all: A unifying perspective on feature attribution. In ICML. PMLR / OpenReview.net, 2025. 2arxiv.org/abs/2410.01482
- [29]Rahima Khanam and Muhammad Hussain. YOLOv11: An overview of the key architectural enhancements. CoRR, abs/2410.17725, 2024. 22, 29arxiv.org/abs/2410.17725
- [30]Stefan Kolek, Duc Anh Nguyen, Ron Levie, Joan Bruna, and Gitta Kutyniok. Cartoon explanations of image classifiers. In ECCV (12), pages 443–458. Springer, 2022. 1, 2arxiv.org/abs/2110.03485
- [31]Stefan Kolek, Robert Windesheim, Hector Andrade-Loarca, Gitta Kutyniok, and Ron Levie. Explaining image classifiers with multiscale directional image representation. In CVPR, pages 18600–18609. IEEE, 2023. 2arxiv.org/abs/2211.12857
- [32]Bin Li, Yin Li, and Kevin W. Eliceiri. Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning. In CVPR, pages 14318–14328. Computer Vision Foundation / IEEE, 2021. 2, 4, 13, 22DOI
- [33]Geert Litjens, Thijs Kooi, Babak Ehteshami Bejnordi, Arnaud Arindra Adiyoso Setio, Francesco Ciompi, Mohsen Ghafoorian, Jeroen A. W. M. van der Laak, Bram van Ginneken, and Clara I. Sanchez. A survey on deep learning in medical image analysis. Medical Image Anal., 42:60–88, 2017. 1DOI
- [34]Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In ICLR, 2017. 23arxiv.org/abs/1608.03983
- [35]Loshchilov, I., & Hutter, F. (2019). Decoupled weight decay regularization. ICLR.
- [36]Lundberg, S. (2020). The SHAP partition explainer. In Documentation of the SHAP library.
- [37]Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NIPS, pages 4765–4774, 2017. 1, 2, 3, 4, 16, 23arxiv.org/abs/1705.07874
- [38]Stéphane Mallat. A theory for multiresolution signal decomposition: The wavelet representation. IEEE Trans. Pattern Anal. Mach. Intell., 11(7):674–693, 1989. 1, 12, 14DOI
- [39]Paul Novello, Thomas Fel, and David Vigouroux. Making sense of dependence: Efficient black-box explanations using dependence measure. In NeurIPS, 2022. 1, 2, 4, 6, 16, 23, 25arxiv.org/abs/2206.06219
- [40]Vitali Petsiuk, Abir Das, and Kate Saenko. Rise: Randomized input sampling for explanation of black-box models. In BMVC, page 151. BMVA Press, 2018. 1, 2, 3, 4, 6, 14, 15, 16, 23, 24arxiv.org/abs/1806.07421
- [41]Pinheiro, P. H. O., & Collobert, R. (2015). From image-level to pixel-level labeling with convolutional networks. CVPR, 1713–1721.
- [42]Sukrut Rao, Moritz Böhle, and Bernt Schiele. Towards better understanding attribution methods. In CVPR, pages 10213–10222. IEEE, 2022. 4, 14, 20, 22, 24DOI
- [43]Rashid, M., Elshawi, R. G., Ampompare, E., Ferrari, D., & Verda, D. (2021). Shappt: Image feature attributions using data-aware binary partition trees. AAAI, 25099–25107.
- [44]Marco Túlio Ribeiro, Sameer Singh, and Carlos Guestrin. ”why should I trust you?”: Explaining the predictions of any classifier. In KDD, pages 1135–1144. ACM, 2016. 1, 2, 4, 23arxiv.org/abs/1602.04938
- [45]Yao Rong, Tobias Leemann, Vadim Borisov, Gjergji Kasneci, and Enkeljeda Kasneci. A consistent and efficient evaluation strategy for attribution methods. In ICML, pages 18770–18795. PMLR, 2022. 6, 15, 25arxiv.org/abs/2202.00449
- [46]Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-cam: Visual explanations from deep networks via gradient-based localization. ICCV, 618–626.
- [47]Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 4, 15, 22DOI
- [48]Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In ICLR (Workshop Poster), 2014. 1, 4, 23arxiv.org/abs/1312.6034
- [49]Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda B. Viegas, and Martin Wattenberg. Smoothgrad: removing noise by adding noise. CoRR, abs/1706.03825, 2017. 2, 4, 23arxiv.org/abs/1706.03825
- [50]Leslie N. Smith and Nicholay Topin. Super-convergence: Very fast training of residual networks using large learning rates. CoRR, abs/1708.07120, 2017. 23arxiv.org/abs/1708.07120
- [51]Sumiyasu, K., Kawamoto, K., & Kera, H. (2022). Identifying important group of pixels using interactions. CVPR, 6017–6026.
- [52]Mukund Sundararajan, Ankur Taly, and Qi Yan. Axiomatic attribution for deep networks. In ICML, pages 3319–3328. PMLR, 2017. 1, 4, 23arxiv.org/abs/1703.01365
- [53]Jacopo Teneggi, Alexandre Luster, and Jeremias Sulam. Fast hierarchical games for image explanations. IEEE Trans. Pattern Anal. Mach. Intell., 45(4):4494–4503, 2023. 1, 2, 4, 17, 20, 23DOI
- [54]Tibshirani, R. (1996). Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1), 267–288.
- [55]Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In ICML, pages 10347–10357. PMLR, 2021. 22arxiv.org/abs/2012.12877
- [56]Wang, C., Zhu, W., Gao, B.-B., Gan, Z., Zhang, J., Guo, Z., Qiu, S., Chen, M., & Ma, L. (n.d.). Real-iad: A real-world multi-view.
- [57]Haofan Wang, Zifan Wang, Mengnan Du, Fan Yang, Zijian Zhang, Sirui Ding, Piotr Mardziel, and Xia Hu. Score-cam: Score-weighted visual explanations for convolutional neural networks. In CVPR Workshops, pages 111–119. Computer Vision Foundation / IEEE, 2020. 2, 5, 15, 25arxiv.org/abs/1910.01279
- [58]Gui-Song Xia, Xiang Bai, Jian Ding, Zhen Zhu, Serge J. Belongie, Jiebo Luo, Mihai Datcu, Marcello Pelillo, and Liangpei Zhang. DOTA: A large-scale dataset for object detection in aerial images. In CVPR, pages 3974–3983. Computer Vision Foundation / IEEE Computer Society, 2018. 22, 29arxiv.org/abs/1711.10398
- [59]Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV (1), pages 818–833. Springer, 2014. 1, 2, 4, 16, 22arxiv.org/abs/1311.2901
- [60]Zhang, J., Lin, Z., Brandt, J., Shen, X., & Sclaroff, S. (2016). Top-down neural attention by excitation backprop. ECCV (4), 543–559.
- [61]Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, and Onkar Dabeer. Spot-the-difference self-supervised pre-training for anomaly detection and segmentation. In ECCV (30), pages 392–408. Springer, 2022. 4, 13, 20, 22, 25arxiv.org/abs/2207.14315














