Promptable 3D medical segmentation models answer one question at a time. You give them a CT volume and a single target, a text label such as "pancreas", a click, or a box, and they return one mask. To get ten organs you ask ten times, and each answer is produced without knowing what the other nine are. The organs these models segment worst are small, low-contrast structures that sit against neighbors: the pancreas beside the duodenum, the adrenal glands beside the kidneys. For those organs, knowing which neighbor owns a voxel is most of the problem. We propose a volumetric segmenter that takes an arbitrary set of prompts in one forward pass and labels every voxel as belonging to exactly one of the prompted targets or to "none of them." The prompted targets compete for voxels during training as well as at test time.
The same design addresses a second, older problem. Public CT datasets are partially labeled: a liver dataset marks only the liver, and a kidney dataset marks only kidneys. A model with a fixed output channel per organ is punished for predicting an unlabeled organ, because that organ counts as background. A prompt set avoids this by construction. "Which of these prompted targets, or none?" is exactly the question each partially labeled scan can answer. So one mechanism gives parallel multi-target inference, competition among neighboring structures, and label-consistent training across heterogeneous datasets.
Core Claim
Decoding a set of $N$ prompts jointly, with a per-voxel choice among $N+1$ outcomes (the $N$ targets plus "none of them"), improves small-organ accuracy over decoding each prompt independently. The gain comes from training with competition between prompted targets. It does not come merely from sharing an encoder pass. On datasets with full labels, the approach should match a fixed multi-head 3D U-Net while staying promptable. On partially labeled mixtures, it should beat single-query promptable models. Its cost should grow roughly with one encoder pass plus a small per-query term, not linearly in $N$.
Relation to Prior Work
Four systems motivate the gap and supply components.
- DoDNet generates a small dynamic segmentation head from a one-hot task code. It is queried once per target and becomes task-aware only at the last layer.
- UniSeg moves task conditioning to the start of the decoder through a learned universal prompt. It is still queried one target at a time.
- SegVol scales to more than 200 categories. It accepts point, box and CLIP-text prompts and uses a coarse-then-fine "zoom-out-zoom-in" pass. Its interactive pipeline segments structures sequentially.
- gCIS routes a text prompt through decoder sub-paths with a Gumbel-softmax, which is a differentiable way of picking one discrete option. It selects one route per queried target.
All four treat each target independently. We reuse their prompt encoders (text and spatial). What we change is that targets are decoded together and made to compete.
The file does not show that any of these four report failures caused by independent decoding. The motivating evidence is indirect. AMOS reports that every architecture it benchmarks drops sharply on the pancreas, adrenals and duodenum. It also reports that a plain 3D U-Net trained with one output channel per organ (89.04% mDice on CT) beats Swin-UNetr (86.32%).
The AMOS result constrains the design in two ways. First, fixed multi-channel training with voxel-level competition among all organs is already strong. Our claim is therefore not that competition is new. The claim is that competition can be kept once targets become open-ended prompts drawn from partially labeled data. Second, it argues against paying for heavy 3D attention in the backbone. For that reason we default to a convolutional encoder-decoder. Following the Mamba analysis, we treat its linear-cost 3D state-space blocks as an optional backbone swap for the large-$N$ TotalSegmentator setting, where attention runs out of memory.
Research Program
Architecture. A shared 3D encoder-decoder produces a feature volume once. Each prompt becomes one query vector. Text goes through a frozen text encoder as in SegVol, and points and boxes go through positional embeddings. The $N$ queries go through a few rounds of three operations: attention to the downsampled feature volume, attention among themselves so neighbors can exchange information, and a feed-forward update. Each refined query $q_i$ then produces a mask logit $\ell_i(v)$ at every voxel $v$ by a dot product with the full-resolution features. A learned "none" logit $\ell_0(v)$ comes from a separate head.
Nested structures. Some prompted targets are nested, such as a tumor inside the liver, so full exclusivity is wrong. We handle this with the ontology the datasets already imply. Targets flagged as mutually disjoint compete through a softmax. A target flagged as contained in another is predicted with a sigmoid that is gated by its parent's mask.
Training. For each training scan we sample a random subset of that dataset's annotated classes as the prompt set. Unannotated classes are never prompted, so they may fall into "none" without contradicting the label. The loss is voxel cross-entropy plus Dice over the $N+1$ outcomes. The prompt-set sampling is the one essential ingredient. It turns partial labels from a conflict into a well-posed supervision signal.
Efficiency. The encoder cost is paid once. Per-query cost is one attention readout plus one dot-product map. We will measure wall-clock time and memory as $N$ grows from 1 to 117 on TotalSegmentator. Where memory binds, we will reuse SegVol's coarse-then-fine idea, computing per-query crops only around each query's coarse mask.
Baselines
Naive reference. The same trained network with $N=1$ prompt sets throughout training and inference, run $N$ times, with overlaps resolved at inference by taking the per-voxel maximum. This is the "just batch SegVol-style queries" reference point. It uses the identical encoder, data, epochs and tuning budget.
Competition ablation. This is the most important comparison. It uses the identical architecture and prompt-set sampling, but removes attention among queries and replaces the $N+1$ softmax with independent sigmoids. It keeps the shared encoder pass and the speed, and removes only competition and inter-query communication. If our model does not beat it on the small AMOS organs, the core claim fails.
A second ablation keeps inter-query attention but uses independent sigmoids. This separates the value of information exchange from the value of exclusivity.
Strongest promptable method. SegVol, retrained on our data split under an equal compute budget where feasible. Where retraining is infeasible, we use its released weights with a clearly marked caveat. SegVol reports an average Dice of 0.8593 on AMOS22 (runner-up 0.6668) in SegVol. That evaluation protocol may differ from ours, so we will re-evaluate rather than compare to the reported figure.
Partial-label methods. DoDNet reports 75.64% mean Dice on MOTS, against 74.55% for a multi-head network and 71.67% for single-task networks (DoDNet). UniSeg reports 78.2% mean Dice on its 11 upstream tasks, against 77.2% for DoDNet and 76.6% for nnUNet (UniSeg). We train on the same MOTS and UniSeg mixtures with the same number of epochs. Beating them means exceeding these means under the same splits, with the small-structure tasks reported separately.
Fixed-label ceiling. A 3D U-Net with one output channel per organ, trained on fully labeled AMOS. AMOS reports 89.04% mDice on CT for this model (AMOS). Here we expect parity, not victory. Landing within about one mDice point while remaining promptable counts as success. A larger gap means the query decoder is losing resolution.
Why not just…?
Why not just run a promptable model $N$ times and take the per-voxel maximum? This is the most serious alternative. It already gives exclusive masks at inference. What it lacks is exclusivity during training and any exchange of information between queries. It also costs $N$ decoder passes. The naive baseline and the competition ablation test exactly this. If post-hoc maximum recovers most of the small-organ gain, we will report that honestly, and the contribution shrinks to the efficiency and partial-label results.
Why not just train a fixed multi-head 3D U-Net? On fully labeled AMOS it is probably as good as anything; the AMOS 89.04% result says so. It breaks under partial labels, as the 74.55% versus 75.64% gap on MOTS in DoDNet shows. It also cannot accept a click or free text, and cannot drop categories at deployment. Our claim is to keep its competition without its fixed label set, not to beat it where it is strongest.
Why not just slice into 2D and use a 2D foundation segmenter? Slice-wise processing loses continuity along the depth axis and fails on low-contrast boundaries between adjacent structures (3D DSN). Those boundaries are precisely where competition among neighbors should help. We therefore stay volumetric and do not rerun this comparison.
Proposed Experiments
Data. We train on the MOTS mixture and on UniSeg's 11-dataset mixture to test partial-label learning. We use AMOS CT and MRI for dense, fully labeled comparison, and TotalSegmentator with 117 classes for scaling in $N$. Metrics are per-organ Dice and average symmetric surface distance.
Decisive check 1: small organs. We report Dice on the pancreas, adrenals and duodenum in AMOS. We also report prompt-context sensitivity: pancreas Dice when prompted alone versus alongside the duodenum and stomach. Our model should improve with added neighbors. The independent-sigmoid ablation should stay flat.
Decisive check 2: partial-label transfer. We train on the partially labeled mixture and test on fully labeled AMOS. This measures whether competition learned from subsets transfers to full prompt sets.
Decisive check 3: cost scaling. We measure latency and peak memory as $N$ grows up to 117, against $N$ sequential calls.
Robustness check. We evaluate MRI from unseen scanners, where AMOS reports a drop of more than 20% mDice. This tells us whether joint decoding gives any robustness or simply inherits the backbone's failure. We treat it as secondary.
References
- DoDNet: Learning To Segment Multi-Organ and Tumors From Multiple Partially Labeled Datasets
- UniSeg: A Prompt-Driven Universal Segmentation Model as Well as A Strong Representation Learner
- SegVol: Universal and Interactive Volumetric Medical Image Segmentation
- Towards a general computed tomography image segmentation model for anatomical structures and lesions
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation
- A Comprehensive Analysis of Mamba for 3D Volumetric Medical Image Segmentation
- 3D Deeply Supervised Network for Automatic Liver Segmentation from CT Volumes