Medal S: Spatio-Textual Prompt Model for Medical Segmentation
Pengcheng Shi, Jiawei Chen, Jiaqi Liu, Xinglin Zhang, Tao Chen, Lei Li
TL;DR
Medal S addresses the challenge of segmenting 3D medical volumes across diverse modalities by jointly leveraging native-resolution spatial prompts and textual priors in an end-to-end framework. Its core innovations—channel-wise alignment of volumetric prompts with text embeddings, parallel native-resolution spatial prompting, and a lightweight 3D refinement module—enable accurate multi-class segmentation with substantial efficiency gains, including over a 10x speedup for 24-class tasks. The approach employs dynamic resampling and a two-stage inference strategy to balance memory, speed, and precision, achieving strong gains on five modalities and up to 243 classes on BiomedSegFM while offering text-only and hybrid prompting modes. Practically, Medal S demonstrates improved segmentation fidelity and efficiency, though it still trails state-of-the-art BiomedParse-V in some benchmarks and identifies future work for small lesion robustness and ultrasound-focused adjustments.
Abstract
We introduce Medal S, a medical segmentation foundation model that supports native-resolution spatial and textual prompts within an end-to-end trainable framework. Unlike text-only methods lacking spatial awareness, Medal S achieves channel-wise alignment between volumetric prompts and text embeddings, mitigating inaccuracies from resolution mismatches. By preserving full 3D context, it efficiently processes multiple native-resolution masks in parallel, enhancing multi-class segmentation performance. A lightweight 3D convolutional module enables precise voxel-space refinement guided by both prompt types, supporting up to 243 classes across CT, MRI, PET, ultrasound, and microscopy modalities in the BiomedSegFM dataset. Medal S offers two prompting modes: a text-only mode, where model predictions serve as spatial prompts for self-refinement without human input, and a hybrid mode, incorporating manual annotations for enhanced flexibility. For 24-class segmentation, parallel spatial prompting reduces inference time by more than 90% compared to sequential prompting. We propose dynamic resampling to address target-patch ratio imbalance, extending SAT and nnU-Net for data augmentation. Furthermore, we develop optimized text preprocessing, a two-stage inference strategy, and post-processing techniques to improve memory efficiency, precision, and inference speed. On the five-modality average on the validation set, Medal S outperforms SAT with a DSC of 75.44 (vs. 69.83), NSD of 77.34 (vs. 71.06), F1 of 38.24 (vs. 24.88), and DSC TP of 65.46 (vs. 46.97). Medal S achieves excellent performance by harmonizing spatial precision with semantic textual guidance, demonstrating superior efficiency and accuracy in multi-class medical segmentation tasks compared to sequential prompt-based approaches. Medal S will be publicly available at https://github.com/yinghemedical/Medal-S.
