Multimodal Hierarchical Mixture-of-Experts for 3D Medical Vision-Language Modeling
Organizations: Helmholtz Munich · Technical University of Munich · Munich Center for Machine Learning · Jagiellonian University ·
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.
Figures & tables
| Method | Params | VRAM | Speed | Segmentation (mDSC %) | PDAC Cls. & Det. | |||||
| (M) | (GB) | (MV/s) | 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 [ 35 ] | 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 |
| # | 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 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| 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 |
| mDSC (%) | mHD95 | Detection | |||||||||
| Method | 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 |
| 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 |
| Organ Classes (%) | Overall | ||||||||||||||||
| Method | 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 | 4.9 |
| 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 | 26.1 |
| 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 | 19.3 |
| 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 | 9.6 |
| 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 | 25.9 |
| Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | ||||||||||||||||||||||||||||||
| Method | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | mDSC | mHD95 |
| 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 |
| Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | ||||||||||||||||||||||||||||||
| Method | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 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 | 91.3 | 86.9 | 81.8 | 69.7 | 59.5 | 81.7 | 22.1 |
| 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 | 90.5 | 89.9 | 93.3 | 85.4 | 70.5 | 65.1 | 82.9 | 23.0 |
| 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 | 92.2 | 93.2 | 93.8 | 81.4 | 72.1 | 65.8 | 83.9 | 21.0 |
| 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 | 87.9 | 87.0 | 87.4 | 81.6 | 68.9 | 64.5 | 82.8 | 29.9 |
| 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 | 89.8 | 91.4 | 93.3 | 80.0 | 71.9 | 64.2 | 82.8 | 26.2 |
| Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | ||||||||||||||||||||||||||||||
| Method | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 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 | 91.1 | 88.8 | 91.3 | 84.2 | 82.1 | 56.0 | 84.0 | 9.0 |
| 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 | 88.0 | 86.0 | 90.9 | 89.5 | 83.6 | 57.7 | 84.1 | 10.2 |
| 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 | 91.9 | 87.5 | 91.6 | 86.5 | 83.7 | 58.4 | 84.6 | 10.5 |
| 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 | 89.0 | 84.5 | 87.5 | 87.1 | 82.4 | 53.6 | 83.8 | 12.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 | 88.9 | 88.6 | 90.8 | 84.1 | 81.9 | 54.0 | 82.6 | 11.5 |
| mDSC (%) | mHD95 | Detection | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| # | B | T | CL | 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 |
| # | B | T | CL | Kidneys | Tumor | Cyst | mDSC | mHD95 |
|---|---|---|---|---|---|---|---|---|
| ✓ | ✗ | ✗ | 83.5 | 47.0 | 41.6 | 60.1 | 55.4 | |
| ✓ | ✓ | ✗ | 86.1 | 48.0 | 49.1 | 63.2 | 51.0 | |
| ✓ | ✓ | ✓ | 89.6 | 53.6 | 48.2 | 66.7 | 48.2 |
| Organ Classes (DSC %) | Overall | |||||||||||||||||||
| # | B | T | CL | Spleen | R. Kidney | L. Kidney | Gallbladder | Esophagus | Liver | Stomach | Aorta | IVC | Pancreas | R. Adr. Gland | L. Adr. Gland | Duodenum | Bladder | Pr/Ut | mDSC | mHD95 |
| ✓ | ✗ | ✗ | 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 | |
| ✓ | ✓ | ✗ | 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 | |
| ✓ | ✓ | ✓ | 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 | |
| Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | |||||||||||||||||||||||||||||||||
| # | B | T | CL | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 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 |
| Upper Right (Quadrant 1) | Upper Left (Quadrant 2) | Lower Left (Quadrant 3) | Lower Right (Quadrant 4) | Overall | |||||||||||||||||||||||||||||||||
| # | B | T | CL | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 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 |
Medical VLMs
Medical vision-language models connect clinical images with text for diagnosis, reporting, question answering, and image grounding.
See all 490 papers