PreMix: Boosting Multiple Instance Learning in Digital Histopathology through Pre-training with Intra-Batch Slide Mixing

Bryan Wong, Mun Yong Yi · OpenReview

Abstract

Multiple instance learning (MIL) has emerged as a powerful framework for weakly supervised whole slide image (WSI) classification, enabling slide-level predictions without requiring detailed patch-level annotations. However, a key limitation of MIL lies in the underexplored potential of pre-training the MIL aggregator. Most existing approaches train it from scratch, resulting in performance heavily dependent on the number of labeled WSIs, while overlooking the abundance of unlabeled WSIs available in real-world scenarios. To address this, we propose PreMix, a novel framework that leverages a non-contrastive pre-training method, Barlow Twins, augmented with the Slide Mixing approach to generate additional positive pairs and enhance feature learning, particularly under limited labeled WSI conditions. Fine-tuning with Mixup and Manifold Mixup further enhances robustness by effectively handling the diverse sizes of gigapixel WSIs. Experimental results demonstrate that integrating HIPT into PreMix achieves an average F1 improvement of 4.7% over the baseline HIPT across various WSI training datasets and label sizes. These findings underscore its potential to advance WSI classification with limited labeled data and its applicability to real-world histopathology practices.

Introduction

In digital pathology, Whole Slide Images (WSIs) are massive—often containing billions of pixels. Because it is computationally prohibitive to feed these "gigapixel" images directly into a neural network, researchers utilize Multiple Instance Learning (MIL). In this paradigm, an image is decomposed into thousands of small patches (instances), and an "aggregator" processes the collection (the bag) to produce a slide-level diagnosis.

A significant bottleneck in MIL is data scarcity. Annotating these slides requires substantial time from highly trained pathologists. Consequently, most MIL models are trained from scratch on very small labeled datasets. While self-supervised pre-training (e.g., SimCLR) has been attempted, these "contrastive" methods often struggle in pathology. They rely on "negative pairs," but in medical datasets where "normal" tissue vastly outweighs "tumor" tissue, contrastive learning often erroneously treats two similar normal slides as negatives, degrading model performance.

Methodology

The PreMix framework addresses these challenges by shifting from contrastive to non-contrastive learning and introducing a novel mixing strategy for gigapixel images.

The PreMix framework overview, illustrating the transition from WSI preprocessing to pre-training and fine-tuning stages.

1. Barlow Twins Pre-training

Unlike contrastive methods that push different images apart, Barlow Twins analyzes two augmented versions of the same image and attempts to make their feature correlations match an identity matrix. This eliminates the need for negative pairs, making the model significantly more robust to the class imbalances inherent in medical data.

2. Intra-Batch Slide Mixing

This core innovation involves interpolating features from different slides within the same training batch during pre-training. By creating synthetic, semantically diverse positive pairs, the MIL aggregator is forced to learn more complex and generalized representations of tissue architecture.

3. Feature Mixing during Fine-tuning

To further improve performance, PreMix adapts Mixup and Manifold Mixup for the fine-tuning stage. Given that WSIs vary significantly in size (from 1,000 to 10,000+ patches), the authors implemented zero-padding and masking to ensure these mixing strategies function correctly across variable-sized feature bags. The framework was implemented as a plug-in module for the Hierarchical Image Pyramid Transformer (HIPT).

Experimental Setup

The study utilized two primary H&E stained tissue sources:

  • Camelyon16: 399 breast cancer lymph node sections used for pre-training, training (with limited budgets of 20–100 slides), and testing.
  • CPTAC UCEC: 575 endometrial tissue slides used exclusively to supplement the unlabeled pre-training phase, providing diverse tissue structures.

Key Results and Insights

PreMix demonstrated superior "label efficiency" across all tested scenarios:

  • Performance Gains: Integrating PreMix into HIPT resulted in an average 4.7% F1-score improvement over the standard HIPT baseline.
  • Non-Contrastive Advantage: Switching to Barlow Twins yielded a 1.4% improvement over the baseline, while adding "Slide Mixing" pushed that gain to 3.4%.
  • Robustness to Small Data: Even with a budget of only 20 labeled slides, the model achieved impressive results, indicating high utility for data-starved clinical environments.
  • Active Learning Synergy: PreMix consistently outperformed the baseline when paired with various active learning strategies (e.g., Entropy, BADGE), proving its versatility as a backbone for real-world workflows.
  • Manifold Mixup Efficacy: Ablation studies revealed that applying Manifold Mixup within the Transformer Encoder was more effective than mixing input features, suggesting that interpolating high-level abstract features helps the model better understand tissue architecture.

Conclusion and Future Work

PreMix represents a significant advancement in making MIL more label-efficient for digital pathology. By leveraging unlabeled data through non-contrastive pre-training and synthetic slide mixing, it overcomes the limitations of traditional contrastive learning in imbalanced medical datasets.

Future research will focus on validating these strategies across more diverse pathologies (e.g., lung, colon, or skin) and scaling the pre-training phase to tens of thousands of unlabeled slides to further unlock the potential of foundation models in histopathology.

Summary updated

BibTeX
@misc{wong2024premix,
  author = {Bryan Wong and Mun Yong Yi},
  title = {{PreMix: Boosting Multiple Instance Learning in Digital Histopathology through Pre-training with Intra-Batch Slide Mixing}},
  year = {2024},
  eprint = {2408.01162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.01162},
}
Figure