Learning to Estimate Shapley Values with Vision Transformers

Ian Covert, Chanwoo Kim, Su-In Lee
6/10/2022
70 citations
cs.CVcs.LG
transformer-attention

Official code: suinleelab/vit-shapley (38 stars, Python, last commit 2026-03-04).

Abstract

Transformers have become a default architecture in computer vision, but understanding what drives their predictions remains a challenging problem. Current explanation approaches rely on attention values or input gradients, but these provide a limited view of a model's dependencies.

Show full abstract

Shapley values offer a theoretically sound alternative, but their computational cost makes them impractical for large, high-dimensional models. In this work, we aim to make Shapley values practical for vision transformers (ViTs). To do so, we first leverage an attention masking approach to evaluate ViTs with partial information, and we then develop a procedure to generate Shapley value explanations via a separate, learned explainer model. Our experiments compare Shapley values to many baseline methods (e.g., attention rollout, GradCAM, LRP), and we find that our approach provides more accurate explanations than existing methods for ViTs.

View on arXivView PDF

Code Implementations(1)

Learning to Estimate Shapley Values with Vision Transformers

385PythonMay 27, 20229 months ago

Similar Papers

Cite this paper

@article{covert2022learning,
  title  = {Learning to Estimate Shapley Values with Vision Transformers},
  author = {Ian Covert and Chanwoo Kim and Su-In Lee},
  year   = {2022},
  eprint = {2206.05282},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.05282}
}

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

Discussion