Drawing the outline of a lesion pixel by pixel takes a radiologist minutes per image. Yet nearly every clinical image already comes with a free-text report that says what is abnormal and roughly where ("patchy opacity in the right lower zone"). We propose to train lesion segmenters from those reports alone, with no masks. The method asks a text-conditioned image generator a counterfactual question: what would this image look like if the report did not mention the finding? The pixels that change form the mask.
The new part is where the question is asked. The generator stores each image in a stack of latent grids, from coarse layout down to fine texture, and it decodes the coarse grid first. We let the report steer only the coarse grid, so the text decides where a change happens. The fine grids never see the text; they rebuild the boundary from image statistics, conditioned on the edited layout. Our hypothesis is that this split fixes two known failures of weakly supervised segmentation. The first is "peaky" masks that cover only the most distinctive hotspot of a lesion. The second is masks hallucinated from text that describes something absent in the image.
Core Claim
We make three claims, each of which experiments can falsify. First, a lesion mask obtained by contrasting report-conditioned and finding-removed generations is more complete and better bounded when the contrast is computed in a coarse-to-fine latent hierarchy than when it is computed in a single latent map. Second, this holds even after accounting for the coarse-to-fine behavior that diffusion noise levels already provide. Third, routing clinical text only into the coarse tier gives better boundaries and fewer false positives than routing it into every tier. Here a diffusion model means a generator that learns to turn random noise into images by removing noise step by step.
How This Sits Against Prior Work
The mask-from-generation idea comes from two papers, and our method builds on both. Conditional Diffusion Models for Weakly Supervised Medical Image Segmentation (CG-CDM) perturbs a class-label embedding and reads a mask off the change in the model's noise prediction. It reaches 0.563 Dice on BraTS, against 0.23–0.30 for class-activation maps. PathoGAN "heals" the lesion with image-to-image translation and subtracts the result from the input, reaching 72.9% Dice on BraTS 2017 slices. Both methods condition on a binary tag and use a single-scale latent. We condition on report text and split the contrast across scales.
Two other papers motivate the scale-separated design. TextDiff shows that intermediate activations of a frozen diffusion U-Net carry multi-scale layout information that clinical text can steer. It still needs pixel masks, though, and it injects one sentence embedding uniformly. HiMix shows that splitting report embeddings into low, mid, and high levels helps fully supervised segmentation (91.17% Dice on QaTa-COV19). That number serves as our ceiling.
One paper constrains the design. Multimodal Weakly Supervised Segmentation for Histopathology finds that unfiltered text injection makes models search for described features that are absent, and it needs learned token filtering to stop this. We test a structural alternative to such filtering: keep text away from the fine tier entirely.
Two papers supply the generator. HieraTok uses scale-causal attention, meaning tokens at one scale see only their own and coarser scales, and this improves ImageNet reconstruction FID from 1.47 to 1.07. Frido denoises coarse latents first and modulates fine ones on them. Both papers were tested only on natural images, so their transfer to radiology is itself an open question we must answer.
Research Program
Generator. We first train a HieraTok-style multi-scale tokenizer on 2D radiology images: chest X-rays from QaTa-COV19, CT slices from MosMedData+, and MRI slices from BraTS. On top of it we train a Frido-style pyramid diffusion model. Report text is encoded by a frozen clinical language model (CXR-BERT, following HiMix). It enters the coarse-tier denoiser through cross-attention. The fine-tier denoisers see only the coarser latents. We use condition dropout during training, so the same model can also generate under a "finding removed" condition, either a null text or the report with its finding sentence deleted.
Mask extraction. For a test image we partially noise its coarse latent and denoise it twice, once under the full report and once under the finding-removed text. The per-cell difference between the two coarse results gives a coarse localization map. We then regenerate the fine tiers for both coarse versions with shared noise. Within the upsampled coarse region, the fine-tier difference sets the boundary. Thresholding uses a fixed rule tuned on a small validation split, the same procedure used for every baseline.
Optional student. We may optionally distill the masks into a plain U-Net for speed. Pseudo-mask drift is a documented failure of two-stage pipelines, so we report the student separately and never treat it as the main result.
Scope. Structured EHR tables are deliberately out of scope here. No benchmark in our file pairs tables with pixel ground truth, and INSPECT and RadFusion have no masks. For the same reason, native 3D volumes are left as a follow-up.
Baselines
The naive reference is a class-activation map from a classifier trained on the same image-level labels. On BraTS, CG-CDM reports 0.23–0.30 Dice for such maps. We rerun it on all three datasets with the same backbone budget.
The strongest generative competitor is CG-CDM, which reports 0.563 Dice on BraTS with 10 denoising steps in 2.78 s per image. We retrain it on our data splits, using the same text encoder in place of its class embedding. It gets the same GPU-hours, the same step count, and the same threshold tuning. Beating it means higher Dice and a lower 95th-percentile Hausdorff distance on all three datasets, at no more than twice its inference time.
PathoGAN reports 72.9% Dice on BraTS 2017 slices 60–100. Its protocol differs from CG-CDM's, so we rerun both under one protocol rather than compare published numbers.
The text-to-prompt pipeline is SimTxtSeg, which turns sentences into boxes, boxes into SAM pseudo-masks, and pseudo-masks into a U-Net. It reports only relative gains (+4.1% mDice on brain tumors), and no absolute value appears on Lacuna, so we rerun it with the same reports.
For QaTa-COV19, TextDiff is a "few dense masks" reference. We give it 150 masked images, its published regime, so we can measure how many masks report supervision is worth. No reported Dice for TextDiff on QaTa was found on Lacuna. HiMix's 91.17% is the fully supervised ceiling.
Two ablations isolate our ingredients. The first is the identical generator collapsed to a single scale, keeping the same parameters and compute. The second is the full hierarchy with text routed into every tier.
Why not just…?
Why not just use CG-CDM with text instead of labels? This is the single-scale ablation, and it is the comparison that decides whether the hierarchy matters. CG-CDM's 0.563 versus a roughly 0.90 supervised reference on BraTS leaves a large gap. If text-conditioned single-scale sensitivity closes most of that gap by itself, our scale split is unnecessary, and we will report that.
Why not just average sensitivity maps over several diffusion noise levels? Noise level already acts like a coarse-to-fine dial: CG-CDM finds a best step at Q=400 of 1,000. This is the most serious threat, because it might deliver our benefit for free. We include a multi-timestep ensemble of CG-CDM at matched total compute as a baseline. Our claim survives only if an explicit latent hierarchy with text gated to the coarse tier beats it, especially on boundary distance.
Why not just prompt SAM with boxes parsed from the report? SimTxtSeg's own results show that SAM pseudo-masks need a trained cross-modal decoder on top, and that SAM variants struggle with complex medical boundaries. Diffuse findings such as COVID opacities on QaTa have no clean box. Running SimTxtSeg on the same data settles whether this simpler route is enough.
Why not just collect 150 masks and use TextDiff? Sometimes that will be the right call. The TextDiff comparison reports how many dense masks report supervision is worth. Clinicians can then judge whether zero-mask training justifies a given Dice gap.
Decisive Checks
We report Dice, mIoU, and HD95 on QaTa-COV19, MosMedData+, and BraTS, plus seconds per image. Each comparison uses three seeds with confidence intervals.
Scale split. The hierarchy must beat both the single-scale ablation and the multi-timestep ensemble on HD95 on at least two of the three datasets. If it does not, claims one and two fail.
Text controls the mask. We edit laterality and location words in QaTa reports, for example swapping "left" and "right", and measure how far the mask's center of mass moves. It should move to the named side under coarse-only routing. Swapping in a report from a different patient should drop Dice sharply. This tests whether the report actually steers the mask beyond acting as a presence tag. If masks do not respond, the multimodal part is decorative.
Hallucination. On held-out images we pair true reports with mismatched findings and count false-positive mask area under coarse-only versus all-tier routing. Claim three predicts less spurious area for coarse-only routing.
Domain transfer. We check that the tokenizer reconstructs radiology well before trusting any mask. This addresses the open question of whether natural-image multi-scale tokenizers transfer to clinical data. If reconstruction is poor, mask failures cannot be blamed on the method.
References
- Conditional Diffusion Models for Weakly Supervised Medical Image Segmentation
- Pathology Segmentation Using Distributional Differences to Images of Healthy Origin
- Enhancing Label-Efficient Medical Image Segmentation with Text-Guided Diffusion Models
- HiMix : Hierarchical Visual-Textual Mixing Network for Lesion Segmentation
- Multimodal Weakly Supervised Segmentation for Histopathology
- HieraTok: Multi-Scale Visual Tokenizer Improves Image Reconstruction and Generation
- Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
- SimTxtSeg: Weakly-Supervised Medical Image Segmentation with Simple Text Cues