NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Do Multiple Instance Learning Models Transfer?

Daniel Shao, Richard J. Chen, Andrew H. Song, Joel Runevic, Ming Y. Lu, Tong Ding, Faisal Mahmood

Abstract

Multiple Instance Learning (MIL) is a cornerstone of computational pathology (CPath), enabling the analysis of gigapixel whole slide images (WSIs). While patch-level feature encoders are frequently pretrained, the MIL aggregators that pool these features are typically trained from scratch on small, task-specific datasets. This paper systematically investigates whether MIL aggregators can benefit from transfer learning. By pretraining on large-scale "pancancer" datasets (PC-43 and PC-108), we demonstrate that MIL aggregators learn generalizable representations that consistently outperform models trained from scratch. Our results show that pretrained supervised MIL models can even surpass massive self-supervised foundation models while requiring significantly less training data.

Introduction

In CPath, the standard workflow involves a two-stage MIL process: a pretrained encoder converts image patches into tokens, and a trainable aggregator pools these tokens for slide-level prediction. A significant bottleneck exists because clinical datasets are often too small to train complex aggregator architectures effectively. This study explores the potential of pretraining the aggregator itself on diverse tasks to improve performance and data efficiency on downstream clinical applications.

Methods

The researchers conducted an extensive evaluation using 11 MIL architectures, ranging from simple pooling (Mean/Max MIL) to complex Transformer-based models (TransMIL, RRT). They utilized 21 pretraining tasks, including 19 single-organ tasks and two large-scale "pancancer" tasks: PC-43 and PC-108. These pancancer datasets, curated from 3,944 WSIs, use hierarchical OncoTree labels to provide a rich supervised signal. Evaluation protocols included both end-to-end finetuning and frozen feature evaluation across 19 classification tasks spanning morphological subtyping, cancer grading, and molecular biomarker prediction.

Results

The study reveals that MIL aggregators are highly transferable and learn a universal "language" of diagnostic relevance. Pretraining on the diverse PC-108 dataset yielded the best results, even for organs not seen during pretraining.

Visualization of slide-level features showing that PC-108 pretraining (right) creates much clearer class separation than random initialization (left).

Key findings include:

  • Consistent Performance Gains: Pretrained models outperformed random initialization across all 11 architectures, with an average boost of 3.3%.
  • Architecture Scaling: Complex architectures like Transformers benefited most, showing average improvements of ~5.8%. Pretraining also enables the use of larger models that would otherwise overfit.
  • Few-Shot Efficiency: In data-sparse regimes (e.g., 4 samples per class), pretraining provided massive performance increases, reaching up to 171% for specific models.
  • Attention Stability: Analysis via SVCCA suggests that the "attention" strategy learned during pretraining is the most valuable component, as attention layers change minimally during downstream finetuning.
Average performance boost across different MIL architectures when using PC-108 pretraining vs. random initialization.

Discussion and Conclusion

This work demonstrates that transfer learning for MIL aggregators is a powerful and underutilized tool in computational pathology. Supervised pretraining on relatively small but diverse datasets (thousands of slides) can rival or exceed the performance of foundation models trained on hundreds of thousands of slides.

While the study focuses on classification and grading, future work should extend these findings to survival prediction and regression tasks. Additionally, exploring newer architectures like state-space models and multi-modal pretraining objectives could further enhance the generalization of MIL aggregators. The researchers have open-sourced their implementation and weights in the MIL-Lab library to facilitate further research.

Summary updated

BibTeX
@inproceedings{shao2025do,
  author = {Daniel Shao and Richard J. Chen and Andrew H. Song and Joel Runevic and Ming Y. Lu and Tong Ding and Faisal Mahmood},
  title = {{Do Multiple Instance Learning Models Transfer?}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=hfLqdquVt3},
}
Figure