Reducing Overhead of Feature Importance Visualization via Static GradCAM Computation
Authors:
- 11 June 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-5
Abstract
Explainable AI (XAI) methods provide insights into the operation of black-box Deep Neural Network (DNN) models. GradCAM, an XAI algorithm, provides an explanation by highlighting regions in the input feature space that were relevant to the model’s output. It involves a gradient computation step that adds a significant overhead compared to inference and hinders providing explanations to end-users. In this work, we identify the root cause of the problem to be the dynamic run-time automatic differentiation. To overcome this issue, we propose to offload the gradient computation step to compile time via analytic evaluation. We validate the idea by designing an FPGA implementation of GradCAM that schedules the entire computation graph statically. For a TinyML ResNet18 model, we achieve a reduction in the explanation generation overhead from > 2× using software frameworks on CPU/GPU systems to < 0.01× on the FPGA using our designed hardware and static scheduling.Keywords
Funding Information
- Semiconductor Research Corporation
This publication has 12 references indexed in Scilit:
- ANNet: A Lightweight Neural Network for ECG Anomaly Detection in IoT Edge SensorsIEEE Transactions on Biomedical Circuits and Systems, 2022
- LayerCAM: Exploring Hierarchical Class Activation Maps for LocalizationIEEE Transactions on Image Processing, 2021
- Integrated Grad-Cam: Sensitivity-Aware Visual Explanation of Deep Convolutional Networks Via Integrated Gradient-Based Scoring2021
- Explaining Deep Neural Networks and Beyond: A Review of Methods and ApplicationsProceedings of the IEEE, 2021
- Explainable Deep Neural Network for Identifying Cardiac Abnormalities Using Class Activation Map2020
- Explainable machine learning in deployment2020
- Layer-Wise Relevance Propagation: An Overview2019
- Grad-CAM++: Generalized Gradient-Based Visual Explanations for Deep Convolutional Networks2018
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization2017
- Learning Deep Features for Discriminative Localization2016