concept respect in category AI

appears as: respect
Interpretable AI

This is an excerpt from Manning's book Interpretable AI.

Gradient descent is the technique that is commonly applied since it scales well to a large number of features and training examples. The general idea is to update the weights such that the squared error of the predicted target variable with respect to the actual target variable is minimized.

Gradient-based methods are used to visualize the gradient of the target class with respect to the input image. The idea is to pick an example or image to interpret. This image is then run through the CNN in the forward direction to obtain the output prediction. The backpropagation algorithm is then applied to compute the gradient of the output class with respect to the input image. The gradient is a good importance measure as it tells us which pixels need to be changed to affect the model output. If the magnitude of the gradient is large, then a small change to the pixel value will result in a large change in the input. Therefore, pixels with large gradient measures are considered most important or salient for the model. Gradient-based methods are sometimes also called backpropagation methods since the backpropagation algorithm is used to determine feature importance. They are also called saliency maps since a map of salient or important features is obtained. Popular gradient based methods are vanilla backpropagation, guided backpropagation, integrated gradients and SmoothGrad, which we will be covered in the Sections 5.5, 5.6 and 5.7. These techniques are local in scope and also post-hoc. They are however not entirely model-agnostic and weakly model-dependent. They are much more computationally efficient when compared to perturbation-based methods since only one forward and backward pass is required for one image.

Activation-based methods look at the feature maps or activations in the final convolutional layer and weight them based on the gradient of the target class with respect to those feature maps. The weights of the feature maps act as a proxy for the importance of the input features. This technique is called Gradient-weighted Class Activation Mapping (Grad-CAM). Since we are looking at the importance of the feature map in the final convolutional layer, Grad-CAM provides a coarse-grained activation map. In order to obtain more fine-grained activation maps, we can combine Grad-CAM and guided backpropagation and this technique is called Guided Grad-CAM. We will see how Grad-CAM and Guided Grad-CAM work in more detail in Section 5.8. Activation-based methods are also weakly model-dependent, post-hoc and local interpretability techniques.