Xiamen University's TextBCS Beats 12 AI Models Segmenting Breast Tumors With Text
A new text-guided MRI segmentation model uses radiologist-style prompts and Dirichlet uncertainty to sharpen fuzzy tumor boundaries, hitting 85.33% Dice on Duke.
ProTakeaways
- TextBCS is a text-guided breast tumor segmentation model for DCE-MRI with two novel modules.
- Stage-divided Vision-Language Interaction (SVLI) fuses text and image features at every encoder downsampling stage.
- Evidential learning replaces Softmax with a Dirichlet distribution to quantify pixel-level boundary uncertainty.
- Achieves 85.33% Dice and 76.08% mIoU on Duke-Breast-Cancer-MRI, beating twelve baselines including MGCA and TransUNet.
- Prompts follow a fixed template: location, shape, size, and number of lesions, encoded with BioClinicalBERT.
- Fails on ambiguous prompts or unseen clinical vocabulary; authors propose LLM-generated prompts or report parsing for deployment.
Segmenting breast tumors on MRI is one of those tasks that looks tractable on paper and turns brutal in practice. Contrast between cancerous and healthy tissue can be tiny, borders bleed into surrounding tissue, and a purely pixel-driven network has no way of knowing what a radiologist already suspects about the lesion. A team from Xiamen University and Case Western Reserve wants to fix that by teaching the segmentation network to read short structured text prompts, and to admit when it is not sure.
Their model, TextBCS, combines a stage-divided vision-language interaction module with an evidential learning head that outputs pixel-level uncertainty. On the public Duke-Breast-Cancer-MRI benchmark it hits 85.33% Dice, beating twelve baselines including TransUNet, Swin-UNet, CLIP, LViT and MGCA.
Why image-only segmentation keeps missing
MRI is an effective tool for detecting breast tumors, but previous deep-learning segmentation methods have struggled to locate tumor contours because of the low contrast between cancerous and normal areas and blurred boundaries. Dynamic contrast-enhanced MRI (DCE-MRI) helps by injecting a contrast agent that lights up tumor tissue, but even then the intensity gap between lesion and background can be subtle enough to fool a CNN.
Prior fixes have largely stayed inside the image modality: multi-stream fusion networks, atrous multi-scale extractors, 3D affinity refinement, Dice-sensitivity loss functions, tumor-sensitive synthesis modules. All useful, all still stuck with pixels as their only source of evidence.

Prompts a radiologist would actually write
The authors sidestep the pixel-only ceiling by feeding the network a compact structured caption alongside the scan. Two radiologists annotated each slice using a fixed template: location [left or right]; shape [round or ellipse or irregular]; size [small or medium or large]; number [one or two or three or ...]. So a typical prompt looks like "location left; shape irregular; size medium; number two."
Text is encoded with BioClinicalBERT, image features flow through a UNet-style encoder, and the two streams talk to each other at every downsampling stage rather than only at the bottleneck.
Talking at every stage, not just the bottleneck
The Stage-divided Vision-Language Interaction (SVLI) module is the first of two core contributions. At each of the four encoder stages it runs a bidirectional cross-attention exchange:
- A vision query uses visual features as the query and text features as key/value, producing a text-aware image representation.
- A language query reverses the roles, letting the text tokens reread themselves through the visual context.
- A stage-divided contrastive loss aligns the two projections at every level, not just at the final embedding as CLIP-style methods do.
The interpretability study in the paper shows why this matters. In deeper encoder layers (DownCNN3 and DownCNN4) a plain UNet stops activating on the actual cancer region. Once SVLI is bolted on, those same layers light up right where the text says the lesion is.

Teaching the model to hedge on blurry edges
The second contribution addresses the boundary problem directly. Softmax outputs tend to be overconfident, which is a bad property when the true edge of a tumor is inherently ambiguous. TextBCS replaces the final Softmax with a Softplus activation, treats its non-negative outputs as evidence values, and uses those to parameterize a Dirichlet distribution over class probabilities.
Concretely, for each pixel the network produces evidence e, from which Dirichlet parameters α = e + 1 are derived. Belief mass per class and an overall uncertainty mass are computed from the Dirichlet strength. Training combines a Dice loss, an integrated cross-entropy loss that expects a Dirichlet posterior, a KL divergence that suppresses evidence on wrong labels, and the stage-wise contrastive alignment loss.
The net effect: when the boundary is genuinely ambiguous the model is allowed to spread its belief thinly instead of committing to a wrong class, which reduces mis-segmentation along tumor edges.
Numbers on Duke-Breast-Cancer-MRI
Evaluation is on the Duke-Breast-Cancer-MRI dataset: 922 patients with invasive breast cancer scanned on 1.5T or 3.0T machines, from which the authors extract 3,876 tumor-containing slices split 7:1:2 at the patient level.
| Method | Text | Dice (%) | mIoU (%) | Params (M) |
|---|---|---|---|---|
| UNet | No | 81.54 | 73.22 | 14.8 |
| TransUNet | No | 83.14 | 75.49 | 105 |
| Swin-UNet | No | 81.70 | 70.25 | 82.3 |
| CLIP | Yes | 83.66 | 72.63 | 87 |
| LViT | Yes | 82.79 | 73.21 | 29.7 |
| MGCA | Yes | 84.28 | 75.44 | 135.6 |
| TextBCS | Yes | 85.33 | 76.08 | 32.5 |
Ablations attribute a 2.87-point Dice gain to SVLI, 1.65 points to evidential learning, and 3.79 points to using both together. Paired t-tests against every baseline report p-values below 0.05.
Where it breaks
The failure analysis is the more interesting part. Vague prompts hurt performance in predictable ways: "right" does not say which quadrant, "irregular" lacks morphological context, and "large" has no reference scale. When ChatGPT-5-generated variants add unfamiliar clinical vocabulary the model wobbles because it was trained only on the fixed template.

How this would actually get deployed
Manual prompt writing is not going to scale in a real hospital, and the authors are upfront about that. They suggest two paths:
- Use a medical-tuned multimodal LLM (they name ChatGPT and Gemini-2.5-Pro) to auto-generate location/shape/size/number prompts from the image, ideally deployed on-premise to avoid sending MRIs to external servers.
- Parse existing radiology reports in the hospital information system into the same templated attributes, which piggybacks on work radiologists already do.
They also note the obvious risk: an LLM that hallucinates the wrong side or the wrong lesion count will drag segmentation quality down. A reasonable next step is filtering generated prompts by cosine similarity between image and text embeddings before feeding them to the segmentor.
What it is and is not useful for
TextBCS is a research-grade model published in Neurocomputing, not a released library. There is no public code or checkpoint linked from the paper, so anyone wanting to reproduce the numbers has to rebuild the SVLI module and evidential head on top of a UNet plus BioClinicalBERT. The techniques transfer cleanly to other lesion-segmentation problems where a structured description is cheap to obtain, especially ultrasound and mammography pipelines that already log BI-RADS-style attributes. Where it will underperform: free-form clinical notes, prompts that reference anatomy not covered by the training vocabulary, and any deployment that cannot supply a reliable text prompt at inference time.