/ Модель

Характеристики

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-4B
Библиотека
transformers
Опубликована
9 ноя 2026

MedChain-R1-4B

Изображение и текст → текст3 профессии

Мультимодальная медицинская модель на базе Qwen3.5-4B, которая рассуждает по последовательности снимков и локализует нужную область ограничивающей рамкой.

162скачиваний за 30 дней0лайковвеса обновлены11 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

MedChain-R1-4B — мультимодальная модель на 4 млрд параметров для последовательной локализации медицинских объектов на изображениях. Её разработала команда MedChain на основе Qwen3.5-4B: модель дообучена с надзором за клиническими рассуждениями и дополнительно оптимизирована методом GRPO с наградой за IoU и соблюдение формата ответа.

На вход модель получает короткую последовательность медицинских изображений и клинический вопрос. Она формирует обоснование с учётом изображений, затем выдаёт одну ограничивающую рамку в пиксельных координатах. Предназначена для задач поиска различий между исследованиями, сопоставления изображений, отслеживания объектов и других видов медицинской визуальной локализации. В репозитории используется формат safetensors и библиотека Transformers; базовая модель — Qwen3.5-4B.

В MedSG-Bench для этого чекпойнта сообщается mIoU 75,97 и Acc@0.5 83,67 на 9 630 вопросах; результаты зависят от типа задачи. Модель предназначена для исследовательского использования: она не проверена для автономной диагностики или клинического внедрения, а её объяснения могут быть постфактум обусловлены размеченной рамкой. Лицензия — Apache-2.0.

Сценарии применения

  • поиск нового узла на серии снимков до и после лечения
  • локализация различий между последовательными медицинскими изображениями
  • отслеживание анатомического объекта на нескольких снимках
  • поиск области на медицинском изображении по клиническому вопросу

Ограничения

Модель не валидирована для автономной диагностики и клинического применения; оценка ограничена MedSG-Bench. Обоснования могут быть постфактум обусловлены известной размеченной рамкой и не обязательно отражают внутренний ход вычислений модели.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MedChain-R1-4B: Think Before You Locate: Clinical Chain-of-Thought Supervision for Sequential Medical Image Grounding

Paper Code Dataset Model Model License

Figure 1 of the paper: Sequential medical grounding with reasoning supervision. (a) The eight MedSG-Bench tasks, grouped into image difference grounding (IDG) and image consistency grounding (ICG). (b) A registered-difference example: zero-shot Qwen3.5 and MedSeq-Grounder return imprecise boxes, whereas MedChain-R1 first identifies the new nodule and then localizes it. (c) MedSG-Bench mIoU and Acc@0.5 of MedSeq-Grounder (7B) and MedChain-R1 at 4B and 9B (dCoT-SFT and dCoT-SFT+GRPO) and 27B (dCoT-SFT).

MedChain-R1-4B is a 4B vision-language model for sequential medical image grounding: given a short sequence of medical images and a clinical question, it first writes an image-grounded rationale in <think>…</think> and then returns one bounding box <answer>(x1,y1),(x2,y2)</answer> in pixel coordinates. It is built on Qwen3.5-4B with deliberative chain-of-thought supervision (dCoT-SFT) on the MedChain rationale corpus, followed by GRPO with an IoU + format reward.

MedChain contains 182,573 filtered rationales over the 8 MedSG-Bench tasks and 10 imaging modalities. A medical VLM (FlemingVL-38B) drafts a caption-like rationale; a multimodal refiner (Qwen3.5-397B-A17B) then re-examines the images, question and annotated box and writes a box-conditioned explanation with explicit cross-image reasoning.


🔑 Key findings (from the paper)

  1. Reasoning supervision sets a new SOTA. dCoT-SFT outperforms MedSeq-Grounder at every scale, reaching 74.96, 76.60 and 77.24 mIoU at 4B, 9B and 27B; the 27B model improves over the strongest prior model by 4.69 mIoU and 5.49 Acc@0.5.
  2. The gains depend on the task. Against an answer-only 4B model, dCoT-SFT improves mIoU by 3.56 (95% CI 3.13–4.00): +14.7–16.1 on difference grounding and +6.5 on object tracking, but −2.2 to −3.2 on multi-view, patch and referring.
  3. Predictions depend on the reasoning context. Forcing an immediate answer lowers mIoU by 2.9; conditioning on a rationale from another task lowers it by 12.2.
  4. GRPO adds little after dCoT-SFT. +0.37 mIoU on the benchmark (4B), with task-dependent effects.

