FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networks

Mahadev Prasad Panda, Matteo Tiezzi, Martina Vilas, Gemma Roig, Bjoern M. Eskofier +1 more
8/4/2024
cs.CVcs.LG

No official code found. Best implementation: mahadev1995/FovEx (5 stars, last commit 2025-07-31).

Abstract

Explainability in artificial intelligence (XAI) remains a crucial aspect for fostering trust and understanding in machine learning models. Current visual explanation techniques, such as gradient-based or class-activation-based methods, often exhibit a strong dependence on specific model architectures. Conversely, perturbation-based methods, despite being model-agnostic, are computationally expensive as they require evaluating models on a large number of forward passes. In this work, we introduce Foveation-based Explanations (FovEx), a novel XAI method inspired by human vision. FovEx seamlessly integrates biologically inspired perturbations by iteratively creating foveated renderings of the image and combines them with gradient-based visual explorations to determine locations of interest efficiently. These locations are selected to maximize the performance of the model to be explained with respect to the downstream task and then combined to generate an attribution map. We provide a thorough evaluation with qualitative and quantitative assessments on established benchmarks. Our method achieves state-of-the-art performance on both transformers (on 4 out of 5 metrics) and convolutional models (on 3 out of 5 metrics), demonstrating its versatility among various architectures. Furthermore, we show the alignment between the explanation map produced by FovEx and human gaze patterns (+14\% in NSS compared to RISE, +203\% in NSS compared to GradCAM). This comparison enhances our confidence in FovEx's ability to close the interpretation gap between humans and machines.

View on arXivView PDF

Code Implementations(1)

mahadev1995/FovExCommunity100%

Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networks

50Python, Jupyter NotebookJul 16, 20241 years ago

Cite this paper

@article{panda2024fovex,
  title  = {FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networks},
  author = {Mahadev Prasad Panda and Matteo Tiezzi and Martina Vilas and Gemma Roig and Bjoern M. Eskofier and Dario Zanca},
  year   = {2024},
  eprint = {2408.02123},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.02123v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.02123.svg)](https://codeofpaper.com/paper/2408.02123)

Discussion