Dr. SAM3: Text-Prompted 3D Masks That Survive New CT Windows

Fig. 1a of arXiv:2612.06248 by Youn et al.: external abdominal CT with an unseen intensity conversion and a PET scan prompted with organ names; BiomedParse-V fragments most organs, Dr. SAM3-T stays close to the ground truth.

Text-prompted segmentation has an attractive interface for a viewer: the user types “liver” or “pancreas tumor” and gets a 3D mask back, with no clicks and no boxes. The trouble starts when the scan comes from somewhere other than the training set. Models that look strong on their own benchmark lose organs when the CT is windowed differently, or when they meet a modality and organ pairing they never saw.

A preprint posted on 3 December 2026, “Dr. SAM3: Towards Generalizable Text-Prompted 3D Medical Segmentation”, goes after that transfer problem. The authors are Sangwoo Youn, Xiaoke Huang, Joonhyuk Seo, Fei Xia, Alvaro A. Cardenas and Yuyin Zhou, from the University of California, Santa Cruz, KAIST and the University of California, Irvine.

What it does

Dr. SAM3 takes Meta’s SAM3, a general-vision model that pairs a text-prompted detector with a tracker that carries masks between video frames, and adapts it to medical volumes without changing the architecture. You give it a volume, a modality and class names such as “liver”, “left kidney” or “lesions”, and it returns a label map on the input grid. It comes in two modes. Dr. SAM3-D runs the fine-tuned detector on each axial slice independently. Dr. SAM3-T adds the tracker, which propagates masks from slice to slice, plus a voting step for voxels that more than one prompt claims.

How it works

  • Rebalanced training data. Training uses the public pool of MedSegFM, the CVPR 2025 BiomedSegFM challenge data: 75 source datasets, five modalities (CT, MR, ultrasound, PET, microscopy) and 257 classes. CT supplies most slices, so the authors cap slices per volume by modality, which cuts CT’s share of sampled slices from 81.7% to about 30%. Volumes that contain rare classes are sampled more often, and target-free slices are capped at 20% of a modality (only PET hits that cap).
  • Modality in the prompt. Every class name gets the modality as a prefix, such as “CT Liver” and “MR Liver”, so the same organ can look different per modality without the two labels being mixed up.
  • Tracker trained on adjacent slices. SAM3’s tracker normally trains on video clips with random frame strides. Here it trains on eight consecutive axial slices, starting at the centre of the volume and running outward in both directions, the same order used at inference, so a small tumor that spans a few slices is not skipped.
  • Cross-view voting. In Dr. SAM3-T, where two prompts claim the same voxel, a coronal and a sagittal pass of the same model each cast one vote and ties follow the axial confidence. It uses no ground truth and no tuned threshold, and it raised Dr. SAM3-T’s Dice on external CT from 74.4 to 77.0.

Adaptation costs 160 A100 GPU-hours for the detector-only model and 384 for the tracker version, For the detector-only model that is 32 and 60 times fewer GPU-hours than the fine-tuning of Medal-S and BiomedParse-V, the two baselines closest in accuracy.

Data and results

The main test is transfer with frozen checkpoints and class-name prompts to three collections outside the training pool: RAOS-Real (12 abdominal organs, 93 CT cases, with scans derived from the WORD dataset removed), LiQA (liver in 30 MR volumes) and QUADRA-HC (four organs in 96 PET scans from 48 healthy subjects). On RAOS-Real the detector-only model reaches 78.9 Dice, 4.4 points above BiomedParse-V. On PET, where MedSegFM only ever labels lesions, both modes reach about 45 Dice across the four organs while every baseline stays below 10.

The CT windowing test is the one we would look at first. The same 93 RAOS-Real cases were converted to 8-bit input three ways: the W400/L40 soft-tissue window used in training, the clipping range of the RAOS authors’ nnU-Net, and a per-volume 0.5 to 99.5 percentile stretch. Dr. SAM3-D moved by 2.1 Dice across the three. BiomedParse-V, Medal-S and Text3DSAM, adapted on the same data, lost 17.9, 31.6 and 37.0. In Fig. 3 of the paper the baselines drop more organs as the conversion moves away from the training window, while Dr. SAM3 keeps nearly the same masks.

