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.
Key Components
- 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.
- 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.
- 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.
- 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.
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