Navigating the MIL Trade-Off: Flexible Pooling for Whole Slide Image Classification

Hossein Jafarinia, Danial Hamdi, A. Alamdar, Elahe Zahiri, Soroush Vafaie Tabar +5 more
1/1/2025
transformer-attention

No official code found. Best implementation: jafarinia/maxsoft (24 stars).

Abstract

Multiple Instance Learning (MIL) is a standard weakly supervised approach for Whole Slide Image (WSI) classification, where performance hinges on both feature representation and MIL pooling strategies. Recent research has predominantly focused on Transformer-based architectures adapted for WSIs.

Show full abstract

However, we argue that this trend faces a fundamental limitation: data scarcity. In typical settings, Transformer models yield only marginal gains without access to large-scale datasets—resources that are virtually inaccessible to all but a few well-funded research labs. Motivated by this, we revisit simple, non-attention MIL with unsupervised slide features and analyze temperature-β -controlled log-sum-exp (LSE) pooling. For slides partitioned into N patches, we theoretically show that LSE has a smooth transition at a critical β crit = O (log N ) threshold, interpolating between mean-like aggregation (stable, better generalization but less sensitive) and max-like aggregation (more sensitive but looser generalization bounds). Grounded in this analysis, we introduce Maxsoft—a novel MIL pooling function that enables flexible control over this trade-off, allowing adaptation to specific tasks and datasets. To further tackle real-world deployment challenges such as specimen heterogeneity, we propose PerPatch augmentation—a simple yet effective technique that enhances model robustness

DOISemantic Scholar

Code Implementations(1)

jafarinia/maxsoftCommunity25%

Navigating the MIL Trade-Off: Flexible Pooling for Whole Slide Image Classification

240

Similar Papers

Cite this paper

@article{jafarinia2025navigating,
  title  = {Navigating the MIL Trade-Off: Flexible Pooling for Whole Slide Image Classification},
  author = {Hossein Jafarinia and Danial Hamdi and A. Alamdar and Elahe Zahiri and Soroush Vafaie Tabar and Alireza Alipanah and Nahal Mirzaie and S. Razavi and Amir Najafi and M. H. Rohban},
  year   = {2025},
  doi    = {10.52202/085713-3241},
  url    = {https://doi.org/10.52202/085713-3241},
  journal = {Neural Information Processing Systems}
}

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

Discussion