Skip to main content
QUICK REVIEW

[Paper Review] Towards Evaluating Explanations of Vision Transformers for Medical Imaging

Piotr Komorowski, Hubert Baniecki|arXiv (Cornell University)|Apr 12, 2023
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper proposes a comprehensive evaluation framework for interpretability methods in Vision Transformers (ViTs) applied to medical imaging, using faithfulness, sensitivity, and complexity metrics. It demonstrates that Layerwise Relevance Propagation for Transformers (TransLRP) outperforms LIME and attention visualization in generating accurate, reliable, and less complex explanations for chest X-ray classification, particularly in identifying disease-relevant features.

ABSTRACT

As deep learning models increasingly find applications in critical domains such as medical imaging, the need for transparent and trustworthy decision-making becomes paramount. Many explainability methods provide insights into how these models make predictions by attributing importance to input features. As Vision Transformer (ViT) becomes a promising alternative to convolutional neural networks for image classification, its interpretability remains an open research question. This paper investigates the performance of various interpretation methods on a ViT applied to classify chest X-ray images. We introduce the notion of evaluating faithfulness, sensitivity, and complexity of ViT explanations. The obtained results indicate that Layerwise relevance propagation for transformers outperforms Local interpretable model-agnostic explanations and Attention visualization, providing a more accurate and reliable representation of what a ViT has actually learned. Our findings provide insights into the applicability of ViT explanations in medical imaging and highlight the importance of using appropriate evaluation criteria for comparing them.

Motivation & Objective

  • To address the lack of standardized, quantitative evaluation for ViT explanation methods in medical imaging.
  • To assess the quality of different explanation techniques—model-agnostic, attention-based, and gradient-based—on a ViT trained for chest X-ray classification.
  • To identify which explanation method best reflects the true decision-making process of a ViT in a clinically relevant context.
  • To establish a benchmarking protocol using faithfulness, sensitivity, and complexity to compare explanation quality objectively.
  • To highlight the limitations of common attention aggregation methods and recommend optimal practices for visualization.

Proposed method

  • The study evaluates three explanation methods: Local Interpretable Model-agnostic Explanations (LIME), attention visualization with different aggregation strategies (average, minimum, maximum), and Layerwise Relevance Propagation for Transformers (TransLRP).
  • Faithfulness is measured as the correlation between input perturbations and prediction changes, with higher values indicating better alignment with model behavior.
  • Sensitivity evaluates how much the explanation changes under small input perturbations, with lower values indicating more stable explanations.
  • Complexity quantifies the sparsity of attribution maps, with lower values indicating more focused, less noisy explanations.
  • The authors apply these metrics across three classes—COVID-19, non-COVID pneumonia, and healthy—on a ViT fine-tuned on a chest X-ray dataset.
  • They compare different attention aggregation techniques, including averaging, taking the minimum, and using the maximum across multi-head attention, and assess their impact on explanation quality.

Experimental results

Research questions

  • RQ1Which explanation method for Vision Transformers produces the most faithful representation of the model’s decision-making process in medical imaging?
  • RQ2How do different attention aggregation strategies (average, minimum, maximum) affect the quality and complexity of visualized explanations?
  • RQ3Does the performance of explanation methods vary significantly across different disease classes, such as COVID-19, non-COVID pneumonia, and healthy cases?
  • RQ4To what extent do existing explanation methods exhibit sensitivity to small input perturbations, and how does this affect their reliability?
  • RQ5Can a unified evaluation framework based on faithfulness, sensitivity, and complexity be used to objectively compare and rank ViT explanation methods?

Key findings

  • TransLRP achieved the highest faithfulness score of 0.22 ± 0.17 for healthy cases and 0.20 ± 0.18 for non-COVID cases, significantly outperforming LIME and attention-based methods.
  • For the COVID-19 class, TransLRP had the lowest faithfulness (0.07 ± 0.13), indicating weaker explanation quality, likely due to overlapping imaging features with other diseases.
  • The maximum attention aggregation method produced the most effective balance of faithfulness (0.10 ± 0.08), low sensitivity (0.07 ± 0.03), and minimal complexity (0.16 ± 0.12), outperforming average and minimum aggregation.
  • Attention visualization using average aggregation resulted in highly complex explanations (complexity: 0.93 ± 0.06), with nearly the entire image highlighted, reducing interpretability and reliability.
  • LIME produced the simplest explanations (complexity: 0.16 ± 0.09 for healthy, 0.15 ± 0.08 for non-COVID), but with lower faithfulness and sensitivity, indicating limited alignment with model behavior.
  • The study reveals significant class-wise disparities in explanation quality, with the most challenging explanations for COVID-19 due to ambiguous and overlapping radiological features.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.