TL;DR
Applying vision-language models like CLIP to dermatology is hampered by a linguistic mismatch: raw academic image captions are packed with dense medical jargon that diverges from CLIP’s internet-scale pre-training. This paper bridges the gap by using dermatology textbook–fine-tuned LLMs (GPT-2 and GPT-3.5) to expand concise PubMed captions into fluent, descriptive text. Training CLIP on these aligned captions significantly boosts zero-shot clinical concept classification on dermoscopic images.
What Problem Does This Paper Address?
In dermatology, trustworthy diagnoses rely on identifying fine-grained clinical concepts (e.g., papule, plaque, scale, erosion). However, expert-annotated dermoscopic image datasets are scarce, expensive, and often fail to cover the full spectrum of skin conditions.
While vision-language foundation models like CLIP enable zero-shot classification without explicit class supervision, fine-tuning them on medical datasets introduces a domain gap:
- Academic captions from literature (like PubMed) are dense, truncated, and laden with technical shorthand.
- CLIP’s text encoder was pre-trained on conversational, natural internet text.
As a result, directly feeding raw academic captions into CLIP yields sub-optimal multimodal alignment.
Methods
The authors introduce an LLM-driven data alignment pipeline:
- Textbook Preprocessing: The authors extracted text from four established dermatology textbooks, filtering headers, figures, and footnotes via PDF parsing (
PyMuPDF) to assemble prompt-completion sentence pairs. - LLM Domain Adaptation: Both GPT-2 (1.5B parameters) and
gpt-3.5-turbowere fine-tuned on these textbook prompt-completion pairs to steep them in dermatological terminology. - Caption Expansion: An exploratory analysis revealed that original PubMed image captions averaged only ~35 tokens (with 75% containing under 51 tokens), leaving substantial room before reaching CLIP’s 77-token limit. The fine-tuned LLMs took these terse PubMed captions and expanded them into richer, contextually complete descriptions.
- CLIP Training & Zero-Shot Concept Evaluation: The team fine-tuned
clip-vit-base-patch32on the original and LLM-enriched image-caption pairs using an Adam optimizer and cosine annealing. They then evaluated zero-shot concept classification by calculating cosine similarities against prompts formatted as"This is {concept_key}".
[Raw PubMed Captions] ──> [Textbook-Finetuned LLM] ──> [Enriched Captions] ──> [CLIP Fine-Tuning] ──> [Zero-Shot Classification]
Datasets
- Fine-Tuning LLMs: 1,811 prompt-completion pairs extracted from 4 dermatology textbooks (Differential Diagnosis In Dermatology, General Dermatology, Top 50 Dermatology Case Studies for Primary Care, and Handbook of Dermoscopy).
- CLIP Training: 44,314 image-caption pairs scraped from dermatology articles in PubMed.
- Evaluation Benchmark: The SKINCON dataset (3,230 clinical skin disease images from Fitzpatrick 17k), densely annotated across 48 clinical concepts (e.g., nodule, crust, erythema).
Key Insights and Ideas
- Domain Adaptation Trumps Raw Scale: Fine-tuned GPT-2 (0.642 mean AUC) outperformed un-fine-tuned Vanilla GPT-3.5 (0.639 mean AUC). Even though GPT-3.5 possesses vastly greater parameter capacity, light domain fine-tuning on relevant textbooks made the smaller model's generated text more effective for downstream supervision.
- Grammar vs. Coherence Trade-off: While fine-tuned GPT-2 produced grammatically correct text, it occasionally lost context over longer sequences and strung together disjointed medical terms. GPT-3.5 consistently preserved global context and synthesized more clinically accurate descriptive prose.
- Bridging the Lexicon Gap: Academic image captions are typically too telegraphic for contrastive learning objectives. Expanding them via LLMs acts as a semantic bridge, aligning professional clinical lexicons with the conversational sentence structures preferred by standard vision-language encoders.
Key Results
Zero-shot concept classification performance across the 48 SKINCON concepts (evaluated by Area Under the ROC Curve, mean AUC):
| CLIP Training Configuration | Mean AUC |
|---|---|
| Vanilla CLIP (no domain fine-tuning) | 0.572 |
| Original PubMed Captions | 0.636 |
| Vanilla GPT-3.5 Extended Captions | 0.639 |
| Fine-Tuned GPT-2 Extended Captions | 0.642 |
| Fine-Tuned GPT-3.5 Extended Captions | 0.648 |
The Fine-Tuned GPT-3.5 setup achieved the highest overall AUC and outperformed the original caption baseline on 26 out of 48 individual concepts (such as comedo, scale, and umbilicated).
Limitations and Future Work
- Heuristic Text Pairing: Sentence pairs for LLM fine-tuning were created simply by taking the four sentences following a prompt. This occasionally spanned across section breaks or different diseases, introducing confounding facts.
- Hallucination Risk: Unchecked LLM generation carries the risk of hallucinating diagnostic assertions or non-existent visual features—a major concern in high-stakes clinical AI.
- Model and Context Bottlenecks: The authors utilized a smaller vision backbone (
clip-vit-base-patch32) and adhered to CLIP's 77-token cap. Future work includes adopting larger vision encoders (clip-vit-large-patch14), lifting the token ceiling, and incorporating structured instruction tuning.
Summary updated