Papers
Topics
Authors
Recent
Search
2000 character limit reached

Medal S Medical Segmentation Model

Updated 5 July 2026
  • Medal S is a foundation model that integrates native-resolution spatial and textual prompts to achieve accurate, multi-class 3D segmentation across CT, MRI, PET, ultrasound, and microscopy.
  • It employs a 3D U-Net–style image encoder and transformer-based text decoder to align full-resolution volumetric features with semantic queries in a unified, end-to-end trainable framework.
  • Its dual-mode prompting, offering both automatic self-refinement and interactive guidance, substantially reduces inference time while enhancing segmentation precision.

Searching arXiv for Medal S and directly related methods to support the encyclopedia entry. Tool call: arxiv_search(query="(Shi et al., 17 Nov 2025) OR \"Medal S\" medical segmentation foundation model SAT nnU-Net BiomedParse-V", max_results=10, sort_by="relevance") Medal S is a medical segmentation foundation model that supports native-resolution spatial and textual prompts within an end-to-end trainable framework. It is designed to address a limitation of text-only methods lacking spatial awareness by achieving channel-wise alignment between volumetric prompts and text embeddings, thereby mitigating inaccuracies from resolution mismatches. By preserving full 3D context, it efficiently processes multiple native-resolution masks in parallel and supports up to 243 classes across CT, MRI, PET, ultrasound, and microscopy modalities in the BiomedSegFM dataset. The model further combines a lightweight 3D convolutional module, dynamic resampling, a two-stage inference strategy, and post-processing to improve memory efficiency, precision, and inference speed (Shi et al., 17 Nov 2025).

1. Conceptual position and problem setting

Medal S is formulated as a prompt-driven segmentation system in which textual prompts specify semantic targets and spatial prompts provide voxel-space guidance. Its defining claim is that native-resolution spatial prompting and textual prompting are not treated as separate pathways but are harmonized within a single trainable model. This contrasts, in the paper’s framing, with text-only methods lacking spatial awareness and with sequential prompt-based approaches that do not process multiple classes in parallel (Shi et al., 17 Nov 2025).

The architecture is intended for multi-class medical segmentation under heterogeneous imaging conditions. The reported scope includes CT, MRI, PET, ultrasound, and microscopy, with support for up to 243 classes in BiomedSegFM. Two inference modes are provided. In a text-only mode, model predictions serve as spatial prompts for self-refinement without human input. In a hybrid mode, manual annotations are incorporated for enhanced flexibility. A plausible implication is that Medal S is positioned simultaneously as a fully automatic system and as an interactive system, depending on how spatial prompts are initialized.

2. Architectural composition

Medal S consists of three main modules. The first is an image encoder implemented as a 3D U-Net–style backbone that extracts multi-scale volumetric features and produces a per-voxel feature map FRC×H×W×DF \in \mathbb{R}^{C \times H \times W \times D} via progressive up-sampling and skip connections. The second is a text encoder: a frozen SAT text encoder Φtext\Phi_{\text{text}} maps each anatomical prompt tjt_j to a dd-dim embedding zjRdz_j \in \mathbb{R}^d, and a transformer-based query decoder Φquery\Phi_{\text{query}} fuses zjz_j with multi-scale visual features VV to produce adapted query embeddings TRN×CT \in \mathbb{R}^{N \times C}, where NN is the number of semantic targets. The third is the query decoder plus spatial prompt refinement stage, which integrates native-resolution volumetric prompts Φtext\Phi_{\text{text}}0 with textual queries Φtext\Phi_{\text{text}}1 and yields final per-voxel probability maps Φtext\Phi_{\text{text}}2 (Shi et al., 17 Nov 2025).

The framework is end-to-end trainable. The image encoder, the query decoder, including the light 3D convolutional module, and prompt-generation data augmentation are trained jointly with a BCE+Dice loss. The model therefore couples semantic target specification, spatial conditioning, and voxel-wise refinement within a single optimization pipeline rather than delegating these stages to separate systems.

3. Channel-wise alignment and native-resolution refinement

The central technical mechanism is channel-wise alignment between full-resolution volumetric prompts and adapted text queries. Let Φtext\Phi_{\text{text}}3 denote visual features, Φtext\Phi_{\text{text}}4 the adapted text queries, and Φtext\Phi_{\text{text}}5 the spatial prompts. Medal S computes spatio-textual aligned features via per-voxel query correlation:

Φtext\Phi_{\text{text}}6

with Φtext\Phi_{\text{text}}7 and Φtext\Phi_{\text{text}}8, yielding Φtext\Phi_{\text{text}}9. The model then concatenates tjt_j0 and applies a light-weight 3D convolutional block,

tjt_j1

followed by a per-voxel inner product with queries and sigmoid activation,

