Can Multimodal Large Language Models Truly Perform Multimodal In-Context Learning?
Shuo Chen, Zhen Han, Bailan He, Jianzhe Liu, Mark Buckley, Yao Qin, Philip Torr, Volker Tresp, Jindong Gu
TL;DR
This paper investigates whether multimodal large language models (MLLMs) can truly perform multimodal in-context learning (M-ICL) and analyzes two key factors: the content of multimodal demonstrations and the strategy for selecting demonstrations. It finds that textual information in demonstrations dominates ICL performance, while the visual content in the demos has a minimal direct effect, though visuals can aid in selecting informative demos. To improve demo quality, the authors propose Mixed Modality In-Context Example Selection (MMICES), which first filters candidates by image similarity and then reranks by text similarity, outperforming random selection and single-modality retrieval (RICES) across multiple models and datasets. An architectural explanation based on masked-cross-attention clarifies why demo images have limited influence: in practice, demonstration visuals influence outputs mainly through their textual descriptions, not directly via the raw visuals. The work provides practical guidance for designing demonstrations and selection strategies in MLLMs and suggests MMICES as a simple, effective method to boost M-ICL across vision-language tasks and model scales.
Abstract
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/}.
