Introduction
In clinical pathology, Whole Slide Images (WSIs) are massive gigapixel files that present unique challenges for machine learning. Standard Multiple Instance Learning (MIL) models are typically trained on static datasets. However, real-world clinical data arrives sequentially—new cancer subtypes are discovered, or new hospital datasets become available over time.
Traditional models suffer from catastrophic forgetting: when trained on new data, they lose the ability to classify previous cases. Existing solutions often rely on a "buffer" to store a subset of old images for replay, which is computationally expensive and raises significant patient privacy concerns. This paper introduces QPMIL-VL, a "buffer-free" incremental learning system that leverages the rich semantic knowledge of Vision-Language Models (VLMs) to learn new cancer types without forgetting.
Methods
The authors propose a dual-branch framework called QPMIL-VL, built upon the state-of-the-art pathology VLM, CONCH.
Vision Branch (QPMIL)
Instead of standard feature pooling, the model utilizes a Prototype Pool consisting of "key-prompt" pairs.
- Querying: The model generates a query from the WSI and matches it to the most relevant "keys" in the pool.
- Penalty Factor: To prevent the model from reusing the same prototypes for every new task—a primary cause of forgetting—a penalty is introduced for prototypes frequently matched in previous tasks. This encourages the model to allocate new prototypes for novel data.
- Aggregation: The matched "prompts" guide the aggregation of instance features into a single bag-level representation.
Language Branch (CFE)
To sharpen class boundaries, the authors implement Class Feature Enhancement (CFE).
- Class Ensemble: Multiple descriptive templates (e.g., "an H&E stained image showing [ClassName]") are used to create robust text embeddings.
- Tunable Vectors: Small, learnable parameters are added to text features to refine them during training.
- Similarity Loss: A specific loss function ensures that text features for different classes remain distinct in the embedding space.
Datasets and Experimental Setup
The study utilizes four public WSI datasets from The Cancer Genome Atlas (TCGA):
- NSCLC: Non-small cell lung carcinoma.
- BRCA: Invasive breast carcinoma.
- RCC: Renal cell carcinoma.
- ESCA: Esophageal carcinoma.
The experiments simulate an incremental scenario where the model starts with one dataset and gradually "discovers" the others, adding two new classes at each step.
Key Insights and Results
The QPMIL-VL framework demonstrates that prototypes can act as a form of "conceptual memory." By storing learnable prompts rather than raw images, the model bypasses the privacy and storage issues of traditional replay buffers.
- State-of-the-Art Performance: QPMIL-VL achieved an Average Accuracy (ACC) of 0.890, nearly matching the "JointTrain" upper bound of 0.908.
- Minimal Forgetting: The forgetting rate was only 0.027, significantly lower than standard fine-tuning (0.841).
- Efficiency: The model is remarkably lightweight, using only 0.365M learnable parameters, compared to nearly 40M in previous incremental WSI methods.
Limitations and Future Work
While QPMIL-VL sets a new benchmark, some challenges remain. The model's performance is sensitive to the sequence of dataset arrival; learning smaller datasets first can lead to slightly higher forgetting rates when larger datasets follow. Additionally, while 20 prototypes were sufficient for four datasets, further research is needed to determine how the pool scales for hundreds of cancer subtypes. Future work may also explore incremental learning across different domains, such as variations in staining styles across hospitals.
Summary updated