Medical phrase grounding is crucial for identifying relevant regions in medical images based on phrase queries, facilitating accurate image analysis and diagnosis. However, current methods rely on manual extraction of key phrases from medical reports, reducing efficiency and increasing the workload for clinicians. Additionally, the lack of model confidence estimation limits clinical trust and usability. In this paper, we introduce a novel task—Medical Report Grounding (MRG)—which aims to directly identify diagnostic phrases and their corresponding grounding boxes from medical reports in an end-to-end manner. To address this challenge, we propose uMedGround, a reliable framework that leverages a multimodal large language model (LLM) to predict diagnostic phrases by embedding a unique token, BOX, into the vocabulary to enhance detection capabilities. The embedded token, together with the input medical image, is decoded by a vision encoder-decoder to generate the corresponding grounding box. Critically, uMedGround incorporates an uncertainty-aware prediction model, significantly improving the robustness and reliability of grounding predictions. Experimental results demonstrate that uMedGround outperforms state-of-the-art medical phrase grounding methods and fine-tuned large visual-language models, validating its effectiveness and reliability. This study represents a pioneering exploration of the MRG task, marking the first-ever endeavor in this domain. Additionally, we explore the potential of uMedGround in grounded medical visual question answering and class-based localization applications.
uMedGround unlocks the medical report grounding, which aims to directly identify diagnostic phrases and their corresponding grounding boxes from medical reports in an end-to-end manner:
pip install requirements.txt
If the paper goes to substantive review, we promise to disclose all the datasets.
./pretrained/readme.txtTo train LISA-7B or 13B, you need to follow the instruction to merge the LLaVA delta weights. Typically, we use the final weights LLaVA-Lightning-7B-v1-1 and LLaVA-13B-v1-1 merged from liuhaotian/LLaVA-Lightning-7B-delta-v1-1 and liuhaotian/LLaVA-13b-delta-v1-1, respectively. For Llama2, we can directly use the LLaVA full weights liuhaotian/llava-llama-2-13b-chat-lightning-preview.
Download SAM ViT-H pre-trained weights from the link.
Download SAM ViT-H pre-trained weights from the link.
In_data/readme.txt├── ./ln_data/reason_gro/MS_CXR
│ ├── files
│ │ ├── p10
│ │ └── xxx.png
│ │ ├── p11
│ │ └── xxx.png
│ │ ├── ...
│ ├── X-ray14
│ │ ├── resize_images
│ │ └── xxx.png
│ │ └── xxx.png
│ │ └── ....png
python train.pydeepspeed --master_port=24999 train.py \
--version="PATH_TO_LLaVA" \
--dataset_dir='./data' \
--vision_pretrained="PATH_TO_SAM" \
--dataset="vqa||reason_gro" \
--sample_rates="9,3,3,1" \
--exp_name="uMedGround-7b"
--mhp_box_head \# MedGround
--Umhp_box_head \# uMedGround
When training is finished, to get the full model weight:
cd ./runs/uMedGround-7b/ckpt_model && python zero_to_fp32.py . ../pytorch_model.bin
Merge the LoRA weights of pytorch_model.bin, save the resulting model into your desired path in the Hugging Face format:
CUDA_VISIBLE_DEVICES="" python merge_lora_weights_and_save_hf_model.py \
--version="PATH_TO_LLaVA" \
--weight="PATH_TO_pytorch_model.bin" \
--save_path="PATH_TO_SAVED_MODEL"
python test.py
If you find uMedGround helps your research, please cite our paper:
@article{zou2025uncertainty,
title={Uncertainty-aware medical diagnostic phrase identification and grounding},
author={Zou, Ke and Bai, Yang and Liu, Bo and Chen, Yidi and Chen, Zhihao and Zhou, Yang and Yuan, Xuedong and Wang, Meng and Shen, Xiaojing and Cao, Xiaochun and others},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2025},
publisher={IEEE}
}
139 commits
Python
100.0%
Medical phrase grounding is crucial for identifying relevant regions in medical images based on phrase queries, facilitating accurate image analysis and diagnosis. However, current methods rely on manual extraction of key phrases from medical reports, reducing efficiency and increasing the workload for clinicians. Additionally, the lack of model confidence estimation limits clinical trust and usability. In this paper, we introduce a novel task—Medical Report Grounding (MRG)—which aims to directly identify diagnostic phrases and their corresponding grounding boxes from medical reports in an end-to-end manner. To address this challenge, we propose uMedGround, a reliable framework that leverages a multimodal large language model (LLM) to predict diagnostic phrases by embedding a unique token, BOX, into the vocabulary to enhance detection capabilities. The embedded token, together with the input medical image, is decoded by a vision encoder-decoder to generate the corresponding grounding box. Critically, uMedGround incorporates an uncertainty-aware prediction model, significantly improving the robustness and reliability of grounding predictions. Experimental results demonstrate that uMedGround outperforms state-of-the-art medical phrase grounding methods and fine-tuned large visual-language models, validating its effectiveness and reliability. This study represents a pioneering exploration of the MRG task, marking the first-ever endeavor in this domain. Additionally, we explore the potential of uMedGround in grounded medical visual question answering and class-based localization applications.
uMedGround unlocks the medical report grounding, which aims to directly identify diagnostic phrases and their corresponding grounding boxes from medical reports in an end-to-end manner:
pip install requirements.txt
If the paper goes to substantive review, we promise to disclose all the datasets.
./pretrained/readme.txtTo train LISA-7B or 13B, you need to follow the instruction to merge the LLaVA delta weights. Typically, we use the final weights LLaVA-Lightning-7B-v1-1 and LLaVA-13B-v1-1 merged from liuhaotian/LLaVA-Lightning-7B-delta-v1-1 and liuhaotian/LLaVA-13b-delta-v1-1, respectively. For Llama2, we can directly use the LLaVA full weights liuhaotian/llava-llama-2-13b-chat-lightning-preview.
Download SAM ViT-H pre-trained weights from the link.
Download SAM ViT-H pre-trained weights from the link.
In_data/readme.txt├── ./ln_data/reason_gro/MS_CXR
│ ├── files
│ │ ├── p10
│ │ └── xxx.png
│ │ ├── p11
│ │ └── xxx.png
│ │ ├── ...
│ ├── X-ray14
│ │ ├── resize_images
│ │ └── xxx.png
│ │ └── xxx.png
│ │ └── ....png
python train.pydeepspeed --master_port=24999 train.py \
--version="PATH_TO_LLaVA" \
--dataset_dir='./data' \
--vision_pretrained="PATH_TO_SAM" \
--dataset="vqa||reason_gro" \
--sample_rates="9,3,3,1" \
--exp_name="uMedGround-7b"
--mhp_box_head \# MedGround
--Umhp_box_head \# uMedGround
When training is finished, to get the full model weight:
cd ./runs/uMedGround-7b/ckpt_model && python zero_to_fp32.py . ../pytorch_model.bin
Merge the LoRA weights of pytorch_model.bin, save the resulting model into your desired path in the Hugging Face format:
CUDA_VISIBLE_DEVICES="" python merge_lora_weights_and_save_hf_model.py \
--version="PATH_TO_LLaVA" \
--weight="PATH_TO_pytorch_model.bin" \
--save_path="PATH_TO_SAVED_MODEL"
python test.py
If you find uMedGround helps your research, please cite our paper:
@article{zou2025uncertainty,
title={Uncertainty-aware medical diagnostic phrase identification and grounding},
author={Zou, Ke and Bai, Yang and Liu, Bo and Chen, Yidi and Chen, Zhihao and Zhou, Yang and Yuan, Xuedong and Wang, Meng and Shen, Xiaojing and Cao, Xiaochun and others},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2025},
publisher={IEEE}
}
139 commits
Python
100.0%