TL;DR
Foundation Models (FMs) in computational pathology struggle with domain generalization, performing poorly on unseen datasets due to encoding dataset-specific information. This paper introduces DoRA (Weight-Decomposed Low-Rank Adaptation) with strong data augmentation as a parameter-efficient fine-tuning method to improve FM feature robustness, leading to better generalization across different histopathology datasets.
What Problem Does This Paper Address?
Computational pathology aims to leverage deep learning for tasks like tumor detection and survival analysis. Foundation Models (FMs), pre-trained on massive datasets, hold great promise for this field by providing powerful, generalizable feature representations. However, a critical challenge arises when these FMs are applied to new, unseen datasets – a phenomenon known as "domain shift." This shift can occur due to variations in staining protocols, tissue preparation, or scanner hardware, leading to degraded performance and a lack of clinical trust. While FMs are expected to be robust, this paper highlights that they often encode dataset-specific biases, hindering their ability to generalize. The authors address the gap in systematically evaluating FM robustness on independent datasets and propose a method to improve this generalization.
Methods
The core of the paper's methodology lies in adapting existing FMs using a parameter-efficient fine-tuning technique called Weight-Decomposed Low-Rank Adaptation (DoRA). DoRA, an extension of LoRA, decomposes weight updates into magnitude and direction components, applying low-rank adaptation to the directional component. This approach is particularly suitable for FMs, which are too large to fully fine-tune and often have proprietary training data.
To enhance robustness against domain shifts, the authors combine DoRA with strong data augmentations. These augmentations include variations in color hue, brightness, contrast, saturation, and Gaussian blur, while carefully avoiding changes to aspect ratios or solarization that could distort biological meaning. The FMs are tuned in a self-supervised manner using the DINO framework, which is known for learning powerful visual representations. This combination of DoRA and strong augmentations aims to make the FM features invariant to dataset-specific variations while preserving biological information.
Datasets
The study utilizes three distinct Lung Squamous Cell Carcinoma (LUSC) datasets for evaluation:
- TCGA (The Cancer Genome Atlas): A public dataset, also part of the training data for the Phikon FM.
- UNN (University Hospital of North Norway): A private dataset.
- Mainz (University Medical Center Mainz): A private dataset.
These datasets were collected from different hospitals and underwent local staining and tissue pre-processing, introducing potential domain shifts. The TCGA subset contains 464 patients and 498 Whole-Slide Images (WSIs), while UNN has 289 patients/WSIs and Mainz has 232 patients/233 WSIs.
Key Insights and Ideas
- FMs are not inherently robust: Despite being trained on vast datasets, FMs in histopathology exhibit significant performance drops when evaluated on external, unseen datasets. This challenges the assumption of their inherent generalizability.
- Dataset-specific information is encoded: The analysis reveals that FMs often learn features that are highly specific to the dataset they were trained on, rather than capturing universal biological characteristics. This is a major bottleneck for real-world deployment.
- DoRA + Augmentation is a powerful combination: The proposed DoRA adaptation, coupled with strong data augmentations, effectively reduces dataset-specific information in FM features. This leads to more robust representations that generalize better across domains.
- Visualizing robustness: t-SNE plots and clustering metrics provide compelling visual and quantitative evidence of improved domain generalization after DoRA tuning. The clusters become less dataset-dependent and more biologically coherent.
- Rethinking pre-training: The findings suggest that current pre-training strategies for FMs might need to incorporate stronger augmentations or post-training adaptation steps like DoRA to ensure robust generalization in critical fields like computational pathology.
Key Results
- Performance Drop: Original Phikon and Virchow2 features showed a considerable drop in performance when evaluated on external datasets for survival prediction tasks.
- Improved Clustering: DoRA-tuned models, particularly Phikon, exhibited significantly less dataset-specific clustering in t-SNE plots and improved cluster purity scores. For instance, the Calinski-Harabasz (CH) index decreased for tuned models, indicating reduced separation between features from different datasets.
- Visual Evidence: Figure 4 shows that DoRA-tuned models cluster tiles more based on tissue type and less by color, which is crucial for handling variations in staining and scanning.
- Reduced Dataset Dependence: The Silhouette score decreased for tuned models, meaning tile features fit less well within their original dataset cluster, suggesting they capture more general biological differences.
Limitations and Future Work
- Limited FM Scope: The study focused on two specific FMs (Phikon and Virchow2). Future work could assess a wider range of FMs to confirm these findings.
- Dataset Specificity: While three LUSC datasets were used, testing on more diverse cancer subtypes and a larger number of datasets would strengthen the conclusions.
- Augmentation Sensitivity: The authors briefly experimented with weaker augmentations and observed less mixing, suggesting that the choice and strength of augmentations are critical. Future work could explore optimal augmentation strategies more thoroughly.
- Benchmark for Robustness: The paper advocates for establishing a benchmark for robustness testing in histopathology FMs to guide future development and ensure clinical reliability.
- Post-training Adaptation: The success of DoRA as a post-training adaptation step raises questions about whether current pre-training strategies are sufficient or if similar adaptation methods should be integrated earlier in the FM development pipeline.
Summary updated