Skip to main content
QUICK REVIEW

[Paper Review] The Rise of AI Language Pathologists: Exploring Two-level Prompt Learning for Few-shot Weakly-supervised Whole Slide Image Classification

Linhao Qu, Xiaoyuan Luo|arXiv (Cornell University)|May 29, 2023
Multimodal Machine Learning ApplicationsComputer Science13 citations
TL;DR

Introduces FSWC and TOP, a two-level prompt learning MIL framework using CLIP and GPT-4 to achieve few-shot bag- and instance-level WSI classification under weak supervision.

ABSTRACT

This paper introduces the novel concept of few-shot weakly supervised learning for pathology Whole Slide Image (WSI) classification, denoted as FSWC. A solution is proposed based on prompt learning and the utilization of a large language model, GPT-4. Since a WSI is too large and needs to be divided into patches for processing, WSI classification is commonly approached as a Multiple Instance Learning (MIL) problem. In this context, each WSI is considered a bag, and the obtained patches are treated as instances. The objective of FSWC is to classify both bags and instances with only a limited number of labeled bags. Unlike conventional few-shot learning problems, FSWC poses additional challenges due to its weak bag labels within the MIL framework. Drawing inspiration from the recent achievements of vision-language models (V-L models) in downstream few-shot classification tasks, we propose a two-level prompt learning MIL framework tailored for pathology, incorporating language prior knowledge. Specifically, we leverage CLIP to extract instance features for each patch, and introduce a prompt-guided pooling strategy to aggregate these instance features into a bag feature. Subsequently, we employ a small number of labeled bags to facilitate few-shot prompt learning based on the bag features. Our approach incorporates the utilization of GPT-4 in a question-and-answer mode to obtain language prior knowledge at both the instance and bag levels, which are then integrated into the instance and bag level language prompts. Additionally, a learnable component of the language prompts is trained using the available few-shot labeled data. We conduct extensive experiments on three real WSI datasets encompassing breast cancer, lung cancer, and cervical cancer, demonstrating the notable performance of the proposed method in bag and instance classification. All codes will be available.

Motivation & Objective

  • Motivate and formalize Few-shot Weakly Supervised WSI Classification (FSWC) under MIL with limited bag labels.
  • Propose a Two-level Prompt Learning MIL framework (TOP) that uses GPT-4-derived language priors to guide instance and bag level learning.
  • Leverage CLIP for instance feature extraction and a prompt-guided pooling mechanism for bag representation.
  • Enable few-shot prompt learning at both instance and bag levels while preserving V-L model parameters.
  • Demonstrate state-of-the-art performance on multiple cancer WSIs with limited labeled data.

Proposed method

  • Use CLIP image encoder to extract patch features within each WSI bag.
  • Introduce instance prompt guided pooling to aggregate instance features into a bag feature using GPT-4 generated instance prototypes.
  • Use GPT-4 to create both instance-level and bag-level prompts describing visual pathology priors and incorporate a learnable prompt component (CoOp-like) for adaptation.
  • Construct a bag-level prompt group to guide few-shot prompt learning at the bag level and match it with the bag feature.
  • Optimize learnable prompt vectors with a cross-entropy loss on bag labels, plus an auxiliary loss enforcing diversity among instance prototypes.
  • During inference, classify bags via matching bag features to bag prompts and classify instances by averaging similarities to instance prototypes.

Experimental results

Research questions

  • RQ1Can FSWC be effectively solved under MIL with only a few labeled bags per class?
  • RQ2Does a two-level prompt learning strategy leveraging language priors improve both bag- and instance-level WSI classification under few-shot supervision?
  • RQ3How do GPT-4 derived instance and bag priors influence the pooling and prompt learning processes?
  • RQ4What is the impact of learnable prompt components (CoOp-style) on transfer and performance in FSWC?
  • RQ5Are there robust gains across breast, lung, and cervical cancer WSIs under limited data?

Key findings

  • TOP achieves state-of-the-art bag and instance classification under few-shot settings on Camelyon 16, TCGA-Lung, and Cervical Cancer datasets.
  • Instance prompt guided pooling consistently outperforms attention pooling across experiments.
  • Bag-level prompt group improves performance over CoOp-style prompt learning in bag classification.
  • Ablation shows prompt guided pooling and bag-level prompts are crucial for performance gains, with auxiliary loss aiding stability.
  • TOP yields notable improvements over baselines across 1-, 2-, 4-, 8-, and 16-shot settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.