DGR-MIL: Exploring Diverse Global Representation in Multiple Instance Learning for Whole Slide Image Classification

Wenhui Zhu, Xiwen Chen, Peijie Qiu, Aristeidis Sotiras, Abolfazl Razi, Yalin Wang

Abstract

Multiple Instance Learning (MIL) has become the de facto standard for classifying gigapixel Whole Slide Images (WSIs) in digital pathology. Despite its success, current MIL frameworks face two primary challenges: the prohibitive computational cost of modeling long-range dependencies between thousands of patches and the inability to explicitly capture the high phenotypic diversity within tumors. We present DGR-MIL, a novel framework that addresses these issues by introducing a set of learnable global vectors. These vectors serve as prototypes for diverse tumor appearances, enabling a cross-attention mechanism that reduces computational complexity from quadratic to linear. Furthermore, we employ a diversity loss based on Determinantal Point Processes (DPP) to ensure these prototypes capture distinct biological features. DGR-MIL achieves state-of-the-art results on CAMELYON-16 and TCGA-NSCLC datasets across various feature backbones.

1. Introduction

Digital pathology relies on the analysis of Whole Slide Images (WSIs), which contain millions of pixels. Multiple Instance Learning (MIL) decomposes these images into thousands of patches (instances). While recent Transformer-based MIL models have improved performance by capturing inter-patch correlations, they suffer from $O(n^2)$ complexity, making them difficult to scale.

Moreover, these models often overlook the inherent heterogeneity of cancer tissue. Tumors exhibit significant spatial and phenotypic diversity, where different regions of a single slide may present vastly different cellular morphologies or immune environments. Capturing this diversity is crucial for robust classification.

Figure 1: Visualizing the diversity challenge in WSIs. (a) shows positive instances of within-bag and between-bag diversity. (b) and (c) quantify the diversity measures and distinctions that DGR-MIL aims to capture.

2. Methodology

The DGR-MIL framework introduces three core innovations to model diversity efficiently while maintaining global context.

2.1 Global Vectors and Cross-Attention

Instead of performing self-attention across all $n$ patches, DGR-MIL utilizes a small set of $K$ learnable Global Vectors ($G$). These vectors act as queries in a cross-attention mechanism, where patches serve as keys and values. This architecture reduces the complexity to $O(Kn)$, where $K \ll n$, allowing for efficient processing of large WSIs without sacrificing the ability to model long-range dependencies.

2.2 Positive Instance Alignment

To ensure the global vectors represent relevant cancerous features, the model incorporates a Positive Instance Alignment module. Using a triplet loss, the global vectors are pushed toward the feature centers of positive (cancerous) bags and away from negative (healthy) bags in the feature space.

Figure 2: The DGR-MIL architecture overview. It highlights the patchification process, the global vector bottleneck, and the dual optimization paths for alignment and diversity learning.

2.3 DPP-based Diversity Loss

To prevent redundancy among the global vectors, the authors utilize Determinantal Point Processes (DPP). By maximizing the determinant of the similarity matrix of the global vectors, the model enforces orthogonality. This ensures that each vector learns a unique aspect of the tumor's appearance, effectively capturing the phenotypic diversity observed in pathology.

3. Experiments and Results

DGR-MIL was evaluated on the CAMELYON-16 and TCGA-NSCLC benchmarks using ResNet-18, ResNet-50, and Vision Transformer backbones.

  • Performance: DGR-MIL consistently outperformed state-of-the-art methods like Trans-MIL and DTFD-MIL. On CAMELYON-16 with ResNet-50 features, it achieved an accuracy of 91.7%, a significant improvement over the previous best of 89.9%.
  • Robustness: The model showed superior performance across all metrics (Accuracy, F1-score, and AUC) regardless of the feature extractor used.
  • Ablation Study: Experiments confirmed that both the diversity loss and the alignment module are critical. Removing the DPP-based loss led to a significant drop in performance, indicating that capturing diverse prototypes is essential for accurate WSI classification.

4. Conclusion

DGR-MIL offers a computationally efficient and biologically grounded approach to Multiple Instance Learning. By explicitly modeling tumor diversity through learnable global vectors and DPP-based regularization, the framework achieves superior classification performance while maintaining linear scalability. While the optimal number of global vectors currently requires tuning, DGR-MIL represents a significant step toward handling the complexity of gigapixel medical images.

Summary updated

BibTeX
@inproceedings{zhu2024dgr,
  author = {Wenhui Zhu and Xiwen Chen and Peijie Qiu and Aristeidis Sotiras and Abolfazl Razi and Yalin Wang},
  title = {{DGR-MIL: Exploring Diverse Global Representation in Multiple Instance Learning for Whole Slide Image Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72920-1\_19},
}
Figure