This repository provides the official implementation of our paper:
SEER: Skill-Evolving Grounded Reasoning for Free-Text Promptable 3D Medical Image Segmentation
SEER is a vision-language reasoning model designed for robust free-text promptable 3D medical image segmentation. It grounds clinical language in image evidence, evolves reusable reasoning skills, and produces an executable target specification for a downstream segmentation backbone. Compared with state-of-the-art baselines, SEER reduces performance variance by 81.94% and improves the worst-case Dice score by 18.60% under linguistic perturbations.
We are currently organizing the codebase to ensure a clean and reproducible open-source release. Further updates will be added here.
- [Coming Soon] Release the training scripts.
- [2026-06] Release SEER checkpoint v1.1, checkpoint v1.0, and the corresponding SEER-Trace evaluation split.
- [2026-06] Release dataset preparation guidelines and inference code.
- [2026-05] Paper is early accepted by MICCAI 2026.
We recommend using Conda with Python 3.10.
conda create -n seer python=3.10
conda activate seerInstall PyTorch 2.8.0 with CUDA 12.6:
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu126Install FlashAttention using the prebuilt wheel that matches the environment above.
Direct installation with pip install flash-attn==2.8.3 may trigger a local build from source, which can fail due to CUDA, compiler, or build-toolchain mismatches. Therefore, we recommend downloading the matching wheel from the official FlashAttention v2.8.3 release page and installing it locally:
pip install flash_attn-2.8.3+cu12torch2.8cxx11abiFALSE-cp310-cp310-linux_x86_64.whlThen clone this repository and install the remaining dependencies:
git clone https://github.com/Ztrura/SEER.git
cd SEER
pip install -r requirements.txtVerify the environment:
cd test_scripts
python environment_test.pyEvaluation uses BrainMetShare and PENGWIN.
To preprocess the datasets, run:
cd scripts
python prepare_BMS.py --generate-png --force-existing
python prepare_PENGWIN.py --generate-png --force-existingDownload the SEER checkpoints from Hugging Face and place them in the expected checkpoint directory.
cd test_scripts
python infer_test.pycd infer/v1_1
chmod +x run_infer_v1_1.sh
./run_infer_v1_1.shNote that the released checkpoints provide the VLM reasoning weights only. To obtain final 3D segmentation masks, please integrate a compatible 3D segmentation backbone separately, such as VoxTell or MedSAM3.
Medical image models may produce plausible but incorrect explanations. Users should treat outputs as research results rather than clinical conclusions. Do not use this model to replace professional medical judgment.
If you find our work helpful for your research, please cite:
@InProceedings{zhang2026seer,
author = { Zhang, Tongrui and Wang, Chenhui and Li, Yongming and Chen, Zhihao and Zhan, Xufeng and Shan, Hongming},
title = { Skill-Evolving Grounded Reasoning for Free-Text Promptable 3D Medical Image Segmentation },
booktitle = { Medical Image Computingand Computer Assisted Intervention },
year = { 2026 }
}