Introduction: The Need for Medical Diagnosis Segmentation (MDS)
In clinical practice, a standalone segmentation mask—identifying "where" a lesion is—often lacks the necessary context for decision-making. Conversely, a text-based diagnosis without spatial grounding fails to pinpoint the exact pathological region. Sim4Seg addresses this by formalizing the Medical Diagnosis Segmentation (MDS) task, which mandates that models simultaneously segment pathological regions and provide explainable diagnostic reasoning.
Existing Large Vision-Language Models (LVLMs) frequently struggle to bridge the gap between abstract text embeddings and precise spatial coordinates. Sim4Seg introduces a novel framework to unify these capabilities across multiple medical imaging modalities.
Methodology
The Sim4Seg framework integrates a Large Vision-Language Model with the Segment Anything Model (SAM) through several key innovations:
Region-Aware Vision-Language Similarity (RVLS2M)
Standard models often project a single text embedding into a mask. Sim4Seg instead calculates the similarity between visual tokens and the specific "[SEG]" token embedding. This generates a 2D similarity map that acts as a high-quality spatial prompt for the SAM decoder, significantly improving grounding accuracy.
Automated Chain-of-Thought (CoT) Generation
To enable models to "think" like clinicians, the authors developed an automated pipeline to generate diagnostic reasoning. A medical LVLM (HuatuoGPT-Vision) serves as a "medical assistant" to draft reasoning, which is then refined by a "critical assistant" and validated by human experts.
Test-Time Scaling (TTS)
During inference, the model employs a multi-path strategy, generating $m$ diagnostic paths and $n$ candidate masks. By evaluating these candidates for consistency, the model effectively "thinks" multiple times to select the most reliable output.
The M3DS Dataset
To support this new task, the authors introduced the Multimodal Multi-disease Medical Diagnosis Segmentation (M3DS) dataset. It spans 10 sub-datasets across five modalities (X-Ray, Dermoscopy, Endoscopy, Ultrasound, and Fundus Photography). Each of the 12,000+ samples includes a ground-truth mask, a clinical query, a final diagnosis, and a step-by-step CoT explanation.
Key Results and Insights
Sim4Seg achieved state-of-the-art performance on the M3DS benchmark:
- Segmentation: Reached a 53.11 gIoU, nearly doubling the performance of the baseline LISA model (32.43 gIoU).
- Diagnosis Accuracy: Achieved 82.63% accuracy, significantly outperforming specialized medical LVLMs like LLaVA-Med (3.48%).
- Cross-Modality Robustness: The RVLS2M module demonstrated strong zero-shot capabilities, maintaining high performance even on modalities not seen during fine-tuning.
A critical finding was the "Inverted U" relationship between grid granularity and performance; a $16 \times 16$ resolution in the RVLS2M module provided the optimal balance between detail and noise suppression. Furthermore, the results suggest that training on CoT data improves segmentation quality, indicating that semantic understanding directly enhances spatial perception.
Conclusion and Future Work
Sim4Seg represents a significant step toward explainable AI in medicine by unifying segmentation and diagnosis. While the Test-Time Scaling strategy introduces computational overhead, the framework's ability to provide spatially grounded, reasoned diagnoses marks a major advancement. Future research will focus on optimizing inference efficiency and extending the MDS task to 3D modalities like CT and MRI.
Summary updated