On the in-distribution MedSegFM validation set (1,457 semantic and 686 instance volumes), Dr. SAM3-D has the best mean instance F1 (40.5) and the best mean semantic Dice among models trained on public medical data (77.8). Medal-S still leads on CT, and BiomedParse-V, which adds non-public pretraining data, reaches 83.2 mean Dice.

What it hangs on a scan

The output is a label map on the input grid, with value i for the i-th prompt, or one value per connected component in instance mode (for lesions). The prediction script writes only that label map. Voxels claimed by several prompts go to the highest-confidence class and, in Dr. SAM3-T, through cross-view voting. In a viewer that means one segmentation overlay per study that you can convert to DICOM SEG or RTSTRUCT, with one segment per typed class name.

Where it fits in a product

  • Type-to-segment in a viewer. A search box that maps to the 257 trained class names gives users organ and lesion masks without a model per structure. The repo notes that prompts work best with those trained names.
  • Mixed preprocessing in the archive. If your pipeline receives CT from several sites and you cannot be sure every converter windows the same way, check the 2.1 Dice spread across three conversions against your own data before trusting the masks.
  • Choosing the mode per target. The paper recommends Dr. SAM3-T for CT and MR tumors and lesions (52.8 class-average F1 on 11 tumor and lesion classes versus 42.1 for the detector alone) and Dr. SAM3-D for organs, PET and speed. On one A100 the median semantic volume took 1.4 s with Dr. SAM3-D and 30.3 s with Dr. SAM3-T for the axial pass alone; voting adds a coronal and a sagittal pass.

Where it fails or is untested

  • The PET organ results are measured against masks generated automatically from the paired CT, and the authors call them exploratory. About 45 Dice is far better than the baselines, but it is not a usable PET organ mask yet.
  • Instance segmentation is still weak. A mean instance F1 of 40.5 is the best in the table, and some classes are much lower, such as the generic CT “Lesion” class at 6.9 F1 for Dr. SAM3-T and MR prostate lesions at 0.0 for both modes.
  • The model takes 8-bit input. For raw CT in Hounsfield units you pass a window yourself (the repo example uses -160 to 240 HU). Input is NIfTI or the challenge’s npz format, so a DICOM pipeline needs a conversion step and must keep orientation right; the script reorients to RAS and maps the result back.
  • The evaluation is text only. There is no click or box correction loop, so a missed structure means a retry with a different prompt or a manual edit.
  • Dr. SAM3-D needs about 14 GB of GPU memory for Dr. SAM3-D at the default batch of eight slices and Dr. SAM3-T about 7 GB. The checkpoints are 3.4 GB (detector), 1.9 GB (tracker) and 3.5 GB (base SAM3).

Licence, code and status

Code and weights are public. The repository UCSC-VLAA/Dr.SAM3 has inference, training and evaluation scripts, and the detector and tracker checkpoints are on Hugging Face. Both come under Meta’s SAM License because they derive from SAM3, and Dr. SAM3-T also needs the base SAM3 checkpoint, which is gated on Hugging Face. Read the SAM License terms before you put this inside a commercial product. The MedSegFM training data is CC BY-NC-SA 4.0, and the authors describe the model as a research prototype not intended for clinical use. The preprint itself carries arXiv’s standard non-exclusive distribution licence.

Source: Sangwoo Youn, Xiaoke Huang, Joonhyuk Seo, Fei Xia, Alvaro A. Cardenas and Yuyin Zhou, “Dr. SAM3: Towards Generalizable Text-Prompted 3D Medical Segmentation”, arXiv:2612.06248. Project page: ucsc-vlaa.github.io/Dr.SAM3. Featured image built from Fig. 1a of the preprint with credit to the authors.

We build custom medical imaging platforms — advanced DICOM viewers, AI segmentation, and the clinical systems around them.

Copyright © 2026 PYCAD. All Rights Reserved.