PFPs: Prompt-guided Flexible Pathological Segmentation for Diverse Potential Outcomes Using Large Vision and Language Models
Can Cui, Ruining Deng, Junlin Guo, Quan Liu, Tianyuan Yao, Haichun Yang, Yuankai Huo
TL;DR
This work addresses the need for flexible segmentation targets in pathology by integrating language prompts from a lightweight LLM with spatial prompts into a segmentation backbone based on EfficientSAM. The method enables multi-class, multi-task kidney pathology segmentation, using LoRA-tuned TinyLlama embeddings and a dynamic head to adapt to various tasks and unseen cases. Key contributions include a practical pipeline combining free-text prompts with spatial cues, a 4-class, 9-task kidney dataset, and comprehensive comparisons of prompt strategies and training regimes, including complete versus incomplete training and LoRA fine-tuning. Results indicate that language-guided segmentation offers greater flexibility and generalization under certain settings, signaling potential for improved diagnostic quantification in renal pathology, albeit with limitations due to dataset size and resources.
Abstract
The Vision Foundation Model has recently gained attention in medical image analysis. Its zero-shot learning capabilities accelerate AI deployment and enhance the generalizability of clinical applications. However, segmenting pathological images presents a special focus on the flexibility of segmentation targets. For instance, a single click on a Whole Slide Image (WSI) could signify a cell, a functional unit, or layers, adding layers of complexity to the segmentation tasks. Current models primarily predict potential outcomes but lack the flexibility needed for physician input. In this paper, we explore the potential of enhancing segmentation model flexibility by introducing various task prompts through a Large Language Model (LLM) alongside traditional task tokens. Our contribution is in four-fold: (1) we construct a computational-efficient pipeline that uses finetuned language prompts to guide flexible multi-class segmentation; (2) We compare segmentation performance with fixed prompts against free-text; (3) We design a multi-task kidney pathology segmentation dataset and the corresponding various free-text prompts; and (4) We evaluate our approach on the kidney pathology dataset, assessing its capacity to new cases during inference.
