Deep neural networks (DNN) have provided a new burst of research in the machine learning community. However, their complexity obfuscates the underlying processes that drive their inferences. This has lead to a new field ofexplainable AI (XAI). A variety of tools are being developed to enable researchers to peer into the inner workings of DNNs. One such tool is the XAI saliency map. It is generally used with image or video processing applications and is supposed to show what parts of an image or video frame are most important to a network’s decisions. The seemingly most popular methods derive a gradient saliency map by back-propagating a gradient from the end of the network and project it onto an image plane [22, 30, 25, 26, 19]
. The gradient can typically be from a loss function, layer activation or class activation. Thus in order to get fine-grained details, it requires storage of the data necessary to compute a full backward pass on the input image.
Several newer methods attempt to iteratively augment the image or a mask in ways that affect the precision of the results [6, 1]. Additionally, saliency map encoders can be trained within the network itself . Both of these methods have a distinct advantage of being more self-evidently empirical when compared with gradient techniques. Class Activation Map (CAM) methods [21, 2, 18] efficiently map a specified class to a region in an image, but the saliency map is very coarse. They generally use a method like Guided Backprop  to add finer pixel level details. This requires a full backwards pass through the network, and it adds significant memory and computational overhead to CAM solutions relative to just computing the CAM alone. Generally speaking, CAM methods compute gradients as well, but they only do so on the last few network layers. We will differentiate them from full pass gradient techniques by referring to them as CAM methods.
1.1 Efficiency and Why it Matters Here
Most fine resolution saliency map methods require many passes through the network in order to generate results or train. The gradient methods hypothetically would require just one backwards pass, but often require as many as 15 in order to give an accurate rendering . This is not always a problem in the lab when a person has a powerful GPU development box. However, what if one would like to see the workings of the network at training time or even run time? This can be a serious hurdle when running a network on mobile or embedded platforms. It is not uncommon for hardware to be barely fast enough to process each image from a video source. Running a full backward pass can lead to dropped frames. Additionally, viewing or saving the saliency map for each frame is infeasible. Another problem is that some platforms may not have the memory capacity to save all the information required for a backward pass. Gradient based methods cannot work in these instances. Sometimes this can even be the case with powerful hardware. Satellite images can be vary large and potentially exhaust generous resources. An efficient method would enable developers in these areas to get feedback in the field and aid in debugging or understanding the behavior of a network.
Here we show a method of computing an XAI saliency map which is highly efficient. The memory and processing overhead is several orders of magnitude lower than the commonly used gradient methods. This makes it feasible in any resource limited environment. Also, since we demonstrate empirically that our method is either similar or more accurate than the most commonly used gradient methods, it can be used to speed up run-time in any situation. By combining it with an efficient CAM method, it obtains better quantitative results than state-of-the-art methods which also require quite a bit more time to compute.
2.1 Saliency Map Derivation
We were looking for a method to compute saliency maps based on certain conditions and assumptions.
The method used needs to be relatively efficient to support rapid analysis at both test time and during DNN training.
The method should have a reasonable information representation. As a DNN processes data, the flow of information should become localized to areas which are truly important.
Our approach works by creating saliency maps for the output layer of each scale in a neural network and then combines them. We can understand scale by noting that the most commonly used image processing DNNs work on images with filter groups at the same scale which down-sample the image and pass it to the group of filters at the next scale, and so on. Given a network like ResNet-50  with in input image size of 224x224, we would have five scale groups of size 112x112, 56x56, 28x28, 14x14 and 7x7. It is at the end of these scale groups where we are interested in computing saliency. In this way, our approach is efficient and is computed during the standard forward pass through the network. No extra pass is needed.
To achieve localization of information, we measure statistics of activation values arising at different input locations. Given an output activation tensorwith spatial indices and depth index from some layer . In our case is a ReLU . We apply a function to each column at over all depths . This yields a 2D saliency map where
. We process the tensor after it has been batch-normalized
and processed by the activation function. When we compute Truncated Normal statistics as an alternative in later section, we take the tensor prior to the activation function.
Finally, to capture our intuition about the informativeness of an output activation tensor, we derived
by creating a special simplification of the maximum likelihood estimationGamma Scale parameter . One way we can express it is:
To avoid log zero, we add to each
. How mean and variance relate seems readily apparent with the square bracketed part being the computational formula for the standard deviation with values taken torather than squared. This is preceded by a typical mean estimate. This meets the third requirement we mentioned. This simplification is Saliency Map Order Equivalent (SMOE) to the full iterative (and expensive) scale parameter estimation. We define SMOE as follows. Given saliency map and where we may have , if we sort the pixels by value, then will be sorted in exactly the same order as . That means that the most salient location is exactly the same in both and . This also means that if we create a binary mask of the most salient pixels, the mask for both and will also be exactly the same. SMOE is preserved if for instance, we apply independent monotonic functions to a saliency map. As such, we may as well strip these away to save on computation. Tie values may create an imperfect equivalence, but we assert that these should be very rare and not affect results by a measurable amount.
Using as the mean of each column in , we can see the information relation more clearly if we simplify Eq 1 further which gives us our SMOE Scale method:
The resemblance to conditional entropy is apparent. However, since the values in Eq 2
are not probabilities, this does not fit the precise definition of it. On the other hand, the interpretation is fairly similar. It is the mean activation multiplied by the information we would gain if we knew the individual values which formed the mean. Put in traditional terms, it is the information in the mean conditioned on the individual values. The method is sensitive to variations beyond the mean value which might be uninformative if all activations are similar. Since activations are principally the result of products, using a log statistic may also make more sense. Numerical examples of this method at work can be seen inAppendix Table 3 along with more information on the derivation. To create a 2D saliency map , we simply apply Eq 2 at each spatial location with column elements in the 3D activation tensor for a given input image.
2.2 Combined Saliency Map Generation
For each input image, we derive five saliency maps. For different networks, this number may vary. Given a network such as a ResNet , AlexNet , VGG Net  or DenseNet  we compute saliency on the final tensor computed at each spatial scale. Recall that most image classification networks process images in a pipeline that processes an image in consecutive groups of convolution layers where each group downsamples the image by 1/2x before passing it onto the next. It is just prior to the downsampling that we compute each saliency map. Computing saliency across image scales is a classical technique . This is also similar to the method used in the XAI saliency technique described in .
To make our maps easier to visualize or combine together, we normalize them from 0 to 1 by squashing them with the normal cumulative distribution function
. Here mean and standard deviation are computed independently over each saliency map. We then create a combined saliency map by taking the weighted average of the maps. Since they are at different scales, they are upsampled via bilinear interpolation to match the dimensions of the input image. Givensaliency maps that have been bilinear interpolated (upsampled) to the original input image size , they are then combined as:
Note that technically, we compute before we upsample. Weighting is very useful since we expect that saliency maps computed later in the network should be more accurate than saliency maps computed earlier as the network has reduced more irrelevant information in deeper layers, distilling relevant pixels from noise . Network activity should be more focused on relevant locations as information becomes more related to the message. We observe this behavior which can be seen later in Figure 4. A saliency map generation example can be seen in Figure 1 with many more examples in Appendix Figures 10 and 11.
The advantages of creating saliency maps this way when compared with most gradient methods are:
Pro: This is relatively efficient, requiring processing of just five low cost layers during a standard forward pass.
Pro: We can easily visualize the network at different stages (layers).
2.3 Visualizing Multiple Saliency Maps
One advantage to computing multiple saliency maps at each scale is that we can get an idea of what is happening in the middle of the network. However, with so many saliency maps, we are starting to be overloaded with information. This could get even worse if we decided to insert saliency maps after each layer rather than just at the end of each scale. One way to deal with this is to come up with a method of combining saliency maps into a single image that preserves useful information about each map. Such a composite saliency map should communicate where the network is most active as well as which layers specifically are involved. We call our method Layer Ordered Visualization of Information (LOVI). We do this by combining saliency maps using an HSV color scheme  where hue corresponds to which layer is most active at a given location. That is, it shows the mean layer around which a pixels activity is centered. Saturation tells us the uniqueness of the activation. This is the difference between the maximum value at a location and the others. Value (intensity) corresponds to the maximal activation at that location. Basically, this is a pixel’s importance.
If only one layer is active at a location, the color will be very saturated (vivid colors). On the other hand, if all layers are equally active at a given location, the pixel value will be unsaturated (white or gray). If most of the activation is towards the start of a network, a pixel will be violet or blue. If the activation mostly happens at the end, a pixel will be yellow or red. Green indicates a middle layer. Thus, the color ordering by layer follows the standard order of the rainbow. Examples can be seen in Figure 2. Given saliency maps (in this instance, we have maps), we stack them into a tensor . Note that all because of Eq 3 and they have been upsampled via bilinear interpolation to match the original input image size. Given:
is basically the center of mass of activation for column vectorat each location in :
Saturation is the inverse of the ratio of the values in compared to if they are all equal to the maximum value. So for instance, if one value is large and all the other values are small, saturation is high. On the other hand, if all values are about the same (equal to the maximum value), saturation is very small:
Value is basically just the maximum value in vector :
Once we have the HSV values for each location, we then convert the image to RGB color space in the usual manner.
2.4 Quantification Via ROAR and KAR
 proposed a standardized method for comparing XAI saliency maps. This extends on ideas proposed by [4, 20] and in general hearkens back to methods used to compare computational saliency maps to psychophysical observations . The general idea is that if a saliency map is an accurate representation of what is important in an image, then if we block out salient regions, network performance should degrade. Conversely, if we block out non-salient regions, we should see little degradation in performance. The ROAR/KAR metrics measure these degradations explicitly. The KAR metric (Keep And Retrain) works by blanking out the least salient information/pixels in an input image, and the ROAR (Remove And Retrain) metric uses the contrary strategy and removes the most salient pixels. Figure 3 shows an example of ROAR and KAR masked image. A key component to the ROAR/KAR method is that the network needs to be retrained with saliency masking in place. This is because when we mask out regions in an input image, we unavoidably create artifacts. By retraining the network on masked images, the network learns to ignore the new artifacts and focus on image information.