🏆 Benchmark Performance

MedSG-Bench (Table 1 of the paper)

Each cell is mIoU / Acc@0.5 in percent on all 9,630 test questions. IDG: registered (RDG) and non-registered (NRDG) difference grounding. ICG: multi-view (MV), object tracking (OT), concept (VCG), patch (VPG), cross-modal (CMG) and referring (RG) grounding. Bold: our results that exceed MedSeq-Grounder, the strongest prior model, on the same metric.

GroupModelSizeRDGNRDGMVOTVCGVPGCMGRGAvg.
GeneralQwen2.5-VL72B4.37 / 2.603.46 / 0.807.22 / 2.7813.11 / 7.7010.33 / 3.5026.45 / 6.3016.32 / 7.0020.19 / 14.1013.35 / 6.12
GeneralInternVL378B0.20 / 0.000.53 / 0.006.35 / 2.4313.03 / 8.003.57 / 0.9011.81 / 2.503.34 / 0.8512.76 / 8.106.44 / 2.90
GeneralLLaVA-OneVision72B2.58 / 0.802.87 / 0.9011.74 / 1.399.61 / 2.3010.95 / 3.3032.38 / 20.3016.24 / 5.4015.43 / 6.6813.21 / 5.18
GeneralMigician7B15.26 / 7.8014.49 / 6.1018.16 / 7.8421.38 / 14.9014.23 / 7.2028.87 / 13.7021.41 / 12.1525.30 / 18.0220.29 / 11.39
GeneralQwen3.5 (zero-shot)27B0.00 / 0.000.00 / 0.008.48 / 4.8828.39 / 24.500.25 / 0.002.50 / 0.200.25 / 0.000.82 / 0.004.42 / 3.15
MedicalHuatuoGPT-Vision34B1.44 / 0.002.15 / 0.009.41 / 1.6513.25 / 8.306.43 / 0.7014.53 / 1.4010.60 / 2.608.60 / 1.758.57 / 2.09
MedicalMedGemma27B0.01 / 0.000.06 / 0.005.29 / 2.2622.26 / 16.102.27 / 0.003.11 / 0.302.92 / 0.355.35 / 0.614.94 / 2.14
MedicalMedGRPO-7B-RL7B0.09 / 0.000.06 / 0.003.68 / 1.4817.63 / 15.004.57 / 0.4018.44 / 1.200.78 / 0.159.31 / 3.376.27 / 2.45
MedicalMedSeq-Grounder7B83.29 / 93.2083.72 / 94.1055.03 / 60.1962.10 / 67.2074.11 / 82.6085.25 / 98.8078.77 / 82.7560.43 / 65.5972.55 / 79.71
OursMedChain-R1 (dCoT-SFT)4B82.86 / 93.3081.30 / 91.2054.01 / 58.9764.77 / 71.0070.64 / 78.8090.21 / 99.7083.39 / 87.0069.67 / 79.2874.96 / 82.37
OursMedChain-R1 (+GRPO)4B83.82 / 94.5083.21 / 92.7054.80 / 59.9367.90 / 76.2066.09 / 72.1089.43 / 99.8083.59 / 87.5570.72 / 80.3075.32 / 82.89
OursMedChain-R1 (dCoT-SFT)9B84.00 / 93.1083.02 / 91.6055.87 / 60.9867.46 / 75.0074.64 / 83.2091.22 / 99.9084.16 / 87.4070.77 / 78.9576.60 / 83.55
OursMedChain-R1 (+GRPO)9B84.16 / 93.2083.12 / 91.4056.98 / 62.0267.65 / 74.9074.80 / 82.8091.22 / 99.8084.82 / 88.2570.53 / 79.2276.90 / 83.82
OursMedChain-R1 (dCoT-SFT)27B81.87 / 93.0080.97 / 91.6060.14 / 66.7269.53 / 78.3074.64 / 83.3091.87 / 99.9084.24 / 88.1572.51 / 81.9877.24 / 85.20

