Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GRIP: Feedback-Guided Prompt Retrieval for Large Multimodal Models

About

In-Context Learning (ICL) has become a powerful mechanism for adapting Large Language Models (LLMs) to new tasks without fine-tuning. Extending this concept to Large Multimodal Models (LMMs), Multimodal In-Context Learning (M-ICL) relies on retrieving relevant examples, such as images, captions, or question-answer pairs, to guide predictions across tasks like classification, captioning, and visual question answering (VQA). Most existing approaches select in-context examples based on feature-space similarity, assuming that semantically similar samples provide the most useful context. However, our systematic analysis reveals that this assumption does not always hold: visually similar examples are not necessarily those that most effectively enhance in-context learning performance. To address this, we propose the Guided Retrieval of In-context Prompts (GRIP), a learnable vision-only retrieval framework that leverages feedback from LMMs to identify examples that truly improve model predictions. GRIP learns to distinguish beneficial from detrimental in-context examples through contrastive training, refining retrieval beyond pure similarity. Across three multimodal tasks, namely classification, captioning, and VQA, GRIP improves consistently over similarity-based retrieval on Qwen2.5-VL-7B, with its strongest gains in classification on Idefics2-8B. Moreover, we demonstrate that retrievers trained with feedback from one open LMM can be transferred to other models without retraining, including closed-source GPT-4o and Gemini, enabling scalable and cost-efficient deployment of M-ICL. Code will be published upon acceptance.

Garvita Allabadi, Matteo Sodano, Roberto Estev\~ao, Yuxiong Wang, Vikram Adve, Emre Kiciman, Ranveer Chandra• 2026

Related benchmarks

TaskDatasetResultRank
Image ClassificationDTD (Describable Textures Dataset)
Accuracy61.3
90
Visual Question AnsweringScienceVQA
Acc84.7
37
Visual Question AnsweringSEED-Bench
Accuracy71.4
32
Image ClassificationUC Merced
Overall Accuracy (OA %)85.2
24
Image CaptioningMS-COCO
CIDEr79.9
16
Image ClassificationOxford-IIIT Pet Dataset
Accuracy88.5
10
Visual Question AnsweringScienceVQA (test)
Accuracy85.9
8
Multimodal ReasoningSEED
Accuracy (SEED)44.2
4
Showing 8 of 8 rows

Other info

Follow for update