Skip to content

Menu

WorksComputer Science

UniPro: Unified Multi-Mode Medical Image Segmentation from 2D Images to 3D Volumes via Propagation

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_xcrpyh84. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Medical image segmentation remains fragmented along two axes: segmentation paradigms and data dimensionality. Existing methods are typically developed separately for semantic, in-context, and interactive segmentation, and are further specialized to either native 2D images or 3D volumetric data. In clinical practice, however, segmentation workflows take many forms: a case may be initialized by semantic prediction, reference-guided segmentation, or user interaction. Regardless of how it begins, fine-grained refinement is naturally performed on 2D views; for volumetric scans, such 2D edits must propagate coherently to the rest of the volume. We present UniPro, a unified model that bridges segmentation paradigms and data dimensionality, using propagation to extend 2D segmentation to 3D volumes. Our key insight is that volumetric propagation and in-context segmentation share the same reference-conditioned prediction mechanism, differing only in whether the reference image-mask pairs come from other cases or from previously segmented neighboring slices. Building on this view, UniPro supports semantic, in-context, interactive, and propagation-based segmentation within a single slice-based framework, using class priors, reference exemplars, user clicks, and neighboring-slice predictions as mode-specific conditioning inputs. To improve propagation reliability, UniPro further incorporates bidirectional and 3D supervision to regularize slice-wise propagation beyond per-slice losses. Extensive experiments across diverse modalities and anatomies show that UniPro achieves strong performance across all segmentation settings, enabling annotation-efficient 3D segmentation from sparse 2D initialization and reducing slice-by-slice correction effort.

Introduction

Medical image segmentation is a cornerstone of quantitative analysis and clinical decision-making. By delineating anatomical structures and pathological regions, it supports a wide range of downstream applications, including structural assessment [6, 49], disease diagnosis [43, 23], and agent-driven clinical analysis workflows [34, 37]. Recent advances in deep learning have substantially improved segmentation performance across diverse organs, imaging modalities, and datasets [25, 39]. Despite this progress, medical image segmentation remains fragmented along two axes: segmentation paradigms and data dimensionality. Existing methods are typically developed separately for semantic, in-context, and interactive segmentation [8, 27, 28, 39], and are further specialized to either native 2D images or 3D volumetric data [19, 20, 52, 40, 54]. As a result, advances in individual settings have not yet led to a unified framework that naturally supports the full spectrum of medical segmentation workflows.

This fragmentation is also misaligned with real-world clinical practice. Clinicians work with both native 2D images and volumetric scans, for example reading chest X-rays and dermatology photographs in their original 2D form while reviewing CT and MRI studies slice-by-slice in 3D volumes [43]. A case may be initialized by semantic prediction, reference-guided segmentation, or user interaction [24]. Regardless of the initialization source, fine-grained refinement is naturally performed on 2D views, where local boundaries and subtle anatomical details are easier to inspect and correct [40]. For volumetric data, such 2D edits can be extended to the remaining slices through propagation, which sequentially predicts segmentation masks using initialized or previously segmented slices as references while preserving local editability. Together, these observations suggest that medical segmentation is inherently multi-mode and cross-dimensional, and that flexible initialization combined with editable volumetric propagation can naturally bridge these dimensions.

To address this challenge, we propose UniPro1, a unified model for multi-mode medical image segmentation, with propagation as the bridge between 2D and 3D (Figure 1). Our key insight is that volumetric propagation and in-context segmentation share the same reference-conditioned prediction mechanism: both predict a target mask conditioned on image–mask references, differing only in whether the references come from other cases or from previously segmented neighboring slices within the same volume. Within a single slice-based framework, UniPro additionally supports semantic and interactive segmentation through class priors and user clicks, thereby unifying class-level, reference-based, click-based, and neighboring-slice conditioning without separate task-specific architectures. Reliable propagation remains challenging because sequential predictions can accumulate drift along the propagation chain, and slice-wise optimization alone does not sufficiently constrain the volumetric consistency. To improve propagation reliability, UniPro incorporates bidirectional and 3D supervision to regularize slice-wise propagation beyond per-slice losses. Together, these components enable UniPro to deliver coherent 3D segmentation from sparse 2D initialization while remaining locally editable—matching the multi-mode, cross-dimensional nature of clinical workflows.

Figure 1. Comparison of medical image segmentation paradigms. Existing task-specific, universal, and propagation-based models cover only part of the design space, with limitations in segmentation modes, data dimensionality, or propagation capability. UniPro unifies multi-mode segmentation, native 2D and 3D data, and volumetric propagation in a single slice-based framework.

In summary, our contributions are: (1) To our knowledge, UniPro is the first unified slice-based framework that jointly supports semantic, in-context, interactive, and propagation-based segmentation across native 2D images and 3D volumes. (2) We formulate volumetric propagation and in-context segmentation under a shared reference-conditioned prediction mechanism, allowing propagation to reuse the same conditioning pathway over neighboring slices. (3) We incorporate bidirectional and 3D supervision to regularize slice-wise propagation beyond per-slice losses, improving reliability for volumetric medical segmentation. (4) We evaluate UniPro on 14 medical imaging datasets across diverse modalities, anatomies, and segmentation settings, demonstrating strong performance and generalization, together with annotation-efficient 3D segmentation from sparse 2D initialization.

Related Work

Universal Medical Image Segmentation

Recent studies have explored unified medical segmentation frameworks that support multiple segmentation paradigms within a single model. Existing approaches typically achieve partial unification, such as combining semantic and in-context segmentation [21], semantic and interactive segmentation [22, 44, 18], or in-context and interactive segmentation [50, 55]. However, these frameworks are usually designed for a subset of segmentation modes and are often confined to a single data dimensionality. In contrast, UniPro aims to unify semantic, in-context, interactive, and propagation-based segmentation while supporting both native 2D images and 3D volumes through a slice-based framework.

2D and 3D Medical Image Segmentation

Medical image segmentation methods are commonly developed for either native 2D images or 3D volumetric scans. 2D models, such as nnU-Net [27], MedSAM [39], UniverSeg [8], and SAM-Med2D [16], are naturally suited for native 2D modalities such as X-ray, dermoscopy, ultrasound, and endoscopy, and can also be applied to 3D volumes by processing them slice by slice. However, when used for volumetric data, independent 2D prediction does not explicitly model cross-slice continuity and often requires dense per-slice prediction or correction to obtain coherent 3D masks. In contrast, 3D models, such as UNETR [25], nnInteractive [28], and SAM-MED3D [48], capture volumetric context and inter-slice dependencies, but are typically tied to volumetric inputs, often incur higher computational and memory costs than conventional 2D slice-based models, and provide limited flexibility for localized 2D slice-level editing. UniPro bridges this gap by retaining compatibility with native 2D images and slice-level editability, while using propagation to extend sparse 2D initialization and refinements into coherent 3D predictions.

Propagation-Based Models

Propagation-based models segment volumes sequentially by propagating mask information from annotated or previously segmented slices to adjacent slices. Compared with full-volume 3D processing, propagation-based models retain slice-level modeling and local editability through sequential slice-wise prediction [12]. Correspondence- and registration-based approaches [53, 2, 7] extend a single annotated slice to a full volume by learning inter-slice correspondences or displacement fields. Recent medical propagation models [40, 12, 3, 11] are often inspired by video segmentation models such as SAM2 [42]. However, they mainly operate on 3D volumes or video-like sequences and are usually designed for propagation-centric, interaction-based segmentation, rather than jointly supporting native 2D images and multiple segmentation modes. Moreover, most propagation methods lack explicit regularization for anatomical continuity in medical volumes, making sequential predictions prone to error accumulation and cross-slice drift [3]. In contrast, UniPro integrates propagation into a unified multi-mode framework by treating neighboring-slice propagation as reference-conditioned prediction, and further regularizes slice-wise propagation with bidirectional and 3D supervision.

Method

Overview

Figure 2 illustrates the UniPro framework. UniPro is built on a shared 2D encoder–decoder backbone that supports four segmentation settings: semantic, in-context, interactive, and propagation-based segmentation through different forms of conditioning applied to the same backbone. Specifically, UniPro supports the following settings:

Figure 2. UniPro overview. (a) A unified slice-based segmentation pipeline for semantic, in-context, interactive, and propagation-based segmentation. UniPro uses a shared image encoder and decoder, with different settings instantiated through mode-specific conditioning inputs. Conditioning signals are converted into dense 2-D fusion features and sparse 1-D queries, which are jointly fed to the MoE Transformer decoder. Notably, propagation is formulated as in-context segmentation over neighboring slices, enabling coherent volumetric segmentation. (b) Two-stage training strategy. Stage 1 jointly pretrains semantic, in-context, and interactive segmentation with the shared backbone. Stage 2 further adapts the model to propagation with bidirectional and 3D consistency supervision.

  • Semantic segmentation: the model predicts the mask from the input image conditioned on class-level prior queries.

  • In-context segmentation: the model conditions on reference image–mask pairs for reference-guided prediction.

  • Interactive segmentation: the model takes user clicks for mask prediction and iterative refinement.

  • Propagation for 3D volumes: the model performs slice-wise propagation from a seed slice (initialized by any of the above modes), treating each query slice as in-context segmentation conditioned on previously segmented neighboring slices.

To realize these capabilities within a single framework, UniPro is trained in two stages. In Stage 1, the shared backbone is jointly optimized for semantic, in-context, and interactive segmentation, learning a unified representation under diverse conditioning forms. In Stage 2, the same backbone is further trained for volumetric propagation with propagation-specific supervision that improves slice-wise propagation reliability beyond per-slice losses. Detailed architectures and training procedures are provided in the Appendix A.3.

Propagation as Reference-Conditioned In-Context Segmentation

Anchor-pinned reference set construction. Given a 3D volume V∈RD×3×H×W\mathbf{V} \in\mathbb{R}^{D \times3 \times H \times W} with DD axial slices, UniPro produces the full segmentation by bidirectionally propagating from a seed slice z∗z^*, defined as the median axial index of the target organ. The accompanying seed mask M^z∗\hat{\mathbf{M}}_{z^*} may originate from semantic, in-context, or interactive segmentation, or from ground-truth annotation. For notational simplicity, we describe only the forward direction. At each step q>z∗q > z^*, propagation is cast as a reference-conditioned in-context prediction problem, where the query slice Iq∈R3×H×W\mathbf{I}_q \in\mathbb{R}^{3 \times H \times W} is segmented using a dynamically maintained reference set

Rq={(Iz∗,M^z∗)}∪{(Iq−j,M^q−j)}j=1r−1,(1)\mathcal{R}_q = \{(\mathbf{I}_{z^*}, \hat{\mathbf{M}}_{z^*})\} \cup\{(\mathbf{I}_{q-j}, \hat{\mathbf{M}}_{q-j})\}_{j=1}^{r-1}, \tag*{(1)}

with r=5r = 5 by default. The seed pair is permanently anchored in Rq\mathcal{R}_q and combined with the r−1r-1 most recently propagated neighbors, providing a persistent, well-localized reference that mitigates cumulative semantic drift over long slice ranges. For brevity, we hereafter stack the reference images and masks in Rq\mathcal{R}_q as Iref∈Rr×3×H×W\mathbf{I}_{\mathrm{ref}} \in\mathbb{R}^{r \times3 \times H \times W} and Mref∈Rr×1×H×W\mathbf{M}_{\mathrm{ref}} \in\mathbb{R}^{r \times1 \times H \times W}.

Dense reference-to-query feature matching. Given a query slice Iq\mathbf{I}_q together with its reference set Rq\mathcal{R}_q, a shared image encoder extracts spatial key features from both sides:

Kquery=Encoder⁡(Iq)∈RC×h×w,Kref=Encoder⁡(Iref)∈RC×r×h×w.(2)\mathbf{K}^{\mathrm{query}} = \operatorname{Encoder}(\mathbf{I}_q) \in\mathbb{R}^{C \times h \times w}, \qquad\mathbf{K}^{\mathrm{ref}} = \operatorname{Encoder}(\mathbf{I}_{\mathrm{ref}}) \in\mathbb{R}^{C \times r \times h \times w}. \tag*{(2)}

In parallel, a lightweight mask encoder embeds the reference image–mask pairs into context-aware value features:

Vref=MaskEncoder⁡(Concat⁡[Iref,Mref])∈RC×rhw.(3)\mathbf{V}^{\mathrm{ref}}=\operatorname{MaskEncoder}(\operatorname{Concat}[\mathbf{I}_{\mathrm{ref}},\mathbf{M}_{\mathrm{ref}}])\in\mathbb{R}^{C\times rhw}. \tag*{(3)}

Since Kref\mathbf{K}^{\mathrm{ref}} and Kquery\mathbf{K}^{\mathrm{query}} reside in a common embedding space, pixel-wise correspondences between reference and query locations can be established directly. Formally, for a similarity function c:RC×RC→Rc:\mathbb{R}^{C}\times\mathbb{R}^{C}\to\mathbb{R}, we compute the affinity matrix and normalize it column-wise via softmax:

Ai,j=c(K:,iref,K:,jquery),Wi,j=exp⁡(Ai,j)∑nexp⁡(An,j).(4)A_{i,j}=c(\mathbf{K}^{\mathrm{ref}}_{:,i},\mathbf{K}^{\mathrm{query}}_{:,j}),\qquad W_{i,j}=\frac{\exp(A_{i,j})}{\sum_{n}\exp(A_{n,j})}. \tag*{(4)}

where A,W∈Rrhw×hwA,W\in\mathbb{R}^{rhw\times hw}. We instantiate cc as a negative squared Euclidean similarity following Cheng et al. [15] (see Appendix § 8.1.3 for the explicit form). The normalized weights WW then aggregate reference values into a query-aligned dense fusion feature carrying per-location semantic cues transferred from the reference set to the query:

Ffuse=VrefW∈RC×hw.(5)\mathbf{F}_{\mathrm{fuse}}=\mathbf{V}^{\mathrm{ref}}W\in\mathbb{R}^{C\times hw}. \tag*{(5)}

Sparse foreground–background queries. To complement the dense fusion feature with object-level context, we condense the reference key features Kref\mathbf{K}^{\mathrm{ref}} into a small set of 1-D foreground–background queries Qs∈Rns×C\mathbf{Q}^{s}\in\mathbb{R}^{n_s\times C} via masked average pooling. Here, “sparse” refers to this compact query set relative to the spatially dense 2-D feature map: the queries summarize object-level semantics, whereas the dense features preserve spatially aligned, location-specific details. The first ns/2n_s/2 queries summarize foreground semantics and the remaining half summarize background semantics. Let Mpool∈[0,1]rhw\mathbf{M}^{\mathrm{pool}}\in[0,1]^{rhw} denote Mref\mathbf{M}_{\mathrm{ref}} downsampled and flattened to the key feature resolution, so that Mupool\mathbf{M}^{\mathrm{pool}}_u indicates whether spatial location uu is foreground. For the nn-th query, we then define a binary selection weight vun∈{0,1}v^n_u\in\{0,1\} and compute

