NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Medal S: Spatio-Textual Prompt Model for Medical Segmentation

Pengcheng Shi, Jiawei Chen, Jiaqi Liu, Xinglin Zhang, Tao Chen, Lei Li · DOI

Abstract

Medical image segmentation is increasingly reliant on foundation models capable of multi-tasking via prompting. However, existing 3D models often suffer from resolution loss in spatial prompts, sequential inference bottlenecks, and target-patch size imbalances. We present Medal S, a novel framework that harmonizes textual and native-resolution spatial prompts. By introducing parallel spatial prompting and channel-wise alignment, Medal S achieves a 10x speedup in multi-class inference while significantly outperforming state-of-the-art models across five imaging modalities (CT, MRI, PET, Ultrasound, and Microscopy).

Introduction

The shift toward foundation models in medical imaging aims to create versatile tools for diverse diagnostic tasks. Despite their promise, current 3D medical models face three primary hurdles: resolution loss due to downsampling spatial prompts, clinical impracticality caused by sequential class processing, and high error rates stemming from target-patch ratio imbalances.

Overview of Medal S challenges and solutions across multiple imaging modalities.

Medal S addresses these challenges by aligning multi-modal heterogeneity with channel-wise prompt alignment, solving multi-class segmentation delays with parallel spatial prompts, and mitigating target-patch imbalance through dynamic resampling.

Methodology

The Medal S architecture is designed to bridge the gap between semantic guidance (text) and spatial precision (masks/points).

The Medal S architecture featuring parallel spatial prompting, channel-wise alignment, and iterative inference.

Native-Resolution Spatial Prompting

Unlike methods that compress dense prompts into low-dimensional embeddings, Medal S preserves the full 3D context by processing spatial prompts at their original resolution. This ensures that fine voxel-level details necessary for precise diagnosis are maintained.

Channel-wise Alignment and Parallelism

The model aligns $N$ channels of volumetric prompts with $N$ corresponding text embeddings. A lightweight 3D convolutional module fuses these "spatio-textually aligned features" with visual features from the image encoder. This alignment allows the model to segment multiple classes simultaneously in a single forward pass, eliminating the need for time-consuming sequential inference.

Dynamic Resampling and Iterative Inference

To handle varying target sizes (e.g., small lesions vs. large organs), Medal S employs dynamic resampling to adjust voxel spacing so that targets fit optimally within the model's fixed patch size. Furthermore, the model supports a two-stage coarse-to-fine inference process. An initial low-resolution pass identifies Regions of Interest (ROIs), which then serve as spatial prompts for a high-resolution refinement stage.

Experimental Results

Medal S was evaluated on the BiomedSegFM dataset, which includes 243 classes across five modalities: CT, MRI, PET, Ultrasound, and Microscopy.

Performance and Accuracy

Medal S demonstrated superior performance over the baseline SAT (Segment Anything in Medical Images) model:

  • Mean Dice Similarity Coefficient (DSC): 75.44 vs. 69.83.
  • Normalized Surface Distance (NSD): 77.34 vs. 71.06.
  • Instance Segmentation (F1 Score): 38.24 vs. 24.88.

Clinical Efficiency

The parallel prompting approach reduced inference time for a 24-class segmentation task by over 90%, dropping from approximately 435 seconds to 40 seconds. This speedup is achieved with a manageable memory footprint of ~12.5GB peak GPU RAM, making it viable for clinical environments.

Discussion and Future Work

While Medal S represents a significant advancement, challenges remain in ultrasound imaging due to unique noise profiles and extreme target-size variations. Future work will focus on expanding prompt diversity to include interactive 2D/3D clicks and scribbles, as well as refining the architecture to better handle intricate, overlapping anatomical structures in high-class-count datasets.

Summary updated

BibTeX
@misc{shi2025medal,
  author = {Pengcheng Shi and Jiawei Chen and Jiaqi Liu and Xinglin Zhang and Tao Chen and Lei Li},
  title = {{Medal S: Spatio-Textual Prompt Model for Medical Segmentation}},
  year = {2025},
  eprint = {2511.13001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13001},
}
Figure