Holistically Explainable Vision Transformers

Moritz Böhle, Mario Fritz, Bernt Schiele
1/20/2023
cs.CVstat.ML

No confident code implementation found for this paper.

Abstract

Transformers increasingly dominate the machine learning landscape across many tasks and domains, which increases the importance for understanding their outputs. While their attention modules provide partial insight into their inner workings, the attention scores have been shown to be insufficient for explaining the models as a whole. To address this, we propose B-cos transformers, which inherently provide holistic explanations for their decisions. Specifically, we formulate each model component - such as the multi-layer perceptrons, attention layers, and the tokenisation module - to be dynamic linear, which allows us to faithfully summarise the entire transformer via a single linear transform. We apply our proposed design to Vision Transformers (ViTs) and show that the resulting models, dubbed Bcos-ViTs, are highly interpretable and perform competitively to baseline ViTs on ImageNet. Code will be made available soon.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{bhle2023holistically,
  title  = {Holistically Explainable Vision Transformers},
  author = {Moritz Böhle and Mario Fritz and Bernt Schiele},
  year   = {2023},
  eprint = {2301.08669},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.08669v1}
}

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

Discussion