vun={1,n≤ns2 and Mupool≥0.5,1,n>ns2 and Mupool<0.5,0,otherwise,Qn,:s=∑u=1rhw(Kref)u,:Tvun∑u=1rhwvun∈RC.(6)v^n_u= \begin{cases} 1, & n\le\frac{n_s}{2}\ \text{and}\ \mathbf{M}^{\mathrm{pool}}_u\ge0.5,\\ 1, & n>\frac{n_s}{2}\ \text{and}\ \mathbf{M}^{\mathrm{pool}}_u<0.5,\\ 0, & \text{otherwise}, \end{cases} \qquad \mathbf{Q}^{s}_{n,:}=\frac{\sum_{u=1}^{rhw}(\mathbf{K}^{\mathrm{ref}})_{u,:}^{\mathsf{T}}v^n_u}{\sum_{u=1}^{rhw}v^n_u}\in\mathbb{R}^{C}. \tag*{(6)}

The sparse foreground–background queries Qs\mathbf{Q}^{s} and dense fusion features Ffuse\mathbf{F}_{\mathrm{fuse}} jointly condition the decoder to predict the slice-wise mask:

M^q=Decoder⁡(Iq∣Ffuse,Qs)∈[0,1]H×W.(7)\widehat{\mathbf{M}}_q=\operatorname{Decoder}(\mathbf{I}_q\mid\mathbf{F}_{\mathrm{fuse}},\mathbf{Q}^{s})\in[0,1]^{H\times W}. \tag*{(7)}

Stacking the predictions along the axial dimension yields the full 3D segmentation V^∈[0,1]D×H×W\widehat{\mathbf{V}}\in[0,1]^{D\times H\times W}. Notably, this formulation unifies slice-wise propagation and in-context segmentation: both operate on a query image paired with a set of image–mask exemplars and invoke the same dense-plus-sparse prompting pipeline. The two modes differ only in how Rq\mathcal{R}_q is composed: from recently segmented neighboring slices for propagation, or from externally annotated exemplars for in-context segmentation, while the prediction mechanism remains unchanged.

Propagation and Consistency Objectives

Stage II propagation objective. To train the model for volumetric propagation, we sample a short slice queue Q={(It,Mt)}t=1T\mathcal{Q}=\{(\mathbf{I}_t,\mathbf{M}_t)\}_{t=1}^{T} of length T=8T=8, where It\mathbf{I}_t is the image at slice tt and Mt\mathbf{M}_t is the corresponding binary ground-truth mask. Beyond standard slice-wise supervision, our Stage II objective addresses two challenges specific to propagation: (1) error accumulation along the propagation direction, mitigated by backward propagation with seed reconstruction; and (2) lack of global volumetric consistency across slices, addressed by a lightweight 3D verification loss.

Forward propagation loss. Starting from the seed slice, the model obtains an initial mask M^1\widehat{\mathbf{M}}_1 and propagates the segmentation to subsequent slices. Each propagated slice is supervised by a standard 2D segmentation loss:

L2D(M^t,Mt)=Ldice(M^t,Mt)+Lce(M^t,Mt).(8)\mathcal{L}_{2D}(\widehat{\mathbf{M}}_t,\mathbf{M}_t)=\mathcal{L}_{\mathrm{dice}}(\widehat{\mathbf{M}}_t,\mathbf{M}_t)+\mathcal{L}_{\mathrm{ce}}(\widehat{\mathbf{M}}_t,\mathbf{M}_t). \tag*{(8)}

where M^t\widehat{\mathbf{M}}_t is the prediction at slice tt. The forward propagation loss aggregates the per-slice losses across the queue, with an additional weight λinit\lambda_{\mathrm{init}} on the seed slice:

Lfwd=1T(λinitL2D(M^1,M1)+∑t=2TL2D(M^t,Mt)).(9)\mathcal{L}_{\mathrm{fwd}}=\frac{1}{T}\left(\lambda_{\mathrm{init}}\mathcal{L}_{2D}(\widehat{\mathbf{M}}_1,\mathbf{M}_1)+\sum_{t=2}^{T}\mathcal{L}_{2D}(\widehat{\mathbf{M}}_t,\mathbf{M}_t)\right). \tag*{(9)}

Backward propagation and seed reconstruction. Forward-only propagation suffers from one-way cascading errors: a drift introduced at an early slice is silently inherited by all subsequent predictions with no corrective signal. We therefore additionally propagate from slice TT back to the seed, letting M~t\widetilde{\mathrm{M}}_t denote the backward prediction at slice tt; the reconstructed seed M~1\widetilde{\mathrm{M}}_1 then acts as a cycle-consistency checkpoint, whose supervision gradient penalizes forward drift at its source. We apply the same slice-wise supervision during backward propagation, with an additional weight λseed\lambda_{\mathrm{seed}} on the reconstructed seed slice to emphasize cycle consistency:

Lbwd=1T−2∑t=2T−1L2D(M~t,Mt)+λseedL2D(M~1,M1).(10)\mathcal{L}_{\mathrm{bwd}} = \frac{1}{T-2}\sum_{t=2}^{T-1}\mathcal{L}_{2D}(\widetilde{\mathrm{M}}_t,\mathrm{M}_t) + \lambda_{\mathrm{seed}}\mathcal{L}_{2D}(\widetilde{\mathrm{M}}_1,\mathrm{M}_1). \tag*{(10)}

The last slice is directly supervised by Lfwd\mathcal{L}_{\mathrm{fwd}}, while the first slice is explicitly reconstructed during backward propagation. The weight λseed\lambda_{\mathrm{seed}} strengthens this reconstruction supervision to help limit accumulated propagation drift. Since our model is memory-based, forward and backward propagation invoke the same reference-conditioned function f(Iq,Rq)f(I_q,\mathcal{R}_q) and differ only in the content of Rq\mathcal{R}_q, so Lbwd\mathcal{L}_{\mathrm{bwd}} introduces no additional parameters. We further provide a theoretical analysis of Lbwd\mathcal{L}_{\mathrm{bwd}} in Appendix § 9.

3D supervision. While slice-wise supervision improves local accuracy, it does not explicitly enforce volumetric coherence: predictions can be locally plausible on each slice yet form an incoherent 3D shape overall. We therefore introduce a 3D verification loss that operates directly on stacked 2D predictions, without introducing 3D convolutions or other volumetric modules:

M^3D=[M^1,M^2,…,M^T],M3D=[M1,M2,…,MT].(11)\widehat{\mathrm{M}}^{3D} = [\widehat{\mathrm{M}}_1,\widehat{\mathrm{M}}_2,\ldots,\widehat{\mathrm{M}}_T], \qquad\mathrm{M}^{3D} = [\mathrm{M}_1,\mathrm{M}_2,\ldots,\mathrm{M}_T]. \tag*{(11)}

We then compare the predicted queue against the ground-truth queue using

L3D−ver=Ldice3D(M^3D,M3D)+Lce3D(M^3D,M3D),(12)\mathcal{L}_{\mathrm{3D-ver}} = \mathcal{L}_{\mathrm{dice}}^{3D}(\widehat{\mathrm{M}}^{3D},\mathrm{M}^{3D}) + \mathcal{L}_{\mathrm{ce}}^{3D}(\widehat{\mathrm{M}}^{3D},\mathrm{M}^{3D}), \tag*{(12)}

where Ldice3D\mathcal{L}_{\mathrm{dice}}^{3D} is computed over the entire queue jointly rather than averaging per-slice Dice scores, so errors concentrated in a few slices are not washed out by well-predicted ones. This term encourages coherent anatomical structure across the queue and discourages abrupt disappearance, leakage, or unrealistic shape variation between neighboring slices.

Overall Objective. To prevent the model from forgetting the native 2D datasets (e.g., X-ray, dermoscopy) seen in Stage I, we keep the Stage I objective active during Stage II training. The total Stage II loss combines both:

Lstage II=Lstage I+Lfwd+λbwdLbwd+λ3dL3d.(13)\mathcal{L}_{\mathrm{stage\ II}} = \mathcal{L}_{\mathrm{stage\ I}} + \mathcal{L}_{\mathrm{fwd}} + \lambda_{\mathrm{bwd}}\mathcal{L}_{\mathrm{bwd}} + \lambda_{\mathrm{3d}}\mathcal{L}_{\mathrm{3d}}. \tag*{(13)}

This combined objective jointly improves local segmentation accuracy, propagation consistency in both directions, seed preservation after a forward-backward cycle, and global volumetric coherence across the full slice queue, while preserving the four-mode segmentation capability of the shared backbone. In our experiments, we set λinit=2\lambda_{\mathrm{init}}=2, λseed=2\lambda_{\mathrm{seed}}=2, λbwd=0.7\lambda_{\mathrm{bwd}}=0.7, and λ3d=5\lambda_{\mathrm{3d}}=5.

Experiments

Experimental Setup

Datasets. We train UniPro on 9 publicly available datasets [38, 30, 31, 6, 26, 1, 29, 10, 41, 17, 46], covering diverse imaging modalities, including CT, MRI, ultrasound, X-ray, and dermoscopy, as well as various clinical targets such as organs, tumors, and lesions. For evaluation, we additionally include four external datasets, BTCV [33], AC DC [5], UW-SC [47], and BUS [51], to assess cross-dataset generalization, and one unseen-class 3D dataset, BraTS [4], to test adaptation to novel anatomical and pathological structures. Full dataset and preprocessing details are provided in Appendix § 10.§ 1.

Baselines. We compare UniPro against three groups of baselines. For slice-based segmentation, we include semantic models nnU-Net (2D) [27], UniSeg [52], and Hermes [20], and in-context models UniverSeg [8], SegMIC [56], and Iris [21]. For volumetric segmentation, we report nnU-Net (3D) [27] as a fully supervised 3D upper-bound reference and nnInteractive [28] as a strong interactive 3D reference. For propagation-based segmentation, we include SAM2 [42], PAM [12], MedSAM2 [40], and iSegFormer [35]. For UniPro itself, we report two inference modes: UniPro (no-prop), where each 2D slice is segmented independently under the corresponding semantic or in-context setting; and UniPro (prop), where only a seed slice is initialized by semantic, in-context or interactive segmentation and the remaining slices are segmented through the propagation mechanism, producing a coherent 3D segmentation from sparse 2D initialization.

Evaluation protocol. All slice-based baselines are trained on 2D slices extracted from our curated datasets under the same protocol as UniPro, ensuring a fair comparison at the slice level. With the exception of SAM2, the 3D and propagation baselines are trained on the same corresponding 3D datasets with matched preprocessing, optimization settings, and training budgets as UniPro, while preserving their method-specific input formats and inference interfaces. Performance is measured by the Dice coefficient: 2D Dice is computed per slice for native 2D datasets, and 3D Dice is computed over the entire volume formed by target-containing slices. Full implementation details are provided in the Appendix § 8.§ 3.

Main Results on Interactive-to-Propagation Segmentation

Table 1 evaluates UniPro under a single-click propagation setting on 3D datasets, reflecting a practical annotation workflow where a user provides an initial click on one representative slice and the model completes the full volume automatically. UniPro (prop) achieves the best performance on 7 of 8 datasets, improving over the strongest propagation baseline MedSAM2 by 4.70 Dice points on LiTS (66.95% vs 62.25%) and 4.67 Dice points on M&Ms, and surpassing PAM and iSegFormer by larger margins on nearly all datasets. SAM2, despite large-scale natural image pretraining, performs poorly on medical volumes, indicating that natural-image pretraining alone does not transfer to volumetric medical segmentation. Notably, UniPro (prop) also outperforms the dedicated 3D interactive model nnInteractive, suggesting that a well-trained slice-based propagation can rival full-3D interactive approaches. UniPro further generalizes beyond the training distribution. On external datasets, it reaches 84.40% on BTCV and 87.97% on ACDC. Most strikingly, on BraTS (brain tumors, an anatomy unseen during training), UniPro achieves 54.89% compared to MedSAM2’s 40.74%, a gain of 14.15 Dice points that suggests the reference-conditioned mechanism transfers beyond the anatomies seen during training. Together, these results demonstrate that UniPro delivers both reliable seed-slice interaction and robust volumetric propagation across domain shifts and novel anatomies, supporting accurate 3D segmentation from minimal user input. More statistical analysis of these results is provided in Appendix § 11.§ 4.

Main Results on Semantic and In-Context Segmentation

Table 2 reports semantic and in-context segmentation across 3D and 2D datasets. On 3D datasets, UniPro (prop) achieves the best results on nearly all internal datasets in both semantic and in-context settings. In the semantic setting, UniPro (prop) reaches 87.73% on M&Ms and 89.49% on ACDC, surpassing the fully supervised 3D nnU-Net upper bound on both datasets despite using a 2D-based architecture. Propagation consistently improves over UniPro (no-prop) on six of the seven 3D datasets (e.g., +2.89 Dice points on CHAOS, +2.45 on KiTS), demonstrating that single-slice initialization combined with propagation effectively leverages volumetric continuity. Similar gains appear in the in-context setting, where UniPro (prop) outperforms strong baselines (UniverSeg, SegMIC, Iris) on most 3D datasets, including a gain of 2.42 Dice points over Iris on Abd-1K (87.64% vs 85.22%) and a gain of 4.93 Dice points on ACDC (88.44% vs 83.51%). This confirms that propagation serves as an effective intra-volume extension of in-context segmentation. On 2D datasets, UniPro remains competitive but does not always achieve the best performance: while it leads on UW-SC, specialized 2D models such as Hermes and Iris achieve the best results on most internal datasets. This reflects a training trade-off introduced by Stage-2 propagation adaptation: as the model is further trained for sequential slice prediction, it slightly drifts from the optimal solution for static 2D segmentation. We further discuss this trade-off in Discussion.

Method3D Datasets2D Datasets
InternalExternalInternalExternal
Abd-1KCHAOSM&MsLiTSKiTSBTCVACDCBreastBKAIChestISICBUSUW-SC
3D Upper Bound
nnU-Net (3D)88.4590.1585.4763.1481.2886.0288.59––––––
Semantic segmentation
nnU-Net (2D)79.1380.2985.4260.1275.9970.7384.6471.6883.4594.9586.7668.0079.78
UniSeg84.2684.1785.6656.2372.6881.5386.9172.3281.3394.5183.8667.1277.93
Hermes86.4386.2586.1560.6275.1784.2186.5975.2184.1295.5985.3368.6782.31
UniPro (no-prop)87.3085.0186.9560.8575.5684.3687.6073.8782.7295.0386.1167.2982.57
UniPro (prop)88.2087.9087.7361.1578.0183.5989.49––––––
In-context segmentation
UniverSeg64.2167.6163.3845.4260.7058.9359.8156.9073.9194.8879.6045.2368.31
SegMIC74.1272.6082.9148.3561.5672.7778.1464.1877.5396.1381.2068.3980.60
Iris85.2284.3184.7759.1074.2979.9483.5173.9982.5395.4085.2171.4482.57
UniPro (no-prop)87.0184.4886.6557.7775.6582.4885.9171.6380.9794.9984.6268.7884.92
UniPro (prop)87.6485.0187.3161.1576.3783.1888.44––––––

Table 2. Semantic and in-context segmentation across internal and external datasets (Dice, %, ↑). All in-context models use one-shot inference; propagation is applied only to 3D volumes. nnU-Net (3D) is reported as a fully supervised upper bound. Best results in each block are in bold.

Training StrategyACDCISIC
Stage-1 only86.7387.54
Stage-2 w/o 2D interleaving89.4682.40
Stage-2 w/ 2D interleaving89.4986.11

Table 3b. (b) Trade-off between 3D propagation gains and native 2D segmentation accuracy.

Ablation Study

Effect of propagation supervision. Table 3(a) ablates the bidirectional consistency loss Lbwd\mathcal{L}_{\mathrm{bwd}} and the 3D verification loss L3D\mathcal{L}_{3D} on ACDC under three propagation modes. Removing both reduces semantic Dice from 89.49% to 87.78%, with comparable drops in in-context (88.44% to 86.13%) and interactive (87.97% to 85.61%), confirming that propagation-specific supervision is essential beyond per-slice losses. Individually, L3D\mathcal{L}_{3D} contributes the larger share (a 1.57-Dice-point drop in semantic segmentation when removed) by enforcing cross-slice coherence that per-slice optimization cannot capture, while Lbwd\mathcal{L}_{\mathrm{bwd}} adds a smaller but consistent gain (0.39 Dice points on top of L3D\mathcal{L}_{3D}) by suppressing one-way drift. The two are complementary: L3D\mathcal{L}_{3D} regularizes global volumetric structure, Lbwd\mathcal{L}_{\mathrm{bwd}} stabilizes the sequential propagation process.

VariantSemanticIn-contextInteractive
w/o Lbwd\mathcal{L}_{\mathrm{bwd}} & L3D\mathcal{L}_{3D}87.7886.1385.61
w/o Lbwd\mathcal{L}_{\mathrm{bwd}}89.1087.3987.28
w/o L3D\mathcal{L}_{3D}87.9286.5186.20
Full model89.4988.4487.97

Table 3. (a) Effect of bidirectional and 3D verification supervision on ACDC.

Effect of interleaved Stage-2 training. We study the trade-off between learning 3D propagation and preserving native 2D segmentation ability. As shown in Table 3(b), Stage-2 training substantially improves ACDC (86.73% to 89.46%) but degrades ISIC by 5.14 Dice points (87.54% to 82.40%) when trained only on propagation samples, indicating partial forgetting of 2D capability. Interleaving 2D slice-level batches during Stage-2 recovers most of the lost 2D performance (ISIC 82.40% to 86.11%) while leaving ACDC essentially unchanged (89.46% to 89.49%). However, ISIC remains 1.43 Dice points below the Stage-1 only model, suggesting an inherent trade-off between volumetric propagation and native 2D segmentation. A complementary ablation further supports the benefit of combining Stage-I pretraining with Stage-II propagation training: the full pipeline outperforms either stage alone under GT-seed initialization (Appendix § 11.§ 6).

Effect of flexible interactive correction. We evaluate whether propagation reduces annotation effort during interactive 3D segmentation. Starting from an empty mask, the user iteratively places clicks until the 3D Dice reaches a target threshold (T=0.90T = 0.90 for ACDC, T=0.80T = 0.80 for the unseen BraTS) or a click budget of 100 is exhausted. We compare two settings: a slice-wise baseline, where each click updates only the clicked slice, and propagation, where the slice refined by user clicks is added to an anchor pool and the volume is re-segmented through propagation from the updated anchors. As shown in Figure 3a, propagation reaches the target Dice with fewer clicks (27.7 vs 25.2 on ACDC; 92.0 vs 57.0 on BraTS) and substantially fewer edited slices (8.5 vs 3.3 on ACDC; 62.4 vs 12.1 on BraTS). The gain is most pronounced on BraTS, where fragmented tumor regions make slice-by-slice annotation inefficient: propagation reduces the number of edited slices by over 80% (62.4 to 12.1) and clicks by nearly 40% (92.0 to 57.0). These results show that corrected slices serve as effective propagation anchors, reducing the numbers of clicks and edited slices in the simulated annotation protocol. Full simulation details are provided in Appendix § 11.§ 1.

Ablation analysis of UniPro’s 3D propagation behavior

Figure 3. (a) Annotation efficiency under interactive correction: UniPro reaches the target 3D Dice with fewer clicks and edited slices than slice-wise editing. (b) Seed initialization on ACDC: practical seeds (semantic, in-context, interactive) yield competitive single-seed propagation; multiple GT reference slices further improve performance. Figure 3: Ablation analysis of UniPro’s 3D propagation behavior.

Effect of seed initialization. We analyze how reference quality and quantity affect volumetric propagation on ACDC. Here NN denotes the number of GT slices retained as anchors in the sliding reference window during propagation. As shown in Figure 3b, practical seeds (semantic, in-context, interactive) reach 87.97–89.49% Dice from a single seed slice, only 1–3 Dice points below the oracle GT single-seed setting (90.98%). Increasing the number of GT reference slices monotonically improves performance, from 90.98% at N=1N = 1 to 92.07% at N=3N = 3, indicating that UniPro can effectively exploit additional high-quality anchors when available. Together, these results show that propagation is robust to the choice of practical initialization and scales gracefully with stronger references.

Robustness to seed-slice selection. On ACDC, we vary the seed location across five quantiles of the target extent and a randomly selected target-containing slice, using ground-truth seed masks to isolate the effect of location. Dice remains within 89.46–91.03%, with random initialization achieving 90.12% compared with 90.98% for the median seed. Central slices generally yield slightly better results, consistent with their typically larger target regions providing more informative references, whereas boundary seeds show only modest degradation. Overall, propagation remains effective across the evaluated seed locations under GT-mask initialization; detailed results are provided in Appendix § 11.§ 3.

Visualization

We complement the quantitative evaluation with qualitative comparisons and success–failure analysis. In the pancreas example (Figure 5), UniPro maintains coherent segmentation across distant slices, whereas the compared baselines exhibit leakage, incomplete coverage, or loss of the target. Figure 6 extends this analysis to irregular and multi-component tumors in LiTS, KiTS, and BraTS, showing the seed slice, selected propagated slices at increasing absolute distances, and corresponding 3D ground-truth and predicted masks. In the successful examples, UniPro segments the dominant irregular tumors in LiTS and KiTS and a relatively compact lesion in BraTS, despite brain anatomy and brain tumors being absent from training. Failures include missed small or spatially separated components in LiTS and KiTS and incomplete segmentation of a heterogeneous, fragmented BraTS lesion. Local errors also remain in the successful examples. These observations suggest that propagation depends not only on geometric complexity or anatomical familiarity, but also on component size, appearance consistency, and cross-slice continuity. Detailed visualizations and analyses are provided in Appendix § 12.

Qualitative comparison on pancreas segmentation under the single-click propagation setting

Figure 5. Qualitative comparison on pancreas segmentation under the single-click propagation setting. Each row shows a different method propagating from a single positive click (★) on the seed slice (z=34z = 34) to representative slices at z=22,28,43,48z = 22, 28, 43, 48, with the resulting 3D reconstruction shown in the rightmost column. UniPro produces masks that closely follow the ground-truth pancreas boundary across the entire volume, while baselines exhibit boundary leakage (PAM, iSegFormer), partial coverage (nnInteractive, MedSAM2), or large over-segmentation toward neighboring organs (SAM2). Per-volume 3D Dice is reported next to each method name.

Selected success and failure cases on LiTS, KiTS, and BraTS

Figure 6. Selected success and failure cases on LiTS, KiTS, and BraTS. Each row shows the seed slice (red border), four additional slices ordered by absolute distance from the seed, and 3D ground-truth and predicted surfaces. Green contours and orange overlays denote ground truth and predictions; 3D surfaces use the same colors. zz is the slice index and Δ\Delta the absolute index distance in the preprocessed volume.

Discussion

We have presented UniPro, a unified framework that connects multiple segmentation paradigms across native 2D and 3D data. UniPro is particularly suited to heterogeneous segmentation and volumetric annotation workflows that combine automatic or reference-guided initialization, interactive correction, and propagation. Its shared interface allows difficult slices to be corrected locally and the corrections propagated through the volume. Dedicated models may remain preferable for fixed single-task applications.

Limitations and future work. Several limitations remain and motivate future work. Trade-offs between 2D and 3D. Stage-2 propagation adaptation improves 3D segmentation but can reduce native 2D accuracy, which interleaved 2D training only partly mitigates. Compared with the 3D nnU-Net baseline, UniPro uses less peak inference memory but requires longer inference time, partly due to sequential propagation (Appendix § 11.§ 5). Future work could explore better multi-task optimization and propagation strategies that allow greater parallelization. Gap to fully supervised 3D models. UniPro trails the fully supervised 3D nnU-Net on most datasets in the semantic setting. It processes ordered 2D slices without explicit spacing or physical-distance inputs. Although isotropic spacing is not required, large through-plane gaps can weaken cross-slice correspondence. Incorporating spatial information, stronger cross-slice integration, or lightweight volumetric components may help close this gap. Irregular and multi-component targets. UniPro imposes no explicit convexity or single-component constraint. However, single-click initialization may miss disconnected regions, and weak cross-slice correspondence can hinder propagation. Additional interaction or alternative initialization may improve coverage. Robustness to fragmented targets and evaluation on untested structures, such as the intestine, remain directions for future work. Towards a medical segmentation foundation model. Our training corpus remains modest relative to that of large-scale models such as SAM2 [42]. Expanding data diversity and model capacity, together with broader evaluation across domains, is an important direction for improving generalization while retaining the unified segmentation interface.

Conclusion

We present UniPro, a unified slice-based framework that supports semantic, in-context, interactive, and propagation-based medical image segmentation within a single model. By formulating volumetric propagation as a special case of reference-conditioned in-context prediction, UniPro bridges native 2D images and 3D volumes through a shared backbone, enabling coherent volumetric segmentation from sparse 2D initialization. Extensive experiments across diverse modalities, anatomies, and segmentation settings show that UniPro achieves strong performance and cross-dataset generalization, while reducing clicks and edited slices in simulated interactive volumetric annotation. We believe this work points to a promising direction toward scalable, unified medical segmentation models that generalize across tasks, modalities, and dimensions.

Acknowledgments

This research has been partially funded by research grants to D. Metaxas through NSF: 2310966, 2235405, 2212301, 2003874, 1951890 and NIH 2R01HL127661.

Competing interests. The authors declare no competing interests.

Method

Problem Definition

Unified multi-mode segmentation.

UniPro formulates medical image segmentation as a unified condition-driven prediction problem, where different forms of guidance specify what or where to segment within the same shared architecture. Given an input image I\mathbf{I} and a mode-specific condition G\mathcal{G}, the model predicts

M^=fθ(I∣G).(14)\hat{\mathbf{M}} = f_{\theta}(\mathbf{I}\mid\mathcal{G}). \tag*{(14)}

Under this formulation, UniPro supports three primary 2D segmentation modes (semantic, in-context, and interactive) and further extends in-context segmentation to volumetric propagation as a fourth mode.

  • Mode-1: Semantic segmentation. Semantic segmentation uses learned class-level priors as the condition. Given a learnable class embedding matrix P∈RNcls×(p×C)\mathbf{P} \in\mathbb{R}^{N_{\mathrm{cls}}\times(p\times C)}, each class nn is represented by pn∈Rp×C\mathbf{p}_n \in\mathbb{R}^{p\times C}, which contains pp semantic query vectors. The prediction for class nn is formulated as

M^n=fθ(I∣pn).(15)\hat{\mathbf{M}}_n = f_{\theta}(\mathbf{I}\mid\mathbf{p}_n). \tag*{(15)}
  • Mode-2: In-context segmentation. In-context segmentation defines the target object using annotated reference examples instead of a predefined class label. Given a query image Iq\mathbf{I}_q and a support set S={(Iref(i),Mref(i))}i=1K\mathcal{S} = \{(\mathbf{I}_{\mathrm{ref}}^{(i)},\mathbf{M}_{\mathrm{ref}}^{(i)})\}_{i=1}^{K}, UniPro predicts

M^q=fθ(Iq∣S).(16)\hat{\mathbf{M}}_q = f_{\theta}(\mathbf{I}_q\mid\mathcal{S}). \tag*{(16)}
  • Mode-3: Interactive segmentation. Interactive segmentation uses user-provided prompts, such as positive and negative clicks, as the condition. Given a click set C={ci}i=1Nc\mathcal{C} = \{c_i\}_{i=1}^{N_c}, the model predicts

M^=fθ(I∣C).(17)\hat{\mathbf{M}} = f_{\theta}(\mathbf{I}\mid\mathcal{C}). \tag*{(17)}

This mode can either produce masks from scratch or refine predictions initialized by semantic or in-context segmentation.

  • Mode-4: Propagation-based volumetric segmentation. Propagation is treated as an intra-volume special case of in-context segmentation. Instead of using external annotated support images, the support set is constructed from previously segmented slices within the same 3D volume. Given a volume V={Iz}z=1D\mathbf{V} = \{\mathbf{I}_z\}_{z=1}^{D} and a seed prediction M^∗\hat{\mathbf{M}}_{*} initialized by any of the 2D modes or provided as ground truth, UniPro segments the remaining slices by repeatedly applying

M^z=fθ(Iz∣Rz),(18)\hat{\mathbf{M}}_z = f_{\theta}(\mathbf{I}_z\mid\mathcal{R}_z), \tag*{(18)}

where Rz={(Ir,M^r)}r∈N(z)\mathcal{R}_z = \{(\mathbf{I}_r,\hat{\mathbf{M}}_r)\}_{r\in\mathcal{N}(z)} denotes the intra-volume reference set formed by the seed slice and nearby propagated slices. Thus, Mode-4 shares the same reference-conditioned formulation as Mode-2, but restricts the support examples to the current volume and applies the prediction sequentially along the slice dimension. This enables UniPro to handle 3D volumetric segmentation without introducing a separate 3D-specific architecture.

In the following sections, we describe how UniPro realizes these modes within a shared architecture by converting heterogeneous segmentation conditions into a unified condition representation.

Semantic segmentation

Given an input image I∈R3×H×W\mathbf{I} \in\mathbb{R}^{3\times H\times W}, the image encoder extracts a visual feature map:

F=Encoder⁡(I),F∈RC×h×w,(19)\mathbf{F} = \operatorname{Encoder}(\mathbf{I}),\quad\mathbf{F} \in\mathbb{R}^{C\times h\times w}, \tag*{(19)}

where CC denotes the feature dimension and hh, ww denote the spatial resolution of the encoded features. In semantic segmentation, the condition is provided by learned class-level sparse queries; since no spatial reference mask or user interaction is available, this mode relies solely on sparse queries. We define a learnable semantic prompt matrix P∈RNcls×(p×C)\mathbf{P} \in\mathbb{R}^{N_{\mathrm{cls}}\times(p\times C)}, where each class nn is associated with a prompt set pn∈RP×C\mathbf{p}_n \in\mathbb{R}^{P \times C}. These prompts are optimized during training and encode class-level anatomical priors. To segment class nn, UniPro feeds the image feature F\mathbf{F} and the corresponding semantic prompt pn\mathbf{p}_n into the shared decoder:

M^n=Decoder⁡(F∣pn).(20)\hat{\mathbf{M}}_n = \operatorname{Decoder}(\mathbf{F} \mid\mathbf{p}_n). \tag*{(20)}

In-context segmentation

In-context segmentation uses annotated reference examples as the conditioning information. Let the support set be S={(Iref,Mref)}\mathcal{S} = \{(\mathbf{I}_{\mathrm{ref}}, \mathbf{M}_{\mathrm{ref}})\}, where Iref∈RNref×3×H×W\mathbf{I}_{\mathrm{ref}} \in\mathbb{R}^{N_{\mathrm{ref}} \times3 \times H \times W} denotes the reference images and Mref∈RNref×1×H×W\mathbf{M}_{\mathrm{ref}} \in\mathbb{R}^{N_{\mathrm{ref}} \times1 \times H \times W} denotes the corresponding segmentation masks. This conditioning signal is encoded into two complementary components: sparse foreground–background queries and spatially aligned dense fusion features.

Given a query image Iq\mathbf{I}_q and reference images Iref\mathbf{I}_{\mathrm{ref}}, the shared image encoder first extracts query and reference features:

Fq=Encoder⁡(Iq),Fk=Encoder⁡(Iref),(21)\mathbf{F}_q = \operatorname{Encoder}(\mathbf{I}_q), \quad\mathbf{F}_k = \operatorname{Encoder}(\mathbf{I}_{\mathrm{ref}}), \tag*{(21)}

while the reference image–mask pairs are encoded into value features by a lightweight mask encoder:

Fv=MaskEncoder⁡(Concat⁡[Iref,Mref]).(22)\mathbf{F}_v = \operatorname{MaskEncoder}(\operatorname{Concat}[\mathbf{I}_{\mathrm{ref}}, \mathbf{M}_{\mathrm{ref}}]). \tag*{(22)}

For dense prompts, these encoded features are flattened as

Kref=Flat⁡(Fk)∈RC×Nrefhw,Vref=Flat⁡(Fv)∈RC×Nrefhw,Kq=Flat⁡(Fq)∈RC×hw.(23)\mathbf{K}^{\mathrm{ref}} = \operatorname{Flat}(\mathbf{F}_k) \in\mathbb{R}^{C \times N_{\mathrm{ref}}hw}, \quad\mathbf{V}^{\mathrm{ref}} = \operatorname{Flat}(\mathbf{F}_v) \in\mathbb{R}^{C \times N_{\mathrm{ref}}hw}, \quad\mathbf{K}^q = \operatorname{Flat}(\mathbf{F}_q) \in\mathbb{R}^{C \times hw}. \tag*{(23)}

Since Kref\mathbf{K}^{\mathrm{ref}} and Kq\mathbf{K}^q are extracted by the same encoder, they lie in a shared feature space where query–reference correspondences can be computed. The value features Vref\mathbf{V}^{\mathrm{ref}}, derived from reference image–mask pairs, are then transferred to the query space through these correspondences, providing dense mask-aware guidance. Following [14, 15], we adopt the negative squared Euclidean distance to compute the affinity matrix A\mathbf{A}:

Ai,j=−∥K:,iref−K:,jq∥22=2K:,jrefTK:,jq−∥K:,iref∥22−∥K:,jq∥22,(24)A_{i,j} = -\left\lVert\mathbf{K}^{\mathrm{ref}}_{:,i} - \mathbf{K}^{q}_{:,j} \right\rVert_2^2 = 2\mathbf{K}^{\mathrm{ref}\mathsf{T}}_{:,j}\mathbf{K}^{q}_{:,j} - \left\lVert\mathbf{K}^{\mathrm{ref}}_{:,i} \right\rVert_2^2 - \left\lVert\mathbf{K}^{q}_{:,j} \right\rVert_2^2, \tag*{(24)}

where the last term can be omitted as shown in [14], which improves efficiency and reduces computational cost. The affinity matrix is then normalized along the reference dimension to obtain the soft assignment weights:

Wi,j=exp⁡(Ai,j)∑nexp⁡(An,j),A,W∈RNrefhw×hw.(25)W_{i,j} = \frac{\exp(A_{i,j})}{\sum_n \exp(A_{n,j})}, \quad\mathbf{A}, \mathbf{W} \in\mathbb{R}^{N_{\mathrm{ref}}hw \times hw}. \tag*{(25)}

The affinity weights W\mathbf{W} project the value features Vref\mathbf{V}^{\mathrm{ref}} into the query-aligned space, producing the 2D fusion feature map:

Ffuse=VrefW,Ffuse∈RC×hw.(26)\mathbf{F}_{\mathrm{fuse}} = \mathbf{V}^{\mathrm{ref}}\mathbf{W}, \quad\mathbf{F}_{\mathrm{fuse}} \in\mathbb{R}^{C \times hw}. \tag*{(26)}

To facilitate subsequent operations, feature channels at all scales are projected to 256 via a linear layer before being fed into the decoder.

For the sparse foreground–background queries, we construct a set of nsn_s 1-D query vectors Qs∈Rns×C\mathbf{Q}^s \in\mathbb{R}^{n_s \times C} from the encoded reference features Kref\mathbf{K}^{\mathrm{ref}}, where the first half represents foreground queries and the second half represents background queries. A pooling mask Mpool∈[0,1]Nrefhw\mathbf{M}^{\mathrm{pool}} \in[0,1]^{N_{\mathrm{ref}}hw} is obtained by downsampling and flattening Mref\mathbf{M}_{\mathrm{ref}}. The binary selection vector for the nn-th object query is defined as

vin={0,n≤ns2 and Mipool<0.5,0,n>ns2 and Mipool≥0.5,1,otherwise.(27)v_i^n = \begin{cases} 0, & n \leq\frac{n_s}{2}\ \text{and}\ M_i^{\mathrm{pool}} < 0.5, \\ 0, & n > \frac{n_s}{2}\ \text{and}\ M_i^{\mathrm{pool}} \geq0.5, \\ 1, & \text{otherwise}. \end{cases} \tag*{(27)}

The corresponding object query is computed by masked average pooling:

Qn,:s=∑i=1Nrefhw(Kref):,iTvin∑i=1Nrefhwvin,Qn,:s∈RC.(28)\mathbf{Q}_{n,:}^s = \frac{\sum_{i=1}^{N_{\mathrm{ref}}hw} \left(\mathbf{K}^{\mathrm{ref}}\right)_{:,i}^{\mathsf{T}}v_i^n}{\sum_{i=1}^{N_{\mathrm{ref}}hw}v_i^n}, \quad\mathbf{Q}_{n,:}^s \in\mathbb{R}^{C}. \tag*{(28)}

In summary, the reference examples act as the condition for in-context segmentation. They are encoded into sparse foreground–background queries that capture object-level semantics and dense fusion features that provide spatially aligned mask guidance. The shared decoder then predicts the query mask conditioned on both components:

M^q=Decoder⁡(Ffuse∣Qs).(29)\hat{\mathbf{M}}_q = \operatorname{Decoder}(\mathbf{F}_{\mathrm{fuse}} \mid\mathbf{Q}^s). \tag*{(29)}

Interactive segmentation

Interactive segmentation conditions the prediction on user-provided clicks. Given an input image I\mathbf{I} and a click set C={ci}i=1Nc\mathcal{C} = \{c_i\}_{i=1}^{N_c}, we follow [45, 36] and assemble a three-channel click prompt Iclick∈R3×H×W\mathbf{I}_{\mathrm{click}} \in\mathbb{R}^{3 \times H \times W}: the first two channels are disk-encoded maps for positive and negative clicks, and the third channel carries the mask predicted in the previous interaction round, which serves as a memory of past corrections. This prompt provides a 2D dense signal for spatial refinement and is processed by a lightweight prompt encoder.

The encoded click feature is then fused with the visual feature, where the choice of visual feature depends on whether interactive segmentation operates standalone or as a refinement step on top of another mode:

Ffuse={PromptEncoder⁡(Iclick)+Encoder⁡(I),Mode-3 or refining Mode-1,PromptEncoder⁡(Iclick)+VrefW,refining Mode-2,Ffuse∈RC×hw.(30)\mathbf{F}_{\mathrm{fuse}} = \begin{cases} \operatorname{PromptEncoder}(\mathbf{I}_{\mathrm{click}}) + \operatorname{Encoder}(\mathbf{I}), & \text{Mode-3 or refining Mode-1,}\\ \operatorname{PromptEncoder}(\mathbf{I}_{\mathrm{click}}) + \mathbf{V}^{\mathrm{ref}}\mathbf{W}, & \text{refining Mode-2,} \end{cases} \qquad\mathbf{F}_{\mathrm{fuse}} \in\mathbb{R}^{C \times hw}. \tag*{(30)}

When the model runs as a standalone interactive segmenter (Mode-3) or refines a semantic prediction (Mode-1), the click feature is added to the image feature directly. When refining an in-context prediction (Mode-2), it is instead added to the query-aligned reference feature VrefW\mathbf{V}^{\mathrm{ref}}\mathbf{W}, so that user clicks correct the reference-conditioned output rather than the raw image feature.

In parallel, each click is converted into a sparse object query. Following [22], a click at image coordinates (x,y)(x,y) is mapped to its feature-grid location (x′,y′)=(⌊x/s⌋,⌊y/s⌋)(x',y') = (\lfloor x/s \rfloor,\lfloor y/s \rfloor) with downsampling ratio ss. We then average-pool features within a (2r+1)×(2r+1)(2r+1) \times(2r+1) window centered at (x′,y′)(x',y'), apply a linear projection, and add a SAM-style positional embedding [32]. Stacking the results over all clicks yields the click query set Qc∈RNc×C\mathbf{Q}^{c} \in\mathbb{R}^{N_c \times C}.

The shared decoder consumes the fused feature together with the appropriate sparse queries, where the queries depend on which mode is being refined:

M^={Decoder⁡(Ffuse∣pn,Qc),refining Mode-1,Decoder⁡(Ffuse∣Qs,Qc),refining Mode-2,Decoder⁡(Ffuse∣Qc),Mode-3.(31)\hat{\mathbf{M}} = \begin{cases} \operatorname{Decoder}(\mathbf{F}_{\mathrm{fuse}} \mid\mathbf{p}_n,\mathbf{Q}^{c}), & \text{refining Mode-1,}\\ \operatorname{Decoder}(\mathbf{F}_{\mathrm{fuse}} \mid\mathbf{Q}^{s},\mathbf{Q}^{c}), & \text{refining Mode-2,}\\ \operatorname{Decoder}(\mathbf{F}_{\mathrm{fuse}} \mid\mathbf{Q}^{c}), & \text{Mode-3.} \end{cases} \tag*{(31)}

In this way, interactive segmentation reuses exactly the same dense-fusion and sparse-query decoding interface as the other modes: it can stand on its own as a click-driven segmenter, or attach to Mode-1 and Mode-2 as a lightweight refinement step that injects user feedback without altering the backbone or decoder.

Propagation-based volumetric segmentation

Propagation is treated as an intra-volume special case of in-context segmentation. Rather than drawing support examples from an external annotated set, the reference set is built from previously segmented slices within the same 3D volume. Given a volume V={Iz}z=1Z\mathbf{V} = \{\mathbf{I}_z\}_{z=1}^{Z} and a seed prediction M^z∗\hat{\mathbf{M}}_{z_*} initialized by any of the 2D modes (semantic, in-context, or interactive) or provided as ground truth, UniPro segments the remaining slices by repeatedly applying

M^z=fθ(Iz∣Rz),(32)\hat{\mathbf{M}}_z = f_{\theta}(\mathbf{I}_z \mid\mathcal{R}_z), \tag*{(32)}

where Rz={(Ir,M^r)}r∈N(z)\mathcal{R}_z = \{(\mathbf{I}_r,\hat{\mathbf{M}}_r)\}_{r \in\mathcal{N}(z)} denotes the intra-volume reference set formed by the seed slice together with nearby slices that have already been propagated.

Propagation therefore shares exactly the same reference-conditioned formulation as in-context segmentation, but with two distinguishing properties: the support examples are restricted to the current volume, and predictions are produced sequentially along the slice dimension. Notably, when the seed slice is itself initialized by the semantic class query pn\mathbf{p}_n, the entire pipeline becomes fully automatic, allowing UniPro to perform 3D volumetric segmentation without introducing any 3D-specific architecture. Further details on reference set construction and bidirectional inference are provided in the main text (§ 3.2).

Model architectures

Shared slice-based image backbone.

UniPro adopts a shared slice-based backbone to process both native 2D images and individual slices from 3D volumes within a unified framework. Given an input slice, the image encoder extracts a hierarchy of multi-scale visual features that serve as the common representation for all segmentation settings. Following standard medical segmentation practice, we use a lightweight UNet-style backbone [27] and retain feature maps at three spatial resolutions, corresponding to 1/16, 1/8, and 1/4 of the input size. These multi-scale features provide complementary semantic and spatial information, and are shared across semantic, in-context, interactive, and propagation-based segmentation.

Reference mask and interaction encoding.

To support reference-conditioned prediction, UniPro further encodes auxiliary conditioning inputs associated with the query slice. Specifically, reference masks are processed by a lightweight mask encoder that produces hierarchical features aligned with the image backbone at the same three resolutions (1/4, 1/8, and 1/16 of the input resolution). This design enables reference annotations to be fused with visual features in a spatially consistent manner. For interactive segmentation, user prompts are encoded with an analogous lightweight prompt encoder so that clicks or other interaction signals can be mapped into the same multi-scale feature space. By using aligned hierarchical encoders for reference masks and interaction prompts, UniPro preserves a unified conditioning interface across different segmentation settings.

Decoder

As shown in Figure 4, we use L=6L = 6 layers in total in the transformer decoder. Similar to Mask2Former [13], we adopt a round-robin strategy for multi-scale interaction between image features and integrated queries. The blocks are scheduled in a cyclic order across scales (i.e., 1→2→3→1→2→31 \to2 \to3 \to1 \to2 \to3), ensuring balanced cross-scale information exchange throughout the decoding process. Finally, the decoded features are passed through a lightweight mask decoder that projects them back to the spatial resolution of the input, producing the final segmentation masks.

Mixture-of-Experts FFN Layers

UniPro uses a shared transformer decoder across all segmentation modes. While the attention layers provide a common mechanism for exchanging information between query tokens and fused image features, different conditions, including semantic queries, reference-based object queries, and click queries, may require different nonlinear transformations. To improve mode adaptability without introducing separate decoders, we replace the standard feed-forward network (FFN) in the decoder with a Mixture-of-Experts FFN (MoE-FFN).

Each expert is implemented as an independent two-layer FFN:

FFN⁡m(x)=Wm(2)σ(Wm(1)x),m=1,…,M,(33)\operatorname{FFN}_{m}(x) = \mathbf{W}_{m}^{(2)}\sigma\left(\mathbf{W}_{m}^{(1)}x\right), \qquad m = 1,\ldots,M, \tag*{(33)}

where MM is the number of experts, Wm(1)\mathbf{W}_{m}^{(1)} and Wm(2)\mathbf{W}_{m}^{(2)} are learnable linear projections of the mm-th expert, and σ(⋅)\sigma(\cdot) denotes the activation function.

Given a query representation Q∈Rq×C\mathbf{Q} \in\mathbb{R}^{q \times C}, a lightweight gating network predicts token-wise expert weights:

α=softmax⁡(G(Q)),α∈Rq×M.(34)\boldsymbol{\alpha} = \operatorname{softmax}\left(G(\mathbf{Q})\right), \qquad\boldsymbol{\alpha} \in\mathbb{R}^{q \times M}. \tag*{(34)}
Transformer decoder with MoE-FFN

Figure 4. Transformer decoder with MoE-FFN. Queries attend to image features via cross-attention, followed by self-attention and MoE-FFN.

Each query token is processed by all experts, and their outputs are combined using the gating weights:

MoE-FFN⁡(Q)i=∑m=1Mαi,mFFN⁡m(Qi),i=1,…,q.(35)\operatorname{MoE\text{-}FFN}(\mathbf{Q})_i = \sum_{m=1}^{M} \alpha_{i,m}\operatorname{FFN}_m(\mathbf{Q}_i), \quad i=1,\ldots,q. \tag*{(35)}

The output is then added to the input through a residual connection followed by layer normalization:

Q′=LayerNorm⁡(Q+MoE-FFN⁡(Q)).(36)\mathbf{Q}' = \operatorname{LayerNorm}\left(\mathbf{Q}+\operatorname{MoE\text{-}FFN}(\mathbf{Q})\right). \tag*{(36)}

Only the FFN layers are expert-specialized, while the cross-attention and self-attention layers remain shared across all modes. This design keeps the decoder compact and unified, while allowing different query tokens to adaptively select suitable nonlinear transformations for heterogeneous conditioning signals.

Implementation

Training details.

We train UniPro with a two-stage training strategy. In the first stage, the model is trained for 100 epochs on single-slice segmentation tasks to learn robust mode-conditioned segmentation capability. Each training batch is randomly assigned to one of the three segmentation modes, with probabilities of 0.3, 0.3, and 0.4 for semantic segmentation, in-context segmentation, and interactive segmentation, respectively. This stage enables the shared backbone and decoder to learn a unified representation across different conditioning formats. In this stage, models are trained on 8 Quadro RTX 8000 GPUs using the AdamW optimizer with a base learning rate of 1×10−41 \times10^{-4}. We use a per-GPU batch size of 8, resulting in a total batch size of 64. A cosine annealing learning-rate scheduler with 10 warm-up epochs is adopted, where the minimum learning rate is scaled by 1×10−51 \times10^{-5}. During training, images are resized to 512×512512 \times512, with data augmentations including random flipping, affine transformations, brightness and contrast adjustment, Gaussian blur, Gaussian noise, and grid distortion. The segmentation objective combines binary cross-entropy loss and Dice loss:

Lstage1=L2d=Ldice+Lce.(37)\mathcal{L}_{\mathrm{stage1}} = \mathcal{L}_{2\mathrm{d}} = \mathcal{L}_{\mathrm{dice}} + \mathcal{L}_{\mathrm{ce}}. \tag*{(37)}

In the second stage, we fine-tune the entire model, including the image encoder, for 10 epochs with propagation-based segmentation. This adapts the shared representation to sequential prediction with multiple, potentially imperfect image–mask references. Since propagation training is performed on 3D datasets, directly fine-tuning on propagation batches may cause the model to forget the previously learned 2D segmentation capability and degrade its performance on native 2D datasets. To mitigate this issue, we interleave propagation training with regular single-slice training: each propagation batch is paired with a standard 2D training batch sampled with the same mode probabilities as in Stage 1. The propagation batch is constructed from an ordered slice queue, where the model predicts target slices conditioned on previous image-mask references. This stage enables the model to learn slice-wise mask propagation for volumetric segmentation while preserving its compatibility with native 2D inputs and the three original segmentation modes.

In this stage, models are trained using the AdamW optimizer with a base learning rate of 5×10−45 \times10^{-4}. We use a per-GPU propagation batch size of 1. Propagation is performed on 3D chunks with a queue size of 8 slices. For each target slice, the reference window contains 5 image-mask pairs. When more than 5 previous predictions are available, we use a sliding reference window while always retaining the seed slice as an anchor. This anchor-pinned design provides a stable reference throughout propagation and helps reduce semantic drift across long slice sequences. For propagation training, data augmentation is applied consistently to the entire 3D chunk rather than independently to each slice. Specifically, all slices within the same queue undergo the same spatial transformations, ensuring that inter-slice anatomical correspondence is preserved during propagation learning.

The Stage-2 objective combines auxiliary 2D supervision and propagation-based volumetric losses:

Lstage2=L2d+Lprop=L2d+Lfwd+λbwdLbwd+λ3dL3d.(38)\mathcal{L}_{\mathrm{stage2}} = \mathcal{L}_{2\mathrm{d}} + \mathcal{L}_{\mathrm{prop}} = \mathcal{L}_{2\mathrm{d}} + \mathcal{L}_{\mathrm{fwd}} + \lambda_{\mathrm{bwd}}\mathcal{L}_{\mathrm{bwd}} + \lambda_{3\mathrm{d}}\mathcal{L}_{3\mathrm{d}}. \tag*{(38)}

Here, L2d\mathcal{L}_{2\mathrm{d}} denotes the auxiliary single-slice supervision used to preserve 2D segmentation capability, while Lfwd\mathcal{L}_{\mathrm{fwd}} and Lbwd\mathcal{L}_{\mathrm{bwd}} correspond to forward and backward propagation losses. L3d\mathcal{L}_{3\mathrm{d}} is a volume-level consistency loss computed on stacked slice predictions. In our experiments, we set λbwd=0.7\lambda_{\mathrm{bwd}} = 0.7 and λ3d=5.0\lambda_{3\mathrm{d}} = 5.0.

Inference details.

During inference, each input image is resized so that its longer side equals 512 pixels while preserving the aspect ratio, and the predicted masks are remapped back to the original resolution before evaluation. For single-slice (2D) segmentation, UniPro directly predicts a mask for each input image using the chosen mode (semantic, in-context, or interactive), with the same per-mode forward pass as during training. For volumetric (3D) segmentation, we first select the middle slice of the target organ as the seed slice and initialize its mask via semantic, in-context, or interactive segmentation, depending on the evaluation setting. Starting from this seed, UniPro performs bidirectional propagation along the axial direction—for- ward to subsequent slices and backward to preceding slices—where each target slice is segmented using the anchor-pinned reference set containing the seed and nearby propagated slices. For the main evaluation, we compute Dice over slices that contain the target object. For 3D datasets, this corresponds to volumetric Dice computed over voxels within target-containing slices; for 2D datasets, Dice is computed on target-containing images/slices. This protocol is designed for a unified multi-mode evaluation setting. In interactive segmentation, user input is naturally defined on target-containing slices, since a positive click cannot be placed on an absent object and target-absent slices are typically skipped in practical annotation workflows. Applying the same target-present restriction across 2D and 3D datasets, and across semantic, in-context, and interactive modes, ensures that all modes are evaluated on the same foreground-relevant slice set. To further assess whether this foreground-region evaluation affects the conclusions, we additionally report full-volume Dice over all slices in Appendix § 11.§ 2.

Click encoding and simulation.

User interactions are represented as binary disk maps with a radius of 1 pixel during both training and inference. To simulate corrective interactions, we follow the standard protocol of generating clicks from the discrepancy between the current prediction and the ground truth [45, 36]. We place each new click at the centroid of the largest connected error region, so that the simulated clicks better reflect how users typically correct substantial local mistakes in medical images. We consider three click-based operating settings. In semantic or in-context initialization, the model first produces an initial segmentation and then performs two rounds of click-guided refinement. In pure interactive segmentation, the model applies three clicks sequentially, producing an updated mask after each interaction and thus yielding three intermediate refinement results.

For the single-click propagation comparison in Table 1, all methods receive the same initial positive click on the same seed slice for each volume–target pair. Each method generates its own seed mask, whose quality is part of the end-to-end click-to-volume evaluation. In multi-click evaluations, the click-generation policy and budget are matched within each setting, while corrective click locations depend on each method’s current prediction.

MethodAbd-1KCHAOSM&MsLiTSKiTSBTCVACDCBraTS
3D Upper Bound
nnInteractive76.3883.0478.5849.7663.0867.4479.8751.25
General Pretrained Model
SAM245.0056.6147.6023.0851.6137.1050.7132.38
Propagation Model
iSegFormer83.0082.2782.5551.4668.7764.7877.0542.25
PAM85.5986.4179.6960.8363.2077.4979.0639.85
MedSAM286.2990.6482.9762.2573.3280.5584.1840.74
UniPro (prop)88.6289.7087.6466.9576.9584.4087.9754.89

Table 1. Propagation-based segmentation (3D Dice, %, ↑). All methods are initialized from a single positive click on one seed slice and propagated to the remaining slices.

Additional implementation details for baseline models

All trainable baselines use the same dataset splits, annotations, and preprocessing as UniPro, with matched training budgets and method-specific input formats. Universal 2D baselines, including Hermes and Iris, are jointly trained on the same multi-dataset training collection as UniPro. In contrast, nnU-Net is trained separately for each dataset following its standard self-configuring pipeline. Trainable propagation baselines use the corresponding 3D training datasets. No additional medical training data or annotations are introduced for UniPro.

Initialization is method-specific. For SAM2, we directly use the official sam2.1_hiera_base_plus checkpoint pretrained on large-scale natural images, without any additional fine-tuning on medical data. SAM2 is therefore excluded from the matched medical-training protocol above. For MedSAM2, the encoder is initialized with MAE-pretrained ViT-Base weights, after which the entire network is fine-tuned end-to-end on our curated medical datasets. Other medical segmentation baselines, such as Hermes, are trained from scratch on the same curated datasets. Released medical checkpoints are not used, to avoid potential overlap with the evaluation data. Positive and negative clicks are simulated consistently across methods using the policy in Appendix § 8.§ 4.

Theoretical Analysis of Bidirectional Supervision

We provide a simple idealized analysis to illustrate the intuition behind bidirectional supervision. This analysis is conditional on local stability assumptions and should be viewed as an explanatory perspective rather than a formal generalization guarantee.

Setup and Notation

Let M0∈Y0M_0 \in\mathcal{Y}_0 denote the ground-truth mask on the seed slice, represented as a probability map in [0,1]H×W[0,1]^{H \times W}; we use the Euclidean norm ∥⋅∥\lVert\cdot\rVert throughout. Let Tt:Yt→Yt+1\mathcal{T}_t : \mathcal{Y}_t \to\mathcal{Y}_{t+1} be the true forward transfer between slice tt and t+1t+1, so that Mt+1=Tt(Mt)M_{t+1} = \mathcal{T}_t(M_t).

Our model is memory-based: a single reference-conditioned function f(Iq,Rq)f(I_q, R_q) predicts the mask at a query slice IqI_q given a reference set RqR_q of previously segmented slices. Forward propagation at step tt corresponds to Pt(⋅):=f(It+1,Rtfwd)P_t(\cdot) := f(I_{t+1}, R_t^{\mathrm{fwd}}) with RtfwdR_t^{\mathrm{fwd}} containing past forward predictions, while backward reconstruction at step tt is Qt(⋅):=f(It,Rtbwd)Q_t(\cdot) := f(I_t, R_t^{\mathrm{bwd}}) with RtbwdR_t^{\mathrm{bwd}} containing future backward predictions. The operators PtP_t and QtQ_t use the same network ff but differ in query slice and reference-set content.

The predicted forward trajectory is M^0:=M0\hat{M}_0 := M_0, M^t+1:=Pt(M^t)\hat{M}_{t+1} := P_t(\hat{M}_t) for t=0,…,n−1t = 0,\ldots,n-1. The backward reconstruction chain and its output are

Q(n:0):=Q0∘Q1∘⋯∘Qn−1,M~0:=Q(n:0)(M^n),(39)Q^{(n:0)} := Q_0 \circ Q_1 \circ\cdots\circ Q_{n-1}, \qquad\tilde{M}_0 := Q^{(n:0)}(\hat{M}_n), \tag*{(39)}

and the bidirectional consistency loss is Lbi:=∥M~0−M0∥L_{\mathrm{bi}} := \lVert\tilde{M}_0 - M_0 \rVert.

Assumptions

(A1) Bounded one-step forward error. There exist δt≥0\delta_t \ge0 such that ∥Pt(Mt)−Mt+1∥≤δt\lVert P_t(M_t) - M_{t+1} \rVert\le\delta_t for all tt.

(A2) Lipschitz forward operator. There exist Lt≥0L_t \ge0 such that ∥Pt(a)−Pt(b)∥≤Lt∥a−b∥\lVert P_t(a) - P_t(b) \rVert\le L_t \lVert a-b \rVert for all a,ba,b.

(A3) Local non-collapse of the backward chain. For intuition, assume that in a local neighborhood of the true endpoint MnM_n, the backward chain is approximately non-collapsing and can reconstruct the seed mask up to error β\beta. That is, there exist α>0\alpha> 0 and β≥0\beta\ge0 such that

∥Q(n:0)(z)−Q(n:0)(Mn)∥≥α∥z−Mn∥,∀z,(40)\lVert Q^{(n:0)}(z) - Q^{(n:0)}(M_n) \rVert\ge\alpha\lVert z - M_n \rVert, \qquad\forall z, \tag*{(40)}
∥Q(n:0)(Mn)−M0∥≤β.(41)\lVert Q^{(n:0)}(M_n) - M_0 \rVert\le\beta. \tag*{(41)}

This assumption is not guaranteed globally for learned networks. It only formalizes the desirable regime in which backward reconstruction preserves endpoint discrepancies and penalizes forward trajectories that cannot be mapped back to the reliable seed slice.

Main Result

Proposition 1. (Idealized endpoint-error bound.) Under Assumption (A3),

∥M^n−Mn∥≤Lbi+βα.(42)\lVert\hat{M}_n - M_n \rVert\le\frac{L_{\mathrm{bi}}+\beta}{\alpha}. \tag*{(42)}

Proof. Applying (A3a) with z=M^nz = \hat{M}_n,

α∥M^n−Mn∥≤∥Q(n:0)(M^n)−Q(n:0)(Mn)∥.(43)\alpha\lVert\hat{M}_n - M_n \rVert\le\lVert Q^{(n:0)}(\hat{M}_n) - Q^{(n:0)}(M_n) \rVert. \tag*{(43)}

By the triangle inequality,

∥Q(n:0)(M^n)−Q(n:0)(Mn)∥≤∥Q(n:0)(M^n)−M0∥+∥Q(n:0)(Mn)−M0∥≤Lbi+β.(44)\begin{aligned} \lVert Q^{(n:0)}(\hat{M}_n) - Q^{(n:0)}(M_n) \rVert &\le\lVert Q^{(n:0)}(\hat{M}_n) - M_0 \rVert+ \lVert Q^{(n:0)}(M_n) - M_0 \rVert\\ &\le L_{\mathrm{bi}} + \beta. \tag*{(44)} \end{aligned}

Dividing by α\alpha yields (42).

Proposition 2 (One-step accumulation bound). Under (A1)–(A2) with uniform constants Lt≤LL_t \le L and δt≤δ\delta_t \le\delta,

∥M^n−Mn∥≤δ∑i=0n−1Li.(45)\lVert\hat{M}_n - M_n \rVert\le\delta\sum_{i=0}^{n-1} L^i. \tag*{(45)}

Proof. Let et:=∥M^t−Mt∥e_t := \lVert\hat{M}_t - M_t \rVert. Then

et+1≤∥Pt(M^t)−Pt(Mt)∥+∥Pt(Mt)−Mt+1∥≤Ltet+δt.(46)e_{t+1} \le\lVert P_t(\hat{M}_t) - P_t(M_t) \rVert+ \lVert P_t(M_t) - M_{t+1} \rVert\le L_t e_t + \delta_t. \tag*{(46)}

With e0=0e_0 = 0, unrolling gives en≤δ∑i=0n−1Lie_n \le\delta\sum_{i=0}^{n-1} L^i.

Corollary 1 (Combined conditional bound). Under (A1)–(A3),

∥M^n−Mn∥≤min⁡{δ∑i=0n−1Li,Lbi+βα}.(47)\lVert\hat{M}_n - M_n \rVert\le\min\left\{ \delta\sum_{i=0}^{n-1} L^i,\frac{\mathcal{L}_{\mathrm{bi}}+\beta}{\alpha} \right\}. \tag*{(47)}

Interpretation. This analysis should be understood as an idealized intuition rather than a strict guarantee. The first term, δ∑i=0n−1Li\delta\sum_{i=0}^{n-1} L^i, describes standard forward error accumulation, where local errors may grow along long propagation chains. The second term, (Lbi+β)/α(\mathcal{L}_{\mathrm{bi}}+\beta)/\alpha, suggests that, when the backward chain is locally stable and non-collapsing, a smaller bidirectional reconstruction loss is consistent with a smaller endpoint error. The key takeaway is that bidirectional supervision acts as a cycle-consistency regularizer: it penalizes forward trajectories whose accumulated errors prevent reconstruction back to the reliable seed slice. Thus, while it does not universally guarantee low propagation error, it provides an additional long-range constraint that helps explain the empirical reduction of drift in volumetric propagation.

Dataset

Dataset Details

We use a diverse collection of public medical image segmentation datasets covering 3D CT/MRI volumes and native 2D images across abdominal, cardiac, brain, skin, breast, lung, and endoscopic targets. Below we briefly describe each dataset used in training and evaluation.

AbdomenCT-1K [38]. A large-scale abdominal CT benchmark with expert annotations for the liver, kidney, spleen, and pancreas, aggregated from multiple medical centers. To prevent severe class imbalance with other datasets in the training pool, we use only a subset of the released data, split into 352 training, 20 validation, and 76 test volumes.

Combined (CT-MR) Healthy Abdominal Organ Segmentation (CHAOS) [31, 30]. A multi-modal abdominal dataset from the ISBI 2019 CHAOS Challenge, comprising CT and MRI scans of healthy subjects with expert annotations for the liver, right kidney, left kidney, and spleen. We use only the MRI subset, split into 36 training, 9 validation, and 15 test volumes.

Multi-Centre, Multi-Vendor & Multi-Disease Cardiac Image Segmentation Challenge (M&Ms) [9]. A multi-centre, multi-vendor cardiac MRI dataset from the MICCAI 2020 Challenge, comprising short-axis cine scans of patients with cardiomyopathies and healthy controls. Expert annotations of the left ventricle, right ventricle, and left ventricular myocardium are provided at end-diastolic and end-systolic phases. We follow the official train/test split.

The Liver Tumor Segmentation Benchmark (LiTS) [6]. A multi-center benchmark of 201 contrast-enhanced abdominal CT scans (131 training, 70 testing) covering patients with diverse liver tumors, including hepatocellular carcinoma and metastases from colorectal, breast, and lung cancers, with expert annotations for liver and tumor regions. We use the 131 public cases with an 80%/20% split, retaining only the tumor labels.

The Kidney Tumor Segmentation 2019 dataset (KiTS) [26]. A dataset of CT scans from 300 patients who underwent nephrectomy for kidney tumors at the University of Minnesota Medical Center (2010–2018), of which 210 cases are publicly released. We split the public portion 80%/20% for training and testing, retaining only the tumor labels.

Dataset of Breast Ultrasound Images (Breast) [1]. A collection of 780 grayscale breast ultrasound images from 600 female patients (aged 25–75) at Baheya Hospital, Egypt, categorized as normal, benign, or malignant, with expert-annotated lesion masks. We use only the 647 benign and malignant cases with an 80%/20% train/test split.

Chest X-ray Masks and Labels (Chest) [29]. A chest radiograph dataset jointly released by the National Library of Medicine (Bethesda, USA) and Shenzhen No.3 People’s Hospital (China), covering a broad range of abnormalities such as effusions and miliary patterns. We use only the lung segmentation masks, with an 80%/20% train/test split.

BKAI-IGH NeoPolyp Dataset (BKAI) [41]. A colonoscopy dataset of 1,200 images (1,000 whitelight and 200 FICE) released by the BKAI Research Center and the Institute of Gastroenterology and Hepatology, Vietnam, with expert-verified segmentation masks distinguishing neoplastic from non-neoplastic polyps. We adopt an 80%/20% split on the official training set of 1,000 images.

International Skin Imaging Collaboration (ISIC) [46, 17]. A large-scale dermoscopic image collection from the ISIC Skin Lesion Analysis Challenges, with expert-annotated lesion boundary masks spanning diverse skin tones, lighting conditions, and lesion morphologies. We use the ISIC 2018 segmentation subset and follow the official train/validation/test split.

Beyond the Cranial Vault (BTCV) [33]. An abdominal CT dataset with multi-organ annotations, used as an external 3D test set to evaluate cross-benchmark generalization. To align the label space with AbdomenCT-1K, we merge the left and right kidneys into a single class and retain only the organs present in AbdomenCT-1K (liver, kidney, spleen, and pancreas).

Automatic Cardiac Diagnosis Challenge (ACDC) [5]. A cardiac MRI dataset acquired at the University Hospital of Dijon with 1.5T and 3.0T Siemens scanners, providing short-axis cine sequences annotated for the same structures as M&Ms at end-systolic and end-diastolic phases. For validation, we use 200 ED/ES phase volumes from the 100 patients in the official training set; for final evaluation, we use 100 phase volumes from the 50 patients in the official test set.

University of Waterloo Skin Cancer (UW-SC) [47]. A collection of 167 dermoscopic skin lesion images with expert-verified segmentation masks, used solely as an external test set.

Breast Ultrasound Dataset B (BUS) [51]. A breast ultrasound dataset of 163 images with expert-annotated lesion regions. We merge benign and malignant lesions into a single class and use it solely as an external test set.

Brain Tumor Segmentation (BraTS) [4]. A multi-modal brain tumor MRI dataset, used as an unseen 3D test set to evaluate generalization to an anatomical target and imaging domain absent from the training pool. We use only the T2-weighted modality. The original annotations contain three tumor sub-regions (enhancing tumor, tumor core, and peritumoral edema); to reduce the difficulty of this unseen-class evaluation, we merge them into a single tumor region label.

Dataset statistics

Table 4 summarizes the datasets used to train and evaluate our framework. We draw from a diverse collection of publicly available medical image segmentation benchmarks covering a wide range of imaging modalities and anatomical regions. The training pool comprises nine datasets spanning abdominal CT/MRI (AbdomenCT-1K, CHAOS, LiTS, KiTS), cardiac MRI (M&Ms), ultrasound (Breast Cancer), dermoscopy (ISIC), endoscopy (BKAI), and chest X-ray. These datasets differ substantially in scale—ranging from a few hundred to several thousand 3D volumes or 2D slices—as well as in annotation granularity, from single-organ masks to multi-organ delineations. To rigorously assess generalization, we further include held-out test sets covering both external domains (BTCV, ACDC, UW-SC, BUS), which share class definitions with the training data but originate from different cohorts or acquisition centers, and unseen classes (BraTS), which evaluate the framework’s ability to segment anatomical structures absent from training. This split allows us to disentangle cross-center robustness from cross-class transferability.

Dataset# clsModality3D Volumes3D Volumes3D Volumes2-D Slices2-D Slices2-D Slices
TrainValidateTestTrainValidateTest
AbdomenCT-1K[38]4CT35220763995625578665
CHAOS[31, 30]4MRI36915498413091945
M&Ms [9]3MRI300-3402475-2821
LiTS [6]1CT104-275687-1625
KiTS [26]1CT168-425269-1609
Chest X-ray [1, 29]1X_ray---450-116
Breast Cancer [1]1Ultrasound---518-129
BKAI [41]2Endoscopy---800-200
ISIC [46, 17]1Dermoscopy---25941001000
BTCV [33]4CT--30--3791
ACDC [5]3MRI-200100-18411001
UW-SC [47]1Dermoscopy-----167
BUS [1]1Ultrasound-----163
BraTS [4]1MRI––74--4761

Table 4. Datasets statistics.

Data preprocessing

Preprocessing is dataset-specific and retains both isotropic and anisotropic volumes. AbdomenCT-1K, CHAOS, BTCV, and KiTS are resampled to an isotropic spacing of 1.5×1.5×1.51.5 \times1.5 \times1.5 mm. M&Ms and ACDC are resampled in-plane to 1.5×1.51.5 \times1.5 mm while preserving their native through-plane spacing of 55–1010 mm, yielding strongly anisotropic volumes. LiTS uses 0.7676×0.7676×1.00.7676 \times0.7676 \times1.0 mm spacing and is mildly anisotropic, whereas BraTS uses isotropic 1.0×1.0×1.01.0 \times1.0 \times1.0 mm spacing. These spacings refer to the volumes before the final 2D input resizing. For intensity preprocessing, CT volumes are clipped to [−991,500][-991, 500] HU for AbdomenCT-1K and BTCV, and [−200,250][-200, 250] HU for KiTS and LiTS. MRI volumes from CHAOS, M&Ms, ACDC, and BraTS are clipped to their volume-wise 0th–99th intensity percentiles. All volumes are then rescaled to [0,255][0, 255] using volume-wise min–max normalization. UniPro processes ordered slices without explicit voxel-spacing or physical-distance inputs; isotropic spacing is therefore not required, although large through-plane gaps may weaken cross-slice correspondence.

More Experiments

Effect of flexible interactive correction

We compare two interactive 3D segmentation paradigms under the same annotation budget: slice-wise interaction, where the user corrects foreground slices independently, and click-and-propagate, where clicks on selected slices are propagated to the rest of the volume. Both protocols use the same robot click generator, the same per-slice click cap, the same total click budget, and the same volume-level stopping criterion. Therefore, differences in annotation cost reflect the interaction protocol rather than the click oracle.

Robot click generation. Clicks are generated by a deterministic robot user. For each slice, the first click is sampled from the largest connected component of the foreground ground truth. Subsequent clicks are placed at the centroid of the largest connected component in the current 2D error map, computed between the thresholded prediction and the ground truth. A click is labeled positive if the selected error component is a false-negative region, and negative if it is a false-positive region. No human input is used at any stage.

Common budget and stopping rules. For each (volume, organ) pair, both protocols are given a total budget of B=100B = 100 clicks. Within a single slice, at most C=5C = 5 clicks can be used. A slice-level click loop stops early once the 2D Dice reaches target TT. For the seed slice in the propagation protocol, we use a stricter threshold τ2D=0.95\tau_{2D} = 0.95 to obtain a cleaner reference mask. The full (volume, organ) evaluation stops when either the volume-level 3D Dice reaches the dataset-specific target TT, or the click budget BB is exhausted. We set T=0.90T = 0.90 for ACDC and T=0.80T = 0.80 for BraTS20.

Slice-wise interaction. This protocol represents conventional per-slice correction. The user first provides one positive click on every foreground slice, producing an initial stack of independent 2D predictions. The method then enters a refinement loop. At each step, we select the slice with the largest 2D error among slices that have not reached the per-slice click cap, and add clicks according to the robot click rule. The process repeats until the 3D Dice target TT is reached or the total budget is exhausted. Importantly, no information is shared across slices: each slice is segmented and refined independently.

Click-and-propagate. This protocol evaluates the proposed propagation-based annotation workflow. The seed slice is chosen as the median foreground slice. The robot user places up to C=5C = 5 clicks on the seed slice, with early stopping at τ2D=0.95\tau_{2D} = 0.95. The resulting seed mask is then used as the initial reference to propagate predictions to the remaining slices. If the propagated volume does not reach the target 3D Dice, the protocol enters an iterative refinement loop. At each iteration, we select the unclicked slice with the largest 2D error, add up to C=5C = 5 clicks on that slice, and pin every clicked slice so that its corrected mask is not overwritten by later propagation. Propagation is then re-run using the top-K=5K = 5 pinned slices, ranked by their 2D Dice, as references. The loop continues until the same termination conditions are met: reaching the dataset-specific 3D Dice target TT or exhausting the B=100B = 100 click budget.

Datasets and evaluated pairs. We evaluate on the full test split of ACDC and BraTS. For ACDC, we evaluate 100 volumes with three cardiac organs, resulting in 300 (volume, organ) pairs, with target T=0.90T = 0.90. For BraTS20, we evaluate 74 volumes with one tumor class, resulting in 74 pairs, with target T=0.80T = 0.80. We use a lower target for BraTS because it is an unseen dataset. For each dataset, we report two annotation-cost metrics. The first is the Number of Clicks (NoC), defined as the number of clicks required to first reach the target 3D Dice TT, censored at B=100B = 100 if the target is not reached. This censoring makes the mean NoC conservative. The second is the number of edited slices, defined as the number of distinct slices that receive at least one click. NoC measures direct click effort, while the number of edited slices captures slice-level scrolling and inspection effort, which is an important practical cost in volumetric annotation. Both metrics are averaged across all evaluated pairs in each dataset.

Full-Volume Dice versus Target-Containing-Slice Dice

Our main experiments report Dice on target-containing slices to maintain a unified evaluation protocol across 2D/3D data and semantic, in-context, and interactive modes. We additionally compute standard full-volume Dice over all slices. As shown in Table 5, the two metrics remain close across datasets, indicating that target-containing-slice evaluation does not substantially inflate performance in most cases. Larger gaps appear on KiTS and LiTS, where targets are smaller, sparser, or more prone to axial false positives; tumor cases are similarly more sensitive because small leakage into target-absent slices can noticeably reduce full-volume Dice. These results support using target-containing-slice Dice as a foreground-region metric for interactive evaluation, while reporting full-volume Dice as the standard volumetric metric.

DatasetFull-vol DiceTarget-slice DiceΔ\Delta
Abd-1K86.1188.62+2.51
CHAOS87.0589.70+2.65
M&M86.0687.64+1.58
LiTS63.3266.95+3.63
KiTS73.0576.95+3.90
BTCV82.1984.40+2.21
ACDC87.8087.97+0.17

Table 5. Comparison between standard full-volume Dice (%) and target-containing-slice Dice. Results are averaged over organs within each dataset when applicable. Δ\Delta denotes target-containing-slice Dice minus full-volume Dice, reported in percentage points.

Robustness to Seed-Slice Selection

Our default propagation protocol selects the seed slice as the median axial index among slices containing the target organ. This choice provides a simple and deterministic initialization. To examine whether the propagation performance depends critically on this seed location, we conduct a controlled robustness study on ACDC by selecting seed slices at different relative positions within the target-organ slice range. In this analysis, the selected seed slice is initialized with the ground-truth mask for all seed choices. This removes the confounding effect of seed-slice segmentation quality and isolates the effect of seed location on propagation. Specifically, we evaluate seeds at the 20%, 40%, 50%, 60%, and 80% axial quantiles of the target-organ extent, as well as a deterministic random seed slice sampled independently for each volume. All remaining slices are then segmented by the same propagation procedure.

As shown in Table 6, UniPro is not highly sensitive to the exact seed-slice location when the seed mask is fixed to the ground truth. Across different seed choices, the mean Dice remains in a narrow range from 89.46 to 91.03. Seeds near the two ends of the target-organ extent, such as q=0.2q = 0.2 and q=0.8q = 0.8, show slightly larger drops, which is expected because boundary seeds provide less balanced context for covering the full organ range. In contrast, seeds around the middle of the organ extent remain stable, with q=0.4q = 0.4 even slightly outperforming the median seed. These results support using the median slice as a simple, deterministic, and standardized choice for evaluation, rather than an oracle condition on which the method critically depends.

Seed sliceq=0.2q = 0.2q=0.4q = 0.4q=0.5q = 0.5q=0.6q = 0.6q=0.8q = 0.8Random
Mean Dice89.8191.0390.9890.5389.4690.12
Δ\Delta vs. median-1.17+0.050.00-0.45-1.52-0.86

Table 6. Seed-position robustness on ACDC under ground-truth seed-mask initialization. GT-init removes seed-slice segmentation error and isolates the effect of seed location on propagation. All results are 3D Dice on target-containing slices.

Statistical Analysis of Propagation Performance

We assess the statistical reliability of the propagation results by reporting variability across evaluated volume–target pairs and paired comparisons with MedSAM2. Table 7(a) summarises UniPro’s mean Dice, standard deviation, and 95% confidence intervals computed using Student’s tt-distribution. Paired tt-tests show significant improvements on five of the eight datasets at the unadjusted p<0.05p < 0.05 level (Table 7(b)), while differences on CHAOS, LiTS, and KiTS are not statistically significant. The wider confidence intervals on LiTS, KiTS, and BraTS indicate greater uncertainty in these settings. All statistics are based on a single training run per method and describe test-pair variability rather than variation across training runs.

(a) UniPro performance(b) UniPro versus MedSAM2
DatasetMeanSD95% CIDatasetΔ\Deltapp-value
Abd-1K88.6212.64[87.19, 90.05]Abd-1K+2.330.0165
CHAOS89.709.05[87.37, 92.04]CHAOS−0.940.5254
M&Ms87.6410.31[87.01, 88.28]M&Ms+4.675.49×10−115.49 \times10^{-11}
LiTS66.9528.60[55.15, 78.76]LiTS+4.700.3136
KiTS76.9518.94[71.04, 82.85]KiTS+3.630.1911
BTCV84.4014.70[81.32, 87.48]BTCV+3.850.0035
ACDC87.9713.06[86.49, 89.45]ACDC+3.790.0066
BraTS54.8923.03[49.56, 60.23]BraTS+14.151.14×10−41.14 \times10^{-4}

Table 7. Statistical analysis of propagation performance. (a) UniPro’s mean Dice (%), SD, and 95% CI. (b) Paired comparisons with MedSAM2, where Δ\Delta denotes the Dice difference in percentage points. Bold pp-values indicate significance at the unadjusted p<0.05p < 0.05 level.

We additionally compare UniPro with Sli2Vol+ and Vol2Flow on AbdomenCT-1K liver propagation using the same seed slice and ground-truth seed mask. UniPro achieves 94.03% Dice, compared with 86.05% for Sli2Vol+ and 83.81% for Vol2Flow (Table 8).

MethodDice (↑\uparrow)
Vol2Flow83.81
Sli2Vol+86.05
UniPro (GT seed)94.03

Table 8. Liver propagation on AbdomenCT-1K with the same seed slice and ground-truth seed mask for all methods. Dice scores are percentages.

Inference Runtime and Memory

We compare UniPro with a 3D nnU-Net of similar parameter count on AbdomenCT-1K test volumes using a single NVIDIA Quadro RTX 8000 GPU and a batch size of 1. The 3D nnU-Net uses 1283128^3 sliding-window patches at 1.5 mm isotropic spacing, while UniPro processes chunks of eight 3-channel 512×512512 \times512 slices. Table 9 reports median per-volume inference time and peak GPU memory under these native input configurations. UniPro uses approximately 46% less peak memory but takes longer per volume (28.0 s versus 9.3 s), reflecting a memory–runtime trade-off. Sequential propagation limits parallelization because later predictions depend on earlier outputs.

Table 9: Inference runtime and memory on AbdomenCT-1K using one NVIDIA Quadro RTX 8000 GPU and batch size 1. Time is the median per volume; memory is peak GPU memory during inference.

ModelParametersNative inputTime (s)Memory (GB)
3D nnU-Net31.84M1283128^{3} patch9.33.60
UniPro32.84M8×3×512×5128 \times3 \times512 \times512 chunk28.01.93

Table 9.

These measurements compare the two native deployment configurations and do not imply a general reduction in computation or inference latency.

Contributions of Stage-I Pretraining and Stage-II Propagation Training

To assess the contributions of the two training stages, we train all variants using only the cardiac subset of our training data and evaluate on ACDC. We compare Stage I only, Stage II only without Stage-I pretraining, and the full two-stage pipeline. Apart from the ablated stage, all other training and evaluation settings are kept identical across variants. At inference time, every variant receives the same seed slice and ground-truth seed mask for each volume–target pair, isolating propagation performance from differences in initialization quality. This cardiac-only ablation uses a different protocol from Table 3(b), which evaluates 2D interleaving under multi-dataset training with semantic seed predictions.

As shown in Table 10, Stage I alone enables propagation, while Stage II alone can learn propagation without unified pretraining. Combining the two stages achieves the highest Dice, improving over Stage I only and Stage II only by 3.69 and 2.86 Dice points, respectively. These results support the benefit of combining unified pretraining with propagation-specific adaptation in this controlled cardiac setting.

Table 10: Training-stage ablation using only cardiac training data. All variants are evaluated on ACDC with the same ground-truth seed masks. Dice scores are percentages.

Training strategyACDC Dice (GT seed)
Stage I only87.29
Stage II only, without Stage-I pretraining88.12
Full two-stage UniPro90.98

Table 10.

Visualization

Comparison with propagation baselines

We further illustrate the behavior of UniPro on pancreas segmentation, one of the most challenging targets in abdominal imaging due to its small size, elongated and curved shape, low contrast against surrounding soft tissues, and high inter-patient variability in both location and morphology. As shown in Figure 5, all methods are initialized from a single positive click on the seed slice (z=34z = 34) and required to propagate the resulting mask through the entire volume. UniPro recovers a coherent pancreas across distant slices (z=22z = 22 to z=48z = 48) and reaches a 3D Dice of 0.834, while propagation baselines fail in characteristic ways: SAM2 (0.410) leaks heavily into adjacent organs and tissues; nnInteractive (0.445), despite being a dedicated 3D interactive model, loses the target on slices far from the seed; iSegFormer (0.503) and PAM (0.541) exhibit progressive boundary inflation as propagation proceeds; and MedSAM2 (0.665), the strongest medical propagation baseline, still under-segments the head and tail of the pancreas. The 3D reconstructions in the rightmost column further highlight that UniPro produces a continuous, anatomically plausible pancreas, whereas baselines show fragmented or distorted volumes. This case illustrates that the reference-conditioned propagation in UniPro remains stable on small, low-contrast, elongated structures where slice-by-slice drift typically dominates.

Success and failure cases on tumor datasets

Figure 6 presents selected success and failure cases on LiTS, KiTS, and BraTS. Each example shows the initialized seed slice, predictions on four additional slices at increasing absolute slice-index distances from the seed, and the corresponding 3D surfaces. The successful LiTS and KiTS examples recover the dominant tumor component across slices despite its irregular shape. The successful BraTS example similarly captures the main lesion, although neither brain anatomy nor brain tumors are included in training. These examples nevertheless retain local errors, including missed small foci and false-positive extensions.

The failure cases highlight limitations on fragmented and heterogeneous targets. In LiTS and KiTS, predictions cover part of the initialized region but miss small, spatially separated components on more distant slices. The BraTS failure captures only part of a heterogeneous lesion and omits substantial surrounding and disconnected regions. Together, these observations suggest that appearance consistency and cross-slice traceability influence propagation beyond whether the anatomy was seen during training. They motivate improved handling of newly appearing components and weak correspondence between neighboring slices.

The Use of Large Language Models (LLMs)

In this work, large language models (LLMs) were used as general-purpose assistants for code development, manuscript writing, and figure illustration. Specifically, LLMs aided in routine coding tasks (e.g., debugging, boilerplate generation, and refactoring), language polishing and formatting of the manuscript. They did not contribute to research ideation, experimental design, analysis, or result interpretation.

NeurIPS Paper Checklist

  1. Claims Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? Answer: [Yes]

  1. Limitations Question: Does the paper discuss the limitations of the work performed by the authors? Answer: [Yes]

  1. Theory assumptions and proofs Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? Answer: [Yes]

  1. Experimental result reproducibility Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? Answer: [Yes]

  1. Open access to data and code Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? Answer: [Yes]

  1. Experimental setting/details Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results? Answer: [Yes]

  1. Experiment statistical significance Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? Answer: [Yes]

  1. Experiments compute resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [Yes]

  1. Code of ethics Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? Answer: [Yes]

  1. Broader impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [N/A]

  1. Safeguards Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?

Answer: [N/A]

  1. Licenses for existing assets

Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?

Answer: [N/A]

  1. New assets

Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?

Answer: [N/A]

  1. Crowdsourcing and research with human subjects

Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?

Answer: [N/A]

  1. Institutional review board (IRB) approvals or equivalent for research with human subjects

Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?

Answer: [N/A]

  1. Declaration of LLM usage

Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.

Answer: [Yes]

References

  1. [1]Wald Al-Dhabyani, Mohammed Gomaa, Hussien Khaled, and Aly Fahmy. Dataset of breast ultrasound images. Data in brief, 28:104863, 2020.DOI
  2. [2]Delin An, Pengfei Gu, Milan Sonka, Chaoli Wang, and Danny Z Chen. Sli2vol+: Segmenting 3d medical images based on an object estimation guided correspondence flow network. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 3624–3634. IEEE, 2025.DOI
  3. [3]Yunhao Bai, Boxiang Yun, Zeli Chen, Qinji Yu, Yingda Xia, and Yan Wang. Revsam2: prompt sam2 for medical image segmentation via reverse-propagation without fine-tuning. arXiv preprint arXiv:2409.04298, 2024.arxiv.org/abs/2409.04298
  4. [4]Ujjwal Baid, Satyam Ghodasara, Suyash Mohan, Michel Bilello, Evan Calabrese, Errol Colak, Keyvan Farahani, Jayashree Kalpathy-Cramer, Felipe C Kitamura, Sarthak Pati, et al. The rsna-ansr-miccai brats 2021 benchmark on brain tumor segmentation and radiogenomic classification. arXiv preprint arXiv:2107.02314, 2021.arxiv.org/abs/2107.02314
  5. [5]Olivier Bernard, Alain Lalande, Clement Zotti, Frederick Cervanensy, Xin Yang, Pheng-Ann Heng, Irem Cetin, Karim Lekadir, Oscar Camara, Miguel Angel Gonzalez Ballester, et al. Deep learning techniques for automatic mri cardiac multi-structures segmentation and diagnosis: is the problem solved? IEEE transactions on medical imaging, 37(11):2514–2525, 2018.DOI
  6. [6]Patrick Bilic, Patrick Christ, Hongwei Bran Li, Eugene Vorontsov, Avi Ben-Cohen, Georgios Kaissis, Adi Szeskin, Colin Jacobs, Gabriel Elfrain Humpire Mamani, Gabriel Chartrand, et al. The liver tumor segmentation benchmark (lits). Medical image analysis, 84:102680, 2023.DOI
  7. [7]Adeleh Bitarafan, Mohammad Farid Azampour, Kian Bakhtari, Mahdieh Soleymani Baghshah, Matthias Keicher, and Nassir Navab. Vol2flow: Segment 3d volumes using a sequence of registration flows. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 609–618. Springer, 2022.DOI
  8. [8]Victor Ion Butoi, Jose Javier Gonzalez Ortiz, Tianyu Ma, Mert R Sabuncu, John Guttag, and Adrian V Dalca. Universeg: Universal medical image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21438–21451, 2023.arxiv.org/abs/2304.06131
  9. [9]Victor M Campello, Polyxeni Gkontra, Cristian Izquierdo, Carlos Martin-Isla, Alireza Sojoudi, Peter M Full, Klaus Maier-Hein, Yao Zhang, Zhiqiang He, Jun Ma, et al. Multi-centre, multi-vendor and multi-disease cardiac segmentation: the m&ms challenge. IEEE Transactions on Medical Imaging, 40(12):3543–3554, 2021.DOI
  10. [10]Sema Candemir, Stefan Jaeger, Kannappan Palaniappan, Jonathan P Musco, Rahul K Singh, Zhiyun Xue, Alexandros Karargyris, Sameer Antani, George Thoma, and Clement J McDonald. Lung segmentation in chest radiographs using anatomical atlases with nonrigid registration. IEEE transactions on medical imaging, 33(2):577–590, 2013.DOI
  11. [11]Yuwen Chen, Zafer Yildiz, Qihang Li, Yaqian Chen, Haoyu Dong, Hanxue Gu, Nicholas Konz, and Maciej A Mazurowski. Accelerating volumetric medical image annotation via short-long memory sam 2. IEEE Transactions on Medical Imaging, 2025.arxiv.org/abs/2505.01854
  12. [12]Zifan Chen, Xinyu Nan, Jiazhenq Li, Jie Zhao, Haifeng Li, Ziling Lin, Haoshen Li, Heyun Chen, Yiting Liu, Lei Tang, et al. Pam: a propagation-based model for segmenting any 3d objects across multi-modal medical images. npj Digital Medicine, 2025.DOI
  13. [13]Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girshick. Masked-attention mask transformer for universal image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1290–1299, 2022.arxiv.org/abs/2112.01527
  14. [14]Ho Kei Cheng, Yu-Wing Tai, and Chi-Keung Tang. Rethinking space-time networks with improved memory coverage for efficient video object segmentation. Advances in neural information processing systems, 34:11781–11794, 2021.arxiv.org/abs/2106.05210
  15. [15]Ho Kei Cheng, Seoung Wug Oh, Brian Price, Joon-Young Lee, and Alexander Schwing. Putting the object back into video object segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3151–3161, 2024.arxiv.org/abs/2310.12982
  16. [16]Junlong Cheng, Jin Ye, Zhongying Deng, Jianpin Chen, Tianbin Li, Haoyu Wang, Yanzhou Su, Ziyan Huang, Jilong Chen, Lei Jiang, et al. Sam-med2d. arXiv preprint arXiv:2308.16184, 2023.arxiv.org/abs/2308.16184
  17. [17]Noel Codella, Veronica Rotemberg, Philipp Tschandl, M Emre Celebi, Stephen Dusza, David Gutman, Brian Helba, Aadi Kalloo, Konstantinos Liopyris, Michael Marchetti, et al. Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (isic). arXiv preprint arXiv:1902.03368, 2019.arxiv.org/abs/1902.03368
  18. [18]Yuhang Ding, Liulei Li, Wenguan Wang, and Yi Yang. Clustering propagation for universal medical image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3357–3369, 2024.arxiv.org/abs/2403.16646
  19. [19]Yuxin Du, Fan Bai, Tiejun Huang, and Bo Zhao. Segvol: Universal and interactive volumetric medical image segmentation. arXiv preprint arXiv:2311.13385, 2023.arxiv.org/abs/2311.13385
  20. [20]Yunhe Gao. Training like a medical resident: Context-prior learning toward universal medical image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11194–11204, 2024.arxiv.org/abs/2306.02416
  21. [21]Yunhe Gao, Di Liu, Zhuowei Li, Yunsheng Li, Dongdong Chen, Mu Zhou, and Dimitris N Metaxas. Show and segment: Universal medical image segmentation via in-context learning. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 20830–20840, 2025.arxiv.org/abs/2503.19359
  22. [22]Bangwei Guo, Meng Ye, Yunhe Gao, Bingyu Xin, Leon Axel, and Dimitris Metaxas. Verse: Integrating multiple queries as prompts for versatile cardiac mri segmentation. In International Conference on Information Processing in Medical Imaging, pages 373–387. Springer, 2025.arxiv.org/abs/2412.16381
  23. [23]Bangwei Guo, Xiao Chen, Boris Mailhe, Jia Yao, Yiqing Wang, Ankush Mukherjee, Yikang Liu, Zheyuan Zhang, Hang Yu, Terrence Chen, et al. Learning where to look: Anatomical grounding and guided attention for cardiac mri vision-language models. arXiv preprint arXiv:2609.39899, 2026.arxiv.org/abs/2609.39899
  24. [24]Bangwei Guo, Yunhe Gao, Meng Ye, Difei Gu, Yang Zhou, Leon Axel, and Dimitris N. Metaxas. K-prism: A knowledge-guided and prompt integrated universal medical image segmentation model. In The Fourteenth International Conference on Learning Representations, 2026.arxiv.org/abs/2509.25594
  25. [25]Ali Hatamizadeh, Yucheng Tang, Vishwesh Nath, Dong Yang, Andriy Myronenko, Bennett Landman, Holger R Roth, and Daguang Xu. Unetr: Transformers for 3d medical image segmentation. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 574–584, 2022.arxiv.org/abs/2103.10504
  26. [26]Nicholas Heller, Niranjan Sathianathen, Arveen Kalapara, Edward Walczak, Keenan Moore, Heather Kaluzniak, Joel Rosenberg, Paul Blake, Zachary Rengel, Makinna Ostreich, et al. The kits19 challenge data: 300 kidney tumor cases with clinical context, ct semantic segmentations, and surgical outcomes. arXiv preprint arXiv:1904.00445, 2019.arxiv.org/abs/1904.00445
  27. [27]Fabian Isensee, Paul F Jaeger, Simon AA Kohl, Jens Petersen, and Klaus H Maier-Hein. nnu-net: a self-configuring method for deep learning-based biomedical image segmentation. Nature methods, 18(2):203–211, 2021.DOI
  28. [28]Fabian Isensee, Maximilian Rokuss, Lars Krämer, Stefan Dinkelacker, Ashis Ravindran, Florian Stritzke, Benjamin Hamm, Tassilo Wald, Moritz Langenberg, Constantin Ulrich, et al. nninteractive: Redefining 3d promptable segmentation. arXiv preprint arXiv:2503.08373, 2025.arxiv.org/abs/2503.08373
  29. [29]Stefan Jaeger, Alexandros Karargyris, Sema Candemir, Les Folio, Jenifer Siegelman, Fiona Callaghan, Zhiyun Xue, Kannappan Palaniappan, Rahul K Singh, Sameer Antani, et al. Automatic tuberculosis screening using chest radiographs. IEEE transactions on medical imaging, 33(2):233–245, 2013.DOI
  30. [30]A. Emre Kavur, N. Sinem Gezer, Mustafa Barış, Sinem Aslan, Pierre-Henri Conze, Vladimir Groza, Duc Duy Pham, Soumick Chatterjee, Philipp Ernst, Savaş Özkan, Bora Baydar, Dmitry Lachinov, Shuo Han, Josef Pauli, Fabian Isensee, Matthias Perkonigg, Rachana Sathish, Ronnie Rajan, Debdoot Sheet, Gurb andurdy Dovletov, Oliver Speck, Andreas Nürnberger, Klaus H. Maier-Hein, Gözde Bozdağı Akar, Gözde Ünal, Oğuz Dicle, and M. Alper Selver. CHAOS Challenge - combined (CT-MR) healthy abdominal organ segmentation. Medical Image Analysis, 69:101950, April 2021. ISSN 1361-8415. doi: https://doi.org/10.1016/j.media.2020.101950. URL http://www.sciencedirect.com/science/article/pii/S1361841520303145.
  31. [31]Ali Emre Kavur, M. Alper Selver, Oğuz Dicle, Mustafa Barış, and N. Sinem Gezer. CHAOS - Combined (CT-MR) Healthy Abdominal Organ Segmentation Challenge Data, April 2019. URL https://doi.org/10.5281/zenodo.3362844.
  32. [32]Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015–4026, 2023.arxiv.org/abs/2304.02643
  33. [33]Bennett Landman, Zhoubing Xu, J Iglesias, Martin Styner, T Langerak, and Arno Klein. Miccai multi-atlas labeling beyond the cranial vault—workshop and challenge. In Proc. MICCAI Multi-Atlas Labeling Beyond Cranial Vault—Workshop Challenge, volume 5, page 12, 2015.
  34. [34]Songhao Li, Jonathan Xu, Tiancheng Bao, Yuxuan Liu, Yuchen Liu, Yihang Liu, Lilin Wang, Wenhui Lei, Sheng Wang, Yinuo Xu, et al. A co-evolving agentic ai system for medical imaging analysis. arXiv preprint arXiv:2509.20279, 2025.arxiv.org/abs/2509.20279
  35. [35]Qin Liu, Zhenlin Xu, Yining Jiao, and Marc Niethammer. isegformer: interactive segmentation via transformers with application to 3d knee mr images. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 464–474. Springer, 2022.arxiv.org/abs/2112.11325
  36. [36]Qin Liu, Zhenlin Xu, Gedas Bertasius, and Marc Niethammer. Simpleclick: Interactive image segmentation with simple vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22290–22300, 2023.DOI
  37. [37]Shengyuan Liu, Liuxin Bao, Qi Yang, Wanting Geng, Boyun Zheng, Chenxin Li, Wenting Chen, Houwen Peng, and Yixuan Yuan. Medsam-agent: Empowering interactive medical image segmentation with multi-turn agentic reinforcement learning. arXiv preprint arXiv:2602.03320, 2026.arxiv.org/abs/2602.03320
  38. [38]Jun Ma, Yao Zhang, Song Gu, Cheng Zhu, Cheng Ge, Yichi Zhang, Xingle An, Congcong Wang, Qiyuan Wang, Xin Liu, Shucheng Cao, Qi Zhang, Shangqing Liu, Yunpeng Wang, Yuhui Li, Jian He, and Xiaoping Yang. Abdomenct-1k: Is abdominal organ segmentation a solved problem? IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10):6695–6714, 2022. doi: 10.1109/TPAMI.2021.3100536.DOI
  39. [39]Jun Ma, Yuting He, Feifei Li, Lin Han, Chenyu You, and Bo Wang. Segment anything in medical images. Nature Communications, 15(1):654, 2024.
  40. [40]Jun Ma, Zongxin Yang, Sumin Kim, Bihui Chen, Mohammed Baharoon, Adibvafa Fallahpour, Reza Asakereh, Hongwei Lyu, and Bo Wang. Medsam2: Segment anything in 3d medical images and videos. arXiv preprint arXiv:2504.03600, 2025.arxiv.org/abs/2504.03600
  41. [41]Phan Ngoc Lan, Nguyen Sy An, Dao Viet Hang, Dao Van Long, Tran Quang Trung, Nguyen Thi Thuy, and Dinh Viet Sang. Neounet: Towards accurate colon polyp segmentation and neoplasm detection. In International Symposium on Visual Computing, pages 15–28. Springer, 2021.arxiv.org/abs/2107.05023
  42. [42]Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Roland, Laura Gustafson, et al. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024.arxiv.org/abs/2408.00714
  43. [43]Dinggang Shen, Guorong Wu, and Heung-Il Suk. Deep learning in medical image analysis. Annual review of biomedical engineering, 19:221–248, 2017.
  44. [44]Yiqing Shen, David Dreizin, Blanca Inigo, and Mathias Unberath. Protosam-3d: Interactive semantic segmentation in volumetric medical imaging via a segment anything model and mask-level prototypes. Computerized Medical Imaging and Graphics, 121:102501, 2025.DOI
  45. [45]Konstantin Sofiuk, Ilya A Petrov, and Anton Konushin. Reviving iterative training with mask guidance for interactive segmentation. In 2022 IEEE International Conference on Image Processing (ICIP), pages 3141–3145. IEEE, 2022.
  46. [46]Philipp Tschandl, Cliff Rosendahl, and Harald Kittler. The ham10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Scientific data, 5(1):1–9, 2018.
  47. [47]University of Waterloo. Skin cancer detection. https://uwaterloo.ca/vision-image-processing-lab/research-demos/skin-cancer-detection.
  48. [48]Haoyu Wang, Sizheng Guo, Jin Ye, Zhongying Deng, Junlong Cheng, Tianbin Li, Jianpin Chen, Yanzhou Su, Ziyan Huang, Yiqing Shen, et al. Sam-med3d: a vision foundation model for general-purpose segmentation on volumetric medical images. IEEE Transactions on Neural Networks and Learning Systems, 2025.DOI
  49. [49]Jakob Wasserthal, Hanns-Christian Breit, Manfred T Meyer, Maurice Pradella, Daniel Hinck, Alexander W Sauter, Tobias Heye, Daniel T Boll, Joshy Cyriac, Shan Yang, et al. Totalsegmentator: robust segmentation of 104 anatomic structures in ct images. Radiology: Artificial Intelligence, 5(5):e230024, 2023.DOI
  50. [50]Hallee E Wong, Jose Javier Gonzalez Ortiz, John Guttag, and Adrian V Dalca. Multiverseg: Scalable interactive segmentation of biomedical imaging datasets with in-context guidance. arXiv preprint arXiv:2412.15058, 2024.arxiv.org/abs/2412.15058
  51. [51]Moi Hoon Yap, Gerard Pons, Joan Martí, Sergi Ganau, Melcior Sentís, Reyer Zwiggelaar, Adrian K Davison, and Robert Martí. Automated breast ultrasound lesions detection using convolutional neural networks. IEEE journal of biomedical and health informatics, 22(4):1218–1226, 2017.DOI
  52. [52]Yiwen Ye, Yutong Xie, Jianpeng Zhang, Ziyang Chen, and Yong Xia. Uniseg: A prompt-driven universal segmentation model as well as a strong representation learner. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 508–518. Springer, 2023.arxiv.org/abs/2304.03493
  53. [53]Pak-Hei Yeung, Ana IL Namburete, and Weidi Xie. Sli2vol: Annotate a 3d volume from a single slice with self-supervised learning. In International Conference on Medical Image Computing and Computer-assisted Intervention, pages 69–79. Springer, 2021.arxiv.org/abs/2105.12722
  54. [54]Yichi Zhang, Qingcheng Liao, Le Ding, and Jicong Zhang. Bridging 2d and 3d segmentation networks for computation-efficient volumetric medical image segmentation: An empirical study of 2.5 d solutions. Computerized Medical Imaging and Graphics, 99:102088, 2022.DOI
  55. [55]Ziyu Zhang, Yi Yu, Simeng Zhu, Ahmed Aly, Yunhe Gao, Ning Gu, and Yuan Xue. Atlas is your perfect context: One-shot customization for generalizable foundational medical image segmentation. arXiv preprint arXiv:2512.18176, 2025.arxiv.org/abs/2512.18176
  56. [56]Jianwei Zhao, Fan Yang, Xin Li, Zhicheng Jiao, Qiang Zhai, Xiaomeng Li, De Wu, Huazhu Fu, and Hong Cheng. Segmic: A universal model for medical image segmentation through in-context learning. Pattern Recognition, 171:112179, 2026.DOI

AI tools statement

This work lists 1 AI tool.

  • large language models (LLMs) · AI tool

    Roles
    SoftwareVisualizationWriting — original draftWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type