Abstract
Spatial quantification is a critical step in most computational pathology tasks, from guiding pathologists to areas of clinical interest to discovering tissue phenotypes behind novel biomarkers. To circumvent the need for manual annotations, modern computational pathology methods have favoured multiple-instance learning approaches that can accurately predict whole-slide image labels, albeit at the expense of losing their spatial awareness. We prove mathematically that a model using instance-level aggregation could achieve superior spatial quantification without compromising on whole-slide image prediction performance. We then introduce a superpatch-based measurable multiple instance learning method, SMMILe, and evaluate it across 6 cancer types, 3 highly diverse classification tasks, and 8 datasets involving 3,850 whole-slide images. We benchmark SMMILe against 9 existing methods, and show that in all cases SMMILe matches or exceeds state-of-the-art whole-slide image classification performance while simultaneously achieving outstanding spatial quantification.
Introduction
In digital pathology, Whole Slide Images (WSIs) are gigapixel-scale files that present a significant challenge for standard neural networks. To manage this, Multiple Instance Learning (MIL) has become the standard approach, treating a slide as a "bag" of small image patches (instances). While current representation-based MIL (RAMIL) models excel at global diagnosis—such as identifying a specific cancer subtype—they often struggle with spatial interpretability. These models tend to be "lazy learners," focusing on a few highly discriminative patches to justify a global label while ignoring the broader spatial context. This results in noisy or incomplete "attention maps," hindering pathologists who require precise quantification of tumor burden or the discovery of spatial biomarkers.
Methods: The SMMILe Framework
To address the trade-off between classification accuracy and spatial precision, we introduce SMMILe (Superpatch-based Measurable Multiple Instance Learning). SMMILe shifts the paradigm back toward instance-based learning (IAMIL), where patches are classified individually before aggregation.
Key innovations include:
- Mathematical Refinement: The authors demonstrate that the stage of data aggregation (feature-level vs. prediction-level) fundamentally dictates attention allocation. Instance-based models possess higher potential for spatial precision but typically suffer from low recall.
- Superpatch-based Sampling: By utilizing the SLIC clustering algorithm, SMMILe groups visually and spatially similar patches into "superpatches," preserving local context often lost in standard MIL.
- Comprehensive Attention Modules: To improve recall, SMMILe employs Parameter-free Instance Dropout and Delocalised Instance Sampling. These techniques force the model to look beyond the most "obvious" cancerous regions during training, compelling it to learn features of subtle, low-discriminative diseased areas.
- MRF-based Refinement: A Markov Random Field (MRF) constraint ensures spatial smoothness, enforcing the principle that neighboring, similar-looking patches should share the same label.
Experimental Results
SMMILe was evaluated on 8 datasets across 6 cancer types (Breast, Lung, Ovarian, Renal, Gastric, and Prostate), totaling 3,850 WSIs. The framework was benchmarked against 9 state-of-the-art (SOTA) methods, including CLAM, DSMIL, and TransMIL.
Whole-Slide Image Classification
SMMILe consistently matched or exceeded SOTA performance. For instance, it achieved 87.68% accuracy on Lung subtyping (TCGA-LU) and 94.63% on Renal subtyping (TCGA-RCC), frequently outperforming the next best method by 2-3%.
Spatial Quantification
The most significant gains were observed in spatial mapping. In the Lung dataset, SMMILe achieved a Macro AUC of 85.84% for patch-level prediction, whereas most SOTA methods remained between 50% and 60%. Qualitative analysis confirms that SMMILe produces spatial masks that closely align with manual ground-truth annotations provided by pathologists.
Discussion and Conclusion
SMMILe effectively bridges the gap between diagnostic accuracy and spatial interpretability. By refining the attention mechanism and incorporating spatial constraints, it provides a robust tool for both clinical diagnosis and biomarker discovery. Future work will focus on expanding the framework to Immunohistochemistry (IHC) slides and integrating pathology-specific foundation models to further enhance feature extraction. Additionally, the authors aim to extend SMMILe's capabilities to predict genotypes directly from spatial phenotypes, potentially unlocking new insights into the genetic drivers of cancer morphology.
Summary updated