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

Dual-Query Multiple Instance Learning for Dynamic Meta-Embedding based Tumor Classification

Simon Holdenried-Krafft, Peter Somers, Ivonne A. Montes-Majarro, Diana Silimon, Cristina Tarín, Falko Fend, Hendrik P. A. Lensch · DOI

Introduction

In the field of digital pathology, Whole Slide Images (WSIs) present a unique computational challenge. These "gigapixel" files often contain hundreds of thousands of pixels in each dimension, making them too large to process using standard neural network architectures. The prevailing solution is Multiple Instance Learning (MIL), a framework where an image is decomposed into thousands of small patches, or "instances," which are collectively treated as a "bag." A bag is typically labeled based on the presence of specific features—for example, if a single patch contains cancerous cells, the entire slide is classified as malignant.

Despite its utility, standard MIL faces two significant hurdles: feature generalization and the correlation dilemma. Most models rely on a single pre-trained feature extractor; if this extractor has not encountered a specific tissue type or staining style, performance degrades. Furthermore, while pathologists rely on the spatial context surrounding a cell to make a diagnosis, modeling correlations across thousands of patches is computationally expensive and prone to overfitting on small medical datasets. To address these issues, this research introduces DQ-MIL, a novel pipeline combining Dynamic Meta-Embeddings with a dual-pathway attention architecture.

Methodology

Dynamic Meta-Embedding (DME)

Rather than relying on a single "best" feature extractor, DQ-MIL utilizes a Dynamic Meta-Embedding (DME) strategy. The system leverages three distinct frozen models: two ResNet50 architectures (trained via SwAV and DINO) and one Vision Transformer (DINOv2). The outputs of these models are fed into trainable linear layers that dynamically learn to weight and combine these different perspectives into a single, robust feature vector. This ensemble approach ensures the model is resilient to variations in image appearance and staining.

The Dual-Query Perceiver

Inspired by the Perceiver architecture, DQ-MIL employs a cross-attention mechanism to decouple input size from model depth. The architecture utilizes two distinct pathways to process the patch embeddings:

  1. Pathway 1 (Self-Attention): This pathway uses a specific query ($Q_1$) to compress thousands of patches into a small, fixed-size "latent array." This allows the model to perform complex correlations between instances without the quadratic computational cost associated with standard Transformers.
  2. Pathway 2 (MIL-Attention): This pathway uses a second query ($Q_2$) to assign an importance score to every patch, performing a weighted sum similar to traditional independent and identically distributed (i.i.d.) MIL approaches.

Self-Distillation Loss

To mitigate the risk of overfitting on smaller datasets, the researchers implemented a self-distillation loss. In this setup, the more complex Self-Attention pathway acts as a "teacher" to the shallower MIL-Attention pathway. This forces the model to learn rich, consistent features even when training data is scarce, ensuring that the simpler pathway benefits from the structural context captured by the deeper one.

Experimental Results

The DQ-MIL model was evaluated on three major histopathological benchmarks: Camelyon16 (tumor classification), TCGA-BRCA (breast cancer subtyping), and TCGA-BLCA (bladder cancer subtyping). These datasets represent a range of challenges, from identifying small cancerous regions in a large slide to evaluating global tissue architecture.

The results demonstrate that the self-distilled version (DQ-MIL-SD) significantly outperforms previous state-of-the-art methods:

  • Camelyon16: The model achieved an AUC of 0.9594, representing a 6.4% improvement over CLAM-SB.
  • TCGA-BLCA: The model saw its most significant gains here, with a 10.1% improvement in AUC and a 5.1% increase in accuracy.
  • Qualitative Validation: Heatmaps generated by the model indicate that its attention weights align closely with cancerous regions manually annotated by pathologists, confirming that the model focuses on clinically relevant features.

Discussion and Future Work

The success of DQ-MIL highlights several key insights for medical AI. First, the "diversity of opinion" provided by the Dynamic Meta-Embedder is crucial for robustness across varied datasets. Second, the hybrid attention mechanism successfully captures both local "hotspots" and broader structural context without the computational bottlenecks of traditional Transformers.

Future research will focus on integrating domain-specific knowledge more deeply into the embedders and expanding the model into a multi-modal framework. By combining WSI data with genomic or molecular signatures, the researchers aim to develop even more precise tools for cancer subtyping and molecular signature prediction directly from tissue architecture.

Summary updated

BibTeX
@inproceedings{holdenriedkrafft2023dual,
  author = {Simon Holdenried-Krafft and Peter Somers and Ivonne A. Montes-Majarro and Diana Silimon and Cristina Tarín and Falko Fend and Hendrik P. A. Lensch},
  title = {{Dual-Query Multiple Instance Learning for Dynamic Meta-Embedding based Tumor Classification}},
  booktitle = {BMVC},
  year = {2023},
}
Figure