Manuscript Offprint
arXiv:2609.10177Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
Mingbo Yang
Sun Yat-Sen University
Shenzhen, Guangdong, China
Peng Chen
Sun Yat-Sen University
Shenzhen, Guangdong, China
Wenqiang Wang
Sun Yat-Sen University
Shenzhen, Guangdong, China
Yannan Chen
Sun Yat-Sen University
Shenzhen, Guangdong, China
Pengcheng Laboratory
Shenzhen, Guangdong, China
Zhaolu Kang
Peking University
Beijing, Beijing, China
Sunshang Wang
Tianjin University of Science and Technology
Tianjin, Tianjin, China
Yan Xiao
Sun Yat-Sen University
Shenzhen, Guangdong, China
Abstract
In-context learning (ICL) is widely used in multimodal large language models (MLLMs) and achieves strong performance across a wide range of multimodal tasks. However, existing multimodal ICL methods often rely on surface level imitation of in-context demonstrations, making it difficult for MLLMs to align their responses with the reasoning path required by the given multimodal input. This limitation becomes more pronounced in complex multimodal tasks, thereby restricting further improvements in MLLM performance. To address this issue, we propose a new multimodal ICL framework that combines contrastive demonstration modeling with the self-refinement capability of MLLMs. Specifically, our framework reformulates each demonstration by explicitly contrasting a suboptimal response with a better response under the same input, together with a reasoning path that reveals how the response should be refined. This contrastive formulation makes the reasoning path toward the desired response more explicit and guides the MLLM beyond superficial imitation. Furthermore, because effective refinement depends on the current response, we introduce a response-conditioned retrieval mechanism to select demonstrations whose reasoning paths are more relevant to the current response. In addition, we use a lightweight alignment controller to predict response quality and determine whether further refinement is needed. Experiments on three types of multimodal tasks show that the proposed framework consistently improves MLLM performance, with particularly notable gains on visual question answering (VQA).
CCS Concepts
• Computing methodologies → Artificial intelligence.
ACM Reference Format:
Mingbo Yang, Wenqiang Wang, Zhaolu Kang, Peng Chen, Yannan Chen, Sunshang Wang, and Yan Xiao. 2026. Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning. In Proceedings of the 34th ACM International Conference on Multimedia (MM '26), November 10–14, 2026, Rio de Janeiro, Brazil. ACM, New York, NY, USA, 10 pages. https://doi.org/10.1145/3767308.3836595
1 Introduction
Multimodal In-Context Learning (multimodal ICL) has demonstrated remarkable capabilities in adapting Multimodal Large Language Models (MLLMs) to novel tasks [32–34, 65]. By conditioning MLLMs on demonstrations, multimodal ICL enables task adaptation at inference time without parameter updates [68]. This makes multimodal ICL an attractive paradigm for multimodal tasks, as it flexibly leverages the pretrained knowledge of MLLMs [50, 62].
Despite these advantages, current multimodal ICL paradigms often encourage surface level imitation rather than reasoning grounded in multimodal evidence [18, 60]. Here, surface level imitation refers to relying on superficial demonstration patterns without sufficiently grounding the response in query-relevant multimodal evidence. In standard multimodal ICL, MLLMs are conditioned on a sequence of input-output demonstrations [37, 51]. However, when faced with complex scenarios that require fine-grained visual discrimination, MLLMs tend to rely on incorrect correlations. For instance, as shown in Figure 1, if the retrieved demonstrations share visually similar global features, the MLLM is prone to copying the most frequent textual labels from the context [13]. By doing so, the MLLM
Mingbo Yang and Wenqiang Wang contributed equally to this work.
Corresponding author.

This work is licensed under a Creative Commons Attribution 4.0 International License. MM '26, Rio de Janeiro, Brazil
© 2026 Copyright held by the owner/author(s).
ACM ISBN 978-4-4007-2213-4/2026/11
https://doi.org/10.1145/3767308.3836595
Mingbo Yang et al.

Figure 1: From surface level imitation to reasoning path alignment. Standard multimodal ICL mainly aligns the final output and may imitate surface patterns from visually similar demonstrations. In contrast, COMIL uses contrastive demonstrations to make explicit which visual evidence is relevant and how the current response should be revised, thereby guiding the MLM toward the desired reasoning path.
bypasses the deeper visual analysis required for the task, matching only the output format while failing to ground its response in fine-grained visual evidence.
This issue reflects a fundamental limitation of standard demonstrations: they mainly align the final output, while overlooking the reasoning path that leads to the desired response [36, 47, 57]. When an MLM produces a response influenced by surface similarities, the key challenge is not merely to specify the target output, but to achieve reasoning path alignment by aligning the generated reasoning path with a latent evidence-grounded refinement relation under the multimodal input. In complex multimodal tasks, this requires explicit guidance on which visual evidence is truly relevant and how it should support revising the current response [45, 67, 70]. Standard demonstrations provide little such guidance, because they present only the target output rather than the reasoning path from a suboptimal response to a better one. Therefore, achieving reasoning path alignment requires demonstrations that make this refinement path explicit, enabling the MLM to refine its response in a way that is better grounded in the underlying multimodal evidence.
To move beyond surface imitation, we propose COMIL, a novel framework that promotes reasoning path alignment in MLMs through contrastive modeling of demonstrations and the self-refinement capability of MLMs [2, 10]. Rather than providing only a single target output, COMIL reformulates each standard ICL example under the same multimodal input as a structured demonstration tuple consisting of a suboptimal response, a better response, and a generated reasoning path describing how the response should be refined and what fine-grained visual evidence supports that refinement. By presenting both responses under the same input condition, this formulation makes explicit not only which response is better, but also how the current response should be improved and why that improvement is supported by the underlying multimodal
evidence, thereby turning the demonstration into explicit guidance for reasoning path alignment.
Furthermore, because reasoning path alignment depends on the MLM's current response [17, 30], we couple these contrastive demonstrations with a retrieval mechanism guided by the current response. Rather than retrieving examples only from input similarity, COMIL selects demonstrations by additionally considering the similarity between their suboptimal responses and the MLM's current response. In this way, the retrieved reasoning paths provide more relevant guidance for refining the current response. Combined with a lightweight alignment controller that predicts response quality and determines whether further refinement is needed, COMIL moves beyond passive output matching and instead guides generation toward more evidence-grounded refinement.
Extensive experiments across a diverse set of representative MLMs verify the effectiveness of our framework. On three reasoning intensive tasks, COMIL shows clear improvements. For example, on VQAv2, COMIL improves the accuracy of Qwen3.5-9B to 81.9%, achieving the best result among the compared methods. On Flickr30k, it improves the CIDEr score of Gemma-3-27B to 0.587. COMIL also remains sample efficient, maintaining favorable performance even with a limited number of retrieved demonstrations. In addition, the framework generalizes beyond open-source settings and achieves strong results on closed-source MLMs. Overall, these results show that COMIL effectively improves multimodal ICL by reducing surface level imitation and promoting reasoning path alignment.
In summary, our main contributions are as follows:
- A New Framework for Reasoning Path Alignment in Multimodal ICL: We propose COMIL, a new multimodal in-context learning framework that promotes reasoning path alignment by providing explicit guidance on which visual
Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
MM '26, November 10–14, 2026, Rio de Janeiro, Brazil
evidence is truly relevant and how it should support revising the current response.
-
Contrastive Demonstration Modeling with Response-Conditioned Retrieval and Alignment Control: COMIL reformulates each standard ICL example as a structured contrastive demonstration tuple consisting of a suboptimal response, a better response, and the corresponding reasoning path. It further combines this formulation with response-conditioned retrieval and a lightweight alignment controller to guide the MLMM toward the desired reasoning path during inference.
-
Effective Results on Reasoning-Intensive Multimodal Tasks: Extensive experiments across multiple MLMMs and multimodal datasets show that COMIL consistently improves performance, with particularly clear gains on reasoning intensive tasks. Additional reasoning-path evaluation and results on closed-source MLMMs further demonstrate the effectiveness and generality of the proposed framework.
2 Related Work
2.1 Multimodal Large Language Models
Multimodal Large Language Models (MLLMs) have recently achieved remarkable progress on a wide range of tasks, including visual question answering, image captioning, visual reasoning, and multimodal generation [3, 4, 7, 8, 11, 23, 25, 63]. By integrating visual encoders with large language models, together with large-scale vision-language pretraining, instruction tuning, and alignment, MLMMs have developed strong cross-modal understanding and generation capabilities, making them a key foundation for multimodal intelligence. Their ability to process visual and textual information within a unified generative framework enables them to perform diverse tasks with a single model and has significantly broadened the scope of vision-language applications. Despite this progress, effective inference-time adaptation remains important for improving MLMM performance on complex multimodal tasks [12, 61]. In particular, how to better leverage the multimodal understanding and generation capabilities of MLMMs on complex tasks without parameter updates remains an important challenge [44, 58]. This has motivated growing interest in inference-time adaptation paradigms such as multimodal in-context learning.
2.2 Multimodal In-Context Learning
Multimodal In-Context Learning (multimodal ICL) has become an important paradigm for adapting MLMMs to downstream tasks [20, 31, 32, 52, 54, 55, 69]. By leveraging multimodal demonstrations composed of images, texts, and corresponding responses, multimodal ICL enables task adaptation at inference time without parameter updates [14, 29]. This property makes multimodal ICL particularly attractive in practice, as it can flexibly adapt a pretrained MLMM to diverse tasks while avoiding the cost of additional training. More importantly, by presenting a small number of task-specific examples in context, multimodal ICL allows the MLMM to exploit its pretrained multimodal knowledge in a task-aware manner, making it a simple yet effective paradigm for multimodal classification, generation, and reasoning tasks. Existing studies have mainly improved multimodal ICL from the input side, such as demonstration retrieval,
demonstration organization, prompt design, and instruction construction, showing that better demonstrations can substantially affect downstream performance [6, 20]. Despite this progress, most existing methods still emphasize providing better demonstrations or improving alignment with the demonstrated target output. However, for complex multimodal tasks, recent observations suggest that MLLMs may still rely on superficial imitation of demonstrated responses rather than follow the reasoning path that leads to the correct result [18, 39]. This limitation motivates the need to go beyond better demonstration selection alone and to consider how demonstrations can more explicitly guide the MLMM's reasoning.
3 Method
3.1 Problem Setup
Let the multimodal input be denoted by , where is the visual input and is the textual instruction or query. Given , the target MLMM generates a textual response according to . In this work, reasoning path alignment refers to aligning the generated reasoning path with a latent evidence-grounded refinement relation under : the path should diagnose missed or misused multimodal evidence and support revising the current response toward a better one. We define a latent alignment function to conceptually score the resulting response state, where a larger value indicates better alignment with this desired refinement relation. Since is not directly observable, it serves as a conceptual objective, while its practical proxy is introduced in the lightweight alignment control module. Under this formulation, the ideal target response can be written conceptually as .
To this end, COMIL is built on three coupled components: contrastive demonstration modeling, response-conditioned retrieval, and lightweight alignment control. Together, these components reformulate demonstrations to make explicit the reasoning paths from suboptimal responses to better responses, retrieve the demonstrations that are most relevant to the current response, and guide the MLMM toward reasoning path alignment during inference.
3.2 Contrastive Demonstration Modeling
To support reasoning path alignment, COMIL reformulates each demonstration through contrastive modeling [2, 10]. Rather than using a single target response, we explicitly show the MLMM how a suboptimal response is refined into a better response together with the corresponding reasoning path. Formally, we represent the th demonstration as
where is the multimodal input, is a suboptimal response, is a better response, and is a generated reasoning path that describes how can be refined into under . Here, provides explicit refinement guidance rather than a direct observation of the MLMM's internal reasoning process.
Under the fixed multimodal input , and define a task-supervised refinement transition, while specifies how the former can be revised toward the latter, thereby providing explicit guidance for reasoning path alignment. In the contrastive modeling, and form the contrasted response pair. The reasoning path identifies the deficiency in , highlights the multimodal evidence relevant to the revision, and shows how these cues support the
Mingbo Yang et al.

Figure 2: Overall framework of COMIL. Given an input , the MLMM first generates an initial response. The retrieval dataset contains contrastive demonstrations . At step , the current response is used to retrieve the top- relevant demonstrations to generate . The lightweight alignment controller predicts and compares it with to determine whether to continue refinement until or return the final response .
transition to . As a result, the contrastive demonstration provides explicit guidance not only on the preferred response, but also on how the response should be refined toward it. This supports reasoning path alignment at inference time.
3.3 Response-Conditioned Retrieval and Refinement
Construction of the Contrastive Retrieval Dataset. To support reasoning path alignment at inference time, we first construct a retrieval dataset of contrastive demonstrations from a selected subset of training examples. For each training instance , the same target MLMM used later at inference time is first prompted to generate an initial response, which serves as the suboptimal response . The better response is taken directly from the ground truth response in the dataset under the same multimodal input. We then feed , , and into the same target MLMM and prompt it to generate a reasoning path , which describes how can be refined into . In this way, each training instance is transformed into a contrastive demonstration , which explicitly represents a generated refinement path from a suboptimal response state to a better one [24, 39]. Repeating this process over the selected training subset yields the retrieval dataset used in subsequent retrieval and refinement.
Response-Conditioned Demonstration Retrieval. Given the retrieval dataset , the goal of retrieval is to select contrastive
demonstrations whose reasoning paths are relevant to refining the current response. Since refinement relevance depends on both the multimodal input and the current response, retrieval is conditioned on and, whenever available, [17, 30]. At the initial step, no response has been generated yet. We therefore retrieve demonstrations only according to the multimodal input:
where is the retrieved demonstration set, denotes the MLMM with the retrieved contrastive demonstrations as context, and measures the relevance between the current multimodal input and the demonstration input . Once the current response is available, retrieval is performed according to a joint relevance score over the input and the current response:
where measures the similarity between the current response and the suboptimal response in the demonstration, and balance the contributions of input relevance and response similarity. We use response similarity as a practical proxy for refinement relevance. When is similar to , the associated reasoning path is more likely to describe a correction pattern
Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
MM '26, November 10–14, 2026, Rio de Janeiro, Brazil

Figure 3: Training pipeline of the lightweight quality predictor. The predictor takes an input and a candidate response as input, predicts the response evaluation metric, and is trained with a regression loss against the actual metric .
relevant to the current response. The retrieved demonstration therefore provides not only a better response but also potentially useful guidance for revision. Response similarity does not guarantee the same error mode, but enables retrieval to incorporate the current response state in addition to input similarity.
Refinement with Retrieved Demonstrations. Under this retrieval mechanism, iterative refinement aims to move the current response toward stronger reasoning path alignment, rather than guaranteeing monotonic improvement at every step [5, 26, 59]. In practice, the target MLLM uses the retrieved contrastive demonstrations to revise the current response according to refinement patterns relevant to its current state. In this way, retrieval and refinement are tightly coupled: retrieval identifies relevant refinement guidance, while the MLLM uses this guidance to revise the current response toward the evidence-grounded refinement relation defined in Section 3.1.
3.4 Lightweight Alignment Control
While reasoning path alignment is the target of refinement, it is not directly observable at inference time. We therefore introduce a lightweight alignment controller that predicts response quality as a proxy for controlling the refinement trajectory. During controller training, the task-specific evaluation metric provides an observable supervision signal: under a fixed multimodal input , a response that better follows the desired evidence-grounded refinement relation is more likely to match the expected output and achieve a better task metric [38, 40]. We therefore use the response-level evaluation metric to supervise the controller.
Formally, let denote the actual evaluation metric of response under input , where a larger value indicates better task performance. As defined in Section 3.1, is a latent alignment property and cannot be directly observed. We therefore use as a practical supervision signal and train a lightweight predictor to estimate the quality of each intermediate response, , where is the predicted quality score at refinement step . The predictor is trained with supervision derived from the actual metric ; thus, predicts response quality rather than directly measuring the latent alignment function . For ease of exposition, we refer to this predictor as the lightweight alignment controller. The relation between task performance and reasoning-path alignment is further examined in Section 5.1. This alignment control is helpful because iterative refinement does not always improve the response monotonically. Although the retrieved demonstrations are selected to support reasoning path alignment, later refinement steps may still preserve, weaken, or distort the desired refinement
direction [19]. The controller therefore evaluates the predicted quality of each intermediate response and prevents the final decision from depending only on the latest step. In this way, it helps retain a higher-quality response among the explored candidates.
Based on the predicted quality score, we introduce an acceptance threshold for early stopping. In practice, is determined from the training data used for the alignment controller: we set to the evaluation metric corresponding to the top 25% of the training responses, which are ranked by the metric in descending order. This choice encourages early stopping on high-quality responses while avoiding an overly strict threshold that would make successful stopping difficult. If , the current response is regarded as sufficiently high-quality and refinement stops. Otherwise, refinement continues until the maximum refinement budget is reached. To unify early stopping and final selection, we define
and take as the final response.
Through this design, the controller neither generates reasoning paths nor directly measures reasoning-path alignment. Instead, it uses the predicted response quality as a practical proxy to determine when refinement should stop or which intermediate response should be selected. Together with contrastive demonstration modeling and response-conditioned retrieval, it stabilizes the inference-time refinement process toward reasoning path alignment.
4 Experiment
4.1 Experimental Setup
MLLMs and Datasets. We evaluate COMIL on four representative open-source multimodal large language models (MLLMs), including Gemma-3-27B [48], InternVL3.5-14B [53], Qwen3.5-9B [41], and Qwen3.5-4B [41]. Following the main experimental setting, we conduct experiments on four datasets: CIFAR10 [28] for image classification, Flickr30k [64] for image captioning, and VQAv2 [15] and OKVQA [43] for visual question answering.
Tasks and Metrics. We evaluate COMIL on three types of multimodal tasks with task-specific metrics: image classification, image captioning, and visual question answering. These tasks cover multimodal classification, generation, and reasoning, enabling evaluation across diverse multimodal settings. For image classification, we report Accuracy. For image captioning, we report CIDEr [49]. For visual question answering, we report VQA Accuracy [1]. For all metrics, higher values indicate better performance.
Baselines. We compare COMIL with representative baselines from five categories, as shown in Table 1. Specifically, we include Retrieval-based ICL methods, including CLIPRE [42], KNN [16], and CR [35]; Train-based ICL methods, including LCL [46] and MimIC [22]; CoT methods, including Few-shot CoT [27] and Self-Consistency CoT [56]; Self-Refine methods, including Iteration, Self-Refine [38], and SC-Captioner [66]; and recent Multimodal ICL methods, including AIM [14], TACO [33], and M²IV [31]. These baselines cover retrieval-based demonstration selection, training-enhanced in-context learning, reasoning-oriented prompting, iterative refinement, and recent multimodal ICL approaches.
Mingbo Yang et al.
Table 1: Main results on four multimodal datasets and four open-source MLLMs, including recent multimodal ICL baselines. Best and second-best results are highlighted in bold and underlined, respectively; “–” denotes unavailable results.
| Category | MLLMs | Gemma-3-27B | InternVL3.5-14B | Qwen3.5-9B | Qwen3.5-4B | Gemma-3-27B | InternVL3.5-14B | Qwen3.5-9B | Qwen3.5-4B |
|---|---|---|---|---|---|---|---|---|---|
| Metrics | Accuracy (%) ↑ | CIDEr ↑ | |||||||
| Method | Image Classification: CIFAR10 | Image Captioning: Flickr30k | |||||||
| Retrieval based ICL | CLIPRE | 95.7 | 92.3 | 92.5 | 91.1 | 0.297 | 0.287 | 0.316 | 0.294 |
| KNN | 95.3 | 95.0 | 93.7 | 92.1 | 0.346 | 0.352 | 0.410 | 0.387 | |
| CR | 93.6 | 91.8 | 88.4 | 88.5 | 0.303 | 0.381 | 0.388 | 0.369 | |
| Train based ICL | LCL | 96.5 | 94.3 | 96.4 | 91.4 | 0.514 | 0.384 | 0.459 | 0.340 |
| MimIC | 91.4 | 95.6 | 94.6 | 95.5 | 0.349 | 0.378 | 0.429 | 0.394 | |
| CoT | Few-shot CoT | 93.6 | 95.4 | 91.8 | 94.2 | 0.390 | 0.331 | 0.390 | 0.402 |
| Self-Consistency CoT | 94.0 | 95.4 | 93.7 | 99.0 | 0.377 | 0.322 | 0.362 | 0.342 | |
| Self-Refine | Iteration | 87.3 | 83.3 | 83.9 | 85.8 | 0.169 | 0.131 | 0.075 | 0.098 |
| Self-Refine | 89.6 | 83.2 | 84.0 | 85.0 | 0.114 | 0.111 | 0.060 | 0.014 | |
| SC-Captioner | 91.6 | 91.9 | 93.9 | 94.4 | 0.472 | 0.393 | 0.434 | 0.425 | |
| Recent Multimodal ICL | AIM | - | 94.2 | 95.4 | 91.9 | - | 0.431 | 0.445 | 0.448 |
| TACO | - | 91.0 | 91.0 | 86.6 | - | 0.399 | 0.373 | 0.420 | |
| M²IV | - | 95.5 | 93.7 | 94.6 | - | 0.412 | 0.428 | 0.466 | |
| COMIL (Ours) | 97.4 | 98.4 | 97.4 | 96.5 | 0.587 | 0.517 | 0.499 | 0.493 | |
| Category | Metrics | Accuracy (%) ↑ | Accuracy (%) ↑ | ||||||
| Method | Visual Question Answering: VQAv2 | Visual Question Answering: OKVQA | |||||||
| Retrieval based ICL | CLIPRE | 57.0 | 74.4 | 61.8 | 69.2 | 31.2 | 42.0 | 33.6 | 38.7 |
| KNN | 67.3 | 78.1 | 66.5 | 64.9 | 51.7 | 52.2 | 53.9 | 47.6 | |
| CR | 65.3 | 78.0 | 71.2 | 69.7 | 51.4 | 50.3 | 49.2 | 43.6 | |
| Train based ICL | LCL | 70.2 | 79.7 | 69.6 | 77.3 | 52.3 | 52.7 | 41.5 | 42.0 |
| MimIC | 62.9 | 72.7 | 68.7 | 68.4 | 42.1 | 55.0 | 35.3 | 54.9 | |
| CoT | Few-shot CoT | 64.5 | 79.8 | 61.4 | 59.2 | 53.6 | 56.3 | 46.3 | 48.7 |
| Self-Consistency CoT | 66.0 | 81.1 | 62.9 | 60.5 | 53.7 | 57.2 | 51.1 | 54.7 | |
| Self-Refine | Iteration | 31.1 | 25.1 | 20.6 | 30.1 | 32.4 | 22.3 | 27.5 | 17.3 |
| Self-Refine | 21.4 | 26.6 | 26.6 | 33.4 | 42.4 | 38.5 | 44.8 | 42.6 | |
| SC-Captioner | 65.0 | 66.1 | 63.8 | 61.4 | 43.7 | 49.4 | 29.2 | 39.1 | |
| Recent Multimodal ICL | AIM | - | 77.2 | 80.2 | 77.8 | - | 59.8 | 51.0 | 62.5 |
| TACO | - | 75.1 | 80.9 | 78.7 | - | 59.8 | 50.1 | 59.2 | |
| M²IV | - | 73.6 | 79.9 | 76.9 | - | 51.1 | 53.1 | 51.7 | |
| COMIL (Ours) | 74.0 | 81.0 | 81.9 | 81.2 | 54.7 | 61.7 | 56.8 | 61.2 | |
Inference Details. For each test instance, COMIL generates an initial response and performs up to 3 refinement iterations using top-k = 10 retrieved contrastive demonstrations. In our implementation, the lightweight alignment controller uses openai/clip-vit-base-patch32 [42] as the image encoder and google-bert/bert-base-uncased [9] as the text encoder. For response-conditioned retrieval, both input and response similarities are computed using cosine similarity, with the two retrieval weights set to 0.5. The initial response and each refinement round use a maximum generation length of 2048 tokens. Both controller encoders are frozen, and their representations are fused and scored by a three-layer MLP with a hidden dimension of 512 and dropout of 0.1. For controller training, we use part of the training split of each dataset. The retrieval set is constructed from the last 500 samples of the corresponding training split and is kept disjoint from the controller training set. The main experiments are conducted on the test split of each dataset. Therefore, the controller training set, retrieval set, and evaluation set are mutually exclusive, and no data instance is reused across them. We use the same experimental protocol across different target MLLMs and datasets, and compare all methods under consistent task settings for fair evaluation.
4.2 Main Results
Table 1 reports the main results across four multimodal datasets and four open-source MLLMs, including comparisons with recent multimodal ICL methods. Overall, COMIL achieves the best performance in 13 out of 16 MLLM-dataset settings and ranks second in the remaining three, demonstrating strong and consistent performance across multimodal classification, captioning, and visual question answering. On CIFAR-10, COMIL achieves the best result on three of the four MLLMs and ranks second on Qwen3.5-4B. Its advantages are more consistent on multimodal generation and reasoning tasks. On Flickr30k, COMIL achieves the best performance under all four MLLMs; for example, it reaches 0.517 CIDEr on InternVL3.5-14B, outperforming the strongest baseline AIM by 0.086. On VQAv2, COMIL achieves the best result on three MLLMs and ranks second on InternVL3.5-14B. In particular, it reaches 81.9% accuracy on Qwen3.5-9B, exceeding TACO by 1.0 percentage point. On OKVQA, COMIL again achieves the best performance in three of the four settings and ranks second on Qwen3.5-4B. These results show that COMIL remains competitive not only against conventional retrieval, CoT, and self-refinement baselines, but also against recent multimodal ICL methods. Another notable finding is that
Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
MM '26, November 10–14, 2026, Rio de Janeiro, Brazil
Table 2: Ablation study of contrastive demonstration modeling in COMIL. As more components of the contrastive four-tuple are introduced, performance improves consistently across datasets and target MLLMs.
| MLLMs | InternVL3.5-14B | Qwen3.5-4B | InternVL3.5-14B | Qwen3.5-4B | |||
|---|---|---|---|---|---|---|---|
| Datasets | Flickr30k | VQAv2 | |||||
| CIDEr | Accuracy(%) | ||||||
| ✓ | ✗ | ✓ | ✗ | 0.387 | 0.347 | 70.9 | 69.0 |
| ✓ | ✓ | ✓ | ✗ | 0.475 | 0.358 | 77.1 | 71.2 |
| ✓ | ✓ | ✓ | ✓ | 0.517 | 0.493 | 81.0 | 81.2 |
Table 3: Ablation study of response-conditioned retrieval in COMIL. Response-conditioned retrieval consistently outperforms random retrieval across datasets and target MLLMs.
| MLLMs | InternVL3.5-14B | Qwen3.5-4B | InternVL3.5-14B | Qwen3.5-4B |
|---|---|---|---|---|
| Datasets | Flickr30k | VQAv2 | ||
| Retrieval | CIDEr | Accuracy(%) | ||
| Random | 0.431 | 0.341 | 75.8 | 69.9 |
| Response-conditioned | 0.517 | 0.493 | 81.0 | 81.2 |
Table 4: Ablation study of the lightweight alignment control module in COMIL. The alignment controller consistently improves final performance.
| MLLMs | InternVL3.5-14B | Qwen3.5-4B | InternVL3.5-14B | Qwen3.5-4B |
|---|---|---|---|---|
| Datasets | Flickr30k | VQAv2 | ||
| Alignment Control | CIDEr | Accuracy(%) | ||
| ✗ | 0.491 | 0.407 | 76.3 | 75.2 |
| ✓ | 0.517 | 0.493 | 81.0 | 81.2 |
simple Self-Refine based baselines perform poorly across most multimodal tasks. This suggests that the gains of COMIL do not come from iterative refinement alone, but from the combination of contrastive demonstration modeling, response-conditioned retrieval, and lightweight alignment control.
4.3 Ablation Study
We further analyze how each component contributes to reasoning path alignment during inference. Following the design of COMIL, we study three aspects: contrastive demonstration modeling, response-conditioned retrieval, and lightweight alignment control.
Effect of Contrastive Demonstration Modeling. Table 2 evaluates the effect of the contrastive four-tuple formulation. When the demonstrations contain only the multimodal input and the better response , performance drops substantially on both datasets and both target MLLMs. Adding the suboptimal response but removing the reasoning path results in a less severe performance drop. A standard positive-only demonstration mainly shows the MLLM a preferred response, but does not specify how the current response should be refined under the same input condition. In contrast, introducing makes the contrast between suboptimal and better responses explicit, while adding further clarifies how
the response should be refined and what multimodal evidence supports that refinement. This enables the demonstrations to provide more informative guidance for reasoning path alignment.
Effect of Response-Conditioned Retrieval. Table 3 studies the retrieval strategy. Replacing response-conditioned retrieval with random retrieval consistently degrades performance across both tasks and both MLLMs. This result shows that the effectiveness of retrieval in COMIL depends not simply on the availability of demonstrations, but on whether the retrieved demonstrations provide reasoning paths relevant to the current response under the same input condition. By retrieving such demonstrations, response-conditioned retrieval offers more effective guidance for refining the current response toward the desired reasoning path.
Effect of Lightweight Alignment Control. Table 4 examines the lightweight alignment controller. Removing alignment control causes a consistent but smaller performance drop than removing the contrastive formulation or the retrieval mechanism. This shows that alignment control is not the main source of gains, but it still contributes to the final performance. Its role is better understood as stabilizing refinement rather than providing reasoning guidance by itself. Contrastive demonstration modeling and response-conditioned retrieval determine how the current response should be refined, while the controller predicts the quality of each intermediate response and determines when refinement should stop or which response should be selected. In this way, the controller helps avoid unnecessary or harmful refinement steps and makes the overall refinement process more reliable across datasets and MLLMs.
5 Discussion
5.1 Direct Evaluation of Reasoning Path Alignment
Final task metrics do not directly measure whether the refinement paths are grounded in query-relevant multimodal evidence. We therefore use GPT-5.5 to evaluate each reasoning path along four 0–4 criteria: evidence mention, evidence correctness, task relevance, and response–evidence consistency. The aggregated score is normalized to [0, 1] as the reasoning path alignment (RPA) score. We also report the sample-level Spearman correlation between RPA and the task metric. As shown in Table 5, COMIL achieves the highest RPA score in five of the six settings. Moreover, its Spearman remains consistently positive, ranging from 0.55 to 0.68 with an average of 0.63. These results indicate that the task-performance gains of COMIL are generally accompanied by refinement paths that are better grounded in multimodal evidence under the adopted evaluation protocol. We note that RPA evaluates the generated refinement path and should not be interpreted as a direct measure of the model's unobservable internal reasoning process.
5.2 Case Study
As shown in Figure 4, response-conditioned retrieval can identify demonstrations with relevant refinement patterns. In one VQA example, the query asks for the number of water bottles, for which the initial response overcounts 7 bottles as 8. The retrieved demonstration asks for the number of glasses, but exhibits the same error: it predicts 8 instead of 7 because of rough counting. Its reasoning
Mingbo Yang et al.
Table 5: Direct reasoning-path alignment evaluation. RPA denotes the normalized reasoning-path alignment score, and ρ denotes the sample-level Spearman correlation with the task metric.
| Datasets | Flickr30k | VQAv2 | OKVQA | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MLLMs | InternVL | Qwen | InternVL | Qwen | InternVL | Qwen | ||||||
| Methods | RPA↑ | ρ | RPA↑ | ρ | RPA↑ | ρ | RPA↑ | ρ | RPA↑ | ρ | RPA↑ | ρ |
| KNN | 0.84 | 0.43 | 0.84 | 0.47 | 0.70 | 0.52 | 0.64 | 0.48 | 0.76 | 0.45 | 0.72 | 0.44 |
| LCL | 0.84 | 0.46 | 0.85 | 0.51 | 0.80 | 0.59 | 0.70 | 0.55 | 0.76 | 0.47 | 0.71 | 0.36 |
| SC-CoT | 0.90 | 0.39 | 0.89 | 0.37 | 0.76 | 0.56 | 0.68 | 0.50 | 0.70 | 0.51 | 0.71 | 0.42 |
| Self-Refine | 0.86 | 0.29 | 0.87 | 0.25 | 0.55 | 0.32 | 0.62 | 0.33 | 0.75 | 0.40 | 0.81 | 0.41 |
| COMIL(Ours) | 0.96 | 0.63 | 0.97 | 0.67 | 0.76 | 0.65 | 0.73 | 0.68 | 0.77 | 0.62 | 0.84 | 0.55 |

Figure 4: Case study of response-conditioned retrieval. Although the query and retrieved demonstration involve different objects, both exhibit rough-counting overestimation that is corrected by instance-by-instance enumeration.

Figure 5: Effect of retrieval set size on COMIL. Performance generally improves as the retrieval set grows across Flickr30k, VQAv2, and OKVQA, with diminishing gains at larger scales.
path corrects this error through instance-by-instance enumeration, which similarly guides the query response from 8 to 7. This case illustrates that response-conditioned retrieval can retrieve transferable correction patterns even when the object semantics differ. Nevertheless, response similarity serves as a proxy for refinement relevance rather than a guarantee of the same error mode.
5.3 Effect of Retrieval Dataset Size
We further study how the size of the contrastive retrieval dataset affects COMIL. Specifically, we vary the retrieval dataset size from 20 to 500 and evaluate COMIL on Flickr30k, VQAv2, and OKVQA under three target MLLMs. As shown in Figure 5, increasing the retrieval dataset size generally improves performance across tasks and MLLMs, suggesting that broader retrieval coverage increases the likelihood of finding demonstrations relevant to the current response. The gains, however, gradually diminish as the retrieval
Table 6: Results of COMIL on two closed-source MLLMs. COMIL achieves the best performance on CIFAR10 under both Claude Sonnet 4.6 and GPT-4o.
| Methods | CR | CLIPRE | KNN | COMIL(Ours) |
|---|---|---|---|---|
| Metrics | Accuracy (%) | |||
| MLLMs | Classification: CIFAR10 | |||
| Claude Sonnet 4.6 | 88.1 | 92.5 | 92.9 | 95.3 |
| GPT-4o | 96.7 | 98.7 | 99.1 | 99.8 |
dataset grows. In several settings, performance is already close to its best value at around 300 examples, while further enlargement yields only marginal improvements or small fluctuations. These results indicate that COMIL benefits from richer retrieval coverage but does not require a very large retrieval dataset to achieve strong performance.
5.4 Extension to Closed-Source MLLMs
We further evaluate our method on closed-source MLLMs to examine whether its effectiveness extends beyond open-source settings. As shown in Table 6, our method consistently achieves the best performance on CIFAR10 under both Claude Sonnet 4.6 and GPT-4o [21]. Specifically, it improves the accuracy to 95.3% on Claude Sonnet 4.6 and 99.8% on GPT-4o, outperforming all retrieval-based baselines in both cases. These results suggest that the benefit of our framework does not depend on a specific open-source architecture, but transfers well to stronger closed-source MLLMs, further supporting the general applicability of the proposed framework.
5.5 Cost Considerations
COMIL introduces additional inference cost due to iterative refinement and is therefore not the lowest-cost ICL method. Nevertheless, compared with heavier reasoning and refinement baselines, COMIL reduces average latency and token consumption by 51.6% and 82.7%, respectively, over SC-CoT, and is 29.2% faster than Self-Refine. The target MLLM remains frozen, with additional training confined to the lightweight controller.
6 Conclusion
In this paper, we present COMIL, a multimodal in-context learning framework that moves beyond surface-level imitation by promoting reasoning path alignment during inference. COMIL reformulates demonstrations as contrastive tuples that describe how a suboptimal response can be refined into a better response, combines them with response-conditioned retrieval, and introduces a lightweight alignment controller to guide refinement. In this way, COMIL enables the MLLM not only to observe better responses in context, but also to refine the current response toward better alignment with the evidence-grounded refinement relation. Extensive experiments on multimodal tasks show that COMIL consistently improves performance, with particularly clear gains on reasoning-intensive tasks. Further reasoning-path analyses and results on closed-source MLLMs support the effectiveness and generality of the proposed framework across different model settings.
Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
MM '26, November 10–14, 2026, Rio de Janeiro, Brazil
Acknowledgments
This work was supported by the National Natural Science Foundation of China under Grant No. 62502550 and the Shenzhen Science and Technology Program under Grant No. KJZD20240903095700001.
References
[1] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. 2015. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision. 2425–2433.
[2] Folco Bertini Baldassini, Mustafa Shukor, Matthieu Cord, Laure Soulier, and Benjamin Piwolarski. 2024. What makes multimodal in-context learning work?. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 1539–1550.
[3] Peng Chen, Chao Huang, Yunkang Cao, Chengliang Liu, Wei Wang, Wenqiang Wang, Mingbo Yang, Li Shen, Wenqi Ren, and Xiaochun Cao. 2026. Towards Explainable Industrial Anomaly Detection via Knowledge-Guided Latent Reasoning. arXiv preprint arXiv:2602.09850 (2026).
[4] Peng Chen, Fangjun Huang, and Chao Huang. 2026. DyC-CLIP: Dynamic context-aware multi-modal prompt learning for zero-shot anomaly detection. Pattern Recognition (2026), 113215.
[5] Qiguang Chen, Libo Qin, Jinhao Liu, Dengyun Peng, Jiannan Guan, Peng Wang, Mengkang Hu, Yuhang Zhou, Te Gao, and Wanxiang Che. 2025. Towards reasoning era: A survey of long chain-of-thought for reasoning large language models. arXiv preprint arXiv:2503.09567 (2025).
[6] Shuo Chen, Zhen Han, Bailian He, Jianzhe Liu, Mark Buckley, Yao Qin, Philip Torr, Volker Tresp, and Jindong Gu. 2025. Can Multimodal Large Language Models Truly Perform Multimodal In-Context Learning?. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV). IEEE, 6000–6010.
[7] Yi Chen, Yuying Ge, Yixiao Ge, Mingyu Ding, Bohao Li, Rui Wang, Ruifeng Xu, Ying Shan, and Xihui Liu. 2026. Egoplan-bench: Benchmarking multimodal large language models for human-level planning. International Journal of Computer Vision 134, 3 (2026), 118.
[8] Yannan Chen, Wenqiang Wang, Ruoyu Chen, Jiancheng Wang, Mingbo Yang, Yaowei Wang, Wei Wang, and Xiaochun Cao. 2026. Domain Adaptive Object Detection via Dual-Stream Bilevel-Cycle Optimization. arXiv preprint arXiv:2606.31373 (2026).
[9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers). 4171–4186.
[10] Sivan Doveh, Shaked Perek, M Jehanzeb Mirza, Wei Lin, Amit Alfassy, Assaf Arbelle, Shimon Ullman, and Leonid Karlinsky. 2024. Towards multimodal in-context learning for vision and language models. In European Conference on Computer Vision. Springer, 250–267.
[11] Abdolmajid Erfani and Ali Mansouri. 2026. Applications of multimodal large language models in construction industry. Advanced Engineering Informatics 69 (2026), 103909.
[12] Xinqi Fan, Xueli Chen, Luoxiao Yang, Chuin Hong Yap, Rizwan Qureshi, Qi Dou, Moi Hoon Yap, and Mubarak Shah. 2025. Test-Time Retrieval-Augmented Adaptation for Vision-Language Models. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 8810–8819.
[13] Yu Fei, Yifan Hou, Zeming Chen, and Antoine Bosselut. 2023. Mitigating label biases for in-context learning. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 14014–14031.
[14] Jun Gao, Qian Qiao, Tianxiang Wu, Zili Wang, Ziqiang Cao, and Wenjie Li. 2025. Aim: Let any multimodal large language models embrace efficient in-context learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 39, 3077–3085.
[15] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 2017. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition. 6904–6913.
[16] Gongde Guo, Hui Wang, David Bell, Yaxin Bi, and Kieran Greer. 2003. KNN model-based approach in classification. In OTM Confederated International Conferences On the Move to Meaningful Internet Systems . Springer, 986–996.
[17] Yaxin Guo, Hongye Tan, Ru Li, Xiaoli Li, Xinyi Sun, Pengpeng Qiang, and Hu Zhang. 2026. Problem decomposition guided by reasoning utility for complex reasoning in LLMs. Information Processing & Management 63, 3 (2026), 104509.
[18] Chengyue Huang, Yuchen Zhu, Sichen Zhu, Jingyun Xiao, Moises Andrade, Shivang Chopra, and Zsolt Kira. 2025. Mimicking or reasoning: Rethinking multi-modal in-context learning in vision-language models. arXiv preprint arXiv:2506.07936 (2025).
[19] Qihe Huang, Lei Shen, Ruixin Zhang, Shouhong Ding, Binwu Wang, Zhengyang Zhou, and Yang Wang. 2023. Crossgnn: Confronting noisy multivariate time
series via cross interaction refinement. Advances in Neural Information Processing Systems 56 (2023), 46858–46902.
[20] Yiran Huang, Karsten Roth, Quentin Bouniot, Wenjia Xu, and Zeynep Akata. 2026. Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformers. arXiv preprint arXiv:2601.20796 (2026).
[21] Aaron Hurst, Adam Lerer, Adam P Goucher, Alan Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. 2024. Gpt-4o system card. arXiv preprint arXiv:2410.21276 (2024).
[22] Yuchu Jiang, Jiale Fu, Chenduo Hao, Xinting Hu, Yingzhe Peng, Xin Geng, and Xu Yang. 2025. Mimic in-context learning for multimodal tasks. In Proceedings of the Computer Vision and Pattern Recognition Conference. 29825–29835.
[23] Yizhang Jin, Jian Li, Tianjun Gu, Yexin Liu, Bo Zhao, Jinxiang Lai, Zhenye Gan, Yabiao Wang, Chengjie Wang, Xin Tan, et al. 2025. Efficient multimodal large language models: A survey. Visual Intelligence 3, 1 (2025), 27.
[24] Chenglong Kang, Xiaoyi Liu, and Fei Guo. 2025. Retriointext: A multimodal large language model enhanced framework for retrosynthesis planning via in-context representation learning. In The Thirteenth International Conference on Learning Representations.
[25] Zhaolu Kang, Junhao Gong, Jiaxu Yan, Wanke Xia, Yian Wang, Zhuo Cheng, Wenhao Cao, Ziwen Wang, ZhiYuan Feng, Huaxuan Ding, et al. 2026. Hsbench: Benchmarking humanities and social sciences ability for multimodal large language models. In International Conference on Learning Representations, Vol. 2026. 74664–74719.
[26] Zixuan Ke, Fangkai Jiao, Yifei Ming, Xuan-Phi Nguyen, Austin Xu, Do Xuan Long, Minzhi Li, Chengwei Qin, Peifeng Wang, Silvio Savarese, et al. 2025. A survey of frontiers in lm reasoning: Inference scaling, learning to reason, and agentic systems. arXiv preprint arXiv:2504.09037 (2025).
[27] Seungone Kim, Se Joo, Doyoung Kim, Joel Jang, Seonghyeon Ye, Jamin Shin, and Minjoon Seo. 2023. The cot collection: Improving zero-shot and few-shot learning of language models via chain-of-thought fine-tuning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 12685–12708.
[28] Alex Krizhevsky, Geoffrey Hinton, et al. 2009. Learning multiple layers of features from tiny images. (2009).
[29] Vaishak Kumar. 2026. Act-Observe-Rewrite: Multimodal Coding Agents as In-Context Policy Learners for Robot Manipulation. arXiv preprint arXiv:2603.04466 (2026).
[30] Hyunseok Lee, Seunghyuk Oh, Jaehyung Kim, Jinwoo Shin, and Jihoon Tack. 2025. Revise: Learning to refine at test-time via intrinsic self-verification. arXiv preprint arXiv:2502.14565 (2025).
[31] Yanshu Li, Yi Cao, Hongyang He, Qisen Cheng, Xiang Fu, Xi Xiao, Tianyang Wang, and Ruixiang Tang. 2025. M²IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineering. arXiv preprint arXiv:2504.04633 (2025).
[32] Yanshu Li, Jianjiang Yang, Zhennan Shen, Ligong Han, Haoyan Xu, and Ruixiang Tang. 2026. Catp: Contextually adaptive token pruning for efficient and enhanced multimodal in-context learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 40, 6619–6627.
[33] Yanshu Li, Jianjiang Yang, Tian Yun, Pinyuan Feng, Jinfu Huang, and Ruixiang Tang. 2025. Taco: Enhancing multimodal in-context learning via task mapping-guided sequence configuration. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 736–763.
[34] Wenwen Liao, Jianbo Yu, Yuansong Wang, Qingchao Jiang, and Xiaofeng Yang. 2026. Enhancing Visual In-Context Learning by Multi-Faceted Fusion. arXiv preprint arXiv:2601.10107 (2026).
[35] Xiaoyong Liu and W Bruce Croft. 2004. Cluster-based retrieval using language models. In Proceedings of the 27th annual international ACM SIGIR conference on Research and development in information retrieval. 186–193.
[36] Quanyu Long, Yin Wu, Wenya Wang, and Sinno Jialin Pan. 2024. Does in-context learning really learn? rethinking how large language models respond and solve tasks via in-context learning. arXiv preprint arXiv:2404.07546 (2024).
[37] Man Luo, Xin Xu, Yue Liu, Panupong Pasupat, and Mehran Kazemi. 2024. In-context learning with retrieved demonstrations for language models: A survey. arXiv preprint arXiv:2401.11624 (2024).
[38] Aman Madaan, Niket Tandon, Prakash Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegrefle, Uri Alon, Nouha Dzirri, Shrimai Prabhumoye, Yiming Yang, et al. 2023. Self-refine: Iterative refinement with self-feedback. Advances in neural information processing systems 36 (2023), 46534–46594.
[39] Toan Nguyen, Weiduo Yuan, Songlin Wei, Hui Li, Daniel Seita, and Yue Wang. 2026. ICLR: In-Context Imitation Learning with Visual Reasoning. arXiv preprint arXiv:2603.07530 (2026).
[40] Debjit Paul, Mete Ismayilzada, Maxime Peyrard, Beatriz Borges, Antoine Bosselut, Robert West, and Bo Faltings. 2024. Refiner: Reasoning feedback on intermediate representations. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers). 1100–1126.
[41] Qwen Team. 2026. Qwen3.5: Towards Native Multimodal Agents. https://qwen.ai/blog?id=qwen3.5
[42] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark,
Mingbo Yang et al.
et al. 2021. Learning transferable visual models from natural language supervision. In International conference on machine learning. PmLR, 8748–8763.
[43] Dustin Schwenk, Apoorv Khandelwal, Christopher Clark, Kenneth Marino, and Roozbeh Mottaghi. 2022. A-okvqa: A benchmark for visual question answering using world knowledge. In European conference on computer vision. Springer, 146–162.
[44] Shezheng Song, Xiaopeng Li, Shasha Li, Shan Zhao, Jie Yu, Jun Ma, Xiaoguang Mao, Weimin Zhang, and Meng Wang. 2025. How to bridge the gap between modalities: Survey on multimodal large language model. IEEE Transactions on Knowledge and Data Engineering 37, 9 (2025), 5311–5329.
[45] Yanpeng Sun, Qiang Chen, Jian Wang, Jingdong Wang, and Zechao Li. 2025. Exploring effective factors for improving visual in-context learning. IEEE Transactions on Image Processing (2025).
[46] Yan Tai, Weichen Fan, Zhao Zhang, and Ziwei Liu. 2024. Link-context learning for multimodal llms. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 27176–27185.
[47] Xinyu Tang, Xiaolei Wang, Wayne Xin Zhao, and Ji-Rong Wen. 2025. Dawn-icl: Strategic planning of problem-solving trajectories for zero-shot in-context learning. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 1918–1934.
[48] Gemma Team. 2025. Gemma 3. (2025). https://goo.gl/e/Gemma3Report
[49] Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. 2015. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE conference on computer vision and pattern recognition. 4566–4575.
[50] Jianing Wang, Chengyu Wang, Chuanqi Tan, Jun Huang, and Ming Gao. 2024. Knowledgeable in-context tuning: exploring and exploiting factual knowledge for in-context learning. In Findings of the Association for Computational Linguistics: NAACL 2024. 3261–3280.
[51] Song Wang, Zihan Chen, Chengshuai Shi, Cong Shen, and Jundong Li. 2024. Mixture of demonstrations for in-context learning. Advances in Neural Information Processing Systems 37 (2024), 88091–88116.
[52] Wenqiang Wang, Peng Chen, Yan Xiao, Yangshijie Zhang, Xiaoyue Lu, Jianjie Huang, and Xiaochun Cao. 2026. Task-Related In-Context Learning. In Findings of the Association for Computational Linguistics: ACL 2026. 43378–43400.
[53] Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. 2025. InternVL3.5: Advancing Open-Source Multimodal Models in Versatility, Reasoning, and Efficiency. arXiv preprint arXiv:2508.18265 (2025).
[54] Wenqiang Wang, XIAO Yan, Xiaojun Jia, Yangshijie Zhang, Peng Chen, Bin Zeng, and Xiaochun Cao. 2026. Dynamic k-shot In-Context Learning. (2026).
[55] Wenqiang Wang, Wen Yujia, Yan Xiao, Zhifeng Chen, Yangshijie Zhang, Peng Chen, Mingbo Yang, and Xiaochun Cao. 2026. Incomplete in-context learning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 41629–41650.
[56] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171 (2022).
[57] Jinyang Wu, Mingkuan Feng, Shuai Zhang, Feihu Che, Zengqi Wen, Chonghua Liao, and Jianhua Tao. 2024. Beyond examples: High-level automated reasoning paradigm in in-context learning via mcts. arXiv preprint arXiv:2411.18478 (2024).
[58] Junfeng Wu, Yi Jiang, Chuofan Ma, Yuliang Liu, Hengshuang Zhao, Zehuan Yuan, Song Bai, and Xiang Bai. 2026. Liquid: Language models are scalable and unified multi-modal generators. International Journal of Computer Vision 134, 1 (2026), 39.
[59] Fengli Xu, Qianyue Hao, Chenyang Shao, Zefang Zong, Yu Li, Jingwei Wang, Yunke Zhang, Jingyi Wang, Xiaochong Lan, Jiahui Gong, et al. 2025. Toward large reasoning models: A survey of reinforced reasoning with large language models. Patterns 6, 10 (2025).
[60] Nan Xu, Fei Wang, Sheng Zhang, Hoifung Poon, and Muhao Chen. 2025. From introspection to best practices: Principled analysis of demonstrations in multimodal in-context learning. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 3299–3324.
[61] Zhuoyuan Xu, Khoi Duc Nguyen, Preeti Mukherjee, Saurabh Bagchi, Somali Chaterji, Yingyu Liang, and Yin Li. 2025. Learning to inference adaptively for multimodal large language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 3552–3563.
[62] Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, et al. 2023. Supervised knowledge makes large language models better in-context learners. arXiv preprint arXiv:2312.15918 (2023).
[63] Linli Yao, Long Xing, Yang Shi, Sida Li, Yuanxin Liu, Yuhao Dong, Yi-Fan Zhang, Lei Li, Qingxiu Dong, Xiaoyi Dong, et al. 2026. Towards efficient multimodal large language models: A survey on token compression. Authorea Preprints (2026).
[64] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. 2014. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the association for computational linguistics 2 (2014), 67–78.
[65] Zaifu Zhan, Shuang Zhou, Xiaoshan Zhou, Yongkang Xiao, Jun Wang, Jiawen Deng, He Zhu, Yu Hou, Yiran Song, Mingquan Lin, et al. 2026. Retrieval-augmented in-context learning for multimodal large language models in disease classification. Journal of Biomedical Informatics (2026), 105017.
[66] Lin Zhang, Xianfang Zeng, Kangcong Li, Gang Yu, and Tao Chen. 2025. Sc-captioner: Improving image captioning with self-correction by reinforcement learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 23145–23155.
[67] Yuanhan Zhang, Kaiyang Zhou, and Ziwei Liu. 2023. What makes good examples for visual in-context learning? Advances in Neural Information Processing Systems 36 (2023), 17773–17794.
[68] Ce Zheng, Lei Li, Qingxiu Dong, Yuxuan Fan, Zhiyong Wu, Jingjing Xu, and Baobao Chang. 2023. Can we edit factual knowledge by in-context learning?. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 4862–4876.
[69] Aoxiang Zhou, Hao Wu, Kaichen Peng, Peng Liu, and Xianxian Li. 2026. Improving Few-Shot Multi-modal Aspect-Level Sentiment Classification with Implicit In-context Learning. In International Conference on Multimedia Modeling. Springer, 301–314.
[70] Yucheng Zhou, Xiang Li, Qianning Wang, and Jianbing Shen. 2024. Visual in-context learning for large vision-language models. In Findings of the Association for Computational Linguistics: ACL 2024. 15890–15902.