SegBanana: Steering Unified Multimodal Models into Medical Segmenters
Organizations: Beihang University · Zhongguancun Academy · Zhejiang University
Abstract
Medical image segmentation remains challenging in practical deployment, as models often struggle to generalize beyond the distributions covered by their training data and high-quality pixel-level annotations are typically unavailable for adaptation. Inspired by the cross-task transferability of large language models, we investigate whether unified multimodal models (UMMs) can transfer their pretrained visual understanding, reasoning, and generation capabilities to medical image segmentation without task-specific post-training. By recasting segmentation as structured visual generation, we find that frontier UMMs (e.g., Nano Banana) already exhibit basic segmentation capabilities across diverse clinical scenarios, but still struggle with challenging tasks requiring specialized anatomical or domain-specific knowledge. We further show that these limitations can be effectively mitigated by incorporating visual anatomical knowledge from in-context exemplars, expanding candidate solutions through repeated sampling, and refining suboptimal predictions via targeted editing.Motivated by these observations, we propose SegBanana, to our knowledge, the first agentic visual generation framework for training-free medical image segmentation. SegBanana builds on a frozen UMM as the core generative model, augmented with Anatomy-Aware Knowledge Retrieval and Comparative Quality Critique to unlock its potential segmentation capability. A State-Aware Multimodal Controller maintains structured state and iteratively orchestrates these tools, repeatedly refining intermediate predictions toward higher-quality masks. Across eight medical segmentation datasets, SegBanana achieves an average mDice of 77.45%, outperforming representative generalist (SAM3 and SegGPT) and medical-specific (BiomedParse and MedSAM3) baselines by at least 14.93 points, while remaining robust to out-of-domain visual supports.
Figures & tables
| Dataset | Task Characteristics | mDice (%) | ||||||
|---|---|---|---|---|---|---|---|---|
| Modality | Target | Size | Structure | Main Challenge | Text-only | Random | Retrieved | |
| ACDC ( Bernard et al., 2018 ) | MRI | RV / MYO / LV | Small–Med. | Adjacent | Anatomical coupling | 36.89 | 31.79 | 45.30 |
| Drishti-GS ( Sivaswamy et al., 2014 ) | Fundus | Disc / Cup | Small | Nested | Subtle boundaries | 43.73 | 53.57 | 57.49 |
| ISIC ( Codella et al., 2019 ) | Dermoscopy | Lesion | Med.–Large | Irregular | Appearance variation | 74.68 | 79.62 | 80.65 |
| Method | TNBC | RAVIR | Drishti-GS | ISIC | BUS-UCLM | Kvasir | ACDC | BraTS | Avg |
|---|---|---|---|---|---|---|---|---|---|
| Medical-Specific Methods | |||||||||
| UniverSeg | 24.48 | 28.45 | 40.68 | 39.64 | 13.38 | 19.91 | 21.48 | 15.48 | 25.44 |
| BiomedParse | 11.81 | 5.67 | 78.19 | 87.59 | 63.81 | 88.95 | 89.03 | 75.11 | 62.52 |
| MedSAM3 | 68.21 | 4.21 | 34.13 | 89.80 | 57.68 | 91.17 | 16.74 | 55.42 | 52.17 |
| IBISAgent | 1.00 | 1.65 | 4.14 | 87.47 | 57.06 | 78.86 | 14.87 | 60.14 | 38.15 |
| MedSAMAgent | 5.78 | 0.30 | 66.41 | 83.47 | 49.16 | 83.92 | 80.50 | 21.38 | 48.87 |
| Framework | Controller | TNBC | RAVIR | Drishti-GS | ISIC | BUS-UCLM | Kvasir | ACDC | BraTS | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| SegBanana | Gemini-3.5 | 74.75 | 80.93 | 87.09 | 82.06 | 78.07 | 89.53 | 61.68 | 65.52 | 77.45 |
| w/o Retrieval | Gemini-3.5 | 76.26 | 81.22 | 60.55 | 82.78 | 77.92 | 88.19 | 51.56 | 61.67 | 72.52 |
| w/o Critic | Gemini-3.5 | 72.08 | 78.05 | 63.88 | 81.16 | 75.07 | 86.02 | 56.68 | 65.66 | 72.33 |
| w/o State Context | Gemini-3.5 | 73.86 | 77.30 | 65.07 | 81.85 | 76.18 | 87.74 | 56.36 | 63.43 | 72.72 |
| SegBanana | Qwen-3.8 | 70.06 | 41.94 | 83.28 | 79.03 | 69.37 | 82.31 | 51.31 | 54.32 | 66.45 |
| SegBanana | GPT-5.6 | 62.38 | 54.36 | 88.15 | 82.78 | 77.54 | 85.39 | 55.39 | 61.88 | 70.98 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Modality | Target | Structure | Primary Challenge |
|---|---|---|---|---|
| ACDC | MRI | LV / RV / MYO | Adjacent | Anatomical coupling |
| Drishti-GS | Fundus | Optic disc / cup | Nested | Subtle boundary discrimination |
| ISIC | Dermoscopy | Skin lesions | Irregular | Appearance variation |
| TNBC | Histopathology | Cell nuclei | Irregular, Adjacent | Dense clustering & appearance variation |
| RAVIR | Fundus | Retinal vessels | Irregular | Subtle boundaries & topology preservation |
| BUS-UCLM | Ultrasound | Breast lesions | Irregular | Appearance variation & weak boundaries |
| Modality | UniverSeg | BiomedParse | MedSAM3 | IBISAgent | MedSAM-Agent |
|---|---|---|---|---|---|
| MRI | BraTS , BrainDevelopment, ISLES, LGG, MCIC, OASIS, PPMI, WMH, I2CVB, NCI-ISBI, PROMISE12, FeTA, SpineWeb, ACDC , CDEMRIS | BraTS2023 , PROMISE12, LGG, ACDC , M&Ms | MRI corpus ‡ | ACDC , LGG, M&Ms, MSD Brain Tumor, MSD Heart, MSD Hippocampus, MSD Prostate | ACDC , LGG, AMOS-MRI |
| CT | AbdomenCT-1K, BTCV, KiTS, LiTS, LUNA, SegTHOR, WORD | AbdomenCT-1K, BTCV, KiTS23, TotalSegmentator, COVID-19 CT, LIDC-IDRI, FUMPE | CT corpus ‡ | COVID-19 CT, KiTS23, LIDC-IDRI, MSD Liver, MSD Spleen, MSD Pancreas, MSD Colon, MSD Lung, MSD Hepatic Vessel | FLARE22, KiTS, LIDC-IDRI, BTCV, AMOS-CT, WORD |
| MRI & CT | AMOS, CHAOS, MSD | AMOS22, MSD | – | AMOS22, MSD task groups | – |
| Fundus / Retinal | DRIVE, STARE, IDRID, e-Ophtha | DRIVE, REFUGE, G1020 | RIM-ONE | G1020, REFUGE | REFUGE |
| X-ray | CheXplanation, PanDental | COVID-QU-Ex, QaTa-COV19, SIIM-ACR Pneumothorax, Chest Xray Masks and Labels, CDD-CESM, Radiography | X-ray corpus ‡ | COVID-QU-Ex, QaTa-COV19, Radiography, CDD-CESM, SIIM-ACR Pneumothorax, CXR Masks and Labels | CXRMask, Radiography series, CDD-CESM |
| Ultrasound | CAMUS, HMC-QU, BUS, TUCC | CAMUS, BUSI, US Simulation & Segmentation, BreastUS, LiverUS, FH-PS-AOP | BUSI; broader US corpus ‡ | CAMUS, BreastUS, LiverUS, FH-PS-AOP | BreastUS, LiverUS, FH-PS-AOP |
| Dataset | Task Description |
|---|---|
| ACDC | Segment the right ventricular cavity, myocardium, and left ventricular cavity. |
| BUS-UCLM | Segment the breast lesion or mass. |
| Kvasir | Segment the gastrointestinal polyp. |
| RAVIR | Segment the retinal vessels. |
| BraTS | Segment the brain tumor. |
| TNBC | Segment the cell nuclei. |
| Dataset | Iter. | Nano Banana Calls | Ret. Calls |
|---|---|---|---|
| ACDC | 2.47 | 4.52 | 3.88 |
| BraTS | 1.76 | 3.40 | 2.26 |
| BUS-UCLM | 1.60 | 3.18 | 1.78 |
| Drishti-GS | 2.40 | 4.76 | 3.28 |
| ISIC | 1.70 | 3.24 | 1.52 |
| Kvasir | 1.56 | 3.12 | 0.92 |
| Dataset | Stop@1 | Stop@2 | Stop@3 | Generate | Edit | Accept | Retrieved |
|---|---|---|---|---|---|---|---|
| ACDC | 15.0% | 23.3% | 61.7% | 76.6% | 14.4% | 9.0% | 100.0% |
| BraTS | 58.0% | 8.0% | 34.0% | 63.5% | 15.3% | 21.2% | 96.0% |
| BUS-UCLM | 66.0% | 8.0% | 26.0% | 55.8% | 17.6% | 26.7% | 90.0% |
| Drishti-GS | 28.0% | 4.0% | 68.0% | 65.3% | 24.8% | 9.9% | 100.0% |
| ISIC | 58.0% | 14.0% | 28.0% | 56.5% | 20.6% | 22.9% | 62.0% |
| Kvasir | 64.0% | 16.0% | 20.0% | 52.5% | 20.3% | 27.2% | 44.0% |