Aller au contenu
ModelPrésentéExterne
Browse files

CheX Phi35V

CheX-Phi3.5V is a vision–language model (VLM) that answers clinical questions about chest radiographs and generates structured findings reports. Built on Phi-3.5 Vision-Instruct (7 B), it introduces Direct Preference...

TypeOtherModèle de basemicrosoft/Phi-3.5-vision-instructVersionModel 00001 of 00002CClasse

Source du modèle

Type
Other
Taille du fichier
3,12–4,79 GB
Modèle de base
microsoft/Phi-3.5-vision-instruct
Version
vModel 00001 of 00002
Mis à jour
23 oct. 2026
Source
Hugging Face

Description de la source

CheX-Phi3.5V — Preference-Optimised Vision-Language Model for Chest X-ray Interpretation

CheX-Phi3.5V is a vision–language model (VLM) that answers clinical questions about chest radiographs and generates structured findings reports.
Built on Phi-3.5 Vision-Instruct (7 B), it introduces Direct Preference Optimization (DPO) and contrastive rejection to achieve fine-grained medical reasoning while suppressing hallucinations.


Key Features

AspectDescription
ModalitySingle-image chest radiography (frontal & lateral)
TasksVisual Question Answering (VQA) & Findings generation
BackbonePhi-3.5 Vision 7 B with an enhanced visual projection layer
Optimisation2-stage SFT → DPO + contrastive rejection learning
LicenseApache 2.0 — free for research and commercial use

Quick Start

from transformers import AutoModelForVision2Seq, AutoProcessor

model_id  = "CheX-Phi-3.5-vision-instruct-DPO"
model     = AutoModelForVision2Seq.from_pretrained(model_id)
processor = AutoProcessor.from_pretrained(model_id)

inputs = processor(remove4a
    images="example_frontal.jpg",
    text="Question: What abnormalities are present?\nAnswer:",
    return_tensors="pt"
).to(model.device)

generated = model.generate(**inputs, max_new_tokens=128)
print(processor.decode(generated[0], skip_special_tokens=True))

Dependencies pip install transformers>=4.41.0 timm accelerate For batch inference or a Streamlit demo, see the scripts in the GitHub repo.


Available Checkpoints

HF RepoStageRecommended Use
CheX-Phi3.5-vision-instruct-DPODPOProduction / evaluation
CheX-Phi3.5-vision-instruct-SFTSFT (phase 2)Further preference tuning
Phi-3.5-vision-instructBaseCustom fine-tuning

Training Data & Procedure

StageData & SizeObjective
SFT120 k QA triplets (MIMIC-EXT VQA)Supervised instruction tuning
DPO30 k preference-paired QADirect Preference Optimization
Contrastive250 k unlabelled MIMIC-CXR imagesRejection learning to curb hallucinations

Hardware : 8 × A100 80 GB • FP16 • DeepSpeed ZeRO-3 Total steps ≈ 2.2 M.


Evaluation

DatasetSplitMetricScore
MIMIC-CXR VQAtestAccuracy0.894
OpenI CXR-QAtestBLEU-479.4
Radiologist Turing Test200 casesPass rate61 %

Evaluation scripts are provided in stage3_evaluate_mimic_ext_vqa.sh.


Ethical & Safety Considerations

  • Clinical usage — Outputs are assistive only; a certified radiologist must confirm findings.
  • Bias — Training data skewed towards North-American adult populations; paediatric or non-western cohorts may underperform.
  • Privacy — MIMIC-CXR is fully de-identified; the model does not memorise PHI.
  • Hallucinations — Contrastive rejection reduces but does not eliminate false positives; use confidence thresholds.

Known Limitations

  1. No generalisation to CT, MRI, or ultrasound modalities.
  2. Sensitive to extreme noise & portable AP projections.
  3. Knowledge cutoff = Mar 2023; newly described conditions may be missed.

Resources


Citation

