Unlocking adaptive digital pathology through dynamic feature learning

Jiawen Li, Tian Guan, Qingxin Xia, Yizhi Wang, Xitong Ling, Jing Li, Qiang Huang, Zihan Wang, Zhiyuan Shen, Yifei Ma, Zimo Zhao, Zhe Lei, Tiandong Chen, Junbo Tan, Xueqian Wang, Xiu-Wu Bian, Zhe Wang, Lingchuan Guo, Chao He, Yonghong HearXiv 2024 · DOI

Introduction

Foundation models (FMs) have revolutionized digital pathology, yet they often face a "rigidity" problem. Typically, these models are used as frozen encoders where features are extracted once and fed into a simple classifier. This static approach struggles with clinical variability, rare diseases (the "long tail"), and specialized imaging modalities like non-H&E stains, where the pre-trained general features may lack relevance.

Methods: PathFiT

To address these limitations, the authors propose PathFiT (Pathology Feature Tuning), a "plug-and-play" adaptation method based on Low-Rank Adaptation (LoRA). Unlike full fine-tuning, which is computationally expensive and risks catastrophic forgetting, PathFiT freezes the original foundation model weights and injects lightweight, trainable low-rank modules into the self-attention layers.

Overview of the PathFiT framework compared to traditional frozen encoder approaches.

By updating only these extra parameters (approximately 3% to 6% of the total), the model can dynamically "re-embed" its features to suit specific task nuances—such as identifying structures in PAS or Masson’s Trichrome stains—without altering the core architecture. This makes PathFiT compatible with both vision-only (e.g., UNI) and vision-language (e.g., CONCH) architectures.

Evaluation and Results

The method was evaluated across a massive framework of 35 clinically relevant tasks, including a new benchmark for specialized pathology imaging (non-H&E) featuring over 9,000 images across 6 modalities.

Performance improvements of PathFiT across various clinical task categories for CONCH and UNI models.

Key results include:

  • State-of-the-Art Performance: PathFiT achieved SOTA results on 34 out of 35 tasks.
  • Specialized Imaging Boost: A significant 10.20% performance increase was observed in non-H&E imaging tasks, proving FMs can learn to interpret modalities they weren't originally trained for.
  • Rare and Fine-Grained Tasks: Improvements of 5.91% in rare disease detection and 3.26% in fine-grained classification highlight the model's ability to capture subtle diagnostic signals.
  • Few-Shot Learning: PathFiT significantly improved performance in low-data regimes, outperforming standard feature learning even with limited labeled data.

Discussion and Future Work

PathFiT demonstrates that foundation models should be treated as dynamic learners rather than static feature extractors. Qualitative analysis shows that PathFiT refines the model's attention, focusing sharply on diagnostic structures like diseased glands while ignoring background noise.

While highly efficient, applying dynamic updates to gigapixel Whole Slide Images (WSIs) introduces some computational overhead, currently managed via patch sampling strategies. Future work aims to explore more robust augmentation strategies for vision-language models and extend the method to complex multimodal data and molecular subtyping, where diagnostic standards are increasingly visual and molecular.

Summary updated

BibTeX
@misc{li2024unlocking,
  author = {Jiawen Li and Tian Guan and Qingxin Xia and Yizhi Wang and Xitong Ling and Jing Li and Qiang Huang and Zihan Wang and Zhiyuan Shen and Yifei Ma and Zimo Zhao and Zhe Lei and Tiandong Chen and Junbo Tan and Xueqian Wang and Xiu-Wu Bian and Zhe Wang and Lingchuan Guo and Chao He and Yonghong He},
  title = {{Unlocking adaptive digital pathology through dynamic feature learning}},
  year = {2024},
  eprint = {2412.20430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20430},
}
Figure