[Paper Review] Can Multimodal Large Language Models Truly Perform Multimodal In-Context Learning?
This paper investigates in-context learning (ICL) in vision-language models (VLMs) and finds that textual information in demonstrations dominates performance, while visual content has minimal impact due to architectural limitations in cross-attention mechanisms. To improve ICL, the authors propose MMICES—a method that jointly selects demonstrations using both visual and language modality signals, significantly boosting performance across multiple VLMs and benchmarks.
Large Language Models (LLMs) with in-context learning (ICL) ability can quickly adapt to a specific context given a few demonstrations (demos). Recently, Multimodal Large Language Models (MLLMs) built upon LLMs have also shown multimodal ICL ability, i.e., responding to queries given a few multimodal demos, including images, queries, and answers. While ICL has been extensively studied on LLMs, its research on MLLMs remains limited. One essential question is whether these MLLMs can truly conduct multimodal ICL, or if only the textual modality is necessary. We investigate this question by examining two primary factors that influence ICL: 1) Demo content, i.e., understanding the influences of demo content in different modalities. 2) Demo selection strategy, i.e., how to select better multimodal demos for improved performance. Experiments revealed that multimodal ICL is predominantly driven by the textual content whereas the visual information in the demos has little influence. Interestingly, visual content is still necessary and useful for selecting demos to increase performance. Motivated by our analysis, we propose a simple yet effective approach, termed Mixed Modality In-Context Example Selection (MMICES), which considers both visual and language modalities when selecting demos. Extensive experiments are conducted to support our findings and verify the improvement brought by our method. Code is available at \url{https://chenxshuo.github.io/m-icl/}.
Motivation & Objective
- To investigate the relative contribution of visual and textual information in multimodal in-context learning (ICL) demonstrations for vision-language models (VLMs).
- To understand why visual information in demonstrations has limited impact on ICL performance in VLMs.
- To develop a more effective demonstration selection strategy that leverages both visual and language modalities for improved ICL performance.
- To validate the proposed method across diverse VLMs and vision-language benchmarks.
Proposed method
- Propose Mixed Modality In-Context Example Selection (MMICES), a two-stage demonstration selection method that first filters candidates using visual similarity and then ranks them using language modality.
- Use visual embedding similarity to pre-filter potential demonstration candidates before language-based ranking.
- Apply contrastive language modeling to compute relevance scores between query and candidate demonstrations based on textual content.
- Integrate both visual and textual signals in a unified selection pipeline to ensure selected demonstrations are semantically and visually relevant to the query.
- Evaluate the method on multiple vision-language tasks, including visual question answering (VQA), GQA, and COCO captioning, across different VLMs such as OpenFlamingo and IDEFICS.
- Compare MMICES against random selection and RICES (a language-only baseline) under few-shot (4-shot and 8-shot) settings.

Experimental results
Research questions
- RQ1Which modality—visual or textual—plays a more significant role in determining in-context learning performance in vision-language models?
- RQ2Why does visual information in demonstrations have minimal impact on ICL performance despite being part of the input?
- RQ3Can a demonstration selection strategy that jointly considers both visual and language modalities improve ICL performance in VLMs?
- RQ4How does the model’s internal attention mechanism limit the influence of visual tokens from earlier demonstrations?
- RQ5Does the proposed MMICES method consistently improve ICL across different VLM architectures and downstream tasks?
Key findings
- Textual information in demonstrations is the primary driver of in-context learning performance in VLMs, as removing or corrupting text leads to significant performance drops.
- Removing or replacing images in demonstrations with blank images results in negligible performance degradation, indicating minimal contribution of visual content to ICL.
- The per-image masking mechanism in cross-attention layers restricts direct visual token access during generation, limiting the influence of prior demonstration images.
- Model inner-state analysis confirms that visual features from demonstrations have little to no direct impact on the final output, while text embeddings strongly influence attention and generation.
- MMICES outperforms both random selection and RICES across all evaluated models and datasets, especially in low-shot (4-shot and 8-shot) settings.
- MMICES achieves consistent performance gains on smaller models like OpenFlamingo, suggesting it is particularly effective when parameter efficiency is critical.

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.