Related Experiment Video
Updated: Mar 23, 2026

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Retrieval-augmented in-context learning for multimodal large language models in disease classification
Zaifu Zhan1, Shuang Zhou2, Xiaoshan Zhou3
1Department of Electrical and Computer Engineering, University of Minnesota, 200 Union St SE, Minneapolis, 55455, MN, USA.
Objective:
We aim to dynamically retrieve informative demonstrations, enhancing in-context learning in multimodal large language models (MLLMs) for disease classification.
Methods:
We propose a Retrieval-Augmented In-Context Learning (RAICL) framework, which integrates retrieval-augmented generation (RAG) and in-context learning (ICL) to adaptively select demonstrations with similar disease patterns, enabling more effective ICL in MLLMs. Specifically, RAICL examines embeddings from patch embeddings and diverse encoders, including ResNet, BERT, BioBERT, and ClinicalBERT, to retrieve appropriate demonstrations, and construct conversational prompts optimized for ICL. We evaluated the framework on two real-world multi-modal datasets (TCGA and IU Chest X-ray), assessing its performance across multiple MLLMs (Qwen, Llava, Gemma), embedding strategies, similarity metrics, and varying numbers of demonstrations.
Results:
RAICL consistently outperformed non-retrieval baselines. Accuracy improved from 0.7857 to 0.8726 on TCGA and from 0.7924 to 0.8658 on IU Chest X-ray. Multimodal inputs surpassed single modalities, with text-only outperforming image-only, and few-shot retrieval further boosted performance. Across similarity metrics, Euclidean distance achieved the best results. Improvements were consistent across different MLLMs, demonstrating robustness and scalability.
Conclusions:
RAICL provides an efficient and scalable approach to enhance in-context learning in MLLMs for multimodal disease classification.
Related Concept Videos
Classification of Illness
An illness is a response to a disease in which the person's level of functioning is changed compared with a previous level. The general classification of illness includes acute and chronic.
Acute illness is severe...
Learning Disabilities
Dyslexia
Dyslexia is a...
