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

MAPLE: Multi-scale Attribute-enhanced Prompt Learning for Few-shot Whole Slide Image Classification

Junjie Zhou, Wei Shao, Yagao Yue, Wei Mu, Peng Wan, Qi Zhu, Daoqiang Zhang

Introduction

Whole Slide Images (WSIs) are the cornerstone of digital pathology, yet their gigapixel scale (often exceeding $150,000 \times 150,000$ pixels) presents a formidable challenge for machine learning. Annotating these images is labor-intensive, often resulting in datasets with very few labeled examples—a "few-shot" learning scenario. While recent vision-language models like CLIP have shown promise by aligning visual features with text prompts, they typically operate at a coarse "slide level." This approach overlooks the nuanced, multi-scale diagnostic process used by pathologists, who analyze both cellular-level details (e.g., nucleoli) and tissue-level architecture (e.g., stroma).

The MAPLE Framework

To bridge this gap, we present MAPLE (Multi-scale Attribute-enhanced Prompt LEarning), a hierarchical framework designed to mimic the expert diagnostic workflow. MAPLE integrates Large Language Models (LLMs) to provide fine-grained histological knowledge, enhancing the model's ability to identify subtype-specific phenotypic variations.

Overview of the MAPLE framework architecture, showing (a) entity discovery via LLM, (b) prompt construction, and (c) the multi-scale feature aggregation and classification pipeline.

Key Components

  1. LLM-Powered Prompt Construction: MAPLE utilizes GPT-4 to generate "entity-level" prompts. These prompts describe the appearance of specific biological structures (e.g., nucleoli, cytoplasm, stroma) across different cancer subtypes at both high and low resolutions.
  2. Language-Guided Instance Selection: Given the massive size of WSIs, the model uses text embeddings to filter and select the most relevant tumor-related patches, significantly reducing computational overhead.
  3. Entity-Guided Cross-Attention: This module aligns visual features with LLM-derived descriptions. For instance, if a prompt describes "irregular glandular structures," the attention mechanism prioritizes visual regions matching that description.
  4. Cross-Scale Entity Graph Learning: A Graph Attention Network (GAT) models the relationships between different histological entities across multiple magnifications, capturing both local morphology and global tissue patterns.

Experimental Results

MAPLE was evaluated on three major cancer cohorts from The Cancer Genome Atlas (TCGA): Breast Invasive Carcinoma (TCGA-BRCA), Renal Cell Carcinoma (TCGA-RCC), and Non-Small Cell Lung Cancer (TCGA-NSCLC). The model was tested in 4-shot, 8-shot, and 16-shot settings.

Performance comparison of MAPLE against state-of-the-art methods across three TCGA datasets. MAPLE consistently achieves the highest AUC, F1, and Accuracy scores.

As shown in the results, MAPLE consistently outperforms state-of-the-art (SOTA) methods such as FOCUS, ViLa-MIL, and TOP. Notably, in the 16-shot TCGA-NSCLC task, MAPLE achieved an AUC of 90.3%, and even in the challenging 4-shot scenario for the same dataset, it reached 74.0% AUC, surpassing the next best competitor by 2.7%.

Discussion and Conclusion

The success of MAPLE underscores two critical insights: the importance of multi-scale modeling in pathology and the utility of LLMs as repositories of structured biological knowledge. By explicitly modeling entities at different resolutions, MAPLE captures discriminative cues that global slide-level models miss. Furthermore, the alignment of image patches with specific textual attributes provides a layer of interpretability, allowing clinicians to understand the visual evidence behind the model's predictions.

Future work will focus on reducing dependency on LLM-generated prompts by incorporating human-in-the-loop verification and testing the framework's robustness on more diverse, real-world clinical datasets beyond the TCGA repository.

Summary updated

BibTeX
@inproceedings{zhou2025maple,
  author = {Junjie Zhou and WEI SHAO and Yagao Yue and Wei Mu and Peng Wan and Qi Zhu and Daoqiang Zhang},
  title = {{MAPLE: Multi-scale Attribute-enhanced Prompt Learning for Few-shot Whole Slide Image Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yHi8Ao6GAe},
}
Figure