Learning Visual Explanations for DCNN-Based Image Classifiers Using an Attention Mechanism

Abstract

In this paper two new learning-based eXplainable AI (XAI) methods for deep convolutional neural network (DCNN) image classifiers, called L-CAM-Fm and L-CAM-Img, are proposed. Both methods use an attention mechanism that is inserted in the original (frozen) DCNN and is trained to derive class activation maps (CAMs) from the last convolutional layer’s feature maps. During training, CAMs are applied to the feature maps (L-CAM-Fm) or the input image (L-CAM-Img) forcing the attention mechanism to learn the image regions explaining the DCNN’s outcome. Experimental evaluation on ImageNet shows that the proposed methods achieve competitive results while requiring a single forward pass at the inference stage. Moreover, based on the derived explanations a comprehensive qualitative analysis is performed providing valuable insight for understanding the reasons behind classification errors, including possible dataset biases affecting the trained classifier (Source code is made publicly available at: https://github.com/bmezaris/L-CAM ).

Cite

Text

Gkartzonika et al. "Learning Visual Explanations for DCNN-Based Image Classifiers Using an Attention Mechanism." European Conference on Computer Vision Workshops, 2022. doi:10.1007/978-3-031-25085-9_23

Markdown

[Gkartzonika et al. "Learning Visual Explanations for DCNN-Based Image Classifiers Using an Attention Mechanism." European Conference on Computer Vision Workshops, 2022.](https://mlanthology.org/eccvw/2022/gkartzonika2022eccvw-learning/) doi:10.1007/978-3-031-25085-9_23

BibTeX

@inproceedings{gkartzonika2022eccvw-learning,
  title     = {{Learning Visual Explanations for DCNN-Based Image Classifiers Using an Attention Mechanism}},
  author    = {Gkartzonika, Ioanna and Gkalelis, Nikolaos and Mezaris, Vasileios},
  booktitle = {European Conference on Computer Vision Workshops},
  year      = {2022},
  pages     = {396-411},
  doi       = {10.1007/978-3-031-25085-9_23},
  url       = {https://mlanthology.org/eccvw/2022/gkartzonika2022eccvw-learning/}
}