@misc{liu2025chexphi35v,
  title        = {CheX-Phi3.5V: Preference-Optimised Vision-Language Model for Chest X-ray Interpretation},
  author       = {Liu, Xiao and Others},
  year         = {2025},
  howpublished = {\url{https://huggingface.co/HaiZhiYan/CheX-Phi35V/tree/main/CheX-Phi-3.5-vision-instruct-DPO}}
}

If you use CheX-Phi3.5V, please cite us and consider sharing your downstream results!

Sources

1 source
Hugging FacePrincipalVersion fc6ff2f91c9ed4a6ec9b81d9315a10352a6d7ad4
huggingface.co/HaiZhiYan/CheX-Phi35V/tree/fc6ff2f91c9ed4a6ec9b81d9315a10352a6d7ad4

Vérifié 23 oct.

Download files

Artefacts du modèle

6 artefacts

CheX-Phi-3.5-vision-instruct-DPO/model-00001-of-00002.safetensors

safetensors · 4,60 GB · SHA-256 80db74d8eaf9…f760 · Hugging Face

Download shard

CheX-Phi-3.5-vision-instruct-DPO/model-00002-of-00002.safetensors

safetensors · 3,12 GB · SHA-256 fc4f33d6f9a3…7388 · Hugging Face

Download shard

CheX-Phi-3.5-vision-instruct-SFT/model-00001-of-00002.safetensors

safetensors · 4,79 GB · SHA-256 f33a14294d26…26e6 · Hugging Face

Download shard

CheX-Phi-3.5-vision-instruct-SFT/model-00002-of-00002.safetensors

safetensors · 3,12 GB · SHA-256 8e245f03da83…5494 · Hugging Face

Download shard

Phi-3.5-vision-instruct/model-00001-of-00002.safetensors

safetensors · 4,60 GB · SHA-256 be7bdee60147…aab8 · Hugging Face

Download shard

Phi-3.5-vision-instruct/model-00002-of-00002.safetensors

safetensors · 3,12 GB · SHA-256 94621eca6936…caed · Hugging Face

Download shard

Extraits de sources

2 extraits

--- license: apache-2.0 base_model: - microsoft/Phi-3.5-vision-instruct tags: - medical-vision-language-model - chest-xray - preference-optimization metrics: - accuracy - f1 language: - en pipeline_tag: visual-question-answering library_name: transformers --- # CheX-Phi3.5V — Preference-Optimised Vision-Language Model for Chest X-ray Interpretation **CheX-Phi3.5V** is a vision–language model (VLM) that answers clinical questions about chest radiographs and generates structured findings reports. Built on **Phi-3.5 Vision-Instruct (7 B)**, it introduces **Direct Preference Optimization (DPO)** and **contrastive rejection** to achieve fine-grained medical reasoning while suppressing hallucinations. --- ## Key Features | Aspect | Description | |-----------------|------------------------------------------------------------------------------------------------| | **Modality** | Single-image chest radiography (frontal & lateral) | | **Tasks** | Visual Question Answering (VQA) & Findings generation | | **Backbone** | Phi-3.5 Vision 7 B with an enhanced visual projection layer | | **Optimisation**| 2-stage SFT → DPO + contrastive rejection learning | | **License** | Apache 2.0 — free for research **and** commercial use | --- ## Quick Start ```python from transformers import AutoModelForVision2Seq, AutoProcessor model_id = "CheX-Phi-3.5-vision-instruct-DPO" model = AutoModelForVision2Seq.from_pretrained(model_id) processor = AutoProcessor.from_pretrained(model_id) inputs = processor(remove4a images="example_frontal.jpg", text="Question: What abnormalities are present?\nAnswer:", return_tensors="pt" ).to(model.device) generated = model.generate(**inputs, max_new_tokens=128) print(processor.decode(generated[0], skip_special_tokens=True)) ```` > **Dependencies** `pip install transformers>=4.41.0 timm accelerate` > For batch inference or a Streamlit demo, see the scripts in the [GitHub repo](https://huggingface.co/HaiZhiYan/CheX-Phi35V). --- ## Available Checkpoints | HF Repo | Stage | Recommended Use | | ------------------------------------------------------------ | ------------- | ------------------------- | | [`CheX-Phi3.5-vision-instruct-DPO`](https://huggingface.co/HaiZhiYan/CheX-Phi35V/tree/main/CheX-Phi-3.5-vision-instruct-DPO) | **DPO** | Production / evaluation | | [`CheX-Phi3.5-vision-instruct-SFT`](https://huggingface.co/HaiZhiYan/CheX-Phi35...

Source context: 0 downloads · 2 likes · Pipeline visual-question-answering · Library transformers · Repo HaiZhiYan/CheX-Phi35V