TL;DR
3D medical image segmentation models are often massive—demanding huge compute—and usually stop at outputting a colored mask, leaving clinicians to manually measure volumes or risk letting an LLM hallucinate numbers in a report. HSM-UNet tackles both problems at once: it packs a topology-aware 3D segmentation backbone into just 0.287M parameters (27.0 GFLOPs) and pairs it with a deterministic "mask-to-metadata" layer so an LLM can write structured radiology reports without inventing a single measurement.
What Problem Does This Paper Address?
To segment 3D MRI or CT scans, modern architectures like Transformers or state-space models (e.g., Mamba) need to model long-range context. Transformers do this with heavy self-attention, while state-space models scale linearly by flattening 3D volumes into 1D sequences. The catch? Naive row-by-row (raster) flattening tears apart neighboring voxels across row and slice boundaries, scrambling 3D anatomy.
At the same time, clinical workflows need more than a segmentation mask—they need quantitative measurements (like tumor volume or ejection fraction) written up in a report. When standard LLMs try to generate reports directly from images or masks, they frequently hallucinate numbers or add unsupported clinical claims.
Methods
The authors propose an end-to-end segmentation-to-report pipeline with two main parts:
- HSM-UNet (The Segmentation Backbone): Built on a lightweight depthwise-separable 3D U-Net (encoder widths 16–32–64, 128-channel bottleneck), the key innovation is the HSM block inserted right before the bottleneck:
- Hilbert Serialization: Instead of raster scanning, voxels are ordered along a 3D Hilbert space-filling curve, keeping spatially adjacent voxels close together in the 1D sequence.
- Sinkhorn Soft Alignment: The sequence is split into windows of 16 tokens. A small MLP predicts local alignment logits, and 5 iterations of Sinkhorn row/column log-normalization softly align feature transitions within each window before sequence modeling (with an adjoint back-projection afterward).
- Mamba-2 Sequence Modeling: A selective state-space model processes the aligned sequence in linear time.
- Segmentation-Grounded Report Synthesis: Rather than asking an LLM to eyeball a mask, the system deterministically computes modality-specific measurements (volumes, ratios, bounding-box extents, Hounsfield units, etc.) directly from the mask and native image metadata. A constrained LLM (tested with Llama3-70B and MedGemma-27B) is then prompted to verbalize only those supplied fields in a fixed section order, marking anything unavailable as "not assessed."
Datasets
The authors evaluate the same HSM-UNet topology (under task-specific interfaces and training) across three medical imaging domains:
- BraTS 2023 (Brain MRI): Adult Glioma (BraTS-GLI, 1,251 cases), Meningioma (BraTS-MEN), and Pediatric Tumor (BraTS-PED).
- ACDC (Cardiac MRI): 100 training patients with right ventricle (RV), myocardium (MYO), and left ventricle (LV) labels.
- AMOS22 (Abdominal CT): 360 labeled cases (240 train, 120 validation) covering 15 abdominal organs.
No new datasets are introduced; instead, the authors use these established benchmarks to test cross-task segmentation and report grounding.
Key Insights and Ideas
- Topology matters before recurrence: Preserving 3D neighborhood structure via Hilbert curves and locally aligning transitions via Sinkhorn normalization lets a tiny 0.287M-parameter model compete with models over 200× its size.
- Every piece of H+S+M pulls its weight: In ablations on BraTS-GLI, adding Hilbert ordering, Sinkhorn alignment, and Mamba-2 together boosts Dice by +4.84 percentage points over the base U-Net (85.56% → 90.40%) and +2.15 points over the strongest two-module pair.
- Separating math from prose eliminates measurement hallucination: By computing all numbers deterministically before the LLM writes a word, the LLM's job is reduced to faithful verbalization—making every claim in the report traceable back to the mask.
Key Results
- Brain Tumor Segmentation (BraTS-GLI): HSM-UNet achieves 90.4% mean Dice and 4.28 mm HD95 using 0.287M parameters and 27.0 GFLOPs (on $1 \times 4 \times 128^3$ inputs). For comparison, SegMamba reaches 91.3% Dice but requires 67.4M parameters and 1467.2 GFLOPs.
- Cross-Task Generalization: The shared topology achieves 82.69% Dice on BraTS-MEN, 76.77% on BraTS-PED, 84.14% on ACDC, and 83.56% on AMOS22.
- Report Grounding: On ground-truth masks across BraTS-GLI, ACDC, and AMOS22, constrained LLM reports achieve 0.948–0.999 structured grounding, zero empty outputs, and low claim-level distortion (0.00–0.61) under an automated
gpt-oss:120bfactuality judge. When fed predicted masks, the pipeline transparently exposes how segmentation errors (especially in abdominal CT) propagate into report claims.
Limitations and Future Work
- Comparison caveats: Baseline Dice/HD95 numbers in the BraTS-GLI comparison are literature-derived rather than retrained on the exact same split, and results are single-run evaluations without multi-seed uncertainty.
- Not yet clinically validated: The factuality audits verify pipeline consistency rather than clinical correctness; prospective radiologist reader studies and broader external testing remain future work.
- Abdominal error propagation: Lower report-propagation scores on AMOS22 highlight sensitivity to domain shift and segmentation errors in complex multi-organ CT.
Summary updated