Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

PTCMIL: Multiple Instance Learning via Prompt Token Clustering for Whole Slide Image Analysis

About

Multiple Instance Learning (MIL) has advanced WSI analysis but struggles with the complexity and heterogeneity of WSIs. Existing MIL methods face challenges in aggregating diverse patch information into robust WSI representations. While ViTs and clustering-based approaches show promise, they are computationally intensive and fail to capture task-specific and slide-specific variability. To address these limitations, we propose PTCMIL, a novel Prompt Token Clustering-based ViT for MIL aggregation. By introducing learnable prompt tokens into the ViT backbone, PTCMIL unifies clustering and prediction tasks in an end-to-end manner. It dynamically aligns clustering with downstream tasks, using projection-based clustering tailored to each WSI, reducing complexity while preserving patch heterogeneity. Through token merging and prototype-based pooling, PTCMIL efficiently captures task-relevant patterns. Extensive experiments on eight datasets demonstrate its superior performance in classification and survival analysis tasks, outperforming state-of-the-art methods. Systematic ablation studies confirm its robustness and strong interpretability. The code is released at https://github.com/ubc-tea/PTCMIL.

Beidi Zhao, SangMook Kim, Hao Chen, Chen Zhou, Zu-hua Gao, Gang Wang, Xiaoxiao Li• 2025

Related benchmarks

TaskDatasetResultRank
Survival PredictionTCGA-LUAD
C-index0.688
116
ClassificationCAMELYON16 (test)
AUC85.73
69
Survival PredictionBLCA
C-Index0.63
46
Survival PredictionBRCA
C-Index0.745
30
ClassificationTCGA-NSCLC subtyping
AUC98.44
28
ClassificationCamelyon16 abnormal detection
AUC99.6
20
ClassificationPANDA (grading)
Cohen's Kappa0.937
20
ClassificationIn-house prostate dataset (adaptation)
Accuracy92.64
20
Survival AnalysisCRC
C-Index0.738
15
Showing 9 of 9 rows

Other info

Code

Follow for update