B-Cos Aligned Transformers Learn Human-Interpretable Features
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) and Swin Transformers (Swin) are currently state-of-the-art in computational pathology. However, domain experts are still reluctant to use these models due to their lack of interpretability. This is not surprising, as critical decisions need to be transparent and understandable. The most common approach to understanding transformers is to visualize their attention. However, attention maps of ViTs are often fragmented, leading to unsatisfactory explanations. Here, we introduce a novel architecture called the B-cos Vision Transformer (BvT) that is designed to be more interpretable. It replaces all linear transformations with the B-cos transform to promote weight-input alignment. In a blinded study, medical experts clearly ranked BvTs above ViTs, suggesting that our network is better at capturing biomedically relevant structures. This is also true for the B-cos Swin Transformer (Bwin). Compared to the Swin Transformer, it even improves the F1-score by up to 4.7% on two public datasets.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 20 of its 33 references that are in the map. First posted on arXiv 16 Jan 2024.
Builds on
20 of 33 references.
References · 20
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2020Towards Faithfully Interpretable NLP Systems: How should we define and evaluate faithfulness?cited by 590
- 2019Quantifying the Carbon Emissions of Machine Learningcited by 516
- 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
8 more
- 2015Explaining NonLinear Classification Decisions with Deep Taylor Decompositioncited by 248
- 2018Techniques for Interpretable Machine Learningcited by 237
- 2016Layer-wise Relevance Propagation for Neural Networks with Local Renormalization Layerscited by 197
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2022B-cos Networks: Alignment is All We Need for Interpretabilitycited by 88
- 2022What Makes Transfer Learning Work For Medical Images: Feature Reuse & Other Factorscited by 61
- 2021Relative Importance in Sentence Processingcited by 22
- 2023Fully transformer-based biomarker prediction from colorectal cancer histology: a large-scale multicentric studycited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.