We will give a few examples to show why we need both metrics. If a saliency map is good at deciding which parts of an image are least informative but gets the ranking of the most salient objects wrong, ROAR scores will suggest the method is very good. This is because it masks out the most salient locations in one large grouping. However, ROAR will be unable to diagnose that the saliency map has erroneously ranked the most informative locations until we have removed 50% or more of the salient pixels. As such, we get no differentiation between the top 1% and the top 10% most salient pixels. On the other hand, KAR directly measures how well the saliency map has ranked the most informative locations. By using both metrics, we can quantify the goodness of both the most and least salient locations in a map.
3 Quantitative Experiments
3.1 Comparing Different Efficient Statistics
We tested our SMOE Scale saliency map method against several other statistical measures using three different datasets that have fairly different tasks and can be effectively trained from scratch. The sets used are ImageNet, CSAIL Places  and COWC . ImageNet as a task focuses on foreground identification of objects in standard photographic images. Places has more emphasis on background objects, so we would expect more spatial distribution of useful information. COWC, Cars Overhead With Context is an overhead dataset for counting as many as 64 cars per image. We might expect information to be spatially and discretely localized, but distributed over many locations. In summary, these three datasets are expected to have fairly different distributions of important information within each image. This should give us more insight into performance than if we used several task-similar datasets (e.g. Three photographic foreground object sets such as; ImageNet + CUB (birds)  + CompCars ).
For compatibility with , we used a ResNet-50 network . We also show performance on a per layer basis in order to understand the accuracy at different levels of the network. For comparison with our SMOE Scale method, we included any statistical measure which had at least a modicum of justification and was within the realm of the efficiency we were aiming for. These included parameter and entropy estimations from Normal, Truncated-normal, Log-normal and Gamma Distribution models. We also tested Shanon Entropy and Renyi Entropy. To save compute time, we did a preliminary test on each method and did not continue using it if the results qualitatively appeared very poor and highly unlikely to yield good quantitative results. Normal entropy was excluded because it is SMOE with the Normal standard deviation. This left us with nine possible statistical models which we will discuss in further detail.
|Difference Score||Information Score|
|Trunc Normal Ent||1.56||0.77||1.64||1.32||1.00||0.56||1.32||0.96|
|Trunc Normal Std||1.51||0.71||1.64||1.28||1.00||0.52||1.32||0.94|
|Trunc Normal Mean||1.38||0.67||1.64||1.23||0.96||0.49||1.32||0.92|
|Log Normal Ent||1.16||0.66||1.44||1.09||0.82||0.47||1.20||0.83|
|Log Normal Mean||1.46||0.55||1.09||1.03||0.54||0.35||0.88||0.59|
. Quartile rankings for methods can be seen inAppendix Table 7
Saliency maps for each method are computed over each tensor column in the same way as we did with our SMOE Scale metric. The only difference is with the truncated-normal statistic which computes parameters prior to the ReLU layer. We should note that 
uses a truncated normal distribution to measure network information for network design. Recall that we have five saliency map layers. They are at the end of each of the five network spatial scales. We test each one at a time. This is done by setting the network with pre-trained weights for the specific dataset. Then, all weights in the network which come after the saliency mask to be tested are allowed to fine-tune over 25 epochs. Otherwise, we used the same methodology as for data augmentation etc. This is necessary in order to adapt the network to mask related artifacts as specified in the ROAR/KAR protocol. At the level where the saliency map is generated, we mask out pixels in the activation tensor by setting them to zero. For this experiment, we computed the ROAR statistic for the 10% least salient pixels. For KAR, we computed a map to only let through the top 2.5% most salient pixels. This creates a more similar magnitude between ROAR and KAR measures. Layer scores for the top five methods can be seen in Figure 4.
We combine layer scores two different ways since ROAR and KAR scores are not quite proportional. These methods both yield very similar results. The first method takes the improvement difference between tested method’s score and a randomized mask score. We have five KAR scores for a method. We have five ROAR scores for a method and five scores from a random mask condition. This corresponds to each saliency map spatial scale which we tested. We compute a simple difference score as:
The second method is an information gain score given by:
Table 1 shows the results.
3.2 Comparison With Popular Methods
|Integrated Grad ||3.62||-3.58||0.03||Slow||Fine|
|Guided Backprop ||3.60||-3.57||0.04||Medium||Fine|
|Trunc Normal Ent + Layer Weights [1,1,1,1,1]||3.61||-2.47||1.14||Fast||Fine|
|SMOE Scale + Layer Weights [1,1,1,1,1]||3.62||-2.46||1.15||Fast||Fine|
|SMOE Scale + Layer Weights [1,2,3,4,5]||3.62||-2.34||1.28||Fast||Fine|
|Normal Std + Prior Layer Weights||3.61||-2.32||1.29||Fast||Fine|
|Trunc Normal Ent + Prior Layer Weights||3.61||-2.31||1.30||Fast||Fine|
|SMOE Scale + Prior Layer Weights||3.61||-2.31||1.30||Fast||Fine|
|Integrated Grad -w- SmoothGrad Sq.||3.56||-2.68||0.88||Slowest||Fine|
|Guided Backprop -w- SmoothGrad Sq.||3.49||-2.33||1.16||Slow||Fine|
|Gradient -w- SmoothGrad Sq.||3.52||-2.12||1.41||Slow||Fine|
|SMOE Scale + Prior Wts. -w- GradCAM++||3.66||-2.22||1.44||Fast||Fine|
We compare our method with three popular saliency map methods using the standard ROAR/KAR methodology. These are Gradient Heatmaps , Guided Backprop  and Integrated Gradients . We also include conditions with all three using SmoothGrad-Squared  which generally gives the best results. We create a GradCAM++ 
comparison by creating a CAM saliency map based on the maximum class activation logit and not the ground truth class. Creating a saliency map based on the ground truth would give it a rather unfair advantage.
We compare three different weighting strategies when combining the saliency maps from all five scales. In the first strategy, we weight all five maps equal [1,1,1,1,1]. In the second, we use a rule-of-thumb like approach where we weight the first layer the least since it should be less accurate. Then each successive layer is weighted more. For this we choose the weights to be [1,2,3,4,5]. The third method weights the maps based on the expected accuracy given our results when we computed Table 1. These prior weights are [0.18, 0.15, 0.37, 0.4, 0.72]. The reason for showing the rule-of-thumb results is to give an idea of performance given imperfect weights since one may not want to spend time computing optimal prior weights.
To fairly compare the three popular saliency map methods with our own, we adopt a methodology as close as possible to . We train a ResNet-50 from scratch on ImageNet with either ROAR or KAR masking (computed by each of the different saliency mapping approaches in turn) at the start of the network. Otherwise, our training method is the same as . The comparison results are shown in Figure 5. We can try and refine these results into fewer scores by subtracting the sum of the ROAR scores from the sum of the KAR scores. The results can be seen in Table 2
. The KAR score for our method is superior to all three gradient methods. The ROAR score is better than Guided Backpropagation and Integrated Gradients. This suggests our method is superior at correctly determining which locations aremost salient, but is not as good as Gradient Heatmaps for determining which parts of the image are least informative. We improve the results without sacrificing much efficiency by combining SMOE Scale with GradCAM++. This is done by simply multiplying the two maps together pixelwise. If we invert the CAM map by subtracting it from 1 and then multiply with SMOE Scale, this gives us a Non-Class map. These are things the network found interesting, but are not part of the class decision. An example of the combination can be seen in figure 6.
4.1 Method Efficiency
The method as proposed is much faster than the three gradient baseline comparison methods. Given a ResNet-50 network, we only process five layers. The other methods require a special back propagation step over all layers. We can compute the cost in time by looking at operations that come from three sources. The first is the computation of statistics on tensors in five layers. The second is the normalization of each 2D saliency map. Third we account for the cost of combing the saliency maps.
Ops for our solution ranges from 1.1x107 to 3.9x107 FLOPs (using terminology from ) for a ResNet-50. The network itself has 3.8x109 FLOPs in total. The range in our count comes from how we measure Log and Error Function operations that are computationally expensive compared to more standard ops and whose implementations vary. We estimate the worst case from available software instantiations. Most of the work comes from the initial computation of statistics over activation tensors. This ranges from 9.2x106 to 3.7 x 107 FLOPs. In total, this gives us an overhead of 0.3% to 1.0% relative to a ResNet-50 forward pass. All gradient methods have a nominal overhead of at least 100%. A breakdown of the FLOPs per layer and component can be seen in Table 6 in the appendix.
Compared to any method which requires a full backward pass, such as gradient methods, our solution is nominally between 97x and 344x faster for non-SmoothGrad techniques, which according to  performs poorly on ROAR/KAR scores. We are between 1456x and 5181x faster than a 15-iteration SmoothGrad implementation that yields the competitive results in Table 2. 15 iterations as well as other parameters was chosen by  who describe this selection in more detail.
The memory footprint of our method is minuscule. Computation over tensors can be done inline which leaves the largest storage demand being the retention of 2D saliency maps. This is increased slightly by needing to store one extra 112x112 image during bilinear up-sampling. Peak memory overhead related to data is about 117 kilobytes per 224x224 input image.
4.2 SMOE Scale is The Most Robust of the Efficient Statistical Measures
SMOE Scale is the only metric without a failure case among all the statistics we tested. We define a failure case as one of:
1: An information or difference score that ranks in the bottom quartile for a condition.
2: An information or difference score at or below zero for a given condition. This means it can be worse than a random saliency map.
3: A visually noticeable low score for a condition.
All statistics tested with the exception of SMOE Scale fail with case 1 and 3. Shannon entropy does not fail with case 2 and is the only one along with SMOE Scale which passes this one. However, it ranks fourth by difference score and fifth by information score.
SMOE Scale is the most robust statistic to use in terms of expected accuracy because it both scores the best and seems not to do poorly for any condition. The next highest scoring statistics, standard deviation and truncated normal entropy, are no better than a random map on layer 1. Figure 7
shows why this may be. It is important to note that layer 1 contains the finest pixel details and should be expected to be critical in rendering visual detail in the final combined saliency map. Full quartile rankings for the tested statistics can be seen inAppendix Table 7.
We have created a method of XAI saliency which is extremely efficient and is quantitatively comparable or better than several popular methods. When combined with a CAM method it is the most accurate method we have tested and is still very fast. It can also be used to create a saliency map with interpretability of individual scale layers. Future work include expanding it to non-DNN architectures.
Chang, C.H., Creager, E., Goldenberg, A., Duvenaud, D.: Explaining image classifiers by adaptive dropout and generative in-filling. In: ICLR (2018)
-  Chattopadhyay, A., Sarkar, A., Howlader, P., Balasubramanian, V.N.: Grad-cam++: Improved visual explanations for deep convolutional networks. In: WACV (2018)
-  Choi, S.C., Wette, R.: Maximum likelihood estimation of the parameters of the gamma distribution and their bias. Technometrics 11, 683–690 (1969)
-  Dabkowski, P., Gal, Y.: Real time image saliency for black box classifiers. In: NIPS (2017)
-  Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: Imagenet: A large-scale hierarchical image database. In: CVPR (2009)
-  Fong, R., Vedaldi, A.: Interpretable explanation of black boxes by meaningful perturbation. In: ICCV (2017)
-  He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: arXiv:1512.03385 (2015)
-  Hooker, S., Erhan, D., Kindermans, P.J., Kim, B.: Evaluating feature importance estimates. In: NIPS (2019)
-  Huang, G., Liu, Z., Weinberger, K.Q., van der Maaten, L.: Densely connected convolutional networks. In: CVPR (2017)
-  Ioffe, S., Szegedy, C.: Batch normalization: Accelerating deep network training by reducing internal covariate shift. In: ICML (2015)
-  Itti, L., Koch, C.: Computational modelling of visual attention. Nature Neuroscience 2, 194–203 (2001)
-  Itti, L., Niebur, E., Koch, C.: A model of saliency-based visual attention for rapid scene analysis. IEEE Transactions on Pattern Analysis & Machine Intelligence 20, 1254–1259 (1998)
-  Jeong, J., Shin, J.: Training cnns with selective allocation of channels. In: ICML (2019)
-  Joblove, G.H., Greenberg, D.: Color spaces for computer graphics. Computer Graphics 12, 20–25 (1978)
-  Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. In: NIPS (2013)
Mundhenk, T.N., Konjevod, G., Sakla, W.A., Boakye, K.: A large contextual dataset for classification, detection and counting of cars with deep learning. In: ECCV (2016)
-  Omeiza, D., Speakman, S., Cintas, C., Weldemariam, K.: Smooth grad-cam++: An enhanced inference level visualization technique for deep convolutional neural network models. In: arXiv:1908.01224 (2019)
-  Patro, B.N., Lunayach, M., Patel, S., Namboodiri, V.P.: U-cam: Visual explanation using uncertanty based class activation maps. In: ICCV (2019)
-  Samek, W., Binder, A., Montavon, G., Lapuschkin, S., Müller, K.R.: Evaluating the visualization of what a deep neural network has learned. IEEE Transactions on Neural Networks and Learning Systems 28, 2660–2673 (2017)
-  Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., Batra, D.: Grad-cam: Visual explanations from deep networks via gradient-based localization. In: ICCV (2017)
-  Simonyan, K., Vedaldi, A., Zisserman, A.: Deep inside convolutional networks: Visualising image classification models and saliency maps. In: arXiv:1312.6034 (2014)
-  Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. In: ICLR (2015)
-  Smilkov, D., Thorat, N., Kim, B., Viégas, F., Wattenberg, M.: Smoothgrad: removing noise by adding noise. In: arXiv:1706.03825 (2017)
-  Springenberg, J.T., Dosovitskiy, A., Brox, T., Riedmille, M.: Striving for simplicity: The all convolutional net. In: ICLR Workshop (2015)
-  Sundararajan, M., Taly, A., Yan, Q.: Axiomatic attribution for deep networks. In: ICML (2017)
-  Tishby, N., Pereira, F.C., Bialek, W.: The information bottleneck method. In: arXiv:physics/0004057 (2000)
-  Welinder, P., Branson, S., Mita, T., Wah, C., Schroff, F., Belongie, S., Perona, P.: Caltech-UCSD Birds 200. Tech. Rep. CNS-TR-2010-001, California Institute of Technology (2010)
-  Yang, L., Luo, P., Loy, C.C., Tang., X.: A large-scale car dataset for fine-grained categorization and verification. In: CVPR (2015)
-  Zeiler, M.D., Fergus, R.: Visualizing and understanding convolutional networks. In: ECCV (2014)
Appendix 0.A Appendix
0.a.1 Derivation of SMOE Scale
The maximum likelihood estimator of scale in the Gamma probability distribution is given as:
This requires the additional iterative estimation of the shape parameter starting with an estimate :
Then we get to within 1.5% of the correct answer via:
Then we use the Newton-Ralphson update to finish:
is SMOE to , so we rewrite Eq 10 with the reciprocal of and optionally use the more efficient as:
This then simplifies to:
We can see the results this gives with different kinds of data in Table 3
|Input Values||Mean||STD||SMOE Scale|
0.a.2 More Examples of KAR Saliency Masks
0.a.3 More Examples of Combined Saliency Maps
0.a.4 More Examples of LOVI Saliency Maps
0.a.5 Comparing Different Efficient Statistics in more Detail
This subsection shows the raw scores for each statistic over each dataset.
|KAR By Layer||ROAR By Layer|
|Log Normal Mean||55.98||32.28||51.08||47.21||62.02||57.20||68.22||44.42||34.98||18.50|
|Log Normal ENT||53.01||42.52||51.13||46.85||62.26||47.92||62.64||38.73||34.50||18.91|
|Trunc Normal Mean||50.67||49.69||50.69||43.52||62.87||46.88||49.76||35.44||37.58||20.92|
|Trunc Normal Std||50.66||51.02||50.60||42.54||62.97||46.78||43.70||35.68||38.18||21.57|
|Trunc Normal Ent||50.84||50.62||50.57||43.63||62.97||46.92||45.48||35.56||37.64||21.25|
|Log Normal Mean||50.05||35.87||46.23||41.45||51.67||52.21||57.91||45.17||39.73||26.88|
|Log Normal ENT||47.77||41.41||46.02||41.39||52.25||48.96||56.34||41.91||39.68||27.00|
|Trunc Normal Mean||46.25||44.76||46.12||38.08||53.18||46.92||46.92||48.83||42.09||28.06|
|Trunc Normal Std||45.96||45.35||46.38||37.61||53.38||46.41||46.76||44.86||42.43||28.68|
|Trunc Normal Ent||46.06||45.01||46.38||37.57||53.15||46.67||46.67||38.85||42.09||28.11|
|Log Normal Mean||66.37||46.05||72.89||60.21||80.38||48.98||71.02||46.69||67.19||58.16|
|Log Normal ENT||63.23||62.78||73.26||60.99||80.44||45.10||57.12||44.92||65.61||58.56|
|Trunc Normal Mean||60.00||63.35||72.08||65.62||80.54||42.98||44.44||44.15||61.60||59.45|
|Trunc Normal Std||59.52||63.74||71.58||65.58||80.54||42.76||43.45||43.98||62.07||59.81|
|Trunc Normal Ent||59.79||63.48||71.77||65.68||80.59||43.04||43.80||43.89||61.79||59.89|
0.a.6 Combined KAR and ROAR Scores with more Detail
This subsection shows the raw scores for each ROAR and KAR mask. We also added the non-SmoothGrad methods so we can see how much of an improvement it makes.
|KAR Kept Percent||ROAR Removed Percent|
|Gradient -w- SmoothGrad Sq.||63.25||69.79||72.20||73.18||73.96||69.35||60.28||41.55||29.45||11.09|
|Guided Backprop -w- SmoothGrad Sq.||62.42||68.96||71.17||72.72||73.77||69.74||60.56||52.21||34.98||15.53|
|Integrated Grad. -w- SmoothGrad Sq.||67.55||68.96||72.24||73.09||73.80||70.76||65.71||58.34||43.71||29.41|
|SMOE Scale + Prior Layer Weights||65.44||72.14||74.28||74.51||75.01||70.40||60.33||48.48||34.23||17.72|
|SMOE Scale + Layer Weights [1,…,5]||65.76||72.60||73.97||74.53||74.94||70.28||60.93||48.73||35.66||18.01|
|SMOE Scale + Layer Weights [1,…,1]||66.13||72.28||73.72||74.52||74.97||71.28||63.58||52.85||38.74||19.72|
|Normal Std + Prior L. Weights||65.48||72.17||73.93||74.62||74.67||69.98||60.39||48.75||34.63||18.13|
|Trunc Normal Ent + Prior L. Weights||65.45||72.38||74.10||74.40||74.75||69.85||60.08||48.05||34.32||18.37|
|Trunc Normal Ent + Weights [1,…,1]||65.35||72.02||73.78||74.54||74.99||69.67||63.80||53.52||39.56||20.51|
|SMOE Scale -w- GradCAM++||67.91||73.33||74.54||74.82||75.21||70.20||59.19||46.05||31.64||14.99|
0.a.7 Operations Computation
|Layer||Channels||Size H||Size W||SMOE Ops||Norm Ops||Combine Ops|
0.a.8 Cumulative Quartile Ranking of Different Efficient Statistics
|Difference Score||Information Score|
|Method||Top 25%||Top 50%||Top 75%||Top 25%||Top 50%||Top 75%|
|Log Normal Ent||40.00%||53.33%||80.00%||33.33%||53.33%||100.00%|
|Trunc Normal Ent||33.33%||66.67%||80.00%||33.33%||66.67%||73.33%|
|Log Normal Mean||26.67%||33.33%||53.33%||26.67%||33.33%||33.33%|
|Trunc Normal Mean||26.67%||53.33%||86.67%||26.67%||60.00%||86.67%|
|Trunc Normal Std||20.00%||53.33%||80.00%||26.67%||53.33%||80.00%|