[Paper Review] PRIMA: Pre-training with Risk-integrated Image-Metadata Alignment for Medical Diagnosis via LLM
PRIMA proposes a knowledge-enhanced, multi-granular image–metadata alignment framework that injects clinical priors into a text encoder and fuses visual features with an LLM-backed diagnostic module, achieving state-of-the-art results on PAD-UFES-20 and AQUA without massive data or compute.
Medical diagnosis requires the effective synthesis of visual manifestations and clinical metadata. However, existing methods often treat metadata as isolated tags, failing to exploit the rich semantic knowledge embedded in clinical descriptions. We propose PRIMA (Pre-training with Risk-integrated Image-Metadata Alignment), a framework that integrates domain-specific knowledge into multi-modal representation learning. We first curate an expert corpus of risk-disease correlations via Retrieval-Augmented Generation (RAG) to refine Clinical ModernBERT, embedding diagnostic priors into the text encoder. To bridge the modality gap, we introduce a dual-encoder pre-training strategy utilizing DINOv3 and our refined BERT, optimized by a suite of four complementary loss functions. These losses are designed to capture multi-granular semantic alignment and handle the ambiguity of clinical correlations through soft labels. Finally, we leverage Qwen-3 to fuse these aligned features for precise disease classification. Extensive experiments demonstrate that PRIMA effectively harmonizes pixel-level features with abstract clinical expertise, significantly outperforming other state-of-the-art methods. Notably, our framework achieves superior robustness without the need for massive data collection or exhaustive computational resources. Our code will be made public upon acceptance.
Motivation & Objective
- Motivate effective synthesis of visual manifestations and structured clinical metadata for medical diagnosis.
- Inject domain priors into text encoders via knowledge curation with Retrieval-Augmented Generation (RAG).
- Align multi-modal representations through a four-loss, multi-granular strategy and fuse with an LLM for diagnosis.
Proposed method
- Construct a domain-specific knowledge bank of risk-disease relationships using RAG with GPT and Gemini.
- Fine-tune Clinical ModernBERT on the RAG-derived corpus to encode diagnostic priors.
- Employ a dual-encoder setup (DINOv3 for images, refined ClinicalModernBERT for text) with four complementary losses for global and local alignment and soft labels (L_img, L_glo, L_loc, L_soft).
- Use LoRA adapters to update only a small fraction of parameters for efficiency.
- Fuse aligned features using Qwen-3 for final disease classification with a constrained vocabulary to avoid hallucinations.

Experimental results
Research questions
- RQ1Can expert-prior knowledge injected into a text encoder improve multimodal medical diagnosis when data are scarce?
- RQ2Do multi-granular alignment losses combining global and local cross-modal signals yield robust, domain-specific representations?
- RQ3Does combining refined vision and knowledge-grounded text encoders with an LLM enhance diagnostic performance and generalization on skin lesion and keratitis datasets?
Key findings
- PRIMA achieves state-of-the-art results on PAD-UFES-20 with Avg F1 73.75, Acc 78.27, and BAcc 72.76.
- PRIMA achieves state-of-the-art results on AQUA with Avg F1 85.22 and Acc 86.04.
- Across ablations, all four losses (L_img, L_glo, L_loc, L_soft) contribute to performance, with the full model yielding the best Avg F1, Acc, and BAcc.
- PRIMA demonstrates robustness and superior generalization, including on a private dataset (AQUA) inaccessible to foundation models.
- The approach remains efficient, not requiring massive data or exhaustive compute, and leverages LoRA to update only a small portion of parameters.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.