Baselines are evaluated zero-shot with one unified prompt (MedSeq-Grounder is the supervised SOTA). Full results for all baselines are in Table 10 of the paper. Benchmarked on AMD MI210 GPUs.

This checkpoint

The paper's 4B GRPO row (75.32 / 82.89) comes from a different GRPO checkpoint. This repository holds: dCoT-SFT checkpoint-2000 → GRPO (IoU + format reward) on the held-out RL30K pool, one pass, step 2500, seed 42. Evaluated on the same 9,630 questions with greedy decoding, bf16 and 1,200 new tokens, at batch size 1, it scores:

RDGNRDGMVOTVCGVPGCMGRGmIoU / Acc@0.5
83.5281.9756.6366.7271.8290.3484.0370.2575.97 / 83.67

Per-task cells are mIoU. The per-example predictions are in the code repository.


🚀 Quick Start

Installation

pip install "transformers==5.2.0" torch qwen-vl-utils==0.0.14

Basic Usage

import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
from qwen_vl_utils import process_vision_info

repo = "adidukrembzuai/MedChain-R1-4B"
model = AutoModelForImageTextToText.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto").eval()
processor = AutoProcessor.from_pretrained(repo)

question = "Compare these two images carefully and give me the coordinates of their difference."
messages = [{
    "role": "user",
    "content": [
        {"type": "image", "image": "scan_1.png"},
        {"type": "image", "image": "scan_2.png"},
        {"type": "text", "text": question + "\nFirst output the thinking process in <think> </think> tags "
                                  "and then output the bounding box in <answer>(x1,y1),(x2,y2)</answer> tags."},
    ],
}]

text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(text=[text], images=image_inputs, videos=video_inputs, return_tensors="pt").to(model.device)

with torch.inference_mode():
    out = model.generate(**inputs, max_new_tokens=1200, do_sample=False)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
# <think> ... </think><answer>(x1,y1),(x2,y2)</answer>

Notes

  • Append the instruction above to every question; it is the prompt the model was trained and evaluated with.
  • Generate one example at a time: batched generation produced degenerate outputs for some checkpoints.
  • Use the processor bundled in this repository (the dCoT-SFT processor). The paper (Section 5.3) shows that an exported processor with a lower image-resolution limit costs 3–5 points.
  • eval/eval_bench.py in the code repository is the exact evaluation script.

📦 Model Family

ModelBaseThis checkpoint, MedSG-Bench mIoU / Acc@0.5Best for
MedChain-R1-9BQwen3.5-9B77.54 / 84.87highest accuracy — recommended
MedChain-R1-4BQwen3.5-4B75.97 / 83.67resource-constrained environments

⚠️ Limitations

Research artefact, not validated for autonomous diagnosis or clinical deployment. The MedChain rationales are conditioned on the annotated box, so they explain a known answer and may be post-hoc; they should not be read as a faithful record of the model's internal computation. The rationales can inherit errors and biases from their teacher models and were reviewed in a single-expert audit of 2,000 examples (98.25% accepted). Evaluation is limited to MedSG-Bench.


📄 Citation

If you use MedChain-R1 in your research, please cite our paper:

@article{dukre2026think,
  title   = {Think Before You Locate: Clinical Chain-of-Thought Supervision for Sequential Medical Image Grounding},
  author  = {Dukre, Adinath Madhavrao and Kolli, Govinda and Lu, Yifan and Zou, Ziyun and Wasi, Azmine Toushik and
             Atito, Sara and Bozorgtabar, Behzad and Mahapatra, Dwarikanath and Awais, Muhammad and Razzak, Imran},
  journal = {arXiv preprint arXiv:2611.00041},
  year    = {2026}
}

📜 License

Released under the Apache License 2.0. Built on Qwen3.5 (Apache-2.0). Trained on annotations derived from MedSG-Bench / MedSG-188K (CC BY 4.0), released as MedChain-R1-data. The medical images are not included and keep their original licences.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
5631859

0 моделей