cs.CVMar 9, 2026

Beyond Attention Heatmaps: How to Get Better Explanations for Multiple Instance Learning Models in Histopathology

Authors: Mina Jamshidi Idaji, Julius Hense, Tom Neuhäuser, Augustin Krause, Yanqing Luo, Oliver Eberle, Thomas Schnake, Laure Ciernik, 

Organizations: Berlin Institute for the Foundations of Learning and Data, Berlin, Germany · Machine Learning Group, Technische Universität Berlin, Berlin, Germany · Department of Chemistry, Chemical Physics Theory Group, University of Toronto, Canada · Vector Institute for Artificial Intelligence, Toronto, Canada · 

Abstract

Multiple instance learning (MIL) has enabled substantial progress in computational histopathology, where a large amount of patches from gigapixel whole slide images are aggregated into slide-level predictions. Heatmaps are widely used to validate MIL models and to discover tissue biomarkers. Yet, the validity of these heatmaps has barely been investigated. In this work, we introduce a general framework for evaluating the quality of MIL heatmaps without requiring additional labels. We conduct a large-scale benchmark experiment to assess six explanation methods across histopathology task types (classification, regression, survival), MIL model architectures (Attention-, Transformer-, Mamba-based), and patch encoder backbones (UNI2, Virchow2). Our results show that explanation quality mostly depends on MIL model architecture and task type, with perturbation ("Single"), layer-wise relevance propagation (LRP), and integrated gradients (IG) consistently outperforming attention-based and gradient-based saliency heatmaps, which often fail to reflect model decision mechanisms. We further demonstrate the advanced capabilities of the best-performing explanation methods: (i) We provide a proof-of-concept that MIL heatmaps of a bulk gene expression prediction model can be correlated with spatial transcriptomics for biological validation, and (ii) showcase the discovery of distinct model strategies for predicting human papillomavirus (HPV) infection from head and neck cancer slides. Our work highlights the importance of validating MIL heatmaps and establishes that improved explainability can enable more reliable model validation and yield biological insights, making a case for a broader adoption of explainable AI in digital pathology. Our code is provided in a public GitHub repository: https://github.com/bifold-pathomics/xMIL/tree/xmil-journal

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Symb-xMIL: Symbolic Explanations for Multiple Instance Learning in Digital Pathology

    Jun 4, 2026Yanqing Luo, Julius Hense, Niklas Prenißl +4Computational PathologyExplainable Medical Image Analysis

  2. SAGE: Semantic Explainability of Attention-Based Survival Models in Computational Pathology

    Aug 3, 2026Abdallah Lamane, Abdul Rahman Diab, Ren-Chin Wu +1Computational PathologyCancer Survival Prediction

  3. Mixture of Mini Experts: Overcoming the Linear Layer Bottleneck in Multiple Instance Learning

    Mar 23, 2026Daniel Shao, Joel Runevic, Richard J. Chen +4Multiple Instance LearningHistopathology Image Classification