NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MedKLIP: Medical Knowledge Enhanced Language-Image Pre-Training

Chaoyi Wu, Xiaoman Zhang, Ya Zhang, Yanfeng Wang, Weidi XiearXiv 2023 · DOI

Abstract

Vision-language pre-training (VLP) has seen significant success in general computer vision, yet its application to the medical domain remains challenging due to data scarcity, linguistic noise in radiology reports, and the requirement for fine-grained expert knowledge. We present MedKLIP (Medical Knowledge enhanced Language-Image Pre-training), a novel framework that addresses these hurdles by restructuring medical reports into standardized triplets and enriching disease entities with clinical descriptions from external knowledge bases. MedKLIP demonstrates superior performance in zero-shot classification and spatial grounding across multiple benchmarks, showing remarkable data efficiency and the ability to generalize to unseen pathologies.

Introduction

The success of models like CLIP in linking images and text relies on massive datasets of billions of pairs. In radiology, however, data is scarce, and reports are often filled with complex grammar and negations that obscure the underlying medical facts. Furthermore, distinguishing subtle pathologies requires domain expertise not always explicit in the raw text.

Existing medical VLP models often treat reports as generic text, failing to capture the precise relationships between diseases and their anatomical locations. MedKLIP shifts this paradigm by moving from global report-level matching to fine-grained entity-level querying.

Comparison between classical VLP training and the MedKLIP approach.

Methodology

MedKLIP introduces a structured approach to medical image-text alignment through three primary innovations:

1. Triplet Extraction

To eliminate linguistic noise and grammatical complexity, MedKLIP utilizes an off-the-shelf tool (RadGraph) to convert free-form radiology reports into structured triplets: {entity, position, existence}. For instance, a phrase like "Increased right lower lobe opacity" is simplified to {Opacity, Right lower lobe, True}. This focuses the supervision signal on objective medical entities rather than prose.

2. Knowledge-enhanced Encoding

A key innovation of MedKLIP is the injection of expert knowledge. Instead of embedding simple disease names, the model queries a knowledge base (e.g., Wikipedia or UMLS) for detailed clinical descriptions. These descriptions are encoded using ClinicalBERT, allowing the model to learn the underlying attributes of a disease—such as "fluid accumulation" for edema—rather than just a label. This enables the model to reason about diseases it may not have encountered directly during training.

3. Transformer-based Fusion

The architecture employs a Transformer decoder where entity embeddings serve as "queries" to probe image patches generated by a visual encoder. This mechanism naturally aligns specific medical concepts with their corresponding spatial regions in the X-ray, facilitating implicit grounding.

Detailed architecture of the MedKLIP pipeline, including pre-processing, encoding, and training flow.

Experimental Setup

The model was pre-trained on the MIMIC-CXR v2 dataset, which includes approximately 377,000 image-report pairs. Evaluation was conducted across several diverse public datasets:

  • ChestX-ray14: Multi-label classification.
  • RSNA Pneumonia & SIIM-ACR Pneumothorax: Classification and spatial grounding.
  • COVIDx CXR-2 & COVID Rural: Testing diagnosis of "unseen" diseases (COVID-19).
  • EdemaSeverity: Fine-grained disease grading.

Results and Discussion

MedKLIP consistently outperforms state-of-the-art models such as BioViL and CheXzero across various tasks.

Zero-Shot Performance and Generalization

On the SIIM-ACR dataset for Pneumothorax, MedKLIP achieved an AUC of 0.8924, significantly surpassing the previous best of 0.7079. Notably, the model successfully diagnosed COVID-19 cases despite the pre-training data predating the pandemic. This is attributed to the model's understanding of clinical symptoms and attributes via the knowledge-enhanced encoding.

Spatial Grounding and Data Efficiency

In localization tasks (the "Pointing Game"), MedKLIP showed marked improvements, particularly for difficult targets like Pneumothorax, where it improved the hit rate from 0.06 to 0.19. Furthermore, MedKLIP demonstrated exceptional data efficiency; when fine-tuned on just 1% of labeled data, it often matched the performance of competing models using 10% to 100% of the data.

Conclusion

MedKLIP demonstrates that for medical VLP, structured entity extraction and the integration of domain knowledge are more effective than processing raw, noisy text. While the model is currently limited to 2D images and dependent on the quality of external knowledge bases, it sets a new benchmark for interpretable and efficient medical AI. Future work will explore extending this triplet-based approach to 3D imaging modalities like CT and MRI.

Summary updated

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