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

Iteratively Coupled Multiple Instance Learning from Instance to Bag Classifier for Whole Slide Image Classification

Hongyi Wang, Luyang Luo, Fang Wang, Ruofeng Tong, Yen-Wei Chen, Hongjie Hu, Lanfen Lin, Hao Chen · DOI

Introduction

In the field of digital pathology, Whole Slide Images (WSIs) represent a significant computational challenge. These gigapixel images contain billions of pixels, making it impossible to perform standard end-to-end deep learning due to GPU memory limitations. To address this, researchers typically employ Multiple Instance Learning (MIL). In this framework, a slide is treated as a "bag" containing thousands of small image patches, or "instances."

While MIL has become the standard, it often suffers from a "domain gap." Most workflows use a frozen feature extractor (embedder) pre-trained on natural images like ImageNet. Because these embedders were trained on objects like cars and animals, they may fail to capture the subtle morphological nuances required for accurate cancer diagnosis. Iteratively Coupled Multiple Instance Learning (ICMIL) proposes a solution to this problem by creating a dynamic feedback loop between the patch-level feature extractor and the slide-level classifier.

The ICMIL Framework

ICMIL moves away from the traditional one-way pipeline where features are extracted once and then fed into a classifier. Instead, it introduces an iterative coupling mechanism inspired by the Expectation-Maximization (EM) algorithm. The framework alternates between two primary steps:

1. The Classification Step

In this phase, the patch embedder is fixed. The model focuses on training the bag-level classifier to recognize complex patterns across the entire slide. The classifier learns to weigh the importance of different patches to make a final slide-level prediction.

2. The Fine-tuning Step

In this phase, the bag-level classifier acts as a "teacher." Since the classifier has learned which patches are most indicative of the slide-level label, it can generate pseudo-labels for individual instances. A "student" embedder is then fine-tuned on these patches. This allows the embedder to adapt its "vision" specifically to the histopathological features relevant to the task.

Robustness through Dual Losses

To ensure the fine-tuning process remains stable and effective, ICMIL utilizes two specific loss functions:

  • Consistency Loss ($L_c$): This ensures that the student embedder’s predictions remain consistent even when patches are subjected to data augmentation, matching the teacher’s pseudo-labels.
  • Weight Similarity Loss ($L_w$): This prevents the patch-level logic from diverging too far from the bag-level logic, ensuring that the features generated remain mathematically compatible with the final classification task.

Experimental Results

The researchers evaluated ICMIL across two distinct and challenging datasets:

  1. Camelyon16: A public dataset for breast cancer metastasis detection in lymph nodes.
  2. HCC Dataset: A private dataset consisting of 1,140 slides used for grading the severity of Hepatocellular Carcinoma (liver cancer).

Performance Gains

ICMIL demonstrated a consistent ability to improve the performance of various MIL backbones. On the Camelyon16 dataset, integrating ICMIL with the state-of-the-art DTFD-MIL model resulted in a significant AUC of 93.7%. Even when applied to a standard Attention-MIL baseline, the framework boosted the AUC from 85.4% to 90.0%.

Beyond raw metrics, visualization via t-SNE revealed that ICMIL significantly improved feature separability. While frozen pre-trained models often produced overlapping clusters for positive and negative instances, the ICMIL-trained features were much more distinct and organized, facilitating more accurate classification.

Key Insights

  • Bridging the Gap: The core innovation of ICMIL is the "bridge" it builds between slide-level labels and patch-level features. It effectively propagates global knowledge back down to the local level without the memory overhead of true end-to-end training.
  • Efficiency: The authors noted that even a single iteration of this coupling provides a substantial performance boost, making it a computationally efficient alternative for labs without massive GPU clusters.
  • Hidden Space Alignment: For the teacher-student transfer to be successful, the patch and bag features must exist in the same mathematical space. ICMIL achieves this by favoring attention-based aggregation, which maintains a linear relationship between instance and bag representations.

Conclusion and Future Work

ICMIL represents a significant step forward in making WSI classification more accurate and adaptable. By allowing the feature extractor to learn from the classifier, it overcomes the limitations of generic pre-training. While the iterative process adds some computational overhead compared to static MIL, the gains in diagnostic accuracy are substantial. Future research may explore more sophisticated pseudo-labeling techniques and the application of this framework to a broader range of multi-class pathology tasks.

Summary updated

BibTeX
@inproceedings{wang2023iteratively,
  author = {Hongyi Wang and Luyang Luo and Fang Wang and Ruofeng Tong and Yen-Wei Chen and Hongjie Hu and Lanfen Lin and Hao Chen},
  title = {{Iteratively Coupled Multiple Instance Learning from Instance to Bag Classifier for Whole Slide Image Classification}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  doi = {10.1007/978-3-031-43987-2\_45},
}
Figure