UniMed-CLIP
A CLIP-style image and text encoder pair trained on medical image-text pairs from six imaging modalities.
Medical imaging · 767 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 195.9M
- Operations
- 767
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2024
- Cited by
- 76 (as of 15 November 2026)
- Authors
- Muhammad Uzair Khattak, Shahina Kunhimon, Muzammal Naseer and others
- License
- CC-BY-NC-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21198
- Graph hash
- 101e407d05c4e7ecd743cfe99d1ed24346cd966ea2f99b0c5bac64d7c8349128
- Skeleton hash
- 5379004f9bfd4d088cbbdbb7178f960f119e176998880d889e6d7b306cb79af5
- Architecture hash
- a7960486dba2e4bdf215d1d97b4b63ca1bd15a63497487569f34187c8cc07274
- Diagram SHA-256
- af8ba55f80514a7db68d6d7ed76c487d76bf5ec18aff74b9c9c2066b1d9021f9
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
UniMed-CLIP is a vision-language model for medical images, a single model covering six imaging modalities: X-ray, CT, MRI, Ultrasound, Pathology and Fundus. The paper starts from the observation that contrastive vision-language models have seen limited use in medicine because openly accessible, large-scale medical image-text datasets are scarce.
The architecture closely follows CLIP. It has separate image and text encoders, trained with a contrastive loss that raises the cosine similarity of embeddings from aligned image-text pairs and lowers it for unaligned pairs. For pretraining, the vision encoder is initialized from a MetaCLIP ViT-B/16 model and the text encoder from BioMed-BERT.
Most of the paper's work is in the training data: UniMed, an open-source dataset of over 5.3 million image-text pairs. Part of it comes from using large language models to turn classification datasets into image-text form. An image from such a dataset has several generated captions, and one is selected at random during training. The paper reports that UniMed-CLIP improves over BiomedCLIP by an absolute +12.61 in zero-shot evaluation, averaged over 21 datasets, while using 3x less training data.
Key idea. The paper builds UniMed, an open-source set of over 5.3 million medical image-text pairs across six modalities, and trains the CLIP-style UniMed-CLIP on it.
- UniMed-CLIP
- UniMed
- medical CLIP
- medical vision-language model
- medical VLM
- zero-shot medical image classification
- contrastive image-text pretraining
- medical image-text pairs
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{khattak2024unimedclipunifiedimagetextpretraining,
title={UniMed-CLIP: Towards a Unified Image-Text Pretraining Paradigm for Diverse Medical Imaging Modalities},
author={Muhammad Uzair Khattak and Shahina Kunhimon and Muzammal Naseer and Salman Khan and Fahad Shahbaz Khan},
year={2024},
eprint={2412.10372},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2412.10372},
}