CLEFT: Language-Image Contrastive Learning with Efficient Large Language Model and Prompt Fine-Tuning

Yuexi Du, Brian Chang, Nicha C. Dvornek · DOI

Introduction

Contrastive Language-Image Pre-training (CLIP) has fundamentally changed how artificial intelligence processes multi-modal data by aligning visual representations with natural language descriptions. However, applying this paradigm to the medical domain presents significant challenges. Traditional medical CLIP models often rely on relatively small language encoders (such as BERT, with ~110M parameters) that struggle to capture the complex nuances of clinical reports. Furthermore, the computational resources required to train these models from scratch are immense, and the reliance on handcrafted prompts (e.g., "An image of [Label]") often fails to reflect the diagnostic depth found in real-world medical data.

To address these limitations, the authors propose CLEFT (Contrastive Learning with Efficient LLM and prompt Fine-Tuning). CLEFT scales the language component of medical image-text models to the billion-parameter level while simultaneously reducing the overall computational burden through parameter-efficient techniques.

Methodology

CLEFT reimagines the standard CLIP architecture through two primary innovations: scaling with Parameter-Efficient Fine-Tuning (PEFT) and a specialized two-stage training process.

Scaling with PEFT

Rather than using a standard small-scale encoder, CLEFT utilizes BioMedLM-3B, a 3-billion parameter causal language model pre-trained on extensive medical literature. To make training feasible, the researchers employ Low-Rank Adaptation (LoRA), a PEFT technique. This allows the framework to leverage the expressive power of a massive LLM while only updating approximately 1% of its parameters. This approach effectively treats the frozen LLM as a "teacher," guiding the vision encoder (a DINOv2-ViT) into a robust, clinically relevant feature space.

Two-Stage Training Framework

The training is divided into two distinct phases:

  1. Stage 1 (PEFT CLIP): The model aligns medical images with their corresponding textual reports using a standard contrastive loss. By fine-tuning only the LoRA adapters, the model learns to map visual features to the LLM's sophisticated linguistic space.
  2. Stage 2 (Prompt Context Learning): To move beyond the limitations of handcrafted templates, the authors freeze the encoders and introduce trainable context tokens. These tokens learn the optimal "clinical language" required to describe specific pathologies, bridging the gap between simple classification labels and the complex diagnostic information found in clinical practice.

Experimental Setup and Datasets

The framework was evaluated across several benchmark medical datasets to test its accuracy, generalization, and data efficiency:

  • CheXpert-1.0: Utilized for initial pre-training, consisting of over 223,000 chest X-rays.
  • CheXpert-5x200: Used for in-domain zero-shot evaluation.
  • RSNA Pneumonia Detection: Employed for out-of-domain evaluation to assess the model's ability to generalize to unseen data sources.
  • EMBED: A large-scale mammography dataset used to demonstrate the framework's versatility beyond chest radiography.

Key Results and Insights

State-of-the-Art Performance

CLEFT-LoRA demonstrated superior performance on the CheXpert-5x200 zero-shot task, achieving 66.74% accuracy. This significantly outperforms previous leading medical CLIP models, such as MedCLIP, which achieved 59.42% on the same benchmark. Furthermore, the model successfully transferred to the mammography domain, reaching 74.40% zero-shot accuracy on breast density classification within the EMBED dataset.

Computational Efficiency

By utilizing PEFT, CLEFT achieved these results with 39% fewer trainable parameters than traditional ViT-BERT architectures. Despite the underlying language model being much larger, the actual number of parameters updated during training was only a fraction of those in smaller, fully-trained models.

Data Efficiency and Robustness

CLEFT proved remarkably robust in low-data scenarios. In tests on the RSNA dataset, the model's performance dropped by less than 3% when the training data was reduced from 100% to just 1%. This suggests that the pre-existing knowledge within the 3B-parameter LLM provides a powerful foundation that requires very few examples to adapt to specific medical tasks.

The Value of Learnable Prompts

The transition from handcrafted templates to trainable context tokens resulted in a performance increase of approximately 3%. This indicates that automated prompt optimization can better capture the "right words" for medical descriptions than human-designed templates.

Conclusion and Future Work

CLEFT demonstrates that scaling the language component of multi-modal models is both beneficial and computationally accessible in the medical field. By combining large-scale LLMs with parameter-efficient fine-tuning, the framework achieves state-of-the-art results while maintaining a smaller training footprint.

Future research directions include refining the initialization of learnable prompts, which currently impacts performance stability, and exploring a wider variety of LLM backbones to identify the optimal teacher-student pairings for diverse medical specialties.

Summary updated

BibTeX
@inproceedings{du2024cleft,
  author = {Yuexi Du and Brian Chang and Nicha C. Dvornek},
  title = {{CLEFT: Language-Image Contrastive Learning with Efficient Large Language Model and Prompt Fine-Tuning}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72390-2\_44},
}
Figure