Does Explainability Transfer? A Controlled Benchmark of Attribution Methods on Vision Transformers and CNNs

Sathiyamohan Nishankar, Nethmi Pathirana, Pubudu Sanjeewani, Asanka Perera, Selvarajah Thuseethan
8/3/2026
1 citation
cs.CV
benchmark-datasettransformer-attention

Official code: Nishan-Charlie/VIT_XAI_Bench (2 stars, Python, last commit 2026-07-30).

Abstract

Most evidence on the effectiveness of explainable artificial intelligence (XAI) attribution methods has been established on convolutional neural networks (CNNs), with limited investigation into whether these conclusions generalize to the diverse Vision Transformer (ViT) architectures that now dominate computer vision. This paper presents a controlled benchmark that evaluates attribution quality across five dimensions: faithfulness, localization, robustness, complexity, and computational cost.

Show full abstract

A standardized framework assesses 13 attribution methods from four algorithmic families on eight representative backbones spanning CNNs, isotropic ViTs, hierarchical transformers, hybrid architectures, and linear-attention transformers. The results show that attribution performance is strongly architecture-dependent and that rankings established on CNNs do not reliably transfer to transformer-based models. CAM-based methods achieve the highest scores under the conventional bounding-box localization metric on CNNs and most ViTs but perform poorly on linear-attention architectures. Pixel-level dense-mask evaluation further reveals that these gains largely reflect metric saturation rather than accurate localization. CAM-based methods also exhibit limited robustness on global-attention transformers, whereas attention rollout provides consistently stable explanations with poor localization. Furthermore, faithfulness correlation offers limited discrimination between attribution methods, highlighting the limitations of single-metric evaluation. These findings challenge prevailing conclusions on attribution performance and demonstrate the need for architecture-aware, multi-dimensional evaluation. The open-source code for the evaluation framework and benchmark results is available at https://github.com/Nishan-Charlie/VIT_XAI_Bench.

View on arXivView PDF

Code Implementations(1)

20Python, JavaScriptJul 23, 20264 months agoNOASSERTION

Similar Papers

Cite this paper

@article{nishankar2026does,
  title  = {Does Explainability Transfer? A Controlled Benchmark of Attribution Methods on Vision Transformers and CNNs},
  author = {Sathiyamohan Nishankar and Nethmi Pathirana and Pubudu Sanjeewani and Asanka Perera and Selvarajah Thuseethan},
  year   = {2026},
  eprint = {2608.02396},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.02396v1}
}

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/2608.02396.svg)](https://codeofpaper.com/paper/2608.02396)

Discussion