Manuscript Offprint
arXiv:2611.08185Multimodal Hierarchical Mixture-of-Experts for 3D Medical Vision-Language Modeling
Abstract
Medical 3D scans and reports are inherently hierarchical, with diagnostic cues concentrated in specific anatomical regions across multiple levels of organization. Yet, most medical vision-language models ignore this structure and fail to focus on clinically relevant anatomy. We introduce MedHiVE, which combines hierarchical vision-language Soft Mixture-of-Experts (SMoE) with contrastive learning to jointly model fine-grained anatomy and global scan context. To our knowledge, MedHiVE is the first framework to route both vision and text tokens through a two-level SMoE hierarchy organized by anatomical scale, coupling this with report-derived anatomy-level contrastive alignment for 3D medical imaging. This replaces the direct region-text alignment of statically pooled features and vision-only hierarchical routing of prior work with dynamic, slot-based cross-modal information flow across anatomical scales. MedHiVE operates via a two-level, learnable token-routing mechanism, where local image and text features are first routed through a local SMoE and then fused by a global SMoE into unified multimodal representations. Contrastive learning aligns both anatomy-level and global vision-language representations in a unified space. Pre-trained on 25,000+ CT scans with anatomical supervision, MedHiVE consistently surpasses 11 state-of-the-art methods across 6 datasets on 3 tasks: segmentation, classification, and detection, demonstrating the importance of hierarchical modeling. The code for MedHiVE is at github.com/szczurek-lab/MedHiVE.
1. Introduction
Three-dimensional (3D) computed tomography (CT) data possess an intrinsic, multi-scale hierarchical structure

Figure 1. Overview of the MedHiVE framework. A hierarchical encoder processes a 3D CT scan and anatomy masks alongside a full report representation and anatomy-specific snippet representations , extracted through a frozen text encoder. The global vision representation is contrasted with , while local vision representations are aligned with for each anatomical structure . This yields anatomy-aware vision-language representations that enhance downstream segmentation, classification, and detection.
where local voxel-level textures are nested within anatomical organs, which in turn follow a natural spatial arrangement within the body. Clinical text mirrors this hierarchy, as reports are typically organized into organ-specific findings and global impressions. Unifying these domains requires learning joint representations that bridge fine-grained anatomical details with holistic bodily context, a balance that remains a key challenge for medical vision-language models.
While recent progress in vision-language (VL) models has revolutionized natural image understanding, standard 3D medical approaches often treat volumes and reports as flat sequences, effectively discarding these essential structural inductive biases [19]. The MambaHoME architec-
*Corresponding author: gizem.mert@helmholtz-munich.de ture [35] recently introduced hierarchical routing, but solely for vision inputs, and the challenge of jointly modeling vision-language cross-modal hierarchies in a unified representation remains an open problem. Existing medical VL models have largely focused either on global alignment [7] or localized patches [52]. More recent efforts introduce anatomy-aware priors [10, 41, 47], yet they frequently treat image and text hierarchies as separate or auxiliary concerns. To the best of our knowledge, no previous work has unified the hierarchical routing of 3D vision tokens with the semantic hierarchy of clinical reports into a single, differentiable framework for image analysis.
To bridge this gap, we introduce MedHiVE, a Medical Hierarchical Vision-Language Experts framework, designed to exploit multi-scale structural priors. We encode each CT volume and its report into global and anatomy-level representations, using a long-context text encoder [28] for the report and voxel-wise organ masks for the volume. We propose a hierarchical multimodal encoder with two-level, slot-based Soft MoE routing over global tokens and anatomy-level representations from both vision and text. Global vision tokens and paired global text tokens are softly grouped and processed by global experts, while anatomy-level image and text representations are handled in parallel by local experts. These global and anatomy-aware slots are concatenated and routed through a second SMoE layer with shared experts for joint vision-language processing. To enrich learned representations, we apply a contrastive loss to align vision-language representations on both local and global scales. Our main contributions are as follows:
-
Hierarchical vision-language architecture operating on anatomy-level representations and global tokens from both vision and text, using slot-based SMoE routing through anatomy-specific and global vision and language experts.
-
Local-global vision-language contrastive learning that jointly optimizes scan-report and anatomy-snapshot objectives, aligning representations across global and anatomical scales.
-
Anatomy-aware supervision that combines organ masks with automatically extracted organ-specific report snippets, enabling organ-level alignment without sentence-level labels.
We pre-train MedHiVE on a large-scale, publicly available dataset comprising over 25,000 CT scans with reports and demonstrate consistent gains over state-of-the-art in downstream tasks like segmentation, classification, and detection. Beyond improving segmentation accuracy, MedHiVE provides a mechanism for transferring knowledge from free-form reports into 3D representations.
Contrastive learning in MedVLMs. Contrastive learning remains the primary objective for aligning medical images with clinical reports. While early methods focused on global alignment [20, 52], the field has recently shifted toward structural alignment to respect the inherent hierarchy of medical data. HiCLIP [14] pioneered this by using hierarchy-aware attention to capture nested relationships between multi-level visual features and text for 2D imaging. However, extending hierarchical attention to 3D medical analysis remains non-trivial due to the cubic growth of tokens in volumetric scans. Prior works such as GLoRIA [20] learn global and region-level vision-language alignment via attention mechanisms in 2D medical images, but do not generalize to dense 3D volumes or provide explicit hierarchical modeling and token-level routing across anatomical scales. While recent 3D approaches like [41] and [10] have scaled pre-training to massive 3D datasets, they often rely on coarse-grained global alignment that may overlook fine-grained anatomical morphology. Our work bridges this gap by extending hierarchical contrastive alignment to 3D and introducing a learnable, token-level routing mechanism for multimodal fusion. Unlike the static hierarchical attention in HiCLIP, we rely on a two-level multimodal SMoE routing paradigm, allowing dynamic, slot-based information flow between holistic scan representations and anatomy-aware tokens while maintaining the scalability required for large-scale 3D pre-training.
3. Preliminaries
Selective State-Space Models and Mamba. Selective State-Space Models (SSMs) form the foundation of Mamba [15], a selective sequence model that provides a scalable alternative to self-attention for capturing long-range dependencies. An SSM processes a 1D continuous-time input signal through a latent state and outputs :
where governs state evolution, injects the input, and maps the state to output space. For discrete-time modeling, the system is discretized with step size :
(2)
Mamba makes this discretized SSM selective, i.e., the effective state transition and input injection are modulated by the current input through learned gating mechanisms, while retaining linear-time parallel scan. This enables efficient modeling of long 1D sequences extracted from high-resolution 3D CT volumes. In our framework, Mamba layers constitute the backbone of the vision-language encoder, providing scalable global context modeling across scales.
Soft Mixture-of-Experts and Slot-Based Routing. To balance efficiency and capacity, we employ Soft Mixture-of-Experts (SMoE) layers with slot-based routing (see Figure 2). An SMoE layer consists of Experts: A set of parameterized feed-forward networks (FFNs); and Slots: A collection of learnable vectors acting as queries for grouping input tokens before expert processing. Given input tokens and slot-representation matrix (with slots), the soft assignment of token to slot is:
Each slot aggregates the tokens via a sum weighted by the soft assignment values, and the resulting slot representations are processed by allocated experts. This mechanism provides dynamic token grouping, improved parameter efficiency, and effective scaling to long sequences like high-resolution 3D volumes.
Notation. We denote a dataset of paired samples as , where is a 3D CT volume and is the corresponding radiology report. The minibatch size is denoted by . Predefined anatomical structures are indexed by , where is the maximal number. For each sample and anatomy , binary masks indicate the spatial support of anatomy . At encoder stage , feature maps are denoted by , with tokens after flattening. Global and anatomy-level image representations are obtained via pooling and denoted by and , respectively. On the text side, the full report and anatomy-specific snippets are similarly encoded as and . In the HiVEL layer, tokens are grouped into groups of size such that . We denote the number of experts by and the number of slots per expert by , yielding slots. Token-to-slot assignments are represented by soft assignment matrices .
4. Methodology
Problem formulation. Our primary goal is to learn a model that captures multi-level image-text alignment, ensuring that both global representations and anatomy-level representations are semantically aligned across modalities. We use “global” to denote scan-level summaries and “local” to denote anatomy-conditioned regions; the same hierarchy is mirrored on the text side via report-level and snippet-level representations.
4.1. Image-text Data Preprocessing
Report snippet extraction. Following [41], we decompose each report into anatomy-level components:
, where is the corresponding textual description, and is the number of anatomical structures present in sample i. In our implementation, we consider 14 structures in total. The anatomy-level text is parsed by Qwen3-30B [48] applied to the full radiology report to identify and extract organ-specific snippets (see Appendix A.4). Anatomy inventory. For each sample i and anatomy a, we maintain a binary label mask , where indicates that voxel v belongs to anatomy a in image i and otherwise. These masks implement the anatomical inventory (see Table 3) and are used to derive both anatomy-level and global image representations as explained in Section 4.2.1.
4.2. The MedHiVE Architecture
We introduce MedHiVE, an encoder-decoder architecture featuring a newly designed MedHiVE Encoder that incorporates HiVEL, a Hierarchical Vision-Language Experts Layer, and applies contrastive learning to achieve multi-modal representation alignment.
4.2.1. Encoder
We propose a multimodal MedHiVE Encoder, which extends the vision-only HoME Block of [35] with text routing, an anatomy expert stream, second-level cross-modal fusion, and contrastive alignment, illustrated in Figure 1. For feature extraction at each encoder stage, we follow SegMamba [46], applying a 3D Gated Spatial Convolution (GSC) block followed by flattening the feature map into 1D token sequences, normalization, a Mamba layer to capture long-range dependencies, and again normalization. The feature extraction step is followed by the HiVEL layer (see Figure 2), with additional inputs from text representations and local vision representations, as described below. The output of HiVEL is flattened and rearranged. Both normalization and Mamba layers, as well as normalization and HiVEL layers are wrapped in residual connections.
Vision representations. The feature extraction procedure results in global feature maps for stages , where is the channel dimension and is the spatial grid at stage . At each stage, the anatomy masks are downsampled to the token grid via a stage-specific adaptive max pooling operator Down :
Next, anatomy-level image representations are obtained by masked averaging of the tokens:
where applies the binary mask and Pool() is mean pooling. In parallel, global vision representations are obtained by global pooling:

