CLEFT: Language-Image Contrastive Learning with Efficient Large Language Model and Prompt Fine-Tuning
Yuexi Du, Brian Chang, Nicha C. Dvornek
TL;DR
This work tackles the data and compute challenges of applying CLIP-style language-image learning to medical imaging. It introduces CLEFT, a parameter-efficient framework that integrates a billion-parameter LLM via PEFT and a context-based prompt-learning stage to improve cross-modal alignment while drastically reducing trainable parameters. By treating the CLIP training as knowledge distillation from the LLM to the vision encoder, CLEFT achieves state-of-the-art results on CheXpert-5x200, RSNA pneumonia, and EMBED mammography, with a notable $39\%$ reduction in total trainable parameters and only $4\%$ of trainable LM parameters. This method offers a practical path for deploying powerful language models in medical imaging with reduced training costs and better cross-domain generalization.
Abstract
Recent advancements in Contrastive Language-Image Pre-training (CLIP) have demonstrated notable success in self-supervised representation learning across various tasks. However, the existing CLIP-like approaches often demand extensive GPU resources and prolonged training times due to the considerable size of the model and dataset, making them poor for medical applications, in which large datasets are not always common. Meanwhile, the language model prompts are mainly manually derived from labels tied to images, potentially overlooking the richness of information within training samples. We introduce a novel language-image Contrastive Learning method with an Efficient large language model and prompt Fine-Tuning (CLEFT) that harnesses the strengths of the extensive pre-trained language and visual models. Furthermore, we present an efficient strategy for learning context-based prompts that mitigates the gap between informative clinical diagnostic data and simple class labels. Our method demonstrates state-of-the-art performance on multiple chest X-ray and mammography datasets compared with various baselines. The proposed parameter efficient framework can reduce the total trainable model size by 39% and reduce the trainable language model to only 4% compared with the current BERT encoder.
