SPIRE: Spatially-grounded Progressive Injection with Reciprocal Exchange for Medical Reasoning Segmentation

Xinting Zhang, Jiayuan Xie, Yangyang Xu, Jun YuarXiv 2026

TL;DR

Medical AI shouldn't just draw a circle around a tumor; it should also be able to tell a clinician where that tumor is without contradicting itself. SPIRE is a unified framework that couples a multimodal large language model (MLLM) with a diffusion-based image generator so that both the segmentation mask and the written positional explanation are shaped together in a single forward pass—resulting in sharper masks and explanations that actually match what the model drew.

What Problem Does This Paper Address?

In medical reasoning segmentation, a model takes a medical image and a natural-language query (like "Where is the brain tumor?") and must output two things: a pixel-level segmentation mask and a textual explanation of the target's location.

Existing approaches stumble on three fronts:

  1. Vague spatial guidance: Many models rely on implicit "segmentation tokens" or simple centroid priors, which can point to a target's general neighborhood without capturing its detailed boundaries—a big issue in medical images with low-contrast edges.
  2. Disconnected injection: Even when spatial maps are generated, feeding them into a mask decoder without preserving a strict link between each spatial map and its corresponding semantic condition dilutes their effectiveness.
  3. One-way communication: Typically, the language model tells the decoder what to segment, and that's the end of the conversation. The language model never sees intermediate segmentation features, so its written explanation can easily end up describing a different location than the mask it just produced.
Figure 1: Prior works (a–c) design for spatial grounding, guidance injection, and segmentation feedback, respectively. (d) SPIRE in- tegrates multi-granularity guidance, mask-guided attention, and reciprocal interaction.

Methods

SPIRE pairs a medical MLLM (LLaVA-Med v1.5) with a diffusion U-Net (Stable Diffusion 2.1-base, adapted to predict the final mask latent in a single step) through three tightly coupled modules:

  • Multi-Granularity Spatial Reasoning: Instead of asking the MLLM for a single implicit token, SPIRE supervises three successive, interdependent latent states ($h_1, h_2, h_3$) at complementary spatial resolutions ($32\times32$, $128\times128$, and $512\times512$). Each state produces a spatial probability map paired with a semantic condition, progressing from coarse localization to fine boundary delineation, alongside two global context tokens.
  • Mask-Guided Attention Injection: Inside the diffusion U-Net's cross-attention layers, each predicted spatial map is converted into an additive log-mask bias for its paired semantic condition. This steers attention toward likely target regions while leaving the global context tokens unrestricted.
  • Reciprocal Vision–Language Exchange: Halfway through the U-Net's forward pass, intermediate downsampling features are projected into 64 feedback embeddings and appended back to the MLLM's context. The MLLM's updated hidden states are then projected back into the U-Net's mid-block to guide mask completion—and simultaneously used to condition the autoregressive text explanation.
Overview of the SPIRE framework

Datasets

The authors evaluate SPIRE on PosMed, a medical reasoning segmentation benchmark spanning six imaging modalities:

  • Breast Ultrasound
  • Brain MRI
  • Lung CT
  • Lung X-ray
  • Polyp Endoscopy
  • Skin Image

PosMed contains 34,083 training/validation samples and 4,647 test samples.

Key Insights and Ideas

  • Bidirectional feedback in one pass: Unlike agentic or multi-round refinement methods that inspect a finished mask and try again, SPIRE exchanges intermediate visual evidence during a single U-Net forward pass. Shuffling these feedback features while keeping positional encodings fixed drops positional accuracy from 0.704 to 0.595, proving that spatial alignment in the feedback—not just extra visual features—drives the gain.
  • Paired attention beats generic conditioning: Ablations show that simply adding spatial features to the U-Net, or averaging the attention biases across all conditions, underperforms SPIRE's paired log-mask bias. Keeping each semantic condition tied to its own granularity-specific map matters.
  • Biggest gains on hard cases: Decomposing performance by difficulty reveals that most of SPIRE's improvements over baselines come from "low" and "middle" quality prediction groups—meaning it shines brightest on challenging, ambiguous cases where other models struggle.

Key Results

Across the 4,647 test samples in PosMed:

  • Segmentation Quality (mDice / mIoU): SPIRE ranks first in 5 of 6 modalities, with notable leaps on Brain MRI (0.849 mDice vs. 0.804 for PixelLM) and Lung X-ray (0.984 vs. 0.974).
  • Positional Answer Accuracy (ACC): SPIRE ranks first in 5 of 6 modalities, outperforming the strongest baselines on Brain MRI (0.743 vs. 0.652) and Lung CT (0.505 vs. 0.433).
  • Mask–Text Consistency (PRScore): SPIRE achieves the highest consistency across all 6 modalities (tying PixelLM on Lung X-ray at 0.957), with the largest margin on Brain MRI (0.903 vs. 0.881).
Table 1: Segmentation performance on PosMed across six imaging modalities. We report mDice and mIoU on a 0–1 scale; higher values indicate better performance.

Limitations and Future Work

  • Modality-dependent gaps: While dominant overall, SPIRE trails BiomedParse on Polyp Endoscopy (0.802 vs. 0.824 mDice), which the authors note may be due to BiomedParse's heavier exposure to polyp-specific training data (~2,800 examples vs. 1,305 in PosMed). SPIRE also trails LISA-7B on Breast Ultrasound positional accuracy (0.566 vs. 0.655).
  • Evaluation caveat: Because the original Text2Centroid checkpoint used in PRScore was unavailable, the authors had to reimplement it for all evaluated methods.

The paper does not explicitly outline specific future work directions beyond these findings.

Summary updated

BibTeX
@misc{zhang2026spire,
  author = {Xinting Zhang and Jiayuan Xie and Yangyang Xu and Jun Yu},
  title = {{SPIRE: Spatially-grounded Progressive Injection with Reciprocal Exchange for Medical Reasoning Segmentation}},
  year = {2026},
  eprint = {2612.01507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01507},
}
Figure