[Paper Review] Exploring Visual Prompts for Whole Slide Image Classification with Multiple Instance Learning
This paper introduces visual prompts to adapt ImageNet-pretrained models for whole slide image (WSI) classification via multiple instance learning (MIL), addressing domain shift between natural and histopathology images. By freezing the backbone and fine-tuning only a lightweight prompt component on representative patches, the method achieves consistent performance gains across multiple MIL models and backbones on Camelyon16 and TCGA-NSCLC datasets.
Multiple instance learning (MIL) has emerged as a popular method for classifying histopathology whole slide images (WSIs). However, existing approaches typically rely on pre-trained models from large natural image datasets, such as ImageNet, to generate instance features, which can be sub-optimal due to the significant differences between natural images and histopathology images that lead to a domain shift. In this paper, we present a novel, simple yet effective method for learning domain-specific knowledge transformation from pre-trained models to histopathology images. Our approach entails using a prompt component to assist the pre-trained model in discerning differences between the pre-trained dataset and the target histopathology dataset, resulting in improved performance of MIL models. We validate our method on two publicly available datasets, Camelyon16 and TCGA-NSCLC. Extensive experimental results demonstrate the significant performance improvement of our method for different MIL models and backbones. Upon publication of this paper, we will release the source code for our method.
Motivation & Objective
- To address the domain shift between ImageNet-pretrained models and histopathology WSIs, which limits feature quality in MIL-based WSI classification.
- To overcome the limitations of fine-tuning the entire feature extractor on limited patch-level labels, which risks overfitting and degrades pre-trained representations.
- To explore prompt learning in vision, specifically for histopathology, by introducing visual prompts that adapt pre-trained features to pathological data.
- To develop an efficient, lightweight training scheme that only updates prompt components while freezing the backbone, reducing computational cost.
- To validate the effectiveness of visual prompts across diverse backbones (ResNet-18/50) and MIL models (DTFD, ABMIL) on public WSI datasets.
Proposed method
- Proposes a novel visual prompt learning framework where a learnable prompt component is added to a frozen ImageNet-pretrained backbone to adapt features to histopathology data.
- Uses a representative patch selection (RPS) strategy to reduce the number of patches used for prompt training, improving efficiency and reducing overfitting risk.
- Trains only the prompt blocks and the lightweight MIL classifier, while keeping the backbone weights frozen, enabling efficient domain adaptation.
- Employs a two-stage process: first, select representative patches from WSIs based on feature diversity; second, fine-tune only the prompt components using these patches.
- Integrates the prompt module into the feature extraction head, allowing for end-to-end training of the prompt and MIL classifier while keeping the backbone fixed.
- Utilizes attention-based MIL models (e.g., DTFD, ABMIL) to aggregate patch-level features into WSI-level predictions after prompt adaptation.

Experimental results
Research questions
- RQ1Can visual prompts effectively reduce domain shift between ImageNet and histopathology WSIs in MIL-based classification?
- RQ2Does prompt learning outperform fine-tuning the entire feature extractor when patch-level labels are unavailable?
- RQ3How does the number of prompt blocks affect model performance and robustness in WSI classification?
- RQ4What is the optimal number of representative patches for effective prompt training without overfitting?
- RQ5Can the proposed method generalize across different backbones and MIL architectures?
Key findings
- The proposed method achieves a 3.83% AUC improvement over the baseline on the Camelyon16 dataset when using ResNet-18, and a 1.28% improvement on TCGA-NSCLC.
- With ResNet-50, the method consistently outperforms both the frozen baseline and the full fine-tuning approach (RPS-FT), demonstrating superior generalization and robustness.
- Adding more than one prompt block improves AUC by approximately 1% compared to the baseline, showing the effectiveness and stability of the prompt component.
- The method maintains consistent performance gains across different MIL models (DTFD and ABMIL) and backbones (ResNet-18 and ResNet-50), indicating broad applicability.
- The method achieves better performance than RPS-FT across all K values of representative patches, using less than 50% of the GPU resources, proving its efficiency.
- The ablation study confirms that fine-tuning the entire backbone leads to overfitting and degraded performance, while prompt-based adaptation avoids this issue.

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.