All models

MedKLIP

Radiology vision-language model aligning knowledge-based entity descriptions with image patches by Transformer fusion.

Medical imaging · 439 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

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

Parameters
14.5M
Operations
439
Framework
PyTorch
Recurrent
No
Published
ICCV 2023
Cited by
6 (as of 29 October 2026)
Authors
Chaoyi Wu, Xiaoman Zhang, Ya Zhang and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18368
Graph hash
b51d1ea5b04669aa094f620fa6ebf8dbb3e41ab4ac3554face6e9cef4ddb4951
Skeleton hash
e17932a887d9e018c8ade9ab721851cef2693834db441140538bcdd624768163
Architecture hash
7dfc8bba2830fbf3e00c193dd90ceb1c6f2cc26a01e54395751f41fdd739b894
Diagram SHA-256
3db4a432860c5d9477a3cbbc295c1d2acb0a4900942cd385465c6064f429c6e0
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

MedKLIP is a vision-language pre-training model for radiology that adds medical domain knowledge to learning from paired images and reports. Where earlier work matched raw reports with image scans, MedKLIP first condenses each report into triplets of entity, position and exist, using the RadGraph named entity recognition method.

Each entity word is translated into a detailed description by querying medical knowledge bases, and ClinicalBERT, a pre-trained text encoder, computes the embeddings. The image side is a ResNet-50 visual backbone, a choice the authors say they made for fair comparison with existing work. A fusion module of Transformer Decoder layers takes the entity embeddings as queries and the image features as keys and values, and two MLPs then infer each entity's existence and position. The paper's implementation keeps 75 entities in the query set and uses 4 Transformer Decoder layers with 4 heads.

The averaged cross-attention maps act as a heatmap for grounding at inference, although no loss is computed on them during training. The model is pre-trained on MIMIC-CXR, and the paper evaluates it in zero-shot and fine-tuning settings on benchmarks that include ChestX-ray14, RSNA Pneumonia and SIIM-ACR Pneumothorax. For an entity outside the query set, a brief description provided by the user is added as an extra query.

Key idea. MedKLIP reduces radiology reports to entity triplets, translates the entities into knowledge-base descriptions and aligns them with image patches through a Transformer-based fusion model.

  • MedKLIP
  • medical knowledge enhanced language-image pre-training
  • radiology
  • chest X-ray
  • vision-language pre-training
  • zero-shot classification
  • grounding
  • triplet extraction
  • entity queries

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wu2023medklipmedicalknowledgeenhanced,
      title={MedKLIP: Medical Knowledge Enhanced Language-Image Pre-Training in Radiology}, 
      author={Chaoyi Wu and Xiaoman Zhang and Ya Zhang and Yanfeng Wang and Weidi Xie},
      year={2023},
      eprint={2301.02228},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2301.02228}, 
}