tjt_j2

which yields tjt_j3 (Shi et al., 17 Nov 2025).

Two implementation choices are decisive. First, Medal S keeps volumetric prompts at native resolution and does not downsample tjt_j4, preserving every voxel’s spatial fidelity. Second, all tjt_j5 classes are processed in a single forward pass. The paper attributes to this design a more than 90% inference-time reduction for 24-class segmentation relative to sequential prompting. The lightweight 3D convolutional refinement is described as a single or small stack of tjt_j6 convolutions inspired by nnU-Net skip connections, operating directly in voxel space while maintaining channel alignment.

4. Prompting modes and iterative decoding

Medal S supports two prompting modes at inference. In text-only self-refinement, the initialization is tjt_j7, corresponding to empty prompts. The model uses text queries tjt_j8 alone to produce an initial prediction tjt_j9, then feeds dd0 back as a spatial prompt and repeats the dd1–dd2 interaction for dd3 iterations. The paper characterizes this as fully automatic and “zero-click” refinement (Shi et al., 17 Nov 2025).

In hybrid mode, users supply initial spatial cues at native resolution, including points, scribbles, and boxes. These manual dd4 guide the first pass, and subsequent predictions dd5 serve as refined prompts. This combines human correction with text guidance for flexible interactive use. The distinction between the two modes is operational rather than architectural: the same spatio-textual alignment mechanism is reused, but the source of the initial spatial prompt differs.

The iterative query decoder inference procedure includes random masking. For dd6 iterations and dd7 random masking rounds per iteration, the method performs complementary masked and unmasked predictions and averages them to improve robustness. This suggests that prompt refinement is not merely recursive reuse of prior predictions, but a regularized inference procedure intended to stabilize performance under imperfect prompt conditions.

5. Data augmentation, resampling, and inference pipeline

The paper introduces dynamic resampling to address target-patch ratio imbalance in medical volumes, where object size can vary substantially relative to a fixed patch size. Voxel spacing dd8 is adapted to target spacing dd9 based on the smallest foreground component size zjRdz_j \in \mathbb{R}^d0 and patch size zjRdz_j \in \mathbb{R}^d1:

zjRdz_j \in \mathbb{R}^d2

where zjRdz_j \in \mathbb{R}^d3 is a reference spacing, zjRdz_j \in \mathbb{R}^d4 is a scale factor, and zjRdz_j \in \mathbb{R}^d5 is clamped to practical bounds. The stated purpose is to ensure that small targets are not lost, reducing false negatives, and that large targets do not dominate, reducing false positives. The implementation uses an efficient CPU-based resampling module borrowed from nnU-Net (Shi et al., 17 Nov 2025).

Spatial prompt generation is also synthesized during training. Algorithm 1 generates realistic, noisy prompts zjRdz_j \in \mathbb{R}^d6 and zjRdz_j \in \mathbb{R}^d7 from ground-truth masks zjRdz_j \in \mathbb{R}^d8 by random block drop/add, channel dropout, and empty-prompt sampling. This places prompt corruption and incompleteness directly within the training distribution.

Inference is organized as a two-stage coarse-to-fine procedure. Stage 1 uses voxel spacing zjRdz_j \in \mathbb{R}^d9 and patch size Φquery\Phi_{\text{query}}0, corresponding to an approximately Φquery\Phi_{\text{query}}1 mm field of view, and applies fast sliding-window inference to detect ROI; if no foreground is found, the system falls back to a full high-resolution pass. Stage 2 resamples the ROI to Φquery\Phi_{\text{query}}2 with patch size Φquery\Phi_{\text{query}}3, enlarges the crop by Φquery\Phi_{\text{query}}4–Φquery\Phi_{\text{query}}5 to include context, and imposes the physical-volume constraint

Φquery\Phi_{\text{query}}6

If this constraint is exceeded, Φquery\Phi_{\text{query}}7 is adjusted to satisfy memory Φquery\Phi_{\text{query}}8 GB. The Stage 1 output is then used as a spatial prompt for fine segmentation.

Post-processing is class-wise component filtering. For each class Φquery\Phi_{\text{query}}9, the method thresholds zjz_j0 to obtain a binary mask zjz_j1, labels 6-connected components, and computes each component’s size and mean probability. It retains, among the top-3 components by size, those with mean probability within zjz_j2 of the maximum and greater than zjz_j3. If none satisfy this condition, it keeps the largest component, or the second if its size is at least zjz_j4 the largest. All other components are removed.

6. Optimization, training configuration, and evaluation protocol

The loss function is the sum of a binary cross-entropy term and a Dice term:

zjz_j5

with

zjz_j6

and

zjz_j7

This formulation reflects the dual objective of per-voxel classification and overlap-sensitive segmentation quality (Shi et al., 17 Nov 2025).

