PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classification

Sharon Peled, Yosef E. Maruvka, Moti Freiman
3/20/2025
cs.CV

No official code found. Best implementation: SharonPeled/PSA-MIL (9 stars, Apache-2.0, last commit 2025-11-14).

Abstract

Whole Slide Images (WSIs) are high-resolution digital scans widely used in medical diagnostics. WSI classification is typically approached using Multiple Instance Learning (MIL), where the slide is partitioned into tiles treated as interconnected instances. While attention-based MIL methods aim to identify the most informative tiles, they often fail to fully exploit the spatial relationships among them, potentially overlooking intricate tissue structures crucial for accurate diagnosis. To address this limitation, we propose Probabilistic Spatial Attention MIL (PSA-MIL), a novel attention-based MIL framework that integrates spatial context into the attention mechanism through learnable distance-decayed priors, formulated within a probabilistic interpretation of self-attention as a posterior distribution. This formulation enables a dynamic inference of spatial relationships during training, eliminating the need for predefined assumptions often imposed by previous approaches. Additionally, we suggest a spatial pruning strategy for the posterior, effectively reducing self-attention's quadratic complexity. To further enhance spatial modeling, we introduce a diversity loss that encourages variation among attention heads, ensuring each captures distinct spatial representations. Together, PSA-MIL enables a more data-driven and adaptive integration of spatial context, moving beyond predefined constraints. We achieve state-of-the-art performance across both contextual and non-contextual baselines, while significantly reducing computational costs.

View on arXivView PDF

Code Implementations(1)

SharonPeled/PSA-MILCommunity100%
Apache-2.0
90PythonMar 19, 202511 months agoApache-2.0

Similar Papers

Cite this paper

@article{peled2025psamil,
  title  = {PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classification},
  author = {Sharon Peled and Yosef E. Maruvka and Moti Freiman},
  year   = {2025},
  eprint = {2503.16284},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.16284v2}
}

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

Discussion