What do vision-language models see in the context? Investigating multimodal in-context learning
Gabriel O. dos Santos, Esther Colombini, Sandra Avila
TL;DR
This paper addresses the gap in understanding multimodal in-context learning (ICL) in vision-language models (VLMs) by conducting a systematic evaluation across seven models and four architectures on three image captioning benchmarks. It investigates how prompt design, training data structure (interleaved versus image-text paired), and templates affect ICL, and it introduces an attention-based analysis to assess how models use in-context information. The findings reveal that interleaved image-text training improves ICL but does not guarantee effective multimodal integration, while instruction tuning enhances instruction-following yet can diminish reliance on demonstrations; attention patterns show a persistent bias toward textual cues. These results highlight important limitations in current VLMs and suggest directions for improving multimodal ICL through better modality bridging and hybrid training strategies. The work has practical implications for designing prompt pipelines and training regimes that enable more robust multimodal learning from in-context demonstrations.
Abstract
In-context learning (ICL) enables Large Language Models (LLMs) to learn tasks from demonstration examples without parameter updates. Although it has been extensively studied in LLMs, its effectiveness in Vision-Language Models (VLMs) remains underexplored. In this work, we present a systematic study of ICL in VLMs, evaluating seven models spanning four architectures on three image captioning benchmarks. We analyze how prompt design, architectural choices, and training strategies influence multimodal ICL. To our knowledge, we are the first to analyze how attention patterns in VLMs vary with an increasing number of in-context demonstrations. Our results reveal that training on imag-text interleaved data enhances ICL performance but does not imply effective integration of visual and textual information from demonstration examples. In contrast, instruction tuning improves instruction-following but can reduce reliance on in-context demonstrations, suggesting a trade-off between instruction alignment and in-context adaptation. Attention analyses further show that current VLMs primarily focus on textual cues and fail to leverage visual information, suggesting a limited capacity for multimodal integration. These findings highlight key limitations in the ICL abilities of current VLMs and provide insights for enhancing their ability to learn from multimodal in-context examples.