Two training protocols are reported. The Stage 1 model uses a pre-trained SAT backbone, batch size zjz_j8, patch size zjz_j9 at spacing VV0, VV1k steps, AdamW, learning rate VV2 with cosine decay, VV3M parameters, and VV4 hours on VV5 H100 GPUs. The Stage 2 model uses batch size VV6, patch size VV7 at VV8, VV9k steps, the same optimizer, and TRN×CT \in \mathbb{R}^{N \times C}0 hours on TRN×CT \in \mathbb{R}^{N \times C}1 H100 GPUs.

The evaluation protocol distinguishes semantic and instance metrics. Semantic performance is measured by Dice Similarity Coefficient (DSC) and Normalized Surface Distance (NSD). Instance performance is measured by F1 at TRN×CT \in \mathbb{R}^{N \times C}2 overlap and DSC over true positive instances (DSC TP). The runtime limit is TRN×CT \in \mathbb{R}^{N \times C}3 s per class.

7. Reported results, comparative standing, and interpretation

On the validation set, using the five-modality average in the all-data track, Medal S reports DSC TRN×CT \in \mathbb{R}^{N \times C}4 versus TRN×CT \in \mathbb{R}^{N \times C}5 for SAT, NSD TRN×CT \in \mathbb{R}^{N \times C}6 versus TRN×CT \in \mathbb{R}^{N \times C}7, F1 TRN×CT \in \mathbb{R}^{N \times C}8 versus TRN×CT \in \mathbb{R}^{N \times C}9, and DSC TP NN0 versus NN1 (Shi et al., 17 Nov 2025). The same table lists CAT at DSC NN2, NSD NN3, F1 NN4, and DSC TP NN5, while BiomedParse-V is reported at DSC NN6, NSD NN7, F1 NN8, and DSC TP NN9.

Modality-specific comparisons against SAT are heterogeneous. For CT, Medal S reports DSC Φtext\Phi_{\text{text}}00 versus Φtext\Phi_{\text{text}}01, NSD Φtext\Phi_{\text{text}}02 versus Φtext\Phi_{\text{text}}03, F1 Φtext\Phi_{\text{text}}04 versus Φtext\Phi_{\text{text}}05, and DSC TP Φtext\Phi_{\text{text}}06 versus Φtext\Phi_{\text{text}}07. For MRI, the corresponding values are DSC Φtext\Phi_{\text{text}}08 versus Φtext\Phi_{\text{text}}09, NSD Φtext\Phi_{\text{text}}10 versus Φtext\Phi_{\text{text}}11, F1 Φtext\Phi_{\text{text}}12 versus Φtext\Phi_{\text{text}}13, and DSC TP Φtext\Phi_{\text{text}}14 versus Φtext\Phi_{\text{text}}15. For microscopy, the reported instance metrics are F1 Φtext\Phi_{\text{text}}16 versus Φtext\Phi_{\text{text}}17 and DSC TP Φtext\Phi_{\text{text}}18 versus Φtext\Phi_{\text{text}}19. PET is an exception in the reported results: SAT is slightly higher in instance metrics, with F1 Φtext\Phi_{\text{text}}20 versus Φtext\Phi_{\text{text}}21 and DSC TP Φtext\Phi_{\text{text}}22 versus Φtext\Phi_{\text{text}}23. Ultrasound is also mixed: SAT is higher in DSC, Φtext\Phi_{\text{text}}24 versus Φtext\Phi_{\text{text}}25, while Medal S is slightly higher in NSD, Φtext\Phi_{\text{text}}26 versus Φtext\Phi_{\text{text}}27.

On the test set in the all-data track, Medal S outperforms SAT by approximately Φtext\Phi_{\text{text}}28 points in DSC, Φtext\Phi_{\text{text}}29 versus Φtext\Phi_{\text{text}}30, and approximately Φtext\Phi_{\text{text}}31 points in NSD, Φtext\Phi_{\text{text}}32 versus Φtext\Phi_{\text{text}}33. The paper therefore presents Medal S as superior to SAT in overall multi-class medical segmentation efficiency and accuracy, especially when parallel spatial prompting is compared with sequential prompting.

These results also delimit the model’s comparative standing. A common overgeneralization would be to read Medal S as uniformly dominant across all reported benchmarks. The reported validation averages do not support that reading, since BiomedParse-V has higher average DSC, NSD, F1, and DSC TP, and SAT remains higher on PET F1 and DSC TP and on ultrasound DSC. What the reported evidence does support is a specific claim: Medal S improves substantially over SAT while harmonizing spatial precision with semantic textual guidance and reducing the inference burden associated with sequential prompt-based approaches. The model is reported as being publicly available at https://github.com/yinghemedical/Medal-S.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Medal S.