[Paper Review] Cluster-to-Conquer: A Framework for End-to-End Multi-Instance Learning for Whole Slide Image Classification
C2C presents an end-to-end MIL framework for WSI classification that clusters patches per slide, samples from clusters, and uses adaptive attention with KL-divergence regularization to improve slide-level prediction.
In recent years, the availability of digitized Whole Slide Images (WSIs) has enabled the use of deep learning-based computer vision techniques for automated disease diagnosis. However, WSIs present unique computational and algorithmic challenges. WSIs are gigapixel-sized ($\sim$100K pixels), making them infeasible to be used directly for training deep neural networks. Also, often only slide-level labels are available for training as detailed annotations are tedious and can be time-consuming for experts. Approaches using multiple-instance learning (MIL) frameworks have been shown to overcome these challenges. Current state-of-the-art approaches divide the learning framework into two decoupled parts: a convolutional neural network (CNN) for encoding the patches followed by an independent aggregation approach for slide-level prediction. In this approach, the aggregation step has no bearing on the representations learned by the CNN encoder. We have proposed an end-to-end framework that clusters the patches from a WSI into ${k}$-groups, samples ${k}'$ patches from each group for training, and uses an adaptive attention mechanism for slide level prediction; Cluster-to-Conquer (C2C). We have demonstrated that dividing a WSI into clusters can improve the model training by exposing it to diverse discriminative features extracted from the patches. We regularized the clustering mechanism by introducing a KL-divergence loss between the attention weights of patches in a cluster and the uniform distribution. The framework is optimized end-to-end on slide-level cross-entropy, patch-level cross-entropy, and KL-divergence loss (Implementation: https://github.com/YashSharma/C2C).
Motivation & Objective
- Address the challenge of gigapixel WSIs by enabling end-to-end learning for MIL-based WSI classification.
- Leverage cluster-based sampling to expose the model to diverse discriminative patch features.
- Fuse patch encoding, attention-based aggregation, and KL-divergence regularization to improve joint learning of patch and slide representations.
- Demonstrate competitive or superior performance to two-stage MIL approaches on gastrointestin al disease and breast cancer datasets.
Proposed method
- Cluster patches from each WSI into k clusters per epoch using k-means on patch embeddings.
- Sample k' patches from each cluster to form a manageable training subset per WSI.
- Encode patches with a CNN encoder; compute patch representations h and apply a two-layer attention module to obtain instance weights a_n.
- Aggregate patch representations into a WSI representation z via attention pooling and predict slide-level labels.
- Train end-to-end with a combined loss: L = alpha*L_WSI + beta*L_Patch + gamma*L_KLD, where L_KLD regularizes intra-cluster attention variance.
- Regularize by applying KL-divergence between patch-attention distributions within each cluster and a uniform distribution.
Experimental results
Research questions
- RQ1How does cluster-based sampling affect the diversity and quality of learned patch representations in MIL for WSIs?
- RQ2Can end-to-end training with attention-based aggregation improve slide-level accuracy over two-stage MIL methods?
- RQ3What is the impact of KL-divergence regularization on attention distributions and model performance?
- RQ4How does C2C perform on GI biopsy WSIs and CAMELYON16 breast cancer data compared to fully supervised and two-stage approaches?
Key findings
- C2C outperforms two-stage MIL baselines on a gastrointestinal dataset for Celiac Disease vs Normal classification.
- Incorporating WSI loss, patch loss, and KL-divergence loss yields higher F1-scores and competitive precision/recall.
- C2C achieves strong CAMELYON16 performance without slide-level supervision and with a ResNet-18 backbone.
- KL-divergence regularization stabilizes attention across positive instance classes (e.g., MNIST bag experiments).
- Cluster-based sampling improves exposure to diverse discriminative patches, aiding end-to-end learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.