Enhancing Chest X-ray Classification through Knowledge Injection in Cross-Modality Learning

Yang Yan, Bingqing Yue, Qiaxuan Li, Man Huang, Jingyu Chen, Zhenzhong Lan

TL;DR

This paper introduces a novel framework for injecting structured medical knowledge into large language models (LLMs) to improve the accuracy of chest X-ray (CXR) image classification. By generating captions with controllable levels of medical detail, they demonstrate that fine-grained knowledge injection significantly boosts performance, outperforming human-generated captions and models trained on general medical knowledge alone.

What Problem Does This Paper Address?

The paper tackles the challenge of improving cross-modality learning for medical imaging, specifically chest X-ray (CXR) classification. While pre-trained models have revolutionized many AI tasks, their effectiveness in medical imaging, where nuanced understanding is critical, remains an open question. A key bottleneck is the quality and specificity of the textual information used to train these models. Existing approaches often rely on human-generated captions, which may lack the detailed medical knowledge required for optimal performance. This leads to the central question: can explicitly injecting structured medical knowledge into the learning process significantly enhance the accuracy of CXR classification?

Methods

The core contribution is a Set Theory-based knowledge injection framework. This framework allows for the generation of CXR image captions with controllable "knowledge granularity." The process involves defining relationships between diseases and their associated phenotypes (both typical and excluded). This structured information is then used to create captions at three levels:

  • Coarse-grained: Only the disease label (e.g., "Pneumonia").
  • Medium-grained: Disease label + typical phenotypes (e.g., "Pneumonia with consolidation in the lower lobe").
  • Fine-grained: Disease label + typical phenotypes + explicit mention of excluded phenotypes (e.g., "Pneumonia with consolidation in the lower lobe. No evidence of pneumothorax or pleural effusion").

These generated captions are then used to fine-tune a pre-trained CLIP model. The fine-tuning process adapts the CLIP model to the specific task of CXR classification by minimizing a contrastive loss function, aiming to align image and text embeddings. The performance is evaluated using zero-shot classification, where the model predicts disease presence based on cosine similarity between image and text embeddings.

The paper also explores the impact of different LLMs for paraphrasing the structured knowledge into natural language captions and investigates the use of domain-specific LLMs.

Datasets

  • MIMIC-CXR [7, 8]: Used as the source for generating captions with injected medical knowledge. It contains a large number of CXR images with associated radiological reports.
  • CheXpert [9]: Used for evaluating the zero-shot classification performance of the fine-tuned models. This dataset contains CXR images with expert-labeled observations for 14 common chest radiographic findings.

Key Insights and Ideas

  • Human captions are insufficient: The study found that CLIP models fine-tuned on human-generated captions performed worse than models trained on general medical knowledge (PubmedCLIP) and significantly worse than models trained with fine-grained injected knowledge. This suggests human captions often lack the necessary detailed phenotypic information.
  • Knowledge granularity matters: There's a clear positive correlation between the density of injected medical knowledge and classification accuracy. Fine-grained captions, which include both typical and excluded phenotypes, yield the most substantial improvements.
  • Domain-specific LLMs offer an edge: LLMs trained on medical corpora (like BioMistral) generally outperform general-purpose LLMs when used for generating captions, especially for fine-grained knowledge injection. This highlights the value of specialized language models.
  • Direct vLLM captioning isn't always better: While vision-language models (vLLMs) are good at image captioning, directly using their generated captions for medical cross-modality learning didn't outperform the proposed knowledge injection framework. This suggests that vLLM captions might introduce biases or lack the specific medical structure needed.

Key Results

  • Significant accuracy boost: The proposed method, using fine-grained knowledge injection and fine-tuning CLIP, achieved an accuracy of 72.5% on the CheXpert dataset.
  • Comparison to baselines:
    • Vanilla CLIP (no specific medical training): 43.9%
    • CLIP fine-tuned on human captions: 49.9%
    • PubmedCLIP (general medical knowledge): 55.4%
    • CLIP fine-tuned on human captions + Radiologist Annotation: 49.9% (This seems to be a typo in the paper, likely intended to be a different baseline or result).
  • Impact of granularity:
    • Medium-grained captions improved accuracy by an average of 4.52% over coarse-grained.
  • Fine-grained captions improved accuracy by a substantial 12.36% over medium-grained.
  • Domain-specific LLMs: BioMistral with fine-grained knowledge injection showed a 7.77% improvement over its base model, Mistral.

Limitations and Future Work

  • LLM choice: While domain-specific LLMs showed promise, the paper notes that the choice of LLM can influence performance, and further exploration into optimal LLM selection is warranted.
  • Generalizability: The study focused on CXR classification. Future work could explore the generalizability of this knowledge injection framework to other medical imaging modalities and tasks.
  • Knowledge representation: Investigating alternative methods for representing and injecting medical knowledge could lead to further improvements.
  • vLLM integration: While direct vLLM captioning was not superior, exploring how vLLMs could be integrated more effectively into the knowledge injection pipeline remains an open area.

Summary updated

BibTeX
@inproceedings{yan2025enhancing,
  author = {Yang Yan and Bingqing Yue and Qiaxuan Li and Man Huang and Jingyu Chen and Zhenzhong Lan},
  title = {{Enhancing Chest X-ray Classification through Knowledge Injection in Cross-Modality Learning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
}
Figure