SGPMIL: Sparse Gaussian Process Multiple Instance Learning

Andreas Lolos, Stergios Christodoulidis, Aris L. Moustakas, Jose Dolz, Maria Vakalopoulou

TL;DR

This paper introduces SGPMIL, a novel probabilistic attention-based Multiple Instance Learning (MIL) framework for digital pathology. By leveraging Sparse Gaussian Processes (SGP), SGPMIL quantifies uncertainty in attention scores, leading to more reliable instance-level predictions and improved interpretability, while maintaining competitive bag-level performance.

What Problem Does This Paper Address?

Analyzing whole slide images (WSIs) in digital pathology is crucial for medical diagnostics, but annotating these gigapixel images at the pixel or region level is prohibitively expensive. Multiple Instance Learning (MIL) offers a solution by training models with only coarse, slide-level labels. While attention-based MIL methods have shown strong performance and provide interpretable "heatmaps" highlighting relevant regions, they often overlook the inherent uncertainty in instance relevance. These attention scores are typically interpreted heuristically, and their reliability, especially in safety-critical applications like medical imaging, is not well-understood. This paper addresses the lack of uncertainty quantification in instance-level attention scores, aiming to improve both the reliability and interpretability of MIL models in this domain.

Methods

The core of SGPMIL is a probabilistic attention mechanism built upon Sparse Gaussian Processes (SGP). Instead of learning deterministic attention scores, SGPMIL learns a posterior distribution over these scores. This probabilistic formulation allows for principled uncertainty estimation. Key innovations include:

  • Probabilistic Attention with SGP: The attention mechanism is modeled using an SGP layer, which infers a variational posterior distribution over instance-level attention scores. This allows for sampling multiple attention weightings for each instance.
  • Feature Scaling in Predictive Mean: A novel feature scaling term is introduced in the SGP's predictive mean function. This enhances the model's representational flexibility and adaptability to varying input scales, leading to faster training and improved efficiency.
  • Stable and Robust Sampling: A more stable sampling strategy from the variational posterior during training is employed, addressing numerical instabilities often encountered in Gaussian Process-based MIL approaches.
  • Instance-Level Attention Normalization: An interpretable attention normalization mechanism is applied across attention samples. This ensures more consistent and meaningful instance-level predictions under the MIL setting.

Datasets

The proposed SGPMIL framework was evaluated on several well-established digital pathology datasets:

  • CAMELYON16: For breast cancer metastasis detection.
  • TCGA-NSCLC: For non-small cell lung carcinoma subtyping (classifying lung adenocarcinoma vs. lung squamous cell carcinoma).
  • PANDA: For prostate cancer ISUP grade classification.
  • BRACS: For breast carcinoma subtyping (Benign, Atypical, or Malignant).

The paper notes that features were extracted using the UNI encoder for most datasets, and standard cross-validation strategies were employed.

Key Insights and Ideas

  • Uncertainty is Key for Reliability: Explicitly modeling uncertainty over attention scores, rather than treating them as deterministic values, leads to more reliable instance-level predictions and better calibrated uncertainty estimates. This is crucial for applications where misclassifications can have serious consequences.
  • SGP for Interpretable Attention: The use of SGP provides a principled way to capture semantic relationships among instances, allowing the model to focus on diagnostically salient regions more effectively. The inducing points in the SGP act as task-adaptive prototypes that capture morphological patterns.
  • Efficiency and Stability Gains: The proposed modifications, particularly the feature scaling and diagonal covariance approximation, not only improve performance but also address numerical instabilities and speed bottlenecks present in prior SGP-based MIL methods.
  • Bridging Bag and Instance Levels: SGPMIL demonstrates that improving instance-level understanding (through uncertainty quantification) can lead to competitive or even superior bag-level performance, highlighting the interconnectedness of these levels in MIL.

Key Results

  • Competitive Bag-Level Performance: SGPMIL achieves on-par bag-level performance on binary classification tasks and outperforms leading MIL approaches on multiclass datasets.
  • Superior Instance-Level Performance: SGPMIL consistently outperforms baselines in instance-level accuracy (ACC) and AUC on the CAMELYON16 and BRACS datasets, with statistically significant improvements.
  • Improved Calibration: The model's uncertainty estimates are shown to be well-calibrated, with higher uncertainty associated with misclassified slides, making it suitable for safety-critical applications.
  • Faster and More Stable Training: The introduction of diagonal covariance approximation significantly reduces training time and improves stability compared to prior methods.

Limitations and Future Work

  • Unimodal Input: The current work focuses exclusively on unimodal visual inputs.
  • Future Work: The authors suggest extending SGPMIL to multimodal MIL settings, such as integrating clinical or genomic metadata alongside WSIs, as an exciting direction for future research.

Summary updated

BibTeX
@inproceedings{lolos2026sgpmil,
  author = {Andreas Lolos and Stergios Christodoulidis and Aris L. Moustakas and Jose Dolz and Maria Vakalopoulou},
  title = {{SGPMIL: Sparse Gaussian Process Multiple Instance Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure