mlsanityData to 14 Oct 2026

Masked Attention as a Mechanism for Improving Interpretability of Vision Transformers

arXiv 2404.18152 ↗First posted 28 Apr 2024cs.CV eess.IVcited by 1

On the map: Mechanistic interpretability → Interpreting biomedical and science models

Abstract (arXiv)

Vision Transformers are at the heart of the current surge of interest in foundation models for histopathology. They process images by breaking them into smaller patches following a regular grid, regardless of their content. Yet, not all parts of an image are equally relevant for its understanding. This is particularly true in computational pathology where background is completely non-informative and may introduce artefacts that could mislead predictions. To address this issue, we propose a novel method that explicitly masks background in Vision Transformers' attention mechanism. This ensures tokens corresponding to background patches do not contribute to the final image representation, thereby improving model robustness and interpretability. We validate our approach using prostate cancer grading from whole-slide images as a case study. Our results demonstrate that it achieves comparable performance with plain self-attention while providing more accurate and clinically meaningful attention heatmaps.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Interpreting biomedical and science models, one of 13 directions in Mechanistic interpretability. Builds on 5 of its 7 references that are in the map. First posted on arXiv 28 Apr 2024.

Builds on

5 of 7 references.

References · 5

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  3. 2021TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classificationcited by 555
  4. 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 359
  5. 2023Hierarchical Vision Transformers for Context-Aware Prostate Cancer Grading in Whole Slide Imagescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026DeepHistoViT: An Interpretable Vision Transformer Framework for Histopathological Cancer Classification
  2. 2022Self-Supervised Vision Transformers Learn Visual Concepts in Histopathology
  3. 2026Beyond Attention Heatmaps: How to Get Better Explanations for Multiple Instance Learning Models in Histopathology
  4. 2023Self-distilled Masked Attention guided masked image modeling with noise Regularized Teacher (SMART) for medical image analysis
  5. 2024Mask-guided cross-image attention for zero-shot in-silico histopathologic image generation with a diffusion model
  6. 2025Investigating Zero-Shot Diagnostic Pathology in Vision-Language Models with Efficient Prompt Design
  7. 2026From Multi-Resolution Cells to Gigapixel Whole Slide Images Foundation Model for Computational Pathology
  8. 2026Vision-Language Models as Zero-Annotation Oracles in Histopathology