concept SmoothGrad in category AI

appears as: SmoothGrad
Interpretable AI

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

In this book, we will be implementing the models and the interpretability techniques in the Python programming language. The main reason for choosing Python is because most of the state-of-the-art interpretability techniques are created and actively developed in this language. Figure 1.16 gives an overview of the tools used in this book. For representing data, we will be using Python data structures and common data science libraries such as pandas and numpy. To implement white-box models, we will be using the scikit-learn library for simpler linear regression and decision trees, and pygam for GAMs. For black-box models, we will be using scikit-learn for tree ensembles and pytorch or tensorflow for neural networks. For interpretability techniques used to understand model processing, we will be using the matplotlib library for visualization and open source libraries that implement techniques such as PDP, LIME, SHAP, Anchors, Gradients, Guided Backprop, Grad-CAM and SmoothGrad. To interpret model representations, we will be using tools that implement kNN and tSNE and visualize them using the matplotlib library. Finally, for mitigating bias, we will be using pytorch and tensorflow to implement the bias neutralizing technique and GANs for adversarial debiasing.

In the previous chapter, we looked at deep neural networks and learned how to interpret them using model agnostic methods that are local in scope. We specifically learned three techniques – LIME, SHAP and Anchors. In this chapter, we will focus on Convolutional Neural Networks (CNNs), a more complex neural network architecture used mostly for visual tasks such as image classification, image segmentation, object detection and facial recognition. The techniques learned in the previous chapter can be applied to CNNs and we will learn how to do that. In addition, we will also focus on saliency mapping, which is a local, model dependent and post-hoc interpretability technique. Saliency mapping is a great tool to interpret CNNs as it helps us visualize the salient or important features for the model. We will specifically be covering techniques such as vanilla backpropagation, guided backpropagation, integrated gradients, SmoothGrad, Grad-CAM and guided Grad-CAM.