Cancer3.AIAI in OncologyAI Models › BiomedCLIP
Foundation model Open weights Research use only multimodal

BiomedCLIP

CLIP-style vision-language model pretrained on PMC-15M — 15 million figure–caption pairs from biomedical papers — with a PubMedBERT text tower and a ViT-B image tower; supports zero-shot classification and retrieval across pathology, radiology and more.

249 031 downloads / month ♥ 424 updated 2025-01-14

At a glance

DeveloperMicrosoft Research
Released2023-03-02
LicenceMIT
AvailabilityOpen weights
KindFoundation model
Regulatory statusResearch use only
Parameters~196M

What it does

Embeds biomedical images and text into one space; strong general baseline when a domain-specific foundation model (e.g. CONCH for pathology) is unavailable or too restrictive to license.

Tasks, data types and cancers

Clinical settingBasic researchEducation
CancerPan-cancer
Input224×224 image / text ≤ 256 tokens
Output512-dim joint embedding

Architecture

FamilyCLIP (contrastive image–text)
BackboneViT-B/16 (224) + PubMedBERT (256 tokens)
Parameters~196M
Pre-trainingcontrastive on PMC-15M

Training data

PMC-15M: 15 million figure–caption pairs from 4.4 million PubMed Central open-access articles, spanning 30+ image types.

Training set size15M image–caption pairs

Linked datasets

Evaluation

Benchmark / datasetMetricValueExternal validationSource
zero-shot classification on PCam, RSNA, and other public sets accuracy above general CLIP and PubMedCLIP (paper) yes Source

How to run

import open_clip
model, preprocess = open_clip.create_model_from_pretrained('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224')
tokenizer = open_clip.get_tokenizer('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224')
# image_features = model.encode_image(preprocess(img).unsqueeze(0))
# text_features = model.encode_text(tokenizer(['adenocarcinoma histopathology']))
Libraryopen_clip

Regulatory status and intended use

Regulatory statusResearch use only
Intended useResearch.

Source →

Regulatory status is quoted from the source linked above and can change. Research-use-only models must not be used for clinical decisions.

Limitations and bias

  • Trained on published figures, not clinical images: resolution, cropping and annotations differ from real slides and scans.
  • Captions carry publication bias.

Sources

  1. Zhang S et al. BiomedCLIP: a multimodal biomedical foundation model pretrained from fifteen million scientific image-text pairs. NEJM AI 2025
  2. Hugging Face — microsoft/BiomedCLIP

This page is educational — it is not medical advice and does not replace consultation with an oncologist. Diagnostic and treatment decisions are made solely by specialist physicians.