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) stands as a powerful approach in weakly supervised learning, regularly employed in histological whole slide image (WSI) classification for detecting tumorous lesions. However, existing mainstream MIL methods focus on modeling correlation between instances while overlooking the inherent diversity among instances. Few MIL methods have aimed at diversity modeling, which empirically show inferior performance but with a high computational cost. To bridge this gap, we propose a novel MIL aggregation method based on diverse global representation (DGR-MIL), by modeling diversity among instances through a set of global vectors that serve as a summary of all instances. First, we turn the instance correlation into the similarity between instance embeddings and the predefined global vectors through a cross-attention mechanism. This stems from the fact that similar instance embeddings typically would result in a higher correlation with a certain global vector. Second, we propose two mechanisms to enforce the diversity among the global vectors to be more descriptive of the entire bag: (i) positive instance alignment and (ii) a novel, efficient, and theoretically guaranteed diversification learning paradigm. Specifically, the positive instance alignment module encourages the global vectors to align with the center of positive instances (e.g., instances containing tumors in WSI). To further diversify the global representations, we propose a novel diversification learning paradigm leveraging the determinantal point process. The proposed model outperforms the state-of-the-art MIL aggregation models by a substantial margin on the CAMELYON-16 and the TCGA-lung cancer datasets.

Introduction

In digital pathology, Whole Slide Images (WSIs) are massive, often containing billions of pixels. To analyze these gigapixel images, researchers use Multiple Instance Learning (MIL), where an image is divided into thousands of small patches (instances). The model then determines if the "bag" of patches contains a tumor.

Visualization of within-bag and between-bag diversity in histopathology images.

Most current MIL models focus on correlation—identifying which patches look like each other. However, they often ignore the inherent diversity of cancer. Tumor cells are highly heterogeneous, varying in shape, size, and microenvironment even within the same patient. Existing methods that attempt to model this diversity are often computationally expensive or rely on noisy labels. DGR-MIL addresses this by explicitly modeling diversity through a set of "global vectors" that serve as a comprehensive summary of all instances.

Methodology

The DGR-MIL framework introduces three key innovations to capture tissue heterogeneity efficiently:

  1. Global Vectors & Cross-Attention: Instead of comparing every patch to every other patch (an $O(n^2)$ operation), the model compares all patches to a small set of learnable Global Vectors ($G$) using cross-attention. This reduces computational complexity to $O(Kn)$, where $K$ is the number of global vectors.
  2. Positive Instance Alignment: To ensure these vectors represent pathological features, a triplet loss mechanism is used to align global vectors with the average representation of positive (cancerous) bags while pushing them away from negative (healthy) bags.
  3. DPP-Driven Diversity Loss: To prevent redundancy, the authors use a loss function based on the Determinantal Point Process (DPP). By maximizing the determinant of the similarity matrix of the global vectors, the model forces them toward orthogonality, ensuring they capture distinct cancer phenotypes.
The DGR-MIL framework architecture, featuring global vector alignment and diversity learning.

Experimental Results

The model was evaluated on major benchmarks, including CAMELYON-16 (breast cancer) and TCGA-NSCLC (lung cancer). DGR-MIL achieved state-of-the-art performance, notably reaching an AUC of 0.957 on CAMELYON-16, surpassing previous leaders like CLAM and Trans-MIL.

Beyond accuracy, DGR-MIL is significantly more efficient. Compared to Trans-MIL, it features approximately 78% fewer parameters (0.642M vs 3.04M) and requires less than half the computational operations (1.054G vs 2.409G MACs). Visualization of attention maps confirms that different global vectors specialize in distinct regions, such as tumor cores versus boundaries.

Conclusion

DGR-MIL demonstrates that modeling what makes patches different is as critical as modeling what makes them similar. By enforcing diversity through geometric constraints like the DPP loss, the model captures multiple distinct signatures of cancer more effectively than traditional attention mechanisms. While the optimal number of global vectors currently requires empirical tuning, the framework's efficiency and performance mark a significant advancement in weakly supervised WSI classification.

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