Figure 2. Overview of the HiVEL layer. Global and anatomy-level vision tokens and text tokens are routed to global experts and local experts via first-level routers. The resulting slots are concatenated and processed by a second-level router. Global vision and text tokens are fused with shared experts outputs via residual connection, yielding enhanced vision tokens and text tokens . Vision tokens are used at all stages , while text tokens are enabled at .
Both anatomy-level representations and global representations obtained in stage are used for contrastive alignment, as explained in Section 4.3 below. For all stages , global feature maps become the input to HiVEL layer, as described in Section 4.2.2.
Text representations. Each radiology report and the corresponding anatomy descriptions are encoded with a frozen Clinical-Longformer [28], producing representations for the full report and for each anatomy snippet, where and are the tok-enized lengths of the full report and anatomy text, and is the text hidden dimension. To interface with stage-s visual representations of dimension , we project text tokens with a linear map . For the global text stream, we pad or truncate the report token sequence to the number of visual tokens , yielding . For global contrastive alignment (see Section 4.3), we obtain the text representation by mean pooling:
For anatomy text, we use a token per anatomy and project it to obtain . These global and anatomy-level text tokens are provided to the HiVEL layer (Section 4.2.2).
4.2.2. HiVEL layer
The HiVEL layer takes the global vision feature map as well as local vision representations as input, and, for stages , processes them on two levels, in conjunction with the text representations and (see Figure 2).
First level routing. To perform global routing, we first flatten the spatial grid of into a vision token matrix and partition it into non-overlapping groups of size where . In the following, we skip the stage index for clarity of notation.
Let denote the corresponding text token matrix, and let , be the -th token in group extracted from and , respectively. For each group , we compute:
and use them to generate sample- and group-dependent slots through a projection network shared across groups and modalities. For slots (with first-level experts and slots per expert), we obtain slot representation matrices and :
where maps to slot vectors. We then compute the soft token-to-slot assignment matrices and for vision and text tokens, respectively:
Group slot representations are obtained by weighted summing:
A lightweight modality router and group gates modulate the relative contribution of vision and text streams, producing per-group, per-modality scaling factors that rescale the slots before expert processing. The resulting slots are passed through E shared global experts :
(13)
We associate a contiguous block of slots with each expert: expert processes slots , and its output is scaled by a learned expert gate. We adopt deterministic block allocation to enforce spatial-semantic locality, ensuring that contiguous anatomical regions and semantically coherent text snippets are routed together. This structural prior is designed to promote training stability and mitigate expert imbalance, while preserving learnable routing via soft assignments. The slots are reshaped into sequences of slots per group:
(14)
In parallel to global token routing at stage , MedHiVE performs local routing of anatomy-level vision representations and text representations . Let denote the intra-modality expert module processing local anatomy input from both modalities. We form the anatomy stream:
where , with the number of anatomy experts, whose outputs are weighted by a learned softmax router shared across modalities. Stacking and over , we obtain and respectively. These resulting matrices provide anatomy context that is concatenated with the global routing output matrices , :
where and is the concatenated token length at stage . In practice, the first two stages operate in a vision-only mode, while the last two stages use both vision and text representations. Anatomy masks and text representations are required during pre-training only. At fine-tuning and inference, the model operates on the image alone.
Second level routing. The concatenated token matrix is processed by a second routing with the same slot-based structure as the first level global routing: tokens are softly assigned to a set of sample- and group-dependent slots, transformed by experts, and then projected back to token space. Let denote the output of this second level routing. We then split back into the vision and text segments, reshape each segment into group-slot form, and reconstruct vision and text slot outputs back to token space using the first-level assignment weights:
(17)
This yields fused vision and text tokens respectively via residual connections.
4.2.3. Decoder
After each MedHiVE stage, the fused vision tokens are reshaped back to the 3D grid to form the multi-scale feature maps , which are passed to a UNETR-based [17, 35] decoder via skip connections for voxel-wise segmentation. At each resolution, the decoder upsamples the features and integrates the corresponding encoder-stage output.
4.3. Training Objectives
MedHiVE jointly optimizes segmentation and hierarchical vision-language contrastive alignment. The objectives are designed to ensure that the learned representations encode both global semantics and anatomy-level grounding.
Global contrastive learning. Whole-image and whole-report representations from the first MedHiVE stage (s = 1) are aligned using a symmetric cosine InfoNCE loss [32]. We define the global contrastive loss for directions as:
where denotes cosine similarity and is a temperature parameter. We next take their average by . This symmetric loss encourages the model to pull together matched image-text pairs while pushing apart mismatched pairs in both directions.
Anatomy-level contrastive learning. We apply a symmetric contrastive objective at the anatomy level. Let denote extracted representations where s = 1 for anatomy a in study i, and let be the number of anatomies present in i. The contrastive loss for both image-to-text ( ) and text-to-image ( ) directions is:
where . As in the global case, we average the two directions to obtain , which aligns image features of specific anatomies with their textual snippets. Each serves as an anchor, and other anatomy representations within the same sample are treated as negatives.
Segmentation learning. The segmentation objective is optimized using a sum of Dice and cross-entropy losses. The Dice loss encourages segmentation accuracy for each anatomical structure, while cross-entropy loss stabilizes voxel-wise classification.
Adaptive multi-task weighting. We use adaptive multi-task weighting based on the Exponential Moving Average (EMA) of each loss magnitude. Let , , and denote the segmentation, global contrastive, and anatomy-level contrastive losses, respectively. For brevity, let and denote as the loss value at training step t. We maintain an EMA for each loss as:
where is the smoothing factor and . Using a small constant for numerical stability, we compute the inverse-magnitude weights . These are then normalized by the segmentation weight to obtain the contrastive weights:
The function clamps its argument to the interval . The hyperparameters control the allowed range of the contrastive-to-segmentation loss ratios.
Overall Objective. Finally, the total loss combines segmentation and contrastive terms with the adaptive weights as . This encourages representations that are anatomically precise and semantically aligned with the corresponding radiology reports, while automatically balancing the contributions of segmentation and global/anatomy-level contrastive objectives.
5. Experiments
5.1. Experimental setup
Datasets. To pre-train our model, we use the publicly available dataset Merlin [4, 6] comprising 25,494 CT scans from 18,321 patients and their corresponding radiology reports. For fine-tuning, we use publicly available datasets for segmentation, including PANORAMA [1], AMOS-CT [23], and KiTS 2023 [18]. To assess cross-modality transfer and generalization to anatomy outside the pre-training inventory, we additionally evaluate on GEPAR3D [42]. We curate two in-house abdominal CT datasets for (i) classification and detection of PDAC, and (ii) qualitative evaluation of kidney lesions against radiology reports (IRB approval no. 9/2023). The details about
Table 1. Comprehensive performance comparison across segmentation, classification, and detection tasks. Segmentation performance is reported in mDSC (%), while PDAC classification and detection are reported via Sensitivity (%), Specificity (%), and mAP (%). VRAM is measured in gigabytes (GB) (↓), and speed in million voxels per second (MV/s) (↑). The best results are bolded.
| Method | Params (M) | VRAM (GB) | Speed (MV/s) | Segmentation (mDSC %) | PDAC Cls. & Det. | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| PANO | AMOS | KiTS | GEPAR3D | Sens. (%) | Spec. (%) | mAP (%) | ||||
| Hermes [13] | 44.5 | 4.1 | 12.9 | 77.6 | 85.3 | 65.7 | 84.0 | 75.4 | 79.1 | 62.3 |
| Swin SMT [34] | 170.8 | 3.6 | 14.7 | 73.4 | 81.6 | 47.2 | 84.1 | 77.2 | 80.5 | 64.1 |
| VSmTrans [30] | 47.6 | 3.1 | 26.2 | 74.7 | 84.8 | 54.6 | 84.6 | 78.8 | 81.3 | 65.8 |
| uC 3DU-Net [21] | 21.7 | 3.1 | 50.2 | 75.0 | 82.9 | 60.6 | 83.8 | 73.5 | 77.2 | 60.4 |
| Swin UNETR [44] | 72.8 | 4.1 | 27.5 | 72.6 | 83.8 | 48.3 | 82.6 | 80.1 | 82.8 | 67.5 |
| SuPreM [26] | 62.2 | 4.1 | 27.5 | 74.6 | 86.3 | 57.0 | 80.6 | 81.6 | 84.4 | 69.2 |
| SegMamba [46] | 66.8 | 3.3 | 25.5 | 72.8 | 84.8 | 56.8 | 86.7 | 83.2 | 85.9 | 71.4 |
| MambaHoME [35] | 170.1 | 3.7 | 21.0 | 74.1 | 85.5 | 60.1 | 86.1 | 84.7 | 87.1 | 73.8 |
| Merlin [6] | 256.8 | 3.0 | 96.0 | 77.6 | 85.6 | 64.3 | 86.5 | 85.5 | 87.9 | 76.2 |
| fVLM [41] | 110.0 | 0.6 | 360.0 | 74.6 | 85.2 | 55.4 | 84.1 | 82.3 | 85.1 | 72.4 |
| BTB3D [16] | 101.1 | 1.4 | 60.6 | 77.8 | 86.1 | 55.1 | 84.0 | 84.9 | 87.2 | 74.4 |
| MedHiVE | 177.9 | 3.7 | 20.8 | 78.7 | 87.8 | 66.7 | 87.7 | 87.3 | 89.5 | 77.2 |
data preprocessing, pre-training, fine-tuning and test sets are provided in Appendix A and Appendix B. The implementation details and evaluation metrics are provided in Appendices C and D.
5.2. Comparison with state-of-the-art
We compare our proposed model, MedHiVE, with several state-of-the-art methods, including Hermes [13], Swin SMT [34], VSmTrans [30], uC 3DU-Net [21], Swin UNETR [44], SuPreM [26], SegMamba [46], and MambaHoME [35], which is our baseline. Additionally, we compare MedHiVE with pre-trained MedVLMs, including Merlin [6], fVLM [41], and BTB3D [16].
Downstream tasks. We evaluate MedHiVE against state-of-the-art methods on segmentation, classification, and detection. For a fair comparison, all methods are pre-trained on the same dataset and fine-tuned identically on each benchmark; segmentation-based methods are pre-trained on images with the same organ masks, while MedVLMs use both image and text. Table 1 shows the quantitative performance of MedHiVE compared to existing baselines. MedHiVE consistently achieves the highest mDSC across all four benchmarks, PANORAMA, AMOS, KiTS, and GEPAR3D, demonstrating superior generalizability and robustness across diverse anatomical contexts. We evaluate the classification and detection performance against several state-of-the-art baselines on an independent external test set. MedHiVE outperforms all methods across all evaluation metrics, with significant gains (, Wilcoxon signed-rank test). Detailed results are in Appendix E.
Qualitative results. We provide a qualitative comparison of MedHiVE against the top five performing baselines in Figure 3, spanning four diverse datasets. Across all datasets, MedHiVE demonstrates a superior ability to delineate complex anatomical boundaries and maintain structural integrity in challenging regions. As highlighted by the red boxes, baseline methods frequently exhibit significant artifacts, such as over-segmentation in high-contrast regions or complete failure to capture small-scale lesions. In contrast, MedHiVE maintains high fidelity to the ground truth, particularly in cases of low-contrast boundaries where typical CNN and Transformer-based architectures produce fragmented or discontinuous predictions. More samples of qualitative results for PANORAMA, AMOS-CT, KiTS, and GEPAR3D are provided in Appendix G. We further apply the models fine-tuned on KiTS 2023 to a subset of the in-house cohort with kidney lesions and compare the predicted segmentations against the corresponding radiology reports, as voxel-wise annotations are unavailable for this dataset (see Figure 11). MedHiVE produces segmentations that agree with the reported findings, whereas Merlin and fVLM extend beyond lesion boundaries or segment lesions in kidneys the report does not describe, marked by red boxes.
5.3. Ablation studies
In this section, we investigate several factors affecting the performance of MedHiVE: (1) the impact of the key components, including text supervision and local-global contrastive learning; (2) the impact of individual architectural components, including the routing strategy. We pre-train each ablation using the Merlin [6] dataset and the same training setup. All hyperparameters (e.g., number of experts, groups, and slots) within HiVEL are selected following the ablations reported in MambaHoME [35]. The detailed ablation studies are provided in Appendix F.
Effect of the key components. Table 2 shows that adding text supervision alone already improves performance over the vision-only baseline (#1), indicating that report-derived semantics provide a complementary signal beyond anatomy masks. Introducing multi-granularity contrastive learning

Figure 3. Qualitative segmentation results on four datasets, from top to bottom: PANORAMA, AMOS, KiTS and GEPAR3D. Comparison of MedHiVE with the top five baselines. Red boxes highlight significant artifacts or missing components in baseline predictions. MedHiVE shows superior consistency with the ground truth in these challenging regions.
Table 2. Ablation studies of the key and individual architectural components. Segmentation performance (mDSC (%)) on PANORAMA (PANO), AMOS, KiTS, and GEPAR3D. CL denotes contrastive loss. The best results are bolded and second best results are underlined.
| # | Configuration | PANO | AMOS | KiTS | GEPAR3D | mDSC |
|---|---|---|---|---|---|---|
| 1 | w/o text & CL | 74.1 | 85.5 | 60.1 | 86.1 | 76.5 |
| 2 | w/o CL | 75.6 | 86.7 | 63.2 | 88.6 | 78.5 |
| 3 | w/o SMoE | 72.8 | 84.8 | 56.8 | 86.7 | 75.3 |
| 4 | w/o global CL | 71.2 | 86.1 | 50.0 | 86.2 | 73.4 |
| 5 | w/o 2nd level routing | 58.2 | 67.1 | 38.7 | 54.1 | 54.5 |
| 6 | w/o local routing | 74.2 | 86.8 | 63.7 | 83.9 | 77.2 |
| 7 | Text in all stages | 74.6 | 87.5 | 61.1 | 86.4 | 77.4 |
| 8 | Text in last stage | 74.8 | 86.6 | 65.8 | 81.6 | 77.2 |
| 9 | Top-k MoE | 75.5 | 87.9 | 68.3 | 84.2 | 79.0 |
| 10 | w/o EMA | 77.1 | 87.6 | 64.6 | 86.9 | 79.1 |
| 11 | MedHiVE | 78.7 | 87.8 | 66.7 | 87.7 | 80.2 |
yields further gains (#2, #11), supporting our hypothesis that hierarchical alignment is not merely auxiliary supervision, but a mechanism that improves representation quality for downstream dense prediction. Table 12 further shows that gains concentrate where this supervision applies. Averaged over the 12 organs of AMOS covered by our anatomy inventory, mDSC improves by 2.7 from the baseline to full model, compared with 0.7 for the three organs outside it. Even on GEPAR3D, with dental anatomy and CBCT unseen in pre-training, the full model improves over the baseline by 1.6 (#1, #11). Similarly, although PDAC and kidney tumors are not pre-training classes, MedHiVE achieves the highest DSC on both (see Appendix E).
Effect of the individual architectural choices. Table 2 shows that replacing SMoE with a standard FFN degrades performance, indicating the benefit of dynamic expert routing (#3). Removing global contrastive alignment also
reduces performance, suggesting that global scan-report alignment provides complementary supervision (#4). Removing second-level routing, where first-level outputs are used directly without fusing, or local routing leads to further drops, highlighting the importance of hierarchical processing (#5, #6). The table also shows that enabling text in all stages (#7) degrades performance. Confining text to the final stage alone (#8) is also worse than using the last two. This sensitivity to text placement points to a contribution from routing text through HiVEL that goes beyond the contrastive objectives alone. Top-k MoE performs comparably on AMOS and slightly better on KiTS, but falls behind on PANORAMA and GEPAR3D (#9), with soft routing achieving the higher average across the four benchmarks. Using fixed weights, with and both set to 1, does not outperform the adaptive multi-task weighting EMA approach (#10). Both the hierarchical routing design and multi-level alignment contribute to the performance (#11).
6. Conclusions
In this work, we present MedHiVE, a novel hierarchical MedVLM bridging the gap between global clinical semantics and fine-grained 3D anatomical details via a two-level SMoE routing mechanism and multi-granularity contrastive learning. By leveraging organ segmentation, MedHiVE aligns voxel-level features with corresponding report snippets across anatomical scales, outperforming state-of-the-art global and patch-based models. Ultimately, MedHiVE provides a scalable foundation for unified 3D medical vision-language understanding, with future work expanding toward longitudinal data.
Acknowledgments
This research was funded in part by National Science Center, Poland 2025/57/B/ST6/03100. We gratefully acknowledge Polish high-performance computing infrastructure PLGrid (HPC Center: ACK Cyfronet AGH) for providing computer facilities and support within computational grant no. PLG/2025/018792.
References
[1] Nils Alves, Merlijn Schuurmans, Dominik Rutkowski, Derya Yakar, Ingfrid Haldorsen, Marjolein Liedenbaum, Anders Molven, Phillip Vendittelli, Geert Litjens, Jurgen Hermans, et al. The panorama study protocol: Pancreatic cancer diagnosis-radiologists meet ai. Zenodo, 2024. 6, 16
[2] Michela Antonelli, Annika Reinke, Spyridon Bakas, Keyvan Farahani, Annette Kopp-Schneider, Bennett A Landman, Geert Litjens, Bjoern Menze, Olaf Ronneberger, Ronald M Summers, et al. The medical segmentation decathlon. Nature communications, 13(1):4128, 2022. 16
[3] Pedro RAS Bassi, Qilong Wu, Wexuan Li, Sergio Decherchi, Andrea Cavalli, Alan Yuille, and Zongwei Zhou. Label critic: Design data before models. In 2025 IEEE 22nd International Symposium on Biomedical Imaging (ISBI), pages 1–5. IEEE, 2025. 15
[4] Pedro RAS Bassi, Wexuan Li, Szymon Plotka, Ruby Honjol, Jakub Przado, Xinze Zhou, Kang Wang, Yang Yang, Malte Jensen, Akshay S Chaudhari, et al. Merlin plus: A large-scale, multi-cancer, image-mask-report dataset. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 194–204. Springer, 2026. 6, 12, 16
[5] Cenk Baykal, Nishanth Dikkala, Rina Panigrahy, Cyrus Rashtchian, and Xin Wang. A theoretical view on sparsely activated networks. Advances in Neural Information Processing Systems, 35:30071–30084, 2022. 2
[6] Louis Blankemeier, Ashwin Kumar, Joseph Paul Cohen, Ji-aming Liu, Longchao Liu, Dave Van Veen, Syed Jamal Safdar Gardezi, Hongkun Yu, Magdalini Paschali, Zhihong Chen, et al. Merlin: a computed tomography vision-language foundation model and dataset. Nature, pages 1–11, 2026. 2, 6, 7, 12, 13, 16
[7] Benedikt Boecking, Naoto Usuyama, Shruthi Bannur, Daniel C Castro, Anton Schwaighofer, Stephanie Hyland, Maria Wetscherek, Tristan Naumann, Aditya Nori, Javier Alvarez-Valle, et al. Making the most of text semantics to improve biomedical vision-language processing. In European conference on computer vision, pages 1–21. Springer, 2022. 2
[8] Federico Bolelli, Luca Lumetti, Shankeeth Vinayahalingam, Mattia Di Bartolomeo, Arrigo Pellacani, Kevin Marchesini, Niels Van Nistelrooij, Pieter Van Lierop, Tong Xi, Yusheng Liu, et al. Segmenting the inferior alveolar canal in cbcts volumes: the toothfairy challenge. IEEE Transactions on Medical Imaging, 44(4):1890–1906, 2024. 22
[9] Federico Bolelli, Kevin Marchesini, Niels van Nistelrooij, Luca Lumetti, Vittorio Pipoli, Elisa Ficarra, Shankeeth
Vinayahalingam, and Costantino Grana. Segmenting maxillofacial structures in cbcts volumes. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 5238–5248, 2025. 22
[10] Weiwei Cao, Jianpeng Zhang, Zhongyi Shui, Sinuo Wang, Zeli Chen, Xi Li, Le Lu, Xianghua Ye, Qi Zhang, Tingbo Liang, et al. Boosting vision semantic density with anatomy normality modeling for medical vision-language pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 23041–23050, 2025. 2, 3
[11] M Jorge Cardoso, Wenqi Li, Richard Brown, Nic Ma, Eric Kerfoot, Yiheng Wang, Benjamin Murray, Andriy Myronenko, Can Zhao, Dong Yang, et al. Monai: An open-source framework for deep learning in healthcare. arXiv preprint arXiv:2211.02701, 2022. 18
[12] Zhiming Cui, Yu Fang, Lanzhuju Mei, Bojun Zhang, Bo Yu, Jiameng Liu, Caiwen Jiang, Yuhang Sun, Lei Ma, Jiawei Huang, et al. A fully automatic ai system for tooth and alveolar bone segmentation from cone-beam ct images. Nature communications, 13(1):2096, 2022. 16
[13] 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. 7
[14] Shijie Geng, Jianbo Yuan, Yu Tian, Yuxiao Chen, and Yongfeng Zhang. Hiclip: Contrastive language-image pretraining with hierarchy-aware attention. In The Eleventh International Conference on Learning Representations, 2023. 3
[15] Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. In First Conference on Language Modeling, 2024. 3
[16] Ibrahim Ethem Hamamci, Sezgin Er, Suprosanna Shit, Hadrien Reynaud, Dong Yang, Pengfei Guo, Marc Edgar, Daguang Xu, Bernhard Kainz, and Bjoern Menze. Better tokens for better 3d: Advancing vision-language modeling in 3d medical imaging. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 2, 7
[17] 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. 6
[18] Nicholas Heller, Fabian Isensee, Dasha Trofimova, Resha Tejpaul, Zhongchen Zhao, Huai Chen, Lisheng Wang, Alex Golts, Daniel Khapun, Daniel Shats, et al. The kits21 challenge: Automatic segmentation of kidneys, renal tumors, and renal cysts in corticomedullary-phase ct. arXiv preprint arXiv:2307.01984, 2023. 6, 16
[19] Joy Hsu, Jeffrey Gu, Gong Wu, Wah Chiu, and Serena Yeung. Capturing implicit hierarchical structure in 3d biomedical images with self-supervised hyperbolic representations. Advances in Neural Information Processing Systems, 34: 5112–5123, 2021. 1
[20] Shih-Cheng Huang, Liyue Shen, Matthew P Lungren, and Serena Yeung. Gloria: A multimodal global-local represen-tation learning framework for label-efficient medical image recognition. In Proceedings of the IEEE/CVF international conference on computer vision, pages 3942–3951, 2021. 2, 3
[21] Xingru Huang, Jian Huang, Tianyun Zhang, HE HONG, Shaowei Jiang, Yaoqi Sun, et al. Upping the game: How 2d u-net skip connections flip 3d segmentation. Advances in Neural Information Processing Systems, 37:87282–87309, 2025. 7
[22] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991. 2
[23] Yuanfeng Ji, Haotian Bai, Chongjian Ge, Jie Yang, Ye Zhu, Ruimao Zhang, Zhen Li, Lingyan Zhang, Wanling Ma, Xiang Wan, et al. Amos: A large-scale abdominal multi-organ benchmark for versatile medical image segmentation. Advances in neural information processing systems, 35:36722–36732, 2022. 6, 16
[24] Sungnyun Kim, Kangwook Jang, Sangmin Bae, Sungwoo Cho, and Se-Young Yun. MoHAVE: Mixture of hierarchical audio-visual experts for robust speech recognition. In Forty-second International Conference on Machine Learning, 2025. 2
[25] Jiachen Li, Xinyao Wang, Sijie Zhu, Chia-Wen Kuo, Lu Xu, Fan Chen, Jitesh Jain, Humphrey Shi, and Longyin Wen. Cumo: Scaling multimodal Ilm with co-upcycled mixture-of-experts. Advances in Neural Information Processing Systems, 37:131224–131246, 2024. 2
[26] Wenxuan Li, Alan Yuille, and Zongwei Zhou. How well do supervised models transfer to 3d image segmentation? In The Twelfth International Conference on Learning Representations, 2024. 7
[27] Wenxuan Li, Pedro RAS Bassi, Xinze Zhou, Jakob Wasserthal, Ibrahim E Hamamci, Sezgin Er, Bjoern Menze, Gulhan E Akan, Szymon Plotka, Jakub Prządo, et al. Cancerverse: A fully open longitudinal and multimodal dataset for multicancer screening. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 77–87. Springer, 2026. 2
[28] Yikuan Li, Ramsey M Wehbe, Faraz S Ahmad, Hanyin Wang, and Yuan Luo. A comparative study of pretrained language models for long clinical text. Journal of the American Medical Informatics Association, 30(2):340–347, 2023. 2, 4
[29] Yunxin Li, Shenyuan Jiang, Baotian Hu, Longyue Wang, Wanqi Zhong, Wenhan Luo, Lin Ma, and Min Zhang. Unimoe: Scaling unified multimodal llms with mixture of experts. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025. 2
[30] Tiange Liu, Qingze Bai, Drew A Torigian, Yubing Tong, and Jayaram K Udupa. Vsmtrans: A hybrid paradigm integrating self-attention and convolution for 3d medical image segmentation. Medical Image Analysis, 98:103295, 2024. 7
[31] Luca Lumetti, Vittorio Pipoli, Federico Bolelli, Elisa Ficarra, and Costantino Grana. Enhancing patch-based learning for the segmentation of the mandibular canal. IEEE Access, 12:79014–79024, 2024. 22
[32] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 6
[33] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32, 2019. 18
[34] Szymon Plotka, Maciej Chrabaszcz, and Przemysław Biecek. Swin smt: Global sequential modeling for enhancing 3d medical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 689–698. Springer, 2024. 7
[35] Szymon Plotka, Gizem Mert, Maciej Chrabaszcz, Ewa Szczurek, and Arkadiusz Sitek. Mamba goes home: Hierarchical soft mixture-of-experts for 3d medical image segmentation. In Advances in Neural Information Processing Systems, pages 97871–97909, 2026. 2, 4, 6, 7
[36] Joan Puigcerver, Carlos Riquelme Ruiz, Basil Mustafa, and Neil Houlsby. From sparse to soft mixtures of experts. In The Twelfth International Conference on Learning Representations, 2024. 2
[37] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 2
[38] Carlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann, Rodolphe Jenatton, André Susano Pinto, Daniel Keysers, and Neil Houlsby. Scaling vision with sparse mixture of experts. Advances in Neural Information Processing Systems, 34:8583–8595, 2021. 2
[39] Holger R Roth, Le Lu, Amal Farag, Hoo-Chang Shin, Jiamin Liu, Evrim B Turkbey, and Ronald M Summers. Deeporgan: Multi-level deep convolutional networks for automated pancreas segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 556–564. Springer, 2015. 16
[40] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations, 2017. 2
[41] Zhongyi Shui, Jianpeng Zhang, Weiwei Cao, Sinuo Wang, Ruizhe Guo, Le Lu, Lin Yang, Xianghua Ye, Tingbo Liang, Qi Zhang, and Ling Zhang. Large-scale and fine-grained vision-language pre-training for enhanced CT image understanding. In The Thirteenth International Conference on Learning Representations, 2025. 2, 3, 7
[42] Tomasz Szczepański, Szymon Plotka, Michal K Grzeszczyk, Arleta Adamowicz, Piotr Fudalej, Przemysław Korzeniowski, Tomasz Trzcinski, and Arkadiusz Sitek. Gepar3d: Geometry prior-assisted learning for 3d tooth segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 218–228. Springer, 2025. 6, 16, 18, 22
[43] Jaouad Tagnamas, Hiba Ramadan, Ali Yahyaouy, and Hamid Tairi. Diffmoe-unet: A differential transformer with mixture-of-experts for accurate medical image segmentation. Biomedical Signal Processing and Control, 115:109413, 2026. 2
[44] Yucheng Tang, Dong Yang, Wenqi Li, Holger R Roth, Bennett Landman, Daguang Xu, Vishwesh Nath, and Ali Hatamizadeh. Self-supervised pre-training of swin transformers for 3d medical image analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20730–20740, 2022. 7
[45] Chenwei Wu, Zitao Shuai, Zhengxu Tang, Luning Wang, and Liyue Shen. Dynamic modeling of patients, modalities and tasks via multi-modal multi-task mixture of experts. In The Thirteenth International Conference on Learning Representations, 2025. 2
[46] Zhaohu Xing, Tian Ye, Yijun Yang, Guang Liu, and Lei Zhu. Segmamba: Long-range sequential modeling mamba for 3d medical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 578–588. Springer, 2024. 4, 7
[47] Sixing Yan, William K Cheung, Ivor W Tsang, Keith Chiu, Terence M Tong, Ka Chun Cheung, and Simon See. Ahive: Anatomy-aware hierarchical vision encoding for interactive radiology report retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14324–14333, 2024. 2
[48] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. 4, 12, 13
[49] Jiange Yang, Haoyi Zhu, Yating Wang, Gangshan Wu, Tong He, and Limin Wang. Tra-moe: Learning trajectory prediction model from multiple domains for adaptive policy conditioning. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 6960–6970, 2025. 2
[50] Hanqing Zeng, Yinglong Xia, Zhuokai Zhao, Chuan Jiang, Qiang Zhang, Jiayi Liu, Qunshu Zhang, Lizhu Zhang, Xiangjun Fan, and Benyu Zhang. S'more: Structural mixture of residual experts for parameter-efficient llm fine-tuning. Advances in Neural Information Processing Systems, 38: 81441–81478, 2026. 2
[51] Sheng Zhang, Yanbo Xu, Naoto Usuyama, Hanwen Xu, Jaspreet Bagga, Robert Tinn, Sam Preston, Rajesh Rao, Mu Wei, Naveen Valluri, et al. A multimodal biomedical foundation model trained from fifteen million image-text pairs. NEJM AI, 2(1):Aloa2400640, 2025. 2
[52] Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. In Machine learning for healthcare conference, pages 2–25. PMLR, 2022. 2, 3
[53] Jiachen Zhu, Xinlei Chen, Kaiming He, Yann LeCun, and Zhuang Liu. Transformers without normalization. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 14901–14911, 2025. 18
Multimodal Hierarchical Mixture-of-Experts for 3D Medical Vision-Language Modeling
Supplementary Material
A. Data Preprocessing
A.1. Segmentation masks
We list 14 abdominal anatomical structures within CT scans and match the level of detail in radiology reports, as listed in Table 3. The corresponding segmentation masks are sourced from the Merlin dataset [6] and used for pre-training. The masks were obtained through a semi-automatic human-in-the-loop annotation pipeline, in which initial organ masks generated by a pre-trained segmentation model were subsequently refined through iterative quality control and correction procedures. This aligns the fine-grained segmentations with the coarser terminology used in clinical practice, enabling direct comparison with radiologists' descriptions. Furthermore, this process enhances compatibility with standardized reporting frameworks, facilitating downstream analysis and clinical integration. The masks are publicly available as part of Merlin Plus [4]. Figure 4 presents 2D axial, coronal, and sagittal views of these labels, while Figure 5 provides 3D visualizations.

Figure 4. An overview of the 2D projections of anatomical segmentation masks from the Merlin dataset [6]. We consider 14 abdominal anatomical groups to facilitate analysis and model training (see Table 3). These projections illustrate the spatial distribution of the anatomies across representative slices.
A.2. Image-text alignment
To enable effective learning from the highly detailed segmentation masks, we directly extract anatomical structures with a more compact and semantically meaningful set of 14 anatomies (see Table 3). This consolidation reduces redundancy, improves class balance, and facilitates both visualization and downstream model training by focusing on anatomically coherent regions.
We convert each radiology report into anatomy-specific descriptions that supervise organ-level image and text alignment. We begin by standardizing terminology to a fixed inventory spanning organs, including, for example, the kidney, liver, and pancreas. To make the process robust across institutions and writing styles, each anatomy is associated with a curated set of case-insensitive regular-expression synonyms that cover common lexical variants (e.g., “renal” for kidney), laterality (left/right), lobar names, and frequent spellings. These mappings ensure that heterogeneous phrasing resolves to the same target anatomy.
For each study, we read the Findings and Impression sections from the report and decide, for each anatomy, whether the report actually discusses it. This “mention” decision combines two signals: a section-conditioned query to Qwen3-30B [48], a recent LLM with long-context handling, and a synonym match using compiled regexes. All prompts used to extract reports at the organ-level and global level are provided in Section A.4.

Figure 5. Visualization of the 3D projections of anatomical segmentation masks from the Merlin dataset [6], shown from the front, left, right, and back views. These projections highlight the global structural consistency and anatomical coherence of the segmented structures. Consistent with the 2D setting, we consider 14 abdominal anatomical groups for clarity and downstream processing (see Table 3). The multi-view renderings provide a qualitative assessment of segmentation quality across the full 3D volume.
These anatomy-indexed texts are tokenized to form organ-level representations for local alignment, while the full report produces a global text representation. On the image side, anatomical segmentation masks are used to pool features from the corresponding regions in the 3D CT volume. In combination, anatomy-level image features and anatomy-specific report texts provide local supervision, while the whole-report/whole-image pair supplies global supervision.
Table 3. List of selected anatomies.
| No. | Anatomy | No. | Anatomy |
|---|---|---|---|
| 1 | Spleen | 8 | Adrenal gland right |
| 2 | Kidney right | 9 | Adrenal gland left |
| 3 | Kidney left | 10 | Small bowel |
| 4 | Gallbladder | 11 | Duodenum |
| 5 | Liver | 12 | Colon |
| 6 | Stomach | 13 | Urinary bladder |
| 7 | Pancreas | 14 | Prostate |
A.3. Text Preprocessing
We convert each free-text radiology report into a structured, organ-indexed JSON representation using an LLM [48]. Figure 6 shows a representative example: the raw Findings section (top) is parsed into per-organ descriptions (bottom).
A.4. Prompts
Role specification. The user message begins by assigning the model the role of a radiology assistant and constraining its task to per-organ extraction, e.g. "You are a highly precise radiology assistant. Extract only current anatomical findings for each specified organ from the CT report findings below." This line makes clear that the output should consist exclusively of present-time anatomical observations, organized by organ.
Critical extraction rules. We then list a compact set of high-level extraction constraints that govern the content of each organ description:
-
Only current findings are allowed; any comparative, temporal, or historical statements are to be discarded.
-
The organ name itself should not be repeated at the beginning of the description to avoid redundant phrases like "Liver: Liver is cirrhotic".
-
If an organ is not mentioned in the report, the model must output the token Unremarkable for that entry.
-
The text should be short, descriptive, and focused on clinically relevant morphology or pathology, with aggressive removal of side comments and non-current information.
Filtering rules for non-current information. Next, we explicitly enumerate classes of phrases that must be removed entirely before forming the final snippets:
Free-text CT report
FINDINGS: Lower thorax: Increased attenuation within the lung bases with vascular crowding is likely secondary to atelectasis. Liver and biliary tree: Cirrhotic liver morphology with nodularity of the liver surface and relative enlargement of the lateral segment. An exophytic enhancing lesion projecting from segment 7 measures 3.5 x 3.1 cm. Another exophytic enhancing lesion along the falciform ligament measures 2.1 x 2.0 cm. In segment 2, there is a 2.0 x 1.3 cm enhancing lesion. Gallbladder: Intraluminal gallstones with moderate wall thickening. Spleen: Status post splenectomy with multiple splenules and peripheral calcification. Additional enhancing nodules in the right pelvis up to 1.9 cm and small enhancing nodules in the omentum up to 1.2 cm. Pancreas: 0.5 cm cystic lesion in the tail; main duct not dilated. Adrenals: Normal. Kidneys: No hydronephrosis; left kidney with subcentimeter hypodensities. Small bowel: Mildly dilated fluid-filled loops up to 3.1 cm with collapsed distal loops. Colon: Sigmoid diverticulosis; submucosal edema in ascending and transverse colon. Bladder: Moderate wall thickening. Prostate: Normal.

Structured output
{ "study_id": "AC4243f52", "cleaned_report": "[... The full cleaned report text is here ...]", "organs": { "Spleen": "Status post splenectomy with multiple splenules. Peripheral calcification around several splenules. Enhancing nodules in the right pelvis up to 1.9 cm. Small enhancing omental nodules up to 1.2 cm.", "Kidney right": "Unremarkable.", "Kidney left": "Subcentimeter hypodensities in the left kidney.", "Gallbladder": "Intraluminal gallstones with moderate gallbladder wall thickening.", "Liver": "Cirrhotic morphology with liver surface nodularity and relative enlargement of the lateral segment. Exophytic enhancing lesion in segment 7 measuring 3.5 x 3.1 cm. Additional enhancing lesion along the falciform ligament measuring 2.1 x 2.0 cm. Enhancing lesion in segment 2 measuring 2.0 x 1.3 cm.", "Stomach": "Unremarkable.", "Pancreas": "0.5 cm cystic lesion in the pancreatic tail. Main pancreatic duct not dilated.", "Adrenal gland right": "Normal.", "Adrenal gland left": "Normal.", "Small bowel": "Mildly dilated and fluid-filled loops up to 3.1 cm with collapsed distal loops. Wall enhancement not well appreciated.", "Duodenum": "Unremarkable.", "Colon": "Diverticulosis of the sigmoid colon. Prominent submucosal edema in the ascending and transverse colon.", "Urinary bladder": "Moderate bladder wall thickening.", "Prostate": "Normal." } }
Figure 6. Text preprocessing pipeline.
• Comparative language, such as “stable”, “unchanged”, “no change”, “increased”, “interval decrease”, or “compared to prior”.
• Modality references, for example mentions of PET/CT, MRI, ultrasound, X-ray, or other imaging studies and their dates.
• Temporal expressions, including explicit dates, years, and phrases like “currently”, “at this time”, or “now”.
• Bracketed content, i.e. any text in parentheses, square brackets, braces or angle brackets, including HU values and measurements given inside brackets.
Side-aware rules for bilateral organs. Because several structures are bilateral, we additionally condition the model with side-specific instructions:
• When the report refers to a bilateral structure without laterality (e.g. “kidneys are normal”, “both adrenals are unremarkable”), the same description is copied to both the right and left entries.
- When separate left/right findings are reported (e.g. distinct cysts in the right and left kidney), the prompt stresses that these must remain separated and must not be merged into a single organ description.
• For mixed cases, where specific left/right lesions co-occur with bilateral changes (e.g. “numerous bilateral hypodense foci”), the model is instructed to place the side-specific sentences only in the corresponding organ while appending the shared bilateral statement to both.
Cleaning procedure and desired format. Finally, the prompt describes a stepwise cleaning procedure (remove bracketed text, drop comparative and modality phrases, strip dates, discard empty fragments, default to Unremarkable if nothing remains). The last part of the prompt reiterates that the model must (i) apply the above filtering rules aggressively, (ii) respect the side-aware constraints for kidneys and adrenals, and (iii) return syntactically valid JSON.
This prompt and conditions provide a JSON block illustrating the output format as shown in Figure 6. The resulting organ-level snippets are then used as for computing anatomy-level text embeddings in the main model.
A.5. LLM-generated snippet refinement
Following the automated stages of [3], a dedicated quality control phase is applied to the report-derived snippets. To ensure clinical reliability, all anatomy-aware snippets were manually reviewed by four radiologists with at least 5 years of experience, and refined by a senior radiologist with over 30 years of clinical practice. This verification step focused on preserving anatomical coherence and ensuring that each extracted segment accurately reflects the corresponding content of the original radiology report.
B. Datasets
B.1. Pre-training
Merlin. The Merlin dataset [4, 6] represents one of the largest publicly available repositories for medical imaging research, comprising 25,494 3D computed tomography (CT) scans acquired from a diverse clinical cohort at Stanford Hospital. Unlike traditional segmentation datasets, Merlin is designed for multimodal clinical alignment, pairing high-resolution 3D volumetric data with a massive longitudinal corpus of approximately 1.8 million structured Electronic Health Record (EHR) diagnosis codes and over 6 million tokens of unstructured radiology reports. This integration allows for the development of models that can correlate complex visual features with patient history and clinical outcomes.
The imaging protocols within the dataset reflect real-world clinical workflows, encompassing a variety of contrast phases: the vast majority are portal venous phase scans (97%), with smaller subsets of delayed (2.4%), arterial (0.45%), and non-contrast (0.26%) studies. Furthermore, the dataset spans over a decade of clinical practice, capturing a wide array of scanner hardware, reconstruction kernels, and slice thicknesses.
B.2. Fine-tuning
PANORAMA. The PANORAMA dataset [1] comprises 2,238 multi-center contrast-enhanced computed tomography (CECT) scans acquired in a single portal-venous phase. It includes 1,964 newly acquired scans from five European centers, as well as publicly available data from two medical datasets in the United States, namely NIH [39] and MSD Pancreas [2]. The dataset consists of 676 PDAC (Pancreatic Ductal Adenocarcinoma), and 1,562 non-PDAC cases. While the dataset contains six voxel-wise labels, PDAC lesion, veins, arteries, pancreatic parenchyma, pancreatic duct, and common bile duct, we use only the PDAC lesion and merge the pancreatic parenchyma and pancreatic duct classes into a single pancreas label. Each CT image consists of 37~1,572 slices, with a resolution ranging from to pixels. The voxel spatial resolution ranges with a mean of .
KiTS 2023. The KiTS dataset [18] represents the third and largest iteration of the Kidney and Kidney Tumor Segmentation challenge, expanding significantly upon the foundations laid in 2019 and 2021. It comprises a total of 599 3D contrast-enhanced CT scans, with 489 cases provided for training and 110 reserved for a hidden test set. While previous versions focused primarily on the late arterial (corticomedullary) phase, KiTS 2023 introduces greater clinical heterogeneity by including scans from the nephrogenic contrast phase, reflecting a broader range of real-world diagnostic protocols. Each scan includes high-fidelity, voxel-level manual annotations for three primary semantic classes: healthy kidney parenchyma, kidney tumors (malignant suspects), and kidney cysts. The annotations were produced through a collaborative effort involving medical students and expert clinicians, ensuring high labeling accuracy even in cases with significant anatomical distortions. The dataset is characterized by extreme variability in target scales; tumor volumes range from small incidentalomas (0.2 cm³) to massive renal masses exceeding 2500 cm³. Geometrically, the scans feature in-plane resolutions between 0.43 ~ 1.04 mm and slice thicknesses ranging from 0.5 to 5.0 mm (with a median of 3.0 mm).
AMOS-CT. The AMOS-CT dataset [23] consists of a total of 500 CT scans collected from diverse clinical centers, ensuring significant variability in scanner types and patient demographics. However, the ground truth labels are publicly accessible only for the training and validation cohorts, comprising 200 and 100 scans, respectively. Each volume provides high-quality, voxel-level manual annotations for 15 distinct abdominal organs: spleen, right kidney, left kidney, gallbladder, esophagus, liver, stomach, aorta, inferior vena cava, pancreas, right adrenal gland, left adrenal gland, duodenum, bladder, and prostate/uterus. For our experimental setup, we utilize the 200 training scans for model optimization and the 100 validation scans as our test set. The dataset is particularly challenging due to its large intra-class variation; for instance, the number of axial slices per scan ranges from 68 to 353, and the voxel spatial resolution varies significantly from . The mean resolution is . Beyond its scale, AMOS-CT is recognized for including both healthy and pathological cases, requiring models to be robust against anatomical distortions and varied fields of view typical in real-world clinical environments.
GEPAR3D. We utilize the GEPAR3D dataset, which is derived from 98 publicly available Cone-Beam Computed Tomography (CBCT) scans originally released by [12]. While the initial iteration of this data provided only binary masks (distinguishing tooth structure from background), it presented significant limitations for tasks requiring individual tooth identification or pathological analysis. To address this, [42] performed an extensive manual reannotation process. Experienced clinicians labeled the dataset into 32 distinct anatomical classes following the FDI World Dental Federation notation, effectively transforming it into a benchmark for fine-grained multi-class dental segmentation. The dataset is characterized by its high anatomical complexity, featuring diverse dental conditions including restorations and implants that introduce metallic artifacts, varying stages of tooth decay and bone loss, and impacted teeth and irregular dental alignments.
B.3. External test sets
Ethical approval for the use of the in-house datasets was granted by the Bioethics Committee of the Faculty of Medicine, Collegium Medicum, University of Warmia and Mazury in Olsztyn (Approval No. 9/2023, March 30, 2023).
B.3.1. Segmentation
In-house PDAC CT. 60 CECT scans of histopathology-confirmed PDAC cases are acquired from 40 medical centers, each containing 68875 slices with a voxel spatial resolution ranging ([0.470.98]×[0.470.98]×[0.55.0]) mm³. These scans contain voxel-wise annotations of both the pancreas and the PDAC. The diameter size of the PDAC ranges 1.25~6.06 cm, with a mean of 3.45±1.20 cm. All test CECT scans have a resolution of 512 × 512 pixels. Two junior radiologists annotated the in-house data using 3D Slicer, and the annotations were reviewed by two domain experts with more than 30 years of experience.
B.3.2. Classification and detection
In-house abdominal CT. We curated a comprehensive and diverse dataset comprising 2,577 CECT abdominal scans obtained from a longitudinal study of 1,740 unique patients, all captured in the portal-venous phase to ensure optimal enhancement of parenchymal organs and venous structures. Within this cohort, the dataset includes 414 cases with histopathology-confirmed Pancreatic Ductal Adenocarcinoma (PDAC), while the remaining cases are treated as a normal cohort for comparative analysis. The dataset's primary strength lies in its aggregation from 80 distinct medical centers, which introduces a high degree of technical and clinical heterogeneity essential for developing robust and generalizable diagnostic models. By sourcing data from such a wide array of institutions, we account for significant variations in hardware manufacturers and technical acquisition parameters, such as differing tube voltages, current settings, and reconstruction kernels. This multi-center approach also captures a broad range of institutional protocols regarding contrast media injection rates and timing, ensuring the data reflects real-world clinical variability rather than the specific biases of a single facility. We utilize this dataset to validate models for both the classification and detection of PDAC at the patient-level, leveraging the multi-institutional diversity to ensure high diagnostic reliability across varying clinical environments.
In-house kidney dataset. We selected a subset of 100 In-house abdominal CT scans with kidney tumors and cysts to evaluate our proposed MedHiVE alongside state-of-the-art methods. Because voxel-wise manually annotated ground-truth segmentations were unavailable for this dataset, our evaluation was performed qualitatively by comparing predictions against the corresponding radiology reports.
C. Implementation details
All training utilizes the loss function with the AdamW optimizer, an initial learning rate of 1e-4 with a cosine annealing scheduler, a weight decay of 1e-5, and a batch size of 2. Data augmentation is applied on-the-fly, including random rotations, scaling, flipping, and intensity perturbations. Training uses float32 precision.
To improve gradient stability and computational efficiency in SSMs, we use Dynamic Tanh (DyT) [53] normalization, defined as:
where is the input tensor, are learnable per-channel vector parameters, and is a shared scalar. DyT applies a point-wise nonlinearity, leveraging the bounded nature of tanh to stabilize gradients. Unlike Layer Normalization, it avoids costly mean and variance computations, reducing overhead while maintaining complexity. DyT accelerates training and validation with performance on par with normalization-based alternatives.
Pre-training is conducted on a workstation equipped with NVIDIA H100 GPUs, while fine-tuning and evaluation are performed on a single NVIDIA H100 80GB GPU. Implementation uses Python 3.11, PyTorch 2.4 [33], and MONAI 1.3.0 [11] within a Distributed Data-Parallel (DDP) training setup.
C.1. Pre-training
During pre-training, each CT scan from Merlin is resampled to a spacing of . All CT scans are clipped to a Hounsfield Unit (HU) window of and linearly scaled to . Pre-training is performed for 100 epochs using patches of size voxels as input. During pre-training, we employ on-the-fly augmentations, including scaling, rotation, flipping, adjusting brightness and contrast, and Gaussian smoothing and noise. All baselines are pre-trained on the Merlin dataset using their official implementations and default hyperparameters, for the same number of epochs as MedHiVE. Vision-only methods use images with masks; MedVLMs additionally use the paired radiology reports.
C.2. Fine-tuning
PANORAMA. Each CT scan is resampled to a spacing of . All CT scans are clipped to the window of the Hounsfield Unit of and linearly scaled to . During training, we randomly select 1,571 scans (80%) for training and 393 scans (20%) for validation, maintaining the distribution ratio of PDAC to non-PDAC cases. During the inference stage, we use a sliding-window algorithm with a patch size of and an overlap of 0.5 with a Gaussian filter. We train the model for 500 epochs.
AMOS. We resample each CT scan to the isotropic resolution. All CT scans are clipped to the window of the Hounsfield Unit of . Then, we linearly scale to . We randomly split the 200 scans from the original training dataset into train and validation subsets with an 80:20 ratio. During the training, we crop random patches of , and a sliding window algorithm with a default overlap of 0.5 is performed for validation. During training, we employ on-the-fly augmentations, including scaling, rotation, flipping, adjusting brightness and contrast, and Gaussian smoothing and noise. The model is trained for 500 epochs.
KiTS 2023. Each CT scan is resampled into the spacing of resolution. All CT scans are clipped to the window of the Hounsfield Unit of and linearly scaled to . We randomly split an original training dataset into train and test subsets with 400 and 89 cases, respectively. Since the official KiTS 2023 test set (110 cases) is hidden and not publicly available, all reported results use our own test split drawn from the public training data. Consequently, our Dice scores are not directly comparable to the official challenge leaderboard, which is evaluated on the hidden test set with substantially more training data. During the training, we crop random patches of , and a sliding window algorithm with a default overlap of 0.5 is performed for validation. During training, we employ on-the-fly augmentations, including scaling, rotation, flipping, adjusting brightness and contrast, and Gaussian smoothing and noise. We fine-tune for 500 epochs.
GEPAR3D. We resample each CBCT scan to isotropic resolution. All CBCT scans are clipped to the window of the Hounsfield Unit of . Then, we linearly scale to . We use the official GEPAR3D split, provided by [42]. During the training, we crop random patches of , and a sliding window algorithm with a default overlap of 0.5 is performed for validation. During training, we employ on-the-fly augmentations, including scaling, rotation, flipping, adjusting brightness and contrast, and Gaussian smoothing and noise. Fine-tuning is performed for 1000 epochs.
D. Evaluation metrics
Dice Similarity Coefficient (DSC). The Dice Similarity Coefficient (DSC) serves as our primary measure of regional overlap. Formally, for a multi-class segmentation task with classes, we represent the prediction and ground truth at each voxel as one-hot encoded vectors . The DSC for class is defined as the harmonic mean of precision and recall:
The global performance is summarized via the mean Dice Similarity Coefficient (mDSC): . Unlike voxel accuracy, mDSC is invariant to the absolute volume of the background, making it particularly effective for medical datasets where the regions of interest (e.g., lesions or small organs) occupy a negligible fraction of the total volume. Mathematically, the DSC can be viewed as an approximation of the distance between the binary masks, normalized by their total cardinality.
Boundary-based Assessment: 95th Percentile Hausdorff Distance (HD95). While DSC captures volumetric overlap, it is often insensitive to small, localized boundary deviations which can be clinically significant. To quantify surface alignment, we employ the 95th percentile Hausdorff Distance (HD95). Let and denote the sets of points on the boundaries of the predicted and ground truth regions for class c. The bi-directional Hausdorff distance is typically defined as:
However, the standard Hausdorff distance is highly sensitive to outliers—single misclassified voxels far from the ground truth can disproportionately inflate the error. Following standard practice in medical imaging benchmarks, we adopt the 95th percentile of the ordered distances, denoted as . This robust variant provides a more stable estimate of the “maximum” distance between the two surfaces. We report the mean HD95 (mHD95) averaged across all classes to provide a comprehensive view of spatial boundary fidelity.
Clinical Detection Metrics. To assess the model's diagnostic utility at the patient level, we evaluate Sensitivity and Specificity. We categorize each patient-level prediction as True Positive (TP), False Positive (FP), False Negative (FN), or True Negative (TN) based on the presence of the segmented condition. Sensitivity (True Positive Rate) and Specificity (True Negative Rate) are defined as:
These metrics characterize the model's trade-off between detection coverage and the minimization of false alarms, both of which are critical for clinical integration.
Patient-level detection. While segmentation metrics evaluate spatial overlap, mean Average Precision (mAP) assesses the model's ability to localize and rank detections by their confidence scores. For each class , a detection is considered a True Positive (TP) if its Intersection over Union (IoU) with a ground truth region exceeds a predefined threshold (typically ). We compute the Precision-Recall (PR) curve by varying the detection threshold. The Average Precision (AP) for class is defined as the area under this curve:
where is the precision at recall . To provide a global summary across all pathologies, we report the mean Average Precision (mAP), which is the arithmetic mean of over all classes: . This metric is particularly informative for clinical workflows where the ranking of suspicious regions is prioritized to assist radiologist triaging.
Patient-level classification. To evaluate the model's diagnostic utility in a clinical setting, we aggregate voxel-wise segmentations into patient-level classifications. A patient is classified as positive if the total predicted volume for a target condition exceeds a predefined threshold , and negative otherwise. To characterize the model's performance in this binary decision space, we report Sensitivity and Specificity.
E. Quantitative results
Table 4. Quantitative segmentation and detection performance on the PANORAMA test sets (NIH, MSD, and In-house). Evaluation metrics include mDSC (%) and mHD95 (mm), while PDAC detection efficacy is measured via Sensitivity and Specificity (%). The best results are highlighted in bold. MedHiVE demonstrates state-of-the-art performance, particularly in the challenging task of PDAC segmentation, where it significantly outperforms existing Transformer and Mamba-based architectures. Notably, our method achieves a substantial boost in mDSC for the In-house PDAC dataset (65.8%) and the Overall PDAC average (54.2%), representing a major improvement over the second-best performing models. Additionally, MedHiVE exhibits the lowest mHD95 and the highest sensitivity for patient-level detection, underscoring its clinical utility in identifying low-contrast ductal adenocarcinomas across diverse multi-center cohorts.
| Method | mDSC (%) ↑ | mHD95 ↓ | Detection ↑ | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NIH (Pancreas) | MSD (PDAC) | MSD (Pancreas) | In-house (PDAC) | In-house (Pancreas) | Overall (PDAC) | Overall (Pancreas) | Overall (PDAC) | Overall (Pancreas) | Sensitivity | Specificity | |
| Hermes | 93.6 | 34.8 | 89.4 | 64.1 | 82.5 | 52.8 | 89.1 | 24.5 | 5.1 | 89.0 | 87.9 |
| Swin SMT | 90.2 | 31.0 | 82.3 | 48.0 | 80.4 | 44.5 | 86.1 | 35.8 | 6.8 | 86.6 | 83.5 |
| VSmTrans | 91.0 | 39.5 | 85.4 | 60.2 | 77.7 | 47.2 | 85.4 | 29.4 | 7.8 | 88.0 | 87.2 |
| SegMamba | 92.1 | 41.1 | 87.9 | 47.2 | 80.2 | 36.2 | 87.6 | 41.1 | 6.3 | 84.8 | 82.4 |
| uC 3DU-Net | 92.5 | 41.8 | 88.5 | 53.9 | 80.7 | 46.8 | 88.2 | 30.0 | 5.5 | 87.8 | 86.7 |
| Swin UNETR | 89.2 | 31.3 | 84.0 | 56.1 | 73.7 | 37.0 | 87.1 | 36.8 | 8.3 | 85.4 | 83.4 |
| SuPreM | 92.0 | 37.8 | 87.7 | 43.3 | 79.1 | 41.2 | 87.3 | 39.8 | 6.2 | 86.4 | 84.1 |
| MambaHoME | 91.3 | 41.3 | 88.3 | 56.8 | 80.5 | 49.2 | 86.7 | 31.3 | 7.1 | 84.6 | 85.3 |
| Merlin | 92.4 | 42.5 | 88.3 | 61.8 | 81.0 | 49.4 | 88.0 | 28.2 | 5.9 | 88.3 | 87.0 |
| fVLM | 91.8 | 40.2 | 87.9 | 58.6 | 80.6 | 46.0 | 87.4 | 31.0 | 6.1 | 87.7 | 86.3 |
| BTB3D | 92.7 | 44.2 | 88.8 | 63.2 | 81.2 | 50.6 | 88.5 | 26.9 | 5.7 | 88.7 | 87.1 |
| MedHiVE | 93.1 | 45.5 | 89.0 | 65.8 | 81.4 | 54.2 | 88.9 | 22.1 | 4.8 | 89.5 | 88.6 |
Table 5. Quantitative segmentation results on the KiTS dataset. Performance is evaluated across three distinct labels: Kidneys, Tumor, and Cyst. Results are reported in DSC (%) for individual classes, with mDSC (%) and mHD95 (mm) representing the overall average performance. MedHiVE achieves the highest performance in mDSC and mHD95, consistently outperforming both CNN-based and advanced sequence-modeling baselines. Specifically, the model shows a marked improvement in the segmentation of small, irregular structures compared to pure Mamba or Transformer architectures. The achievement of the lowest mHD95 further validates our method's precision in boundary localization, demonstrating its robustness in handling the high anatomical variability and complex pathologies inherent in kidney tumor imaging. The best results are bolded.
| Method | Kidneys | Tumor | Cyst | mDSC ↑ | mHD95 ↓ |
|---|---|---|---|---|---|
| Hermes | 88.0 | 53.0 | 47.9 | 65.7 | 49.5 |
| Swin SMT | 78.4 | 30.0 | 21.8 | 47.2 | 94.2 |
| VSmTrans | 78.6 | 39.0 | 39.4 | 54.6 | 75.3 |
| uC 3DU-Net | 80.0 | 45.8 | 52.4 | 60.6 | 59.6 |
| Swin UNETR | 78.1 | 31.5 | 24.6 | 48.3 | 92.1 |
| SuPreM | 76.2 | 47.4 | 39.7 | 57.0 | 64.2 |
| SegMamba | 81.4 | 38.7 | 45.2 | 56.8 | 58.4 |
| MambaHoME | 83.5 | 47.0 | 41.6 | 60.1 | 55.4 |
| Merlin | 87.6 | 52.4 | 40.4 | 64.3 | 51.2 |
| fVLM | 80.7 | 42.1 | 35.5 | 55.4 | 62.9 |
| BTB3D | 82.6 | 46.7 | 32.9 | 55.1 | 54.2 |
| MedHiVE | 89.6 | 53.6 | 48.2 | 66.7 | 48.2 |
Table 6. Quantitative multi-organ segmentation performance on the AMOS-CT dataset. The evaluation encompasses 15 distinct anatomical structures across a wide range of scales and morphologies. mDSC is reported in (%) and mHD95 in (mm), with the best results per category indicated in bold. MedHiVE achieves superior overall performance, demonstrating a high degree of robustness across both large, high-contrast organs (e.g., Liver, Spleen) and smaller, more complex structures (e.g., Adrenal Glands, Duodenum). Notably, our method establishes a new state-of-the-art for the Pancreas and Duodenum, which are traditionally challenging due to their low-contrast boundaries and proximity to the gastrointestinal tract. Furthermore, the significant reduction in mHD95 compared to both Transformer-based and pure Mamba-based baselines indicates a superior ability to preserve global topological consistency while maintaining fine-grained local details. MedHiVE exhibits competitive or superior Dice scores across the majority of classes, underscoring the generalizability of our proposed architecture.
| Method | Organ Classes (%) | Overall | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Spleen | R. Kidney | L. Kidney | Gallbladder | Esophagus | Liver | Stomach | Aorta | Inferior Vena Cava | Pancreas | R. Adrenal Gland | L. Adrenal Gland | Duodenum | Bladder | Prostate/Uterus | mDSC mHD95 | |
| Hermes | 95.0 | 94.1 | 95.0 | 76.7 | 81.9 | 95.9 | 88.2 | 93.2 | 88.7 | 82.0 | 74.0 | 70.7 | 78.4 | 84.7 | 80.3 | 85.3 |
| Swin SMT | 94.3 | 93.7 | 93.1 | 71.1 | 77.4 | 94.4 | 82.7 | 92.6 | 86.4 | 77.4 | 71.0 | 69.5 | 72.1 | 74.0 | 74.3 | 81.6 |
| VSmTrans | 95.7 | 94.4 | 93.8 | 76.6 | 80.1 | 95.2 | 86.2 | 92.9 | 87.9 | 79.9 | 74.2 | 72.5 | 76.4 | 85.9 | 80.5 | 84.8 |
| uC 3DU-Net | 94.1 | 93.2 | 94.5 | 68.2 | 80.7 | 87.7 | 86.0 | 92.8 | 87.2 | 79.4 | 74.2 | 71.9 | 72.6 | 82.7 | 78.1 | 82.9 |
| Swin UNETR | 92.5 | 90.9 | 93.3 | 73.5 | 80.8 | 94.2 | 84.9 | 93.0 | 86.6 | 82.7 | 74.0 | 72.6 | 75.6 | 82.6 | 78.9 | 83.8 |
| SuPreM | 95.3 | 94.5 | 95.3 | 78.4 | 82.5 | 96.9 | 89.2 | 93.4 | 88.8 | 84.9 | 75.3 | 74.7 | 78.4 | 86.4 | 80.0 | 86.3 |
| SegMamba | 95.4 | 95.5 | 95.4 | 72.9 | 80.5 | 93.9 | 87.6 | 93.5 | 88.8 | 82.7 | 74.8 | 73.6 | 75.3 | 81.7 | 80.1 | 84.8 |
| MambaHoME | 95.6 | 93.4 | 92.6 | 75.9 | 81.9 | 95.9 | 88.6 | 93.3 | 87.6 | 83.7 | 74.2 | 75.0 | 76.7 | 86.2 | 81.1 | 85.5 |
| Merlin | 94.9 | 95.3 | 95.1 | 79.5 | 80.0 | 96.7 | 90.4 | 93.4 | 88.4 | 84.0 | 74.1 | 71.6 | 77.2 | 84.9 | 79.2 | 85.6 |
| fVLM | 95.4 | 94.8 | 95.4 | 75.2 | 81.4 | 94.7 | 88.0 | 93.1 | 88.0 | 83.1 | 74.6 | 73.9 | 76.5 | 84.2 | 80.4 | 85.2 |
| BTB3D | 96.0 | 95.2 | 93.8 | 80.2 | 81.8 | 97.1 | 90.0 | 93.2 | 87.2 | 85.0 | 73.6 | 73.4 | 78.8 | 87.3 | 79.2 | 86.1 |
| MedHiVE | 96.3 | 94.4 | 95.3 | 84.2 | 82.7 | 97.0 | 90.4 | 93.5 | 88.6 | 86.7 | 77.2 | 76.8 | 82.6 | 89.7 | 80.8 | 87.8 |
Table 7. Detailed quantitative evaluation of tooth segmentation on the GEPAR3D test set. Results are categorized by individual teeth following the FDI World Dental Federation notation across all four quadrants. mDSC is reported in (%) and mHD95 in (mm), with the best results per category indicated in bold. MedHiVE achieves the highest overall segmentation accuracy and the lowest mHD95 among all compared methods. The performance is notably consistent across different tooth types, effectively bridging the gap between large molars and smaller incisors. In particular, our model demonstrates superior precision in the upper and lower left quadrants, where it maintains high fidelity for complex occlusal surfaces and inter-proximal spaces. The significant reduction in the average Hausdorff distance suggests that MedHiVE is less prone to the isolated voxel noise and topological errors that often degrade the clinical utility of baseline segmentation outputs.
| Method | Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
| Hermes | 77.8 | 86.6 | 93.0 | 86.0 | 83.6 | 80.5 | 91.8 | 88.9 | 85.0 | 89.3 | 86.1 | 80.5 | 89.9 | 91.2 | 90.5 | 85.9 | 63.5 | 86.8 | 90.3 | 90.1 | 86.8 | 85.8 | 83.0 | 81.4 | 78.2 | 86.6 | 92.4 | 87.5 | 93.8 | 85.4 | 88.7 | 53.9 | 85.2 | 2.1 | |
| Swin SMT | 74.4 | 86.4 | 89.8 | 85.0 | 84.6 | 89.6 | 92.4 | 93.1 | 89.2 | 86.0 | 87.5 | 83.0 | 90.1 | 89.7 | 89.6 | 76.4 | 67.2 | 87.1 | 87.3 | 87.2 | 86.4 | 81.7 | 83.4 | 81.9 | 77.8 | 85.9 | 86.7 | 83.9 | 89.5 | 91.7 | 90.5 | 53.2 | 84.8 | 3.4 | |
| VSmTrans | 71.4 | 86.3 | 89.1 | 86.8 | 85.4 | 90.8 | 91.9 | 93.0 | 92.9 | 90.0 | 85.8 | 79.9 | 90.7 | 90.6 | 92.0 | 79.1 | 63.3 | 85.8 | 87.8 | 88.6 | 86.1 | 85.5 | 83.1 | 79.4 | 72.4 | 87.7 | 91.7 | 84.5 | 90.4 | 89.1 | 90.0 | 53.8 | 85.0 | 5.0 | |
| uC 3DU-Net | 78.8 | 88.7 | 89.4 | 81.7 | 81.5 | 85.1 | 91.8 | 91.9 | 88.8 | 85.3 | 85.1 | 83.7 | 87.7 | 90.5 | 90.2 | 79.6 | 61.9 | 83.4 | 86.7 | 86.0 | 86.2 | 85.9 | 86.6 | 82.1 | 78.5 | 89.4 | 89.6 | 83.2 | 87.6 | 90.1 | 89.5 | 47.5 | 84.3 | 3.3 | |
| Swin UNETR | 73.7 | 81.7 | 88.9 | 86.1 | 81.6 | 86.3 | 92.1 | 86.2 | 77.1 | 87.2 | 84.2 | 83.5 | 87.8 | 90.4 | 90.9 | 75.2 | 63.8 | 87.1 | 86.7 | 84.9 | 85.4 | 80.6 | 76.2 | 73.5 | 72.2 | 84.8 | 88.5 | 87.1 | 89.6 | 86.3 | 87.2 | 48.2 | 82.5 | 3.7 | |
| SuPreM | 78.2 | 85.8 | 90.0 | 82.7 | 76.1 | 83.3 | 87.8 | 81.3 | 83.7 | 84.6 | 84.2 | 80.7 | 88.5 | 89.0 | 87.8 | 79.1 | 59.9 | 83.1 | 89.2 | 89.0 | 86.4 | 81.0 | 79.5 | 74.9 | 70.9 | 79.6 | 87.7 | 81.8 | 92.5 | 91.5 | 90.1 | 54.4 | 82.5 | 2.4 | |
| SegMamba | 83.2 | 85.9 | 92.9 | 86.1 | 85.9 | 90.2 | 93.0 | 93.2 | 92.7 | 91.7 | 88.7 | 80.8 | 88.9 | 94.4 | 92.1 | 85.6 | 74.4 | 88.2 | 87.8 | 90.2 | 87.5 | 85.9 | 83.9 | 83.5 | 78.7 | 87.9 | 92.9 | 87.9 | 90.6 | 92.0 | 90.0 | 64.1 | 87.1 | 1.6 | |
| MambaHoME | 78.1 | 88.4 | 88.3 | 84.5 | 77.2 | 90.5 | 92.4 | 90.9 | 86.9 | 89.5 | 86.9 | 84.0 | 90.4 | 90.7 | 91.6 | 89.2 | 70.0 | 90.1 | 87.2 | 89.9 | 87.3 | 84.2 | 81.6 | 77.9 | 74.6 | 85.6 | 91.9 | 85.6 | 89.7 | 84.5 | 91.1 | 55.8 | 85.4 | 1.7 | |
| Merlin | 77.1 | 87.8 | 90.8 | 85.1 | 80.7 | 90.8 | 92.9 | 93.2 | 87.1 | 84.2 | 89.2 | 83.1 | 90.5 | 94.8 | 93.1 | 89.0 | 65.9 | 91.0 | 91.7 | 90.5 | 88.0 | 86.4 | 83.5 | 81.2 | 75.6 | 86.4 | 93.1 | 87.9 | 91.1 | 93.3 | 95.0 | 54.2 | 86.5 | 1.7 | |
| fVLM | 83.5 | 88.4 | 89.1 | 86.1 | 83.9 | 86.5 | 89.2 | 92.3 | 88.8 | 83.3 | 82.3 | 82.1 | 90.0 | 94.8 | 92.9 | 89.1 | 71.2 | 85.7 | 86.7 | 88.0 | 85.1 | 81.5 | 83.1 | 75.1 | 72.3 | 81.6 | 91.1 | 86.7 | 92.9 | 88.7 | 90.1 | 54.7 | 84.9 | 4.4 | |
| BTB3D | 83.6 | 87.5 | 88.2 | 85.2 | 83.0 | 85.6 | 88.3 | 91.4 | 87.9 | 82.4 | 81.4 | 81.2 | 89.1 | 93.9 | 92.0 | 89.0 | 68.5 | 84.8 | 85.8 | 87.1 | 84.2 | 80.6 | 82.2 | 74.2 | 71.4 | 80.7 | 90.2 | 85.8 | 92.0 | 87.8 | 89.2 | 53.8 | 84.1 | 4.1 | |
| MedHiVE | 82.3 | 89.2 | 89.4 | 86.5 | 86.7 | 94.4 | 93.4 | 94.1 | 93.7 | 89.0 | 88.8 | 83.5 | 91.3 | 95.0 | 93.8 | 89.0 | 83.3 | 90.7 | 90.6 | 89.8 | 87.5 | 85.1 | 85.5 | 79.8 | 74.0 | 84.5 | 88.8 | 87.5 | 93.2 | 92.1 | 91.4 | 56.0 | 87.6 | 0.5 | |
Table 8. Quantitative segmentation performance on the ToothFairy2 dataset subset. Evaluation follows the FDI World Dental Federation notation across the upper and lower dental arches. mDSC is reported in (%) and mHD95 in (mm), with the best results highlighted in bold. MedHiVE demonstrates a clear state-of-the-art advantage, particularly in maintaining structural continuity across the most challenging anatomical sites. Our method significantly outperforms all baselines in the posterior extremities, specifically the third molars (FDI 18, 28, 38, 48), where standard models typically struggle with severe under-segmentation or total loss of connectivity. Furthermore, MedHiVE attains the second-best mHD95 among all methods. These results validate the robustness of our approach in handling the high morphological variability and lower image quality characteristic of the ToothFairy2 benchmarks, ensuring precise tooth-by-tooth delineation across the entire oral cavity.
| Method | Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | mDSC | mHD95 | |
| Hermes | 39.9 | 80.1 | 90.6 | 88.6 | 88.2 | 88.2 | 85.9 | 89.2 | 92.3 | 92.2 | 91.3 | 89.9 | 90.3 | 93.0 | 78.4 | 42.8 | 65.0 | 78.8 | 87.0 | 78.5 | 70.3 | 78.6 | 87.6 | 89.1 | 89.3 | 87.4 | 88.7 |
| Swin SMT | 47.5 | 92.5 | 85.5 | 85.6 | 86.6 | 93.7 | 87.1 | 93.3 | 93.9 | 91.4 | 93.0 | 92.5 | 92.4 | 92.9 | 84.0 | 40.2 | 62.9 | 80.4 | 81.6 | 84.8 | 77.9 | 68.5 | 83.6 | 80.2 | 87.6 | 89.2 | |
| VSmTrans | 45.7 | 91.9 | 85.6 | 88.8 | 85.3 | 93.5 | 86.9 | 94.3 | 93.5 | 90.5 | 93.2 | 92.7 | 92.8 | 92.6 | 85.4 | 37.7 | 68.2 | 82.6 | 74.5 | 88.4 | 90.7 | 84.1 | 86.2 | 81.3 | 88.7 | 89.1 | |
| uC 3DU-Net | 47.8 | 90.9 | 84.7 | 90.0 | 85.8 | 91.4 | 82.5 | 93.2 | 94.1 | 92.5 | 92.6 | 91.5 | 90.8 | 91.8 | 84.4 | 43.5 | 70.1 | 71.1 | 75.5 | 86.0 | 85.4 | 79.9 | 89.1 | 84.1 | 89.9 | 89.6 | |
| Swin UNETR | 42.4 | 91.8 | 85.8 | 88.4 | 92.1 | 91.8 | 86.2 | 90.8 | 93.6 | 92.0 | 90.7 | 92.9 | 91.8 | 89.8 | 72.7 | 41.3 | 65.6 | 75.2 | 76.3 | 89.4 | 90.3 | 82.8 | 86.0 | 81.3 | 87.1 | 86.8 | |
| SuPreM | 35.9 | 86.2 | 81.5 | 81.0 | 73.2 | 79.4 | 85.0 | 90.5 | 92.9 | 88.9 | 89.8 | 87.3 | 88.2 | 90.7 | 80.6 | 42.3 | 63.8 | 72.6 | 73.5 | 72.3 | 58.7 | 81.0 | 85.3 | 78.8 | 85.0 | 85.4 | |
| SegMamba | 55.1 | 93.4 | 85.7 | 89.0 | 87.4 | 93.5 | 86.2 | 93.9 | 94.2 | 93.2 | 93.1 | 93.1 | 94.0 | 94.5 | 86.2 | 44.9 | 68.1 | 84.3 | 78.5 | 88.5 | 89.6 | 85.9 | 90.0 | 84.8 | 90.2 | 88.9 | |
| MambaHoME | 47.7 | 93.6 | 87.4 | 88.9 | 86.8 | 93.5 | 87.2 | 94.4 | 93.6 | 92.1 | 92.2 | 92.6 | 93.2 | 94.4 | 87.0 | 37.8 | 59.7 | 75.5 | 75.8 | 88.1 | 87.2 | 83.0 | 88.9 | 83.8 | 89.6 | 88.1 | |
| Merlin | 49.7 | 90.7 | 87.2 | 87.6 | 87.0 | 93.7 | 87.2 | 93.2 | 92.8 | 92.8 | 93.5 | 93.2 | 93.6 | 92.9 | 86.5 | 52.0 | 75.9 | 87.9 | 79.9 | 91.7 | 91.0 | 87.2 | 88.5 | 90.6 | 90.1 | 89.4 | |
| fVLM | 47.3 | 88.4 | 83.7 | 87.8 | 89.8 | 91.9 | 85.4 | 93.7 | 93.9 | 91.6 | 91.7 | 91.1 | 92.0 | 92.8 | 82.9 | 51.0 | 66.5 | 81.9 | 91.9 | 88.7 | 87.2 | 82.3 | 83.8 | 78.8 | 85.3 | 85.6 | |
| BTB3D | 47.8 | 88.9 | 84.2 | 88.3 | 90.3 | 92.3 | 85.8 | 94.1 | 94.3 | 92.0 | 92.1 | 91.5 | 92.4 | 93.2 | 83.3 | 51.4 | 66.9 | 82.3 | 92.3 | 89.1 | 87.6 | 82.7 | 84.2 | 79.2 | 85.7 | 86.0 | |
| MedHiVE | 71.8 | 93.5 | 85.4 | 89.4 | 93.1 | 93.3 | 86.6 | 94.6 | 94.7 | 92.9 | 93.4 | 92.3 | 92.7 | 88.4 | 83.7 | 57.8 | 75.9 | 88.0 | 84.9 | 91.2 | 91.9 | 86.4 | 89.4 | 90.1 | 90.0 | 90.2 | |
Table 9. Comparative quantitative analysis of tooth segmentation on the full dataset, including GEPAR3D [42] and ToothFairy2 [8, 9, 31] subsets. Evaluation is conducted for individual teeth using FDI World Dental Federation notation across all four quadrants. mDSC is reported in (%) and mHD95 in (mm), with the best results bolded. MedHiVE achieves the highest overall mDSC, particularly in the segmentation of molars and premolars. MedHiVE achieves the second-best mHD95, indicating precise boundary localization. Notably, the performance gap is most pronounced in the posterior regions, where complex root morphologies and proximity to distal anatomical landmarks typically challenge standard segmentation models. These results underscore the effectiveness of our architectural design in maintaining local precision while capturing the global context of the complete dental arch.
| Method | Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | ☑ | mDSC | mHD95 | |
| Hermes | 64.2 | 84.4 | 92.1 | 87.0 | 85.1 | 83.2 | 89.7 | 89.0 | 87.7 | 90.3 | 87.9 | 83.8 | 90.1 | 91.8 | 86.3 | 70.5 | 64.1 | 84.0 | 89.3 | 86.1 | 81.1 | 83.3 | 84.6 | 84.0 | 82.1 | 86.9 |
| Swin SMT | 65.2 | 88.5 | 88.3 | 85.2 | 85.3 | 91.0 | 90.5 | 93.1 | 90.9 | 87.9 | 89.4 | 86.4 | 90.9 | 90.8 | 87.6 | 64.3 | 65.5 | 84.8 | 85.3 | 86.4 | 83.5 | 77.1 | 83.5 | 81.3 | 81.3 | 87.0 |
| VSmTrans | 62.8 | 88.2 | 87.9 | 87.5 | 85.4 | 91.8 | 90.1 | 93.4 | 93.1 | 90.2 | 88.4 | 84.3 | 91.4 | 91.3 | 89.7 | 64.4 | 65.1 | 84.7 | 83.2 | 88.5 | 87.7 | 85.0 | 84.2 | 80.1 | 78.1 | 88.2 |
| uC 3DU-Net | 67.7 | 89.5 | 87.7 | 84.6 | 83.0 | 87.3 | 88.5 | 92.3 | 90.7 | 87.9 | 87.7 | 86.5 | 88.8 | 91.0 | 88.2 | 66.4 | 64.9 | 79.0 | 82.8 | 86.0 | 85.9 | 83.8 | 87.5 | 82.8 | 82.6 | 89.5 |
| Swin UNETR | 62.5 | 85.3 | 87.8 | 86.9 | 85.2 | 88.2 | 90.0 | 87.9 | 83.0 | 88.9 | 86.5 | 86.8 | 89.2 | 90.2 | 84.6 | 63.6 | 64.4 | 82.9 | 83.3 | 86.5 | 87.1 | 81.4 | 79.6 | 76.2 | 77.4 | 85.5 |
| SuPreM | 62.7 | 85.9 | 87.0 | 82.1 | 75.1 | 81.9 | 86.8 | 84.6 | 87.0 | 86.1 | 86.1 | 83.0 | 88.4 | 89.5 | 85.3 | 66.8 | 61.4 | 79.5 | 83.7 | 83.2 | 76.7 | 81.0 | 81.5 | 76.3 | 75.8 | 81.6 |
| SegMamba | 73.9 | 88.5 | 90.3 | 87.2 | 86.4 | 91.3 | 90.5 | 93.5 | 93.3 | 92.2 | 90.2 | 85.2 | 90.7 | 94.4 | 90.0 | 71.1 | 72.0 | 86.9 | 84.6 | 89.6 | 88.2 | 85.9 | 86.0 | 84.0 | 82.8 | 88.2 |
| MambaHoME | 69.7 | 90.6 | 91.2 | 86.5 | 84.2 | 93.9 | 91.1 | 93.9 | 91.4 | 92.0 | 89.9 | 86.8 | 90.9 | 94.4 | 90.1 | 69.6 | 66.8 | 84.0 | 83.5 | 88.9 | 87.4 | 85.8 | 85.9 | 81.7 | 84.4 | 89.4 |
| Merlin | 68.2 | 88.8 | 89.5 | 80.0 | 82.9 | 91.8 | 90.9 | 93.2 | 89.1 | 87.2 | 90.7 | 86.6 | 91.6 | 94.1 | 90.8 | 76.7 | 69.6 | 89.9 | 87.5 | 90.9 | 89.0 | 86.7 | 85.2 | 84.3 | 80.7 | 87.5 |
| fVLM | 71.2 | 88.2 | 87.0 | 86.5 | 85.7 | 88.1 | 87.6 | 92.6 | 90.4 | 86.0 | 85.3 | 85.1 | 90.4 | 93.8 | 89.2 | 76.7 | 68.1 | 84.1 | 88.1 | 88.0 | 85.6 | 81.5 | 83.1 | 76.2 | 76.6 | 82.8 |
| BTB3D | 71.0 | 88.0 | 86.8 | 86.3 | 85.5 | 87.9 | 87.4 | 92.4 | 90.2 | 85.8 | 85.1 | 84.9 | 90.2 | 93.6 | 89.0 | 76.5 | 67.9 | 83.9 | 87.9 | 87.8 | 85.4 | 81.3 | 82.9 | 76.0 | 76.4 | 82.5 |
| MedHiVE | 79.5 | 90.7 | 88.0 | 87.5 | 88.9 | 94.0 | 91.0 | 94.3 | 94.0 | 90.4 | 90.4 | 86.7 | 91.8 | 92.7 | 90.3 | 80.0 | 80.2 | 89.7 | 88.7 | 90.3 | 89.0 | 85.5 | 86.9 | 83.3 | 79.6 | 86.5 |
F. Ablation studies
Table 10. Ablation study on the PANORAMA and in-house datasets demonstrating the impact of multi-modal supervision. We evaluate our proposed method across three diverse test sets: NIH (public), MSD (public), and a multi-institutional In-house dataset. Segmentation quality is measured through mDSC (%) and mHD95 (mm). Additionally, we report patient-level PDAC detection performance using Sensitivity/Specificity (%). The results indicate that while text guidance (T) significantly improves tumor localization, the addition of contrastive learning (CL) is crucial for refining boundary transitions, as evidenced by the reduction in mHD95. The best results are bolded.
| # | B | T | CL | mDSC (%) ↑ | mHD95 ↓ | Detection ↑ | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NIH (Pancreas) | MSD (PDAC) | MSD (Pancreas) | In-house (PDAC) | In-house (Pancreas) | Overall (PDAC) | Overall (Pancreas) | Overall (PDAC) | Overall (Pancreas) | Sensitivity | Specificity | ||||
| 1 | ✓ | ✗ | ✗ | 91.3 | 41.3 | 88.3 | 56.8 | 80.5 | 49.2 | 86.7 | 31.3 | 7.1 | 84.6 | 85.3 |
| 2 | ✓ | ✓ | ✗ | 92.0 | 44.6 | 88.7 | 61.6 | 81.2 | 51.4 | 88.1 | 28.3 | 5.7 | 87.9 | 87.2 |
| 3 | ✓ | ✓ | ✓ | 93.1 | 45.5 | 89.0 | 65.8 | 81.4 | 54.2 | 88.9 | 22.1 | 4.8 | 89.5 | 88.6 |
Table 11. Ablation study on the KiTS dataset demonstrating the impact of multi-modal supervision. We evaluate the incremental contribution of text-based prompts (T) and contrastive learning (CL) over the baseline (B) architecture. Segmentation performance is reported via class-specific DSC (%) for Kidneys, Tumors, and Cysts, alongside aggregate mDSC (%) and mHD95 (mm) metrics. The results indicate that text guidance (T) primarily benefits cyst segmentation, while the addition of contrastive learning (CL) yields the largest gain for tumors and further reduces mHD95. The best results are bolded.
| # | B | T | CL | Kidneys | Tumor | Cyst | mDSC ↑ | mHD95 ↓ |
|---|---|---|---|---|---|---|---|---|
| 1. | ✓ | ✗ | ✗ | 83.5 | 47.0 | 41.6 | 60.1 | 55.4 |
| 2. | ✓ | ✓ | ✗ | 86.1 | 48.0 | 49.1 | 63.2 | 51.0 |
| 3. | ✓ | ✓ | ✓ | 89.6 | 53.6 | 48.2 | 66.7 | 48.2 |
Table 12. Ablation study on the AMOS-CT validation set across 15 organ classes. We evaluate the impact of the Text (T) supervision and Contrastive Loss (CL) components on segmentation accuracy (mDSC) and boundary precision (mHD95). The results demonstrate that incorporating textual representations (Config #2) consistently improves performance for anatomically complex organs, while the full MedHiVE framework (Config #3) achieves the highest overall accuracy and a significant reduction in Hausdorff Distance (mHD95 from 5.0 to 3.6 mm). This suggests that the joint contrastive objective effectively regularizes the latent space, particularly benefiting small-scale structures such as the adrenal glands and duodenum. B, T, and CL indicate baseline, text-conditioned representations, and contrastive loss, respectively. The best results are bolded.
| # | B | T | CL | Organ Classes (DSC %) | Overall | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Spleen | R. Kidney | L. Kidney | Gallbladder | Esophagus | Liver | Stomach | Aorta | IVC | Pancreas | R. Adr. Gland | L. Adr. Gland | Duodenum | Bladder | PyUit | mDSC | mHD95 | ||||
| 1. | ✓ | ✗ | ✗ | 95.6 | 93.4 | 92.6 | 75.9 | 81.9 | 95.9 | 88.6 | 93.3 | 87.6 | 83.7 | 74.2 | 75.0 | 76.7 | 86.2 | 81.1 | 85.5 | 5.0 |
| 2. | ✓ | ✓ | ✗ | 96.1 | 95.6 | 93.5 | 79.2 | 83.0 | 96.7 | 89.7 | 93.8 | 89.4 | 85.0 | 75.3 | 75.6 | 80.1 | 86.6 | 80.4 | 86.7 | 4.5 |
| 3. | ✓ | ✓ | ✓ | 96.3 | 94.4 | 95.3 | 84.2 | 82.7 | 97.0 | 90.4 | 93.5 | 88.6 | 86.7 | 77.2 | 76.8 | 82.6 | 89.7 | 80.8 | 87.8 | 3.6 |
Table 13. Ablation study on the GEPAR3D test set, excluding ToothFairy2 subset across 32 dental classes (FDI notation). We quantify the influence of Textual Supervision (T) and Contrastive Loss (CL) on fine-grained segmentation. The inclusion of text-conditioned representations (Config #2) yields substantial gains in semantic recognition across the dental arch. Crucially, the full MedHiVE framework (Config #3) achieves the highest boundary fidelity, reaching sub-millimeter precision (mHD95: 0.5 mm). This indicates that the contrastive objective mitigates surface errors effectively in anatomically complex regions, such as the lingual surfaces of incisors (FDI 11, 21) and the occlusal pits of molars (FDI 36, 46), where baselines exhibit higher spatial variance. As this dataset covers dental anatomy absent from our pre-training inventory, the anatomy-level contrastive objective is expected to contribute less here. B, T, and CL denote baseline, text-conditioned representations, and contrastive loss, respectively. The best results are bolded.
| # | B | T | CL | Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mDSC ↑ | mHD95 ↓ | ||||||||||||||||
| 1 | ✓ | ✗ | ✗ | 78.1 | 88.4 | 88.3 | 84.5 | 77.2 | 90.5 | 92.4 | 90.9 | 86.9 | 89.5 | 86.9 | 84.0 | 90.4 | 90.7 | 91.6 | 89.2 | 70.0 | 90.1 | 87.2 | 89.9 | 87.3 | 84.2 | 81.6 | 77.9 | 74.6 | 85.6 | 91.9 | 85.6 | 89.7 | 84.5 | 91.1 | 55.8 | 85.4 | 1.7 |
| 2 | ✓ | ✓ | ✗ | 85.7 | 89.3 | 90.4 | 87.3 | 87.0 | 91.1 | 93.4 | 94.1 | 93.9 | 91.2 | 88.3 | 84.7 | 91.5 | 94.8 | 93.5 | 92.0 | 78.3 | 93.4 | 88.3 | 90.6 | 87.7 | 87.1 | 87.5 | 84.7 | 81.3 | 91.2 | 93.8 | 91.1 | 90.9 | 91.3 | 93.3 | 80.5 | 89.5 | 0.9 |
| 3 | ✓ | ✓ | ✓ | 82.3 | 89.2 | 89.4 | 86.5 | 86.7 | 94.4 | 93.4 | 94.1 | 93.7 | 89.0 | 88.8 | 83.5 | 91.3 | 95.0 | 93.8 | 89.0 | 83.3 | 90.7 | 90.6 | 89.8 | 87.5 | 85.1 | 85.5 | 79.8 | 74.0 | 84.5 | 88.8 | 87.5 | 93.2 | 92.1 | 91.4 | 56.0 | 87.6 | 0.5 |
Table 14. Ablation study on the GEPAR3D dataset, including ToothFairy2 subset across 32 individual tooth classes (FDI notation). We evaluate the contribution of Text (T) conditioning and Contrastive Loss (CL) on fine-grained dental segmentation. While the baseline (Config #1) performs adequately on centralized teeth, the integration of textual representations (Config #2) provides a significant performance boost in boundary precision, reducing mHD95 from 6.5 to 2.0 mm. Notably, the full MedHiVE framework (Config #3) demonstrates superior robustness in segmenting distal molars (e.g., FDI 18, 28, 38), which are typically prone to severe imaging artifacts and morphological variation. This confirms that the contrastive objective effectively regularizes the feature space for anatomically rare or obscured structures. This indicates that the benefit of the anatomy-level contrastive objective can depend on overlap between the pre-training anatomy inventory and the target structures. B, T, and CL denote baseline, text-conditioned representations, and contrastive loss, respectively. The best results are bolded.
| # | B | T | CL | Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | mDSC ↑ | mHD95 ↓ | ||||||||||||||||
| 1 | ✓ | ✗ | ✗ | 69.7 | 90.6 | 91.2 | 86.5 | 84.2 | 93.9 | 91.1 | 93.9 | 91.4 | 92.0 | 89.9 | 86.8 | 90.9 | 94.4 | 90.1 | 69.6 | 66.8 | 84.0 | 83.5 | 88.9 | 87.4 | 85.8 | 85.9 | 81.7 | 84.4 | 89.4 | 92.3 | 89.8 | 93.5 | 85.4 | 84.2 | 60.0 | 86.1 | 6.5 |
| 2 | ✓ | ✓ | ✗ | 72.3 | 90.9 | 88.8 | 87.7 | 89.1 | 92.0 | 91.4 | 94.2 | 94.0 | 92.0 | 90.1 | 87.6 | 92.3 | 94.7 | 91.2 | 76.1 | 78.5 | 90.9 | 85.6 | 91.1 | 89.3 | 86.2 | 88.7 | 84.7 | 84.5 | 91.2 | 93.6 | 92.0 | 92.0 | 87.5 | 87.1 | 82.1 | 88.6 | 2.0 |
| 3 | ✓ | ✓ | ✓ | 79.5 | 90.7 | 88.0 | 87.5 | 88.9 | 94.0 | 91.0 | 94.3 | 94.0 | 90.4 | 90.4 | 86.7 | 91.8 | 92.7 | 90.3 | 80.0 | 80.2 | 89.7 | 88.7 | 90.3 | 89.0 | 85.5 | 86.9 | 83.3 | 79.6 | 86.5 | 90.2 | 89.5 | 93.3 | 88.1 | 86.1 | 64.9 | 87.7 | 3.4 |
G. Qualitative results
To further validate the empirical performance of MedHiVE, we provide an extensive qualitative comparison across four diverse medical imaging benchmarks: PANORAMA, AMOS-CT, KiTS 2023, and GEPAR3D. While quantitative metrics offer a statistical overview of performance, the following visualizations demonstrate the model's ability to resolve complex anatomical challenges that standard metrics may not fully capture—specifically regarding topological connectivity and boundary fidelity.
The qualitative results are organized as follows:
-
Pancreatic Structures (Figure 7): In the PANORAMA dataset, we highlight the model's ability to maintain the structural integrity of the pancreas parenchyma while simultaneously isolating fine-grained PDAC lesions and ducts,
-
Abdominal Multi-Organ Anatomy (Figure 8): We visualize the robustness of our approach in crowded anatomical regions, demonstrating a significant reduction in inter-class leakage between adjacent organs like the liver and stomach,
-
Nested Kidney Morphologies (Figure 9): Results from the KiTS 2023 set showcase how MedHiVE handles hierarchical dependencies, accurately separating kidney parenchyma from cysts and heterogeneous tumor masses without the fragmentation common in baseline methods,
-
Dental Arch (Figure 10): Finally, we evaluate the model on the GEPAR3D dataset, emphasizing its precision in resolving ambiguous inter-proximal boundaries and preserving the connectivity of delicate root structures.
Collectively, these visualizations confirm that MedHiVE consistently outperforms state-of-the-art baselines by capturing long-range dependencies and maintaining high-fidelity semantic boundaries across varying object scales and imaging modalities.

(a) Input slice
(b) Ground truth
(c) MedHiVE
(d) SuPreM
(e) MambaHoME
(f) Hermes
(g) Merlin
Figure 7. Qualitative segmentation results on the PANORAMA test sets. We compare the proposed MedHiVE against the ground truth and four state-of-the-art baselines. MedHiVE demonstrates superior spatial and semantic consistency, accurately capturing long-range dependencies in large-scale structures (e.g., the pancreas parenchyma) while maintaining high-fidelity boundaries for fine-grained objects like PDAC lesions and pancreatic ducts. Unlike competing methods that suffer from topological discontinuities or oversegmentation, our approach consistently preserves structural integrity across varying object scales.

Figure 8. Qualitative multi-organ segmentation performance on the AMOS-CT validation set. We compare the proposed MedHiVE against ground truth labels and four state-of-the-art baselines across 15 abdominal organs. MedHiVE demonstrates superior spatial and semantic consistency, leveraging long-range dependency modeling to maintain the global anatomical context of large-scale organs (e.g., liver, stomach) while ensuring high-fidelity boundary localization for small, low-contrast structures (e.g., adrenal glands, gallbladder). While competing methods frequently suffer from inter-class leakage and topological discontinuities in anatomically crowded regions, our approach preserves structural integrity and inter-organ spatial relationships. The highlighted regions (red boxes) illustrate MedHiVE's robustness against oversegmentation at organ interfaces, where baseline models often fail to resolve clear semantic boundaries due to similar intensity profiles in non-contrast CT.

Figure 9. Qualitative multi-class segmentation results on the KiTS 2023 internal test set. We evaluate the proposed MedHiVE against ground truth annotations and four state-of-the-art baselines for the joint segmentation of the kidney parenchyma, cysts, and tumor masses. MedHiVE demonstrates superior spatial and semantic consistency by effectively modeling the hierarchical dependencies between nested structures; it captures the global morphology of the kidney while maintaining high-fidelity boundaries for small, low-contrast cysts and heterogeneous tumor regions. Unlike competing methods, which frequently exhibit topological fragmentation or semantic leakage (e.g., misclassifying tumor voxels as healthy tissue), our approach preserves structural integrity across varying object scales. The zoomed-in insets highlight MedHiVE's ability to resolve ambiguous boundaries in complex cases of multi-focal cystic disease, where baseline models suffer from oversegmentation and loss of connectivity.

Figure 10. Qualitative evaluation of tooth segmentation on the GEPAR3D test set. We benchmark MedHiVE against ground truth labels and four state-of-the-art baselines. MedHiVE exhibits superior spatial and semantic consistency, leveraging its ability to capture long-range dependencies for large-scale dental arches while preserving high-fidelity boundaries in smaller, individual tooth structures. While competing methods frequently suffer from topological discontinuities (e.g., fragmented roots) or oversegmentation in high-density regions, our approach maintains global structural integrity and local connectivity. The zoomed-in regions (red boxes) highlight MedHiVE's robustness in resolving ambiguous inter-proximal boundaries where baseline models typically fail to maintain clear separation.

MedHiVE
Merlin
fVLM
"[...] Right kidney with an exophytic parenchymal lesion, peripherally hypervascular with a weakly contrast-enhancing center—necrosis. Otherwise, simple cysts in the left kidney 37x39.5 mm [...]"
"[...] Hypervascular left kidney tumor measuring 87 x 69 mm infiltrating the renal pelvis and renal calyces—suspicious for Renal Cell Carcinoma [...]"
"[...] Left kidney tumor 36 mm in diameter, continuous with infiltrative changes reaching the paracolic gutter [...]"
Figure 11. Qualitative comparison of visual grounding performance on external in-house abdominal CT scans with kidney lesions. Each row displays a representative abdominal CT slice paired with its corresponding part of radiology report describing kidney tumors or cysts; in the absence of voxel-wise annotations, the report serves as the reference. Grounding predictions are shown for MedHiVE (left), Merlin (center), and fVLM (right). All models are fine-tuned on KiTS 2023. MedHiVE segments lesions consistent with the radiology reports, whereas Merlin and fVLM overshoot the lesion extent or place predictions in a kidney the report leaves unremarkable (red boxes).
H. Clinical impact
Hierarchical medical vision–language models such as MedHiVE are best viewed as assistive technology: they learn volumetric features that cohere with how radiologists describe anatomy in free text, which can reduce repetitive manual work, speed up research cohort construction, and improve access to structured imaging cues in resource-constrained settings. In practice, the same class of model could support draft contouring for treatment planning, quality assurance on routine cross-sectional studies, retrieval of similar prior cases, and teaching tools that link scrollable volumes to report language. Because MedHiVE separates local token routing from global vision–language fusion, downstream systems can in principle highlight which image regions and which phrases contribute to a prediction—a property that matters for auditability and for training junior readers, provided uncertainty is communicated honestly.
The public benchmarks we evaluate are examples of these use cases, not an exhaustive clinical product specification. Work on pancreatic ductal adenocarcinoma (PDAC) in portal-venous abdominal CT illustrates how better multi-structure segmentation could ease contouring for chemoradiation or surgical planning, while leaving resectability, margin assessment, and staging decisions to the treating team. Conversely, fine-grained three-dimensional tooth segmentation on cone-beam CT (as in GEPAR3D) illustrates the same principle outside abdominal radiology: sharper tooth-level masks can assist orthodontic, implant, and maxillofacial planning software, but metal artifact, missing teeth, and atypical anatomy still require interactive human review. Across domains, any deployment must be preceded by local validation, clear human-in-the-loop governance, and—where a product is intended for care—the appropriate regulatory pathway. MedHiVE has not been evaluated in a prospective reader study and is not a certified medical device; it should not be used to make treatment decisions without expert oversight.
I. Limitations and future directions
While MedHiVE demonstrates significant improvements in 3D multi-modal understanding, a few limitations remain that offer avenues for future research.
Fixed anatomical inventory. The current framework operates on a predefined set of 14 anatomical structures, which covers the most clinically relevant regions in the evaluated datasets. While this design enables stable and interpretable anatomy-level alignment, it may limit coverage of rare or fine-grained structures. Importantly, our results indicate that the learned representations still generalize beyond these regions through global context. Extending the inventory or incorporating more flexible anatomical representations is a direction for future work.
Data biases. The model is trained on large-scale clinical data, where the frequency of anatomical descriptions follows real-world reporting patterns. As a result, commonly discussed organs are more densely represented than less frequently mentioned regions. While this reflects realistic clinical distributions and does not prevent strong performance across benchmarks, it may influence sensitivity to rare findings. Future work could explore reweighting strategies or targeted sampling to further improve performance on underrepresented anatomies. The development of MedHiVE opens several promising directions for extending hierarchical vision-language modeling in the medical domain.
Open-vocabulary anatomical grounding. A primary goal for future iterations is to move beyond a fixed anatomical inventory. By integrating open-vocabulary object detection techniques with our hierarchical routing, the model could potentially align visual tokens with arbitrary clinical concepts mentioned in reports, such as specific lesions or rare vascular anomalies, without requiring predefined masks. This would transition the system from an “organ-centric” model to a “pathology-centric” one.
Longitudinal integration of imaging and clinical context. Clinical diagnosis often relies on the evolution of findings over time. Extending the Mamba-based backbone to handle 4D data (3D volumes over multiple time points) would allow the model to capture disease progression. This would require the MedHiVE to route information not only across spatial scales but also across temporal sequences, while incorporating tokens derived from longitudinal clinical context beyond radiology reports (e.g., pathology results, operative notes, laboratory trends, or prior diagnoses) to align imaging changes with the evolving clinical narrative.
Multi-modality validation. We aim to evaluate the generalizability of the MedHiVE framework across different imaging modalities, such as MRI and PET-CT, and across diverse patient populations from multiple clinical sites. This would involve studying the domain-shift robustness of the hierarchical routers when encountering different scanner protocols and reporting styles.
J. Impact statement
Contribution. This work contributes a hierarchical medical vision-language framework that couples two-stage Soft Mixture-of-Experts routing with multi-granularity contrastive alignment between 3D CT and radiology text. The scientific advance is a unified way to inject anatomical structure and report structure into the same encoder, improving downstream segmentation, classification, and detection on public benchmarks relative to global or patch-only MedVLMs.
Positive societal impacts. Better alignment between imaging and clinical language can reduce repetitive manual annotation, accelerate research cohort construction, and improve access to structured imaging cues in settings with limited specialist time. Open-science release of code, prompts, and evaluation protocols (where licensing permits) can lower the barrier for reproducible medical AI.
Negative societal impacts and mitigations. Like all data-driven medical models, MedHiVE can inherit and amplify documentation bias (who is scanned, which findings are written down, and how reports are phrased), scanner and site bias, and errors or shortcuts in automated preprocessing (e.g., LLM-based snippet extraction). Confident but incorrect associations between images and text could contribute to misdiagnosis, over-investigation, or inappropriate automation if integrated into clinical workflows without calibration, uncertainty communication, and governance. Deployment also imposes privacy obligations: training on patient data must follow institutional review, data-use agreements, and de-identification standards appropriate to each jurisdiction. We therefore position MedHiVE as a methodological building block, not a turnkey clinical product. We encourage translation efforts to prioritize prospective evaluation, fairness and robustness auditing across sites and demographics, clinician oversight, and transparent reporting of limitations, including failure modes under distribution shift and imperfect text or segmentation supervision.