Abstract
Identifying rare cancerous patterns within massive, gigapixel Whole Slide Images (WSIs) is a significant challenge in computational pathology, particularly when training data is scarce. This paper introduces FOCUS, a novel framework designed for few-shot WSI classification. FOCUS employs a progressive three-stage visual compression strategy that integrates pathology foundation models with expert-level morphological descriptions generated by Large Language Models (LLMs). By effectively pruning irrelevant tissue regions, FOCUS enables high-accuracy diagnosis from as few as four training examples, consistently outperforming existing state-of-the-art methods across multiple pathology benchmarks.
Introduction
In computational pathology, a single Whole Slide Image (WSI) can exceed 100,000 x 100,000 pixels, comprising thousands of individual patches. However, the diagnostic "signal" is often confined to a tiny fraction of these patches, while the rest is non-informative "noise" (healthy tissue). Standard Multi-Instance Learning (MIL) models typically require thousands of annotated slides to distinguish between these regions. In few-shot scenarios—common in rare disease research or privacy-restricted settings—the signal-to-noise ratio is so low that conventional models struggle to learn discriminative features. FOCUS addresses this "needle in a haystack" problem through intelligent, knowledge-guided data distillation.
Methodology: The FOCUS Framework
The FOCUS framework implements a progressive three-stage compression pipeline to distill a massive WSI into a set of highly informative "visual tokens."
1. Global Redundancy Removal
The process begins by extracting features using a Pathology Foundation Model (FM), such as CONCH. A sliding window approach is used to identify and remove repetitive, non-informative tissue regions. This acts as a coarse-grained filter to reduce the initial search space.
2. Knowledge-enhanced Adaptive Visual Token Compression (KAVTC)
To incorporate expert domain knowledge, FOCUS utilizes LLMs (e.g., GPT-4, Claude) to generate detailed morphological descriptions of specific cancer subtypes. For instance, for ovarian cancer, the LLM might describe "hobnail-shaped nuclei protruding into cyst-like spaces." FOCUS then employs cross-modal attention to rank the remaining patches based on their semantic alignment with these expert descriptions, retaining only the most relevant candidates.
3. Sequential Visual Token Compression (SVTC)
To ensure the final set of tokens is both diverse and spatially coherent, the model processes the selected patches in sequence. It removes patches that exhibit high cosine similarity to their neighbors, ensuring that the model focuses on distinct diagnostic features rather than redundant views of the same area.
Finally, these distilled visual tokens are aggregated using a text-guided cross-modal transformer to produce the slide-level diagnosis.
Experimental Evaluation
The framework was evaluated on three major pathology benchmarks across different organs:
- TCGA-NSCLC: Lung cancer subtyping (LUAD vs. LUSC).
- CAMELYON: Breast cancer metastasis detection in lymph nodes.
- UBC-OCEAN: A complex 5-class classification task for ovarian cancer subtypes.
Experiments were conducted in 4-shot, 8-shot, and 16-shot settings to test the model's robustness with minimal training data.
Results and Discussion
FOCUS demonstrates significant performance gains over existing state-of-the-art (SOTA) methods like ViLa-MIL and TOP-MIL across all tested datasets.
Key Findings
- Superior Accuracy in Low-Data Regimes: In the challenging 4-shot setting for breast cancer (CAMELYON), FOCUS achieved a Balanced Accuracy of 70.1%, significantly outperforming the next best method (65.8%).
- High Diagnostic Reliability: On the TCGA-NSCLC dataset, FOCUS reached a 91.5% AUC with only 4 slides per class, a performance level typically associated with models trained on much larger datasets.
- Synergy with Foundation Models: Ablation studies indicated that vision-language foundation models like CONCH are particularly effective within the FOCUS framework, likely due to their pre-existing alignment between visual features and medical text.
- LLMs as Domain Experts: The use of rich, descriptive text prompts instead of simple class labels allows the model to "know what to look for" before seeing training images, which is crucial for few-shot success.
Conclusion and Future Work
FOCUS represents a significant step forward in few-shot computational pathology by demonstrating that intelligent, multi-stage compression guided by domain knowledge can overcome the data scarcity bottleneck. While highly effective, the framework's performance is currently linked to the quality of LLM-generated prompts. Future research could explore multi-scale (pyramidal) information processing to better mimic the diagnostic workflow of human pathologists and further optimize the computational efficiency of the filtering pipeline.
Summary updated