Abstract
Analyzing giga-pixel Whole Slide Images (WSIs) in digital pathology remains a significant challenge due to the vast scale of data and the scarcity of expert labels. Traditional Multiple Instance Learning (MIL) methods often struggle with limited data and ignore the rich medical knowledge pathologists utilize. We present ViLa-MIL, a novel framework that integrates Large Language Models (LLMs) to provide expert-level descriptive guidance through multi-scale text prompts. By mimicking the hierarchical diagnostic process of pathologists—zooming between low and high resolutions—ViLa-MIL achieves state-of-the-art performance, outperforming existing methods by up to 7.2% in few-shot scenarios.
Introduction
In digital pathology, a single WSI is a massive dataset in itself. Standard analysis involves breaking these slides into thousands of small patches. Multiple Instance Learning (MIL) has emerged as the standard approach, treating these patches as a "bag" to predict a slide-level label. However, conventional MIL models are data-hungry and "knowledge-blind," failing to leverage the descriptive prior knowledge found in medical literature. ViLa-MIL addresses these gaps by aligning visual features with LLM-generated descriptions across multiple scales.
Problem Statement
Current MIL methodologies face two primary hurdles:
- Data Efficiency: Learning discriminative features from scratch requires thousands of labeled slides, which are expensive and time-consuming to acquire.
- Lack of Domain Knowledge: Standard models do not incorporate the specific visual characteristics pathologists look for, such as "clear cytoplasm" at high magnification or "solid mass" at low magnification.
Methodology
ViLa-MIL introduces a dual-scale vision-language alignment strategy to bridge the gap between raw image data and medical expertise.
The framework consists of three core components:
- Dual-scale Visual Descriptive Prompts: Using LLMs (e.g., GPT-3.5), the model generates detailed descriptions for cancer subtypes at low-resolution (tissue architecture) and high-resolution (cellular morphology).
- Prototype-guided Patch Decoder: To handle the computational load and noise of thousands of patches, this module aggregates similar patches into representative "prototypes," summarizing the slide's essential features.
- Context-guided Text Decoder: This module refines text features by grounding them in the visual evidence of the slide, ensuring the model's linguistic understanding matches the actual pathology.
Datasets and Experimental Setup
The model was rigorously evaluated on three multi-center datasets:
- TIHD-RCC: 480 Renal Cell Carcinoma slides (in-house).
- TCGA-RCC: 639 public kidney cancer slides.
- TCGA-Lung: 658 public lung cancer slides (LUAD and LUSC).
Experiments focused on a 16-shot setting, where only 16 labeled examples per category were provided during training, testing the model's ability to generalize from minimal data.
Results and Discussion
ViLa-MIL established new benchmarks across all datasets, showing significant improvements in AUC (1.7% to 7.2%) and F1 scores (2.1% to 7.3%) over state-of-the-art methods like CLAM and TransMIL.
The t-SNE visualizations demonstrate that ViLa-MIL produces much clearer cluster separations for cancer subtypes compared to baseline models. This suggests that the language-guided approach helps the model learn more distinct and medically relevant feature representations. Furthermore, the model showed high robustness to domain shifts when tested on data from different medical centers, suggesting that language-based guidance helps the model ignore site-specific noise.
Conclusion
ViLa-MIL demonstrates that integrating LLM-generated "language priors" significantly enhances the performance and interpretability of medical AI. By explicitly modeling the hierarchical nature of pathology, the framework provides a more human-like approach to slide classification. Future work will explore fine-tuning vision backbones on domain-specific data and extending the multi-modal prompts to include genomic information.
Summary updated