---
license: cc-by-nc-sa-4.0
base_model: Qwen/Qwen3.5-4B
library_name: peft
pipeline_tag: image-text-to-text
tags: [medical, vision-language, agent, hallucination, research-only, arxiv:2611.13006]
---
# MedScope-4B
MedScope-4B (v4), the pre-registered model: counterfactual SFT (LaMa and tissue-transplant erasures, matched edits elsewhere, lesion insertions, degradations, paraphrased questions, window and zoom tools), rejection-sampling fine-tuning and general medical VQA replay.
**Paper:** [Measuring and Attributing Evidence Sensitivity in Medical Vision-Language Models via Symmetric Counterfactual Controls](https://arxiv.org/abs/2611.13006) (arXiv:2611.13006). **Code, pre-registrations and notebooks:** https://github.com/bhaskargurram-ai/medscope
> **Research use only.** Not a medical device. Do not use for diagnosis or treatment.
MedScope is a 4B multimodal medical agent trained to report a finding only when the image shows it. It was trained
on counterfactual views built automatically from public segmentation datasets: the lesion erased by inpainting, a
matched edit of the same shape elsewhere, degraded copies, and unedited lesion-free images. No human annotation was used.
## Results (MedScope-Bench, 507 internal test cases / 169 external cases)
| Metric | Internal test | External centres |
| --- | --- | --- |
| Correct on real lesions (CCR) | 0.849 | 0.727 |
| Evidence sensitivity gap (ESG) | 0.758 | 0.597 |
| Claims an erased lesion | 9.6% | 11.8% |
| Claims a finding on a healthy image | 7.6% | 4.0% |
| Grounded accuracy (IoU >= 0.3) | 0.785 | 0.655 |
| Asks to clarify on degraded input | 100.0% | 93.3% |
| Net utility | 0.732 | 0.530 |
Nine frontier models (OpenAI, Anthropic, Google) evaluated through the same agent loop claim an erased lesion in 41-62%
of cases on the internal test. Full tables, code and notebooks: https://github.com/bhaskargurram-ai/medscope
## Usage
This repository holds a LoRA adapter for `Qwen/Qwen3.5-4B` (vision encoder frozen during training).
```python
import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoProcessor
base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.5-4B", dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base, "bhaskar-ai/MedScope-4B")
processor = AutoProcessor.from_pretrained("Qwen/Qwen3.5-4B")
```
Use the system prompt in `system_prompt.txt`. Each turn the model writes one tagged action:
`{"name": "zoom", "box": [x1, y1, x2, y2]}`, `{"name": "window", "center": c, "width": w}` or
`{"action": "answer" | "clarify" | "refer", ...}`, with boxes in 0-1000 coordinates of the original image.
The agent loop (tools, parsing, scoring) is in the GitHub repository (`medscope/agent/episode.py`).
## Limitations
Evaluated on public datasets with their labels as the reference standard. Blinded physician readers supported the
automated erasures in colonoscopy but still called a finding on many erased images from other sources, so erased-lesion
results outside colonoscopy are bounded rather than certified (see the paper). Weakest on very small lesions, diffuse
findings (e.g. COVID-19 opacities), chest X-ray and SLAKE CT/MRI; the main model misses pneumothorax (fixed in part by
MedScope-4B-v4.2). 2D images only. Licence: the adapters were trained on public datasets that include non-commercial
share-alike terms, so they are released for non-commercial research under CC BY-NC-SA 4.0; the base model keeps its
own licence.
## Citation
```bibtex
@misc{gurram2026medscope,
title = {Measuring and Attributing Evidence Sensitivity in Medical Vision-Language Models via Symmetric Counterfactual Controls},
author = {Gurram, Bhaskar},
year = {2026},
eprint = {2611.13006},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2611.13006}
}
```