Manuscript Offprint
arXiv:2610.41754Multimodal In-Context Learning with Explicit Rule Induction
Abstract
A central challenge in multimodal in-context learning (MICL) arises from tasks that are ill-defined without context and require uncovering the underlying rules from demonstrations. Existing methods predominantly treat MICL as direct input-output mapping, overlooking the importance of explicitly inducing and reasoning over such rules, limiting both performance and interpretability. We propose ERIM, Explicit Rule-Induction for Multimodal In-Context Learning, a unified framework that enhances MICL by explicitly inducing the latent rules governing demonstration samples. Leveraging the reasoning ability of multi-modal large language model (MLLM), ERIM constructs rule-centric MICL datasets, introduces explicit supervision for rule induction, and fine-tunes MLLM to perform explicit rule-induction via a two-stage training strategy that combines mixed cold-start supervised fine-tuning with reinforcement learning. Extensive experiments show consistent performance improvements across diverse MICL settings and demonstrate that correctly inducing underlying rules directly leads to stronger and more stable performance.
1 Introduction
In-context learning (ICL) (Brown et al. 2020; Wang et al. 2025; Dong et al. 2024) has emerged as a key capability of large language models, enabling training-free task adaptation through a small number of contextual demonstrations. With the advent of multimodal models (Chen et al. 2024), this paradigm has recently been extended to multimodal in-context learning (MICL) (Jiang et al. 2024; Chen et al. 2025b). However, existing MICL evaluations largely focus on few-shot variants of standard vision tasks, which have been shown to be weak proxies for genuine context-dependent learning (Chen et al. 2025c). In such settings, performance gains may arise from parametric knowledge or superficial pattern imitation rather than true adaptation to the provided demonstrations (Zong, Bohdal, and Hospedales 2025).
To address this limitation, prior work distinguishes between two categories of MICL tasks. Case I consists of standard vision tasks that remain well-defined even in the absence of demonstrations. In contrast, Case II tasks are governed by an underlying rule that is shared across examples and cannot be inferred without contextual information (Huang et al. 2025). Consequently, demonstrations in Case II jointly define how the task should be solved, requiring models to extract,

Figure 1: Comparison of MICL paradigms. (a) Existing methods treat MICL as a direct input-output mapping. (b) Our approach explicitly induces a rule from the support set and applies it to the query.
abstract, and generalize task-defining rules from the context and apply the induced rule to unseen queries. As a result, Case II more faithfully reflects the core notion of in-context learning and provides a more stringent test of whether multimodal models truly learn from context rather than rely on default inference behaviors (Zong, Bohdal, and Hospedales 2025; Chen et al. 2025c).
Despite growing interest to multimodal in-context learning (Awadalla et al. 2023; Laurençon et al. 2024; Laurençon et al. 2024), Case II tasks remain insufficiently studied and inadequately addressed. While most existing MICL methods and evaluations are still centered on Case I settings (Qin et al. 2024; Doveh et al. 2024; Jiang et al. 2024), some recent efforts have begun to consider Case II problems. However, as shown in Figure 1(a), these approaches often treat Case II as a straightforward extension of generic MICL rather than as a distinct regime with unique challenges (Peng et al. 2024; Gupta, Storkey, and Lapata 2025; Chen et al. 2025c). They primarily emphasize general improvements such as representation alignment or prompting strategies, while overlooking the context-driven rule induction and abstraction. In this paper, we argue that explicitly inducing the underlying rules from contextual demonstrations is essential for solving Case II scenarios. Accordingly, we focus on Case II multimodal in-context learning and emphasize developing models capable of inferring shared underlying rules from demonstration examples and reliably applying these rules to new inputs, as illustrated in Figure 1(b).
With recent advances in multimodal large language mod-
Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.
els (MLLMs), which exhibit strong reasoning and abstraction capabilities across vision-language tasks (Bai et al. 2025), it is natural to leverage MLLMs to explicitly induce and articulate underlying rules, thereby enabling more effective generalization and improved performance on Case II tasks.
As a result, we propose ERIM (Explicit Rule-Induction for Multimodal In-Context Learning), a unified framework that systematically equips multimodal models with the ability to explicitly induce, reason over, and apply underlying rules in Case II MICL scenarios. ERIM transforms implicit contextual cues in MICL into an explicit and learnable inductive process through a tightly coupled data construction and training paradigm. Specifically, ERIM organizes multimodal data into rule-centric MICL episodes and introduces explicit rule-induction supervision, enabling models to learn how underlying rules are inferred from contextual demonstrations and how these rules govern query prediction. Building on such rule-centric datasets, ERIM fine-tunes multimodal large language models using a two-stage training strategy that combines mixed cold-start supervised fine-tuning with reinforcement learning, resulting in stronger rule reasoning, improved generalization, and more stable performance on Case II tasks.
We conduct extensive experiments across diverse Case II MICL benchmarks, demonstrating that models trained under ERIM achieve substantial and consistent performance improvements over strong baselines. Beyond accuracy gains, we perform in-depth analyses on rule consistency and generalization behavior, showing that explicit rule-induction supervision leads models to induce rules that are not only correct but also stable and transferable across contexts. These results provide empirical evidence that explicitly inducing the correct underlying rules is a key factor driving performance improvements in multimodal in-context learning.
In summary, our contributions are as follows:
-
To the best of our knowledge, this work is the first to systematically explore explicit rule induction as a principled mechanism for enhancing Case II multimodal in-context learning, revealing that making underlying rules explicit enables models to induce correct rules and achieve stronger MICL performance.
-
We propose ERIM, a unified framework that integrates data construction, rule induction supervision generation, and two-stage training to make contextual rule induction explicit, scalable, and learnable.
-
We conduct comprehensive experiments and analyses that validate the effectiveness, generalization, and interpretability benefits of explicit rule induction in multimodal in-context learning.
2.1 Multimodal Large Language Models
Modern MLLMs achieve strong few-shot and in-context learning abilities by combining large-scale interleaved image-text pretraining with architectural advances for multimodal fusion. Flamingo (Alayrac et al. 2022) establishes this paradigm by enabling flexible visual-textual conditioning and demonstrates state-of-the-art few-shot performance
on a wide range of vision-language tasks. Subsequent works extend this framework through instruction tuning and data scaling, including Otter (Li et al. 2025a) and MMICL (Zhao et al. 2024), which improve instruction following and multi-image prompt understanding, as well as systematic design studies that lead to efficient models such as Idefics and its successors (Laurençon et al. 2024; Laurençon et al. 2024). Other efforts focus on expanding modality coverage and visual fidelity. LLaVA-OneVision (Li et al. 2024a) unifies single-image, multi-image, and video understanding within a single model, while OtterHD (Li et al. 2023) emphasizes high-resolution perception and fine-grained spatial reasoning. Meanwhile, strong compact language backbones, such as the Phi-3 and Phi-3.5 series (Abdin et al. 2024), provide powerful reasoning capabilities. Despite these advances, most existing MLLMs are trained on broad interleaved data and evaluated on Case I settings. As a result, performance often reflects strong zero-shot abilities rather than genuine cross-example abstraction.
2.2 Multimodal In-Context Learning
Recent work on MICL mainly improves efficiency and stability by freezing pretrained MLLMs and modifying how demonstrations are encoded or utilized. AIM (Gao et al. 2025) compresses multimodal demonstrations into compact latent representations to reduce visual token overhead, while LIVE (Peng et al. 2024) distills task-relevant information into learnable in-context vectors for efficient VQA. CATP (Li et al. 2025c) further addresses redundancy in multimodal contexts by pruning uninformative visual tokens to improve both efficiency and robustness. To better leverage multimodal context, TrueMICL (Chen et al. 2025c) highlights models' over-reliance on textual patterns and proposes attention reallocation with a dedicated benchmark, while CAMA (Li et al. 2025b) modulates attention logits in a training-free manner to stabilize multimodal context utilization. Despite these advances, most existing methods largely overlook the inductive reasoning capacity of MLLMs themselves, limiting their effectiveness on Case II MICL scenarios that require deeper rule induction, abstraction, and generalization from context.
3 Method
This section presents ERIM, Explicit Rule-Induction for Multimodal In-Context Learning, a unified framework for Case II MICL, as illustrated in Figure 2.
3.1 Problem Formulation and Scope
We focus on Case II Multimodal In-Context Learning, where individual samples are ill-defined in isolation with an underlying rule shared by demonstration examples. Formally, each learning instance in MICL is organized as an episode, consisting of multiple VQA-style samples: a support set of samples,
where , and denote the visual input, question, and answer, respectively, along with a query sample whose answer is withheld at inference time. All samples within an episode are governed by a shared underlying rule,

Figure 2: Overview of ERIM for Case II multimodal in-context learning. ERIM organizes data into rule-centric MICL episodes and generates explicit rule-induction supervision by transforming multimodal episodes into text-based proxies with rule-preserving captions and faithfully filtered reasoning chains. The model is trained with a two-stage strategy that combines mixed supervised fine-tuning and reinforcement learning, enabling robust induction and application of underlying rules from context.
defining a mapping from visual inputs and question to the final answer.
Our goal is to fine-tune an MLLM that, given a support set and a query, can first explicitly induce the underlying rule shared by the episode, and then apply the induced rule to predict the final answer. Concretely, the model is trained to perform rule induction conditioned on the support set,
where denotes the explicitly induced rule, and Prompt is the prompt template. The model then applies this rule to the query sample to produce the answer,
In practice, these two steps are implemented using a unified think-then-answer prompt template, where the model is encouraged to first reason about and articulate the underlying rule before generating the final answer.
3.2 Rule-Centric Data Construction
We construct a Rule-Centric Multimodal In-Context Learning Dataset by organizing samples around shared underlying rules, which define valid Case II MICL episodes. The construction process starts from existing multimodal datasets and involves deriving rule definitions from annotations, grouping samples accordingly, and sampling support-query sets within each group. We apply this procedure
to both typical VQA datasets and synthetic multimodal data, with rule construction adapted to the characteristics of each data source.
Typical VQA Datasets For typical VQA datasets, underlying rules are not explicitly annotated and are derived from existing labels. We select datasets with sufficiently regular question structure for coherent rule construction, including VQAv1 (Antol et al. 2015), VQAv2 (Goyal et al. 2017), IconQA (Lu et al. 2021), and OCR-VQA (Mishra et al. 2019), excluding datasets that are unsuitable for coherent rule construction. We define underlying rules by grouping samples with identical question texts, where each unique question text specifies a shared rule that governs the visual-answer mapping. Additional processing details are provided in the Appendix A.1.
Synthetic Multimodal Data The detailed and accurate annotations of synthetic or rendered datasets enable more controlled underlying rule design. For spatial perception and reasoning, we use Super-CLEVR-3D (Wang et al. 2023), a challenging extension of CLEVR (Johnson et al. 2017), and manually design underlying rules that require reasoning over 3D spatial configurations and object relations. For mathematical reasoning, we use rendered datasets of mathematical expressions and construct underlying rules based on simple arithmetic or symbolic relationships. More processing details are provided in the Appendix A.2.
3.3 Explicit Rule-Induction Supervision Generation
To enhance rule-induction in Case II MICL, we generate Explicit Rule-Induction Supervision from the Rule-Centric MICL Dataset. The core idea is to transform MICL episodes into text-only ICL tasks by replacing visual inputs with captions that preserve all rule-relevant information. This allows powerful language reasoning models to operate as proxies for MICL, producing explicit reasoning chains that reveal how the underlying rules are induced from the support set and applied to the query.
Generating Rule-Preserving Captions In Case II MICL, where underlying rules are constructed from specific visual attributes or relations, naively replacing images with captions may introduce severe and cumulative modality gaps, as any loss or distortion of rule-relevant visual information may invalidate the underlying rule of the episode and prevent correct rule induction.
To mitigate this issue, we adopt a caption filtering procedure to preserve critical visual details. For each image, we input the visual data together with the annotations used for rule construction into a MLLM to generate multiple candidate captions covering all relevant information. Each candidate is then paired with corresponding annotations and evaluated by another LLM, which judges whether the caption fully captures the annotated content. We retain only captions that fully capture the critical visual details, ensuring rule-preserving text representations for subsequent reasoning.
Producing Faithful Rule-Induction Chains Using the rule-preserving captions, we replace all visual inputs in Rule-Centric MICL episodes, converting them into text-only in-context learning tasks. These episodes are then processed by a reasoning LLM, which performs rule induction and application based on the caption-based representations, acting as a proxy for MICL. We apply rejection sampling to retain only reasoning chains that are both correct and rule-consistent.
Specifically, for each episode, the reasoning LLM generates multiple candidate reasoning chains. We first require the final answer enclosed in the <answer> </answer> tag to match the ground-truth query answer, ensuring answer-level correctness. We then evaluate whether the induced rule expressed in the reasoning chain is consistent with the underlying rule defined during episode construction by jointly providing the generated reasoning chain and the ground-truth rule description to another LLM for consistency judgment.
Mitigating Modality Drift by Rewriting Even after filtering for correct and rule-consistent rule-induction chains, some retained rule-induction chains may exhibit modality drift in long-context reasoning, where the model gradually deviates from a multimodal reasoning role and instead explicitly refers to caption text. To address this issue, we use a LLM to refine the retained rule-induction chains by rewriting each chain to eliminate caption-specific references and correct inappropriate phrasing. Through this rewriting process, we obtain coherent, faithful, and multimodal-consistent rule-induction chains, which constitute the final Explicit Rule-Induction Supervision.
3.4 Two-Stage Fine-tuning Strategy
Mixed Cold-Start via Supervised Fine-Tuning We initialize the model using mixed cold-start supervised fine-tuning on a combination of three data forms derived from the same MICL episodes: original episodes with direct answer supervision, caption-based text-only episodes and original episodes with explicit rule-induction supervision. After this mixed supervised fine-tuning stage, we denote the resulting initialized model as . This model exhibits aligned output formats and basic rule-induction behaviors, providing a stable foundation for subsequent reinforcement learning.
Reinforcement Learning with DAPO To further improve generalization beyond supervised reasoning chains, we apply reinforcement learning on rule-centric MICL episodes without explicit rule-induction supervision, denoted as . We adopt DAPO (Yu et al. 2026), a variant of Group Relative Policy Optimization (Shao et al. 2024) that applies a clip-higher operation to enable broader exploration and performs dynamic sampling to discard groups with uninformative (extremely high or low) rewards.
For each MICL prompt , the current policy which is initialized as samples a group of candidate outputs . Each output is assigned a reward:
where checks whether the output follows the required <think>...</think><answer>...</answer> format, and indicates whether the extracted answer matches the ground truth. The resulting policy optimization objective is:
4 Experiments
4.1 Experimental Setup
Benchmarks and Baselines We first select datasets from existing MICL benchmarks that satisfy the Case II setting, and then further filter out subsets that can already be well solved by Qwen2.5-VL-3B-Instruct (Bai et al. 2025). Following this process, we retain five subsets, open mi, clevr, operator induction, interleaved operator induction, and matching mi, from VL-ICL (Zong, Bohdal, and Hospedales 2025), and three subsets, clock, palindrome, and clevr (TrueMICL), from TrueMICL (Chen et al. 2025c). These benchmarks span diverse rule types, including visual relations, symbolic operations, and abstract pattern induction.
We compare our method with representative MICL models of comparable scale that do not rely on task-specific modules or additional supervision. We include OpenFlamingo-9B (Awadalla et al. 2023) and IDEFICS3-8B-Llama3 (Laurençon et al. 2024) as representative MICL baselines.
| Method | Mode | CLEVR | Operator Induction | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 24.00 | 24.67 | 24.17 | 26.67 | 24.83 | 24.87 | 8.33 | 7.78 | 6.11 | 5.00 | 8.33 | 7.11 |
| IDEFICS3-8B-Llama3 | answer | 57.00 | 54.00 | 54.50 | 57.83 | 60.83 | 56.83 | 0.00 | 0.00 | 1.11 | 1.67 | 1.67 | 0.89 |
| Phi-3.5-Vision | answer | 32.17 | 26.83 | 28.33 | 26.00 | 28.33 | 28.33 | 10.56 | 15.56 | 11.11 | 6.11 | 7.78 | 10.22 |
| LLaVA-OneVision-7B | answer | 46.33 | 48.83 | 51.17 | 50.50 | 49.83 | 49.33 | 43.89 | 50.56 | 54.44 | 49.44 | 55.00 | 50.67 |
| OpenVLThinker-3B | reasoning | 56.33 | 57.17 | 53.00 | 55.83 | 53.33 | 55.13 | 73.33 | 82.22 | 80.00 | 79.44 | 82.22 | 79.44 |
| VLAA-Thinker-3B | reasoning | 56.83 | 56.67 | 54.67 | 51.50 | 48.67 | 53.67 | 67.78 | 76.11 | 83.33 | 83.89 | 80.56 | 78.33 |
| Qwen2.5-VL-3B | answer | 51.00 | 52.67 | 53.33 | 54.67 | 55.17 | 53.37 | 67.78 | 74.44 | 74.44 | 80.56 | 76.67 | 74.78 |
| ERIM-3B (Ours) | induction | 64.00 | 64.33 | 65.33 | 66.83 | 63.83 | 64.87 | 88.89 | 92.22 | 90.56 | 96.67 | 97.22 | 93.11 |
| Method | Mode | Matching MI | Clock | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 4 | 5 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 32.08 | 50.00 | 50.00 | 50.00 | 50.00 | 46.42 | 5.00 | 7.00 | 3.00 | 3.00 | 5.00 | 4.60 |
| IDEFICS3-8B-Llama3 | answer | 62.58 | 50.17 | 50.08 | 49.75 | 50.17 | 52.55 | 3.00 | 3.00 | 5.00 | 8.00 | 6.00 | 5.00 |
| Phi-3.5-Vision | answer | 68.42 | 49.75 | 49.92 | 50.08 | 50.08 | 53.65 | 7.00 | 5.00 | 11.00 | 6.00 | 6.00 | 7.00 |
| LLaVA-OneVision-7B | answer | 84.00 | 55.83 | 56.67 | 56.75 | 54.58 | 61.57 | 21.00 | 14.00 | 18.00 | 16.00 | 14.00 | 16.60 |
| OpenVLThinker-3B | reasoning | 77.58 | 56.75 | 55.83 | 58.00 | 56.83 | 61.00 | 44.00 | 61.00 | 74.00 | 71.00 | 74.00 | 64.80 |
| VLAA-Thinker-3B | reasoning | 75.50 | 60.67 | 62.50 | 63.08 | 65.33 | 65.42 | 42.00 | 52.00 | 52.00 | 60.00 | 54.00 | 52.00 |
| Qwen2.5-VL-3B | answer | 67.67 | 52.08 | 52.17 | 53.42 | 54.50 | 55.97 | 32.00 | 41.00 | 45.00 | 51.00 | 49.00 | 43.60 |
| ERIM-3B (Ours) | induction | 64.17 | 76.25 | 77.08 | 81.58 | 82.08 | 76.23 | 78.00 | 71.00 | 83.00 | 77.00 | 71.00 | 76.00 |
| Method | Mode | CLEVR (TrueMICL) | Subset-Level Average | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | Avg | / | / | / | / | / | Avg | ||
| OpenFlamingo-9B | answer | 30.00 | 34.00 | 34.00 | 33.00 | 30.00 | 32.20 | 14.08 | 17.90 | 22.34 | 26.52 | 26.97 | 21.56 |
| IDEFICS3-8B-Llama3 | answer | 35.00 | 31.00 | 39.00 | 31.00 | 39.00 | 35.00 | 24.70 | 23.45 | 25.47 | 28.43 | 30.82 | 26.57 |
| Phi-3.5-Vision | answer | 25.00 | 29.00 | 29.00 | 35.00 | 30.00 | 29.60 | 20.38 | 17.73 | 21.63 | 20.83 | 21.45 | 20.40 |
| LLaVA-OneVision-7B | answer | 30.00 | 32.00 | 38.00 | 35.00 | 37.00 | 34.40 | 44.03 | 44.98 | 54.31 | 53.98 | 54.23 | 50.31 |
| OpenVLThinker-3B | reasoning | 16.00 | 18.00 | 15.00 | 16.00 | 18.00 | 16.60 | 49.85 | 52.01 | 54.96 | 56.84 | 57.34 | 54.20 |
| VLAA-Thinker-3B | reasoning | 11.00 | 12.00 | 6.00 | 12.00 | 12.00 | 10.60 | 44.01 | 45.95 | 48.29 | 52.61 | 53.03 | 48.78 |
| Qwen2.5-VL-3B | answer | 12.00 | 19.00 | 24.00 | 27.00 | 31.00 | 22.60 | 40.74 | 43.37 | 52.83 | 55.48 | 56.12 | 49.71 |
| ERIM-3B (Ours) | induction | 35.00 | 37.00 | 46.00 | 44.00 | 32.00 | 38.80 | 58.69 | 71.91 | 77.36 | 78.02 | 75.40 | 72.28 |
Table 1: Main results on Case II MICL benchmarks. We report accuracy (%) of different methods across benchmark subsets under varying n-shot settings, along with the average performance over n-shots. For subsets with benchmark-specific additional information, results are averaged over all such settings. Due to space constraints, only 5 out of the 8 selected subsets are shown; the final block reports subset-level averages to assess overall performance on Case II MICL benchmarks.

(a) data distribution

(b) word cloud
Figure 3: Statistical overview of the two core datasets used in our method.
To further broaden the comparison, we consider Phi-3.5-Vision (Abdin et al. 2024), LLaVA-OneVision-7B (Li et al. 2024b) and Qwen2.5-VL-3B-Instruct (Bai et al. 2025), which are general-purpose MLLMs with strong multimodal understanding capabilities. We further include OpenVLThinker-3B (Deng et al. 2025) and VLAA-Thinker-3B (Chen et al. 2025a), which are explicitly designed for multimodal reasoning, to provide a more comprehensive evaluation across different modeling paradigms.
Dataset Overview Figure 3 summarizes the two datasets used in our method. The left panel in Figure 3(a) presents the distribution of the Rule-Centric MICL Dataset, which is grouped into four categories by contextual induction ability. The right panel in Figure 3(b) shows the word cloud of the generated Explicit Rule-Induction Supervision, indicating diverse and explicit reasoning patterns that provide an effective language and reasoning format for rule induction.
Implementation In our implementation, the MLLM used for generating captions is Qwen2.5-VL-72B-Instruct (Bai et al. 2025). Qwen2.5-72B-Instruct (Qwen et al. 2025) serves as the LLM for judgment and rewriting. In addition, the reasoning LLM used to generate explicit rule-induction supervision is QwQ-32B (Team 2025). We adopt Qwen2.5-VL-3B-Instruct (Bai et al. 2025) as the base model to conduct experiments. Further details are provided in the Ap-
| Method | Strategy | CLEVR | Interleaved Operator Induction | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SFT | RL | 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✗ | ✗ | 51.00 | 52.67 | 53.33 | 54.67 | 55.17 | 53.37 | 54.44 | 60.56 | 62.22 | 58.89 | 66.11 | 60.44 |
| +Direct-SFT | Direct | ✗ | 60.17 | 61.17 | 61.17 | 62.83 | 59.83 | 61.03 | 67.22 | 73.33 | 75.56 | 76.11 | 78.89 | 74.22 |
| +Think-RL | ✗ | ✓ | 49.00 | 51.17 | 51.33 | 50.67 | 51.00 | 50.63 | 68.89 | 73.89 | 76.67 | 81.11 | 84.44 | 77.00 |
| +ERIM | Mixed | ✓ | 64.00 | 64.33 | 65.33 | 66.83 | 63.83 | 64.87 | 84.44 | 82.78 | 87.22 | 79.44 | 83.89 | 83.56 |
| Method | Strategy | Clock | Palindrome | |||||||||||
| SFT | RL | 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✗ | ✗ | 32.00 | 41.00 | 45.00 | 51.00 | 49.00 | 43.60 | 41.00 | 35.00 | 30.00 | 28.00 | 27.00 | 32.20 |
| +Direct-SFT | Direct | ✗ | 31.00 | 44.00 | 37.00 | 46.00 | 43.00 | 40.20 | 39.00 | 34.00 | 37.00 | 33.00 | 32.00 | 35.00 |
| +Think-RL | ✗ | ✓ | 64.00 | 72.00 | 81.00 | 87.00 | 83.00 | 77.40 | 63.00 | 66.00 | 68.00 | 57.00 | 62.00 | 63.20 |
| +ERIM | Mixed | ✓ | 78.00 | 71.00 | 83.00 | 77.00 | 71.00 | 76.00 | 55.00 | 68.00 | 73.00 | 81.00 | 77.00 | 70.80 |
| Method | Strategy | CLEVR (TrueMICL) | Subset-Level Average | |||||||||||
| SFT | RL | 2 | 3 | 4 | 5 | 6 | Avg | / | / | / | / | / | Avg | |
| Qwen2.5VL | ✗ | ✗ | 12.00 | 19.00 | 24.00 | 27.00 | 31.00 | 22.60 | 40.74 | 43.37 | 52.83 | 55.48 | 56.12 | 49.71 |
| +Direct-SFT | Direct | ✗ | 31.00 | 31.00 | 31.00 | 30.00 | 31.00 | 30.80 | 46.42 | 62.78 | 63.16 | 64.36 | 63.67 | 60.08 |
| +Think-RL | ✗ | ✓ | 23.00 | 24.00 | 22.00 | 19.00 | 21.00 | 21.80 | 54.25 | 69.41 | 72.26 | 72.18 | 72.73 | 68.17 |
| +ERIM | Mixed | ✓ | 35.00 | 37.00 | 46.00 | 44.00 | 32.00 | 38.80 | 58.69 | 71.91 | 77.36 | 78.02 | 75.40 | 72.28 |
Table 2: Ablation results of training strategies on Qwen2.5-VL-3B-Instruct. We report accuracy (%) with the same metrics and settings as Table 1. "+Direct-SFT" denotes supervised fine-tuning on the Rule-Centric MICL Dataset using the direct-answer prompt; "+Think-RL" denotes DAPO training with the think-then-answer prompt on the same dataset; "+ERIM" corresponds to the full proposed training strategy with mixed SFT and DAPO. Due to space constraints, only 5 of the 8 selected subsets are shown. Full results are provided in the Appendix C.4.
| benchmark | zero-shot | few-shot | ERI prompt | ERIM-3B |
|---|---|---|---|---|
| VL-ICL | 20.34 | 31.65 | 40.30 | 78.52 |
| TrueMICL | 26.60 | 30.93 | 40.33 | 61.87 |
Table 3: Effect of prompting strategies. Zero-shot uses the basic thinking template, few-shot additionally provides rule-induction chains as demonstrations, and ERI prompt explicitly instructs the model to induce and apply the underlying rule. We report average accuracy (%) on VL-ICL and TrueMICL, averaged over all other configurations.
pendix C.2. For the Case II MICL setting, we design a unified prompt template that flexibly accommodates benchmark-specific information, such as task descriptions required by different benchmarks. The template supports a direct-answer mode and a think-then-answer mode that explicitly induces the underlying rule before prediction. All prompt templates involved in our method are provided in the Appendix B.
4.2 Main Results
We denote the final model obtained after the two-stage training strategy as ERIM-3B. Table 1 presents the main experimental results. ERIM-3B achieves the best performance on most reported subsets and obtains a clear lead in the subset-level average, demonstrating strong generalization across different visual domains and rule types. The gains are especially pronounced on CLEVR, Operator Induction, and Clock, indicating that explicit rule induction is critical for Case II scenarios. Another notable trend is that ERIM-3B maintains strong performance under different n-shot settings, showing that the model can effectively leverage contextual examples in both relatively low-shot and higher-shot regimes. These results confirm the effectiveness of our method for explicit rule induction and application in Case II MICL.
4.3 Ablation Studies
Effect of Training Strategy Table 2 compares different training strategies on a fixed base model. Most variants outperform the vanilla base model, indicating the effectiveness of rule-centric MICL data. Direct-SFT brings limited and saturating gains, while Think-RL significantly improves performance on reasoning-intensive subsets but shows less stable improvements when used alone. Our full strategy consistently achieves the best results across most reported subsets and the highest subset-level average. This demonstrates that the two-stage training is essential: mixed SFT initialization stabilizes learning, and RL further strengthens explicit rule induction and generalization.
Effect of Prompting Strategy To examine whether the improvements of ERIM can be attributed solely to prompting, we compare several prompting strategies in Table 3. Explicitly requesting rule induction improves the zero-shot results, but remains far below ERIM-3B on both benchmarks. Providing high-quality rule-induction chains as few-shot demonstrations also yields only limited gains. These results indicate that neither explicit prompting nor in-context exposure to correct reasoning chains is sufficient to reliably elicit Case II MICL capabilities. Effective rule induction must instead be internalized through dedicated supervision and optimization.
| Case 1 → Q: Do the two images satisfy the induced relationship? | Qwen2.5-VL-7B-Instruct | ERIM-3B |
|---|---|---|
|  Answer: Yes | Think: The first image shows a dog wearing a blue bandana, while the second image shows a dog sitting on grass. The relationship between these images seems to be about dogs, but not specifically about dogs wearing bandanas or sitting on grass. There isn't a clear, direct connection between the two images based on the given information. </think> <answer> No </answer> | Think: ... In Example 1, the image shows a baseball scoreboard with the Duluth Huskies and their score, and the second image shows a similar scoreboard with a different team. The answer was "Yes", so maybe the key is that both images involve the same team or similar elements. ... Now, the new input's first image shows a dog with a blue bandana, and ... So the rule is that the two images must have the same subject. Since both new images are about dogs, they should satisfy the relationship. Therefore, the answer should be "Yes" </think> <answer> Yes </answer> |
| Answer: No | Answer: ? | |
| Case 2 → Q: What is the result of the mathematical expression? | VLAA-Thinker-3B | ERIM-3B |
| 1 ? 6 Answer: 6 | 7 ? 2 Answer: 14 | 1 ? 1 |
| 7 ? 7 Answer: 49 | 3 ? 1 Answer: 3 | Answer: ? |
| Case 3 → Q: This is a ? | OpenVLThinker-3B | ERIM-3B |
|  Answer: dax |  Answer: blicket | Think: ... Example 1 shows an African wild dog in a grassland setting. The answer is "dax". Example 3 also shows an African wild dog, also labeled as "dax", so that's consistent. So maybe "dax" is related to wild dogs. Then Example 2 shows a library scene with a man reading, and the answer is "blicket". Example 4 also shows a library scene with books, and the answer is "blicket". So "blicket" might be linked to library scenes. The new input shows a library setting with people reading. So the scene is a library. ... </think> <answer> blicket </answer> |
| Answer: dax | Answer: blicket | Answer: ? |
Figure 4: Qualitative case study. The blue region indicates the support set, and the green region indicates the query sample. We report the outputs of Qwen2.5-VL-7B-Instruct, VLAA-Thinker-3B, OpenVLThinker-3B, and our method for comparison. Incorrect reasoning steps are highlighted in red, while correct ones are highlighted in green.

Figure 5: Comparison of answer correctness and rule consistency across four models. Rule consistency is evaluated using Qwen2.5-72B-Instruct as the LLM judge. We report average accuracy (%) on VL-ICL and TrueMICL, averaged over all other configurations.
4.4 Analysis
Qualitative Case Study Figure 4 presents three representative cases to illustrate how correct rule induction directly determines prediction accuracy. In all cases, existing reasoning models fail to infer the underlying rule from the demonstrations and consequently produce incorrect answers. In contrast, ERIM-3B consistently identifies the shared re-
relationship, recovers the hidden mathematical operation, or induces the correct mapping between visual concepts and nonsensical labels, leading to accurate predictions. These examples demonstrate that reliable rule induction is critical for solving Case II MICL tasks and further support our central insight that improving explicit rule-induction ability directly enhances final prediction accuracy.
Rule Consistency Evaluation To further analyze whether correct rule induction leads to correct final predictions, we conduct a rule consistency evaluation across models. As shown in Figure 5, answer correctness and rule consistency exhibit highly aligned trends across both VL-ICL and TrueMICL. Models with more accurate induced rules consistently achieve higher answer accuracy, while weaker rule induction leads to degraded performance. This correlation provides quantitative evidence for our core insight: explicitly inducing more accurate rules is crucial for improving performance on Case II MICL tasks.
5 Conclusion
This paper studies MICL scenarios that require inducing underlying rules from multimodal demonstrations and emphasizes the role of explicit rule induction for robust generalization. We propose ERIM, a unified framework that constructs rule-centric MICL data, generates explicit rule-induction supervision, and trains MLLMs through a two-stage strategy. Extensive experiments and analyses demonstrate that ERIM consistently outperforms strong baselines, validating the effectiveness of explicit rule induction.
References
Abdin, M. I.; Ade Jacobs, S.; Awan, A. A.; Aneja, J.; Awadallah, A.; Hassan Awadalla, H.; Bach, N.; Bahree, A.; Bakhtiari, A.; Behl, H.; Benhaim, A.; Bilenko, M.; Bjorck, J.; Bubeck, S.; Cai, M.; Mendes, C. C. T.; Chen, W.; Chaudhary, V.; Chopra, P.; Giorno, A. D.; de Rosa, G.; Dixon, M.; Eldan, R.; Iter, D.; Goswami, A.; Gunasekar, S.; Haider, E.; Hao, J.; Hewett, R. J.; Huynh, J.; Javaheripi, M.; Jin, X.; Kauffmann, P.; Karampatziakis, N.; Kim, D.; Khademi, M.; Kurilenko, L.; Lee, J. R.; Lee, Y. T.; Li, Y.; Liang, C.; Liu, W.; Lin, X. E.; Lin, Z.; Madan, P.; Mitra, A.; Modi, H.; Nguyen, A.; Norick, B.; Patra, B.; Perez-Becker, D.; Portet, T.; Pryzant, R.; Qin, H.; Radmilac, M.; Rosset, C.; Roy, S.; Saarikivi, O.; Saied, A.; Salim, A.; Santacroce, M.; Shah, S.; Shang, N.; Sharma, H.; Song, X.; Ruwase, O.; Wang, X.; Ward, R.; Wang, G.; Witte, P.; Wyatt, M.; Xu, C.; Xu, J.; Xu, W.; Yadav, S.; Yang, F.; Yang, Z.; Yu, D.; Zhang, C.; Zhang, C.; Zhang, J.; Zhang, L. L.; Zhang, Y.; Zhang, Y.; and Zhou, X. 2024. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone. Technical Report MSR-TR-2024-12, Microsoft.
Alayrac, J.-B.; Donahue, J.; Luc, P.; Miech, A.; Barr, I.; Hasson, Y.; Lenc, K.; Mensch, A.; Millican, K.; Reynolds, M.; Ring, R.; Rutherford, E.; Cabi, S.; Han, T.; Gong, Z.; Samangooei, S.; Monteiro, M.; Menick, J. L.; Borgeaud, S.; Brock, A.; Nematzadeh, A.; Sharifzadeh, S.; Bifikowski, M. a.; Barreira, R.; Vinyals, O.; Zisserman, A.; and Simonyan, K. 2022. Flamingo: a Visual Language Model for Few-Shot Learning. In Koyejo, S.; Mohamed, S.; Agarwal, A.; Belgrave, D.; Cho, K.; and Oh, A., eds., Advances in Neural Information Processing Systems, volume 35, 23716–23736. Curran Associates, Inc.
Antol, S.; Agrawal, A.; Lu, J.; Mitchell, M.; Batra, D.; Zitnick, C. L.; and Parikh, D. 2015. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, 2425–2433.
Awadalla, A.; Gao, I.; Gardner, J.; Hessel, J.; Hanafy, Y.; Zhu, W.; Marathe, K.; Bitton, Y.; Gadre, S.; Sagawa, S.; et al. 2023. Openflamingo: An open-source framework for training large autoregressive vision-language models. arXiv preprint arXiv:2308.01390.
Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; Zhong, H.; Zhu, Y.; Yang, M.; Li, Z.; Wan, J.; Wang, P.; Ding, W.; Fu, Z.; Xu, Y.; Ye, J.; Zhang, X.; Xie, T.; Cheng, Z.; Zhang, H.; Yang, Z.; Xu, H.; and Lin, J. 2025. Qwen2.5-VL Technical Report. arXiv:2502.13923.
Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J. D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; Agarwal, S.; Herbert-Voss, A.; Krueger, G.; Henighan, T.; Child, R.; Ramesh, A.; Ziegler, D.; Wu, J.; Winter, C.; Hesse, C.; Chen, M.; Sigler, E.; Litwin, M.; Gray, S.; Chess, B.; Clark, J.; Berner, C.; McCandlish, S.; Radford, A.; Sutskever, I.; and Amodei, D. 2020. Language Models are Few-Shot Learners. In Larochelle, H.; Ranzato, M.; Hadsell, R.; Balcan, M.; and Lin, H., eds., Advances in Neural Information Processing Systems, volume 33, 1877–1901. Curran Associates, Inc.
Chen, H.; Tu, H.; Wang, F.; Liu, H.; Tang, X.; Du, X.; Zhou, Y.; and Xie, C. 2025a. Sft or rl? an early investigation into training rl-like reasoning large vision-language models. arXiv preprint arXiv:2504.11468.
Chen, S.; Han, Z.; He, B.; Liu, J.; Buckley, M.; Qin, Y.; Torr, P.; Tresp, V.; and Gu, J. 2025b. Can Multimodal Large Language Models Truly Perform Multimodal In-Context Learning? In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 6000–6010. IEEE.
Chen, S.; Liu, J.; Han, Z.; Xia, Y.; Cremers, D.; Torr, P.; Tresp, V.; and Gu, J. 2025c. True multimodal in-context learning needs attention to the visual context. arXiv preprint arXiv:2507.15807.
Chen, Z.; Wu, J.; Wang, W.; Su, W.; Chen, G.; Xing, S.; Zhong, M.; Zhang, Q.; Zhu, X.; Lu, L.; et al. 2024. Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 24185–24198.
Deng, Y.; Bansal, H.; Yin, F.; Peng, N.; Wang, W.; and Chang, K.-W. 2025. Openvlthinker: An early exploration to complex vision-language reasoning via iterative self-improvement. arXiv preprint arXiv:2503.17352.
Dong, Q.; Li, L.; Dai, D.; Zheng, C.; Ma, J.; Li, R.; Xia, H.; Xu, J.; Wu, Z.; Chang, B.; et al. 2024. A survey on in-context learning. In Proceedings of the 2024 conference on empirical methods in natural language processing, 1107–1128.
Doveh, S.; Perek, S.; Mirza, M. J.; Lin, W.; Alfassy, A.; Arbelle, A.; Ullman, S.; and Karlinsky, L. 2024. Towards multimodal in-context learning for vision and language models. In European Conference on Computer Vision, 250–267. Springer.
Duan, H.; Yang, J.; Qiao, Y.; Fang, X.; Chen, L.; Liu, Y.; Dong, X.; Zang, Y.; Zhang, P.; Wang, J.; et al. 2024. Vlmevalkit: An open-source toolkit for evaluating large multi-modality models. In Proceedings of the 32nd ACM international conference on multimedia, 11198–11201.
Gao, J.; Qiao, Q.; Wu, T.; Wang, Z.; Cao, Z.; and Li, W. 2025. AIM: Let Any Multimodal Large Language Models Embrace Efficient In-Context Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 39(3): 3077–3085.
Goyal, Y.; Khot, T.; Summers-Stay, D.; Batra, D.; and Parikh, D. 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.
Gupta, A.; Storkey, A.; and Lapata, M. 2025. Meta-Adaptive Prompt Distillation for Few-Shot Visual Question Answering. arXiv preprint arXiv:2506.06905.
Huang, C.; Zhu, Y.; Zhu, S.; Xiao, J.; Andrade, M.; Chopra, S.; and Kira, Z. 2025. Mimicking or Reasoning: Rethinking Multi-Modal In-Context Learning in Vision-Language Models. arXiv preprint arXiv:2506.07936.
Jiang, Y.; Irvin, J.; Wang, J. H.; Chaudhry, M. A.; Chen, J. H.; and Ng, A. Y. 2024. Many-shot in-context learning in multi-modal foundation models. arXiv preprint arXiv:2405.09798.
Johnson, J.; Hariharan, B.; Van Der Maaten, L.; Fei-Fei, L.; Lawrence Zitnick, C.; and Girshick, R. 2017. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2901–2910.
Kuhnle, A.; and Copestake, A. 2017. Shapeworld-a new test methodology for multimodal language understanding. arXiv preprint arXiv:1704.04517.
Laurençon, H.; Tronchon, L.; Cord, M.; and Sanh, V. 2024. What matters when building vision-language models? In Globerson, A.; Mackey, L.; Belgrave, D.; Fan, A.; Paquet, U.; Tomczak, J.; and Zhang, C., eds., Advances in Neural Information Processing Systems, volume 37, 87874–87907. Curran Associates, Inc.
Laurençon, H.; Marafioti, A.; Sanh, V.; and Tronchon, L. 2024. Building and better understanding vision-language models: insights and future directions. arXiv preprint arXiv:2408.12637.
Li, B.; Zhang, P.; Yang, J.; Zhang, Y.; Pu, F.; and Liu, Z. 2023. Otterhd: A high-resolution multi-modality model. arXiv preprint arXiv:2311.04219.
Li, B.; Zhang, Y.; Chen, L.; Wang, J.; Pu, F.; Cahyono, J. A.; Yang, J.; Li, C.; and Liu, Z. 2025a. Otter: A Multi-Modal Model With In-Context Instruction Tuning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 47(9): 7543–7557.
Li, B.; Zhang, Y.; Guo, D.; Zhang, R.; Li, F.; Zhang, H.; Zhang, K.; Zhang, P.; Li, Y.; Liu, Z.; and Li, C. 2024a. LLaVA-OneVision: Easy Visual Task Transfer. arXiv:2408.03326.
Li, B.; Zhang, Y.; Guo, D.; Zhang, R.; Li, F.; Zhang, H.; Zhang, K.; Zhang, P.; Li, Y.; Liu, Z.; et al. 2024b. Llava-onevision: Easy visual task transfer. arXiv preprint arXiv:2408.03326.
Li, Y.; Yang, J.; Li, B.; and Tang, R. 2025b. CAMA: Enhancing Multimodal In-Context Learning with Context-Aware Modulated Attention. arXiv preprint arXiv:2505.17097.
Li, Y.; Yang, J.; Shen, Z.; Han, L.; Xu, H.; and Tang, R. 2025c. CATP: Contextually Adaptive Token Pruning for Efficient and Enhanced Multimodal In-Context Learning. arXiv:2508.07871.
Lu, P.; Qiu, L.; Chen, J.; Xia, T.; Zhao, Y.; Zhang, W.; Yu, Z.; Liang, X.; and Zhu, S.-C. 2021. Iconqa: A new benchmark for abstract diagram understanding and visual language reasoning. arXiv preprint arXiv:2110.13214.
Mishra, A.; Shekhar, S.; Singh, A. K.; and Chakraborty, A. 2019. Ocr-vqa: Visual question answering by reading text in images. In 2019 international conference on document analysis and recognition (ICDAR), 947–952. IEEE.
Peng, Y.; Hao, C.; Hu, X.; Peng, J.; Geng, X.; and Yang, X. 2024. LIVE: Learnable In-Context Vector for Visual Question Answering. In Globerson, A.; Mackey, L.; Belgrave, D.; Fan, A.; Paquet, U.; Tomczak, J.; and Zhang, C., eds., Advances in Neural Information Processing Systems, volume 37, 9773–9800. Curran Associates, Inc.
Qin, L.; Chen, Q.; Fei, H.; Chen, Z.; Li, M.; and Che, W. 2024. What Factors Affect Multi-Modal In-Context Learning? An In-Depth Exploration. In Globerson, A.; Mackey, L.; Belgrave, D.; Fan, A.; Paquet, U.; Tomczak, J.; and Zhang, C., eds., Advances in Neural Information Processing Systems, volume 37, 123207–123236. Curran Associates, Inc.
Qwen, ; Yang, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Li, C.; Liu, D.; Huang, F.; Wei, H.; Lin, H.; Yang, J.; Tu, J.; Zhang, J.; Yang, J.; Zhou, J.; Lin, J.; Dang, K.; Lu, K.; Bao, K.; Yang, K.; Yu, L.; Li, M.; Xue, M.; Zhang, P.; Zhu, Q.; Men, R.; Lin, R.; Li, T.; Tang, T.; Xia, T.; Ren, X.; Ren, X.; Fan, Y.; Su, Y.; Zhang, Y.; Wan, Y.; Liu, Y.; Cui, Z.; Zhang, Z.; and Qiu, Z. 2025. Qwen2.5 Technical Report. arXiv:2412.15115.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y.; Wu, Y.; et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.
Sheng, G.; Zhang, C.; Ye, Z.; Wu, X.; Zhang, W.; Zhang, R.; Peng, Y.; Lin, H.; and Wu, C. 2024. HybridFlow: A Flexible and Efficient RLHF Framework. arXiv preprint arXiv:2409.19256.
Team, Q. 2025. QwQ-32B: Embracing the Power of Reinforcement Learning.
Wang, F.; Yu, B.; Shao, P.; Chen, Z.; Chou, H.; Kang, L.; Shao, S.; Xia, X.; Ding, N.; Xiong, H.; et al. 2025. IN-CONTEXT LEARNING AS GENERAL-PURPOSE LEARNING: A COMPREHENSIVE SURVEY AND NEW PERSPECTIVES. Authorea Preprints.
Wang, X.; Ma, W.; Li, Z.; Kortylewski, A.; and Yuille, A. L. 2023. 3d-aware visual question answering about parts, poses and occlusions. Advances in Neural Information Processing Systems, 36: 58717–58735.
Yu, Q.; Zhang, Z.; Zhu, R.; Yuan, Y.; Zuo, X.; Yue, Y.; Dai, W.; Fan, T.; Liu, G.; Liu, L.; et al. 2026. Dapo: An open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems, 38: 113222–113244.
Zhao, H.; Cai, Z.; Si, S.; Ma, X.; An, K.; Chen, L.; Liu, Z.; Wang, S.; Han, W.; and Chang, B. 2024. MMICL: Empowering Vision-language Model with Multi-Modal In-Context Learning. In Kim, B.; Yue, Y.; Chaudhuri, S.; Fragkiadaki, K.; Khan, M.; and Sun, Y., eds., International Conference on Representation Learning, volume 2024, 14942–14980.
Zheng, Y.; Lu, J.; Wang, S.; Feng, Z.; Kuang, D.; Xiong, Y.; and Zhang, R. 2025. EasyR1: An Efficient, Scalable, Multi-Modality RL Training Framework. https://github.com/hiyouga/EasyR1.
Zheng, Y.; Zhang, R.; Zhang, J.; Ye, Y.; and Luo, Z. 2024. Llamafactory: Unified efficient fine-tuning of 100+ language models. In Proceedings of the 62nd annual meeting of the association for computational linguistics (volume 3: system demonstrations), 400–410.
Zong, Y.; Bohdal, O.; and Hospedales, T. 2025. Vl-icl bench: The devil in the details of multimodal in-context learning. In International Conference on Learning Representations, volume 2025, 100058–100100.
A Detailed Data Construction
A.1 Process Typical VQA Datasets
For typical VQA datasets, underlying rules are derived from existing annotations. We group samples with identical question texts and treat each unique question as an underlying rule that defines the visual–answer mapping. To ensure sufficient coverage and stability, we prioritize frequently occurring questions and manually filter them based on whether their semantics are suitable for rule abstraction. For samples sharing the same question but having different answers, we remove low-frequency answers to keep the answer distribution under each rule roughly balanced.
During MICL episode construction, the original question is replaced with a generic instruction to avoid revealing task-specific information. Following prior MICL settings (Zong, Bohdal, and Hospedales 2025), we further reduce textual leakage by remapping non-numerical answers to nonsensical tokens, while retaining original answers for mathematical questions where numerical values are essential.
In addition, we randomly select some rule groups to construct paired-image matching episodes. Each sample contains two images and a binary answer indicating whether the two images produce the same answer under the original underlying rule, with Yes for matching answers and No otherwise.
A.2 Rule Designs for Synthetic Data
For Super-CLEVR-3D, we extend the CLEVR-style rule design used in the VL-ICL benchmark to a more challenging setting. Each rule group is defined by a randomly selected object attribute and value, denoted as (attr, value). For each sample, the image is drawn from Super-CLEVR-3D, while the question specifies an additional attribute–value pair (attr_q, value_q). The answer is the number of objects in the image whose attr equals value and whose attr_q equals value_q. This construction introduces a hidden attribute–value constraint shared across the episode, requiring the model to jointly induce the underlying rule and integrate sample-specific query information for reasoning. Due to the sparsity caused by attribute-based filtering in Super-CLEVR-3D, raw sampling often results in answers concentrated at small values (e.g., 0 or 1). To avoid biased answer distributions that may weaken numerical reasoning, we apply additional filtering and sampling strategies to balance answer frequencies within each rule group.
For mathematical reasoning, we manually design two types of synthetic datasets. The first contains images with a single number, where each rule group is defined by a simple arithmetic mapping applied to the number, such as addition, subtraction, or multiplication within a small range. The second contains images depicting a numerical sequence, randomly sampled as either arithmetic or geometric progressions. The image shows the first three terms, and the answer corresponds to the next term in the sequence. In both cases, the underlying mathematical relation defines the rule shared by all samples within a group.
B All Prompt Templates
B.1 Unified Prompt Template for Case II MICL
Direct-Answer Mode
You are a visual reasoning assistant. Below are several examples. Each example contains one or more images, a question, and an answer. Across all examples, there is a hidden rule or pattern that links the images (possibly in combination with the question) to the correct answer.
{ task description }
Your task is to study the examples, infer the underlying rule that maps from images and questions to answers, and then apply this rule to a new input consisting of image(s) and a question.
Examples:
......
Example { index }:
Images: { images of support index }
Question: { question of support index }
Answer: { answer of support index }
......
Now, here is a new input:
Images: { query images }
Question: { query question }
Answer:
Think-Then-Answer Mode
You are a visual reasoning assistant. Below are several examples. Each example contains one or more images, a question, and an answer. Across all examples, there is a hidden rule or pattern that links the images (possibly in combination with the question) to the correct answer.
{ task description }
Your task is to study the examples, infer the underlying rule that maps from images and questions to answers, and then apply this rule to a new input consisting of image(s) and a question.
When answering the new input, first think step by step inside <think>...</think> tags, and then output only the final answer inside <answer>...</answer> tags.
Examples:
......
Example { index }:
Images: { images of support index }
Question: { question of support index }
Answer: { answer of support index }
......
Now, here is a new input:
Images: { query images }
Question: { query question }
B.2 Prompt for Caption Generation
You are a multimodal captioning assistant.
Generate precise, detailed, and natural-language captions for all kinds of images (real photos, charts, math figures, or synthetic scenes).
Core Rules
-
Faithfulness — Describe only what is visible or explicitly given. No guessing or opinions.
-
Structured Detail — Begin with an overall scene summary, then note key objects, attributes, relations, and visible text.
-
Annotation Coverage — The caption must include all factual details from the annotation JSON (objects, values, labels, text, etc.) naturally in the description. Never mention the annotation itself.
-
Formatting —
-
Transcribe visible text exactly.
-
Use LaTeX for math (e.g., ).
-
For tables/plots, describe structure, axes, legends, and trends.
-
For 3D/synthetic scenes, note materials, shapes, colors, and spatial layout.
- Style — Neutral, factual, and concise. Output only the caption text.
Below is an image and its corresponding annotation.
Please generate a comprehensive, faithful, and natural-language caption following the system rules above.
Image:
{ image }
Annotation (JSON):
"json
{ annotation }
B.3 Prompt for Caption Rule-Preserving Judgment
You are an impartial evaluator. You will receive:
-
A caption describing an image.
-
A JSON annotation containing key factual and semantic details of that image.
Determine whether the caption sufficiently covers the annotation:
-
If all annotation details are explicitly stated in the caption, output "Yes".
-
If the caption does not state certain details verbatim but they can be reasonably inferred from its meaning, also output "Yes".
-
If the caption includes more information than the annotation, still output "Yes".
-
Output "No" only when some annotation information cannot be found or reasonably inferred from the caption, or is contradicted.
Respond with only one word: "Yes" or "No".
Caption: { caption }
Annotation (JSON): { annotation }
Output:
B.4 Prompt for Rule-Induction Generation
You are a reasoning model designed to carefully work through problems step by step before providing a final answer.
Task: Below are several examples. Each example contains one or more images, a question, and an answer. Across all examples, there is a hidden rule or pattern that links the images (possibly in combination with the question) to the correct answer.
Your task is to study the examples, infer the underlying rule that maps from images and questions to answers, and then apply this rule to a new input consisting of image(s) and a question.
For every image you receive a caption. Treat each caption as a faithful, vivid visual rendering - act as if you are directly perceiving the scene. Do NOT say or refer to phrases such as "based on the caption", "the caption says", "I read the description", or "visualizing the image"; instead write observations as if you are seeing the image ("The image shows...", "There are three red objects...").
Output requirements (strict - produce nothing else):
-
Please reason step by step inside <think>. ..</think>.
-
After <think>, output only the final answer inside <answer>....</answer>.
-
NEVER output any extraneous commentary, data, or formatting beyond these tags.
Examples:
......
Example { index }
Visual Contents:
- Image Captions: { images captions of support index }
Question: { question of support index }
Answer: { answer of support index }
......
Now, here is a new input:
Visual Contents:
- Image Captions: { query images captions }
Question: { query question }
B.5 Prompt for Rule Consistency Evaluation
Prompt for Rule Consistency Evaluation
You are an evaluator whose job is to determine whether a provided Chain-of-Thought (CoT) follows a specified rule.
Task
You will be given:
-
A natural-language rule description.
-
A description of how this rule is applied in the current task setting.
-
A CoT produced by a model.
Your job is to check whether the CoT correctly applies the rule under this specific setting.
Output
Output only:
-
"Yes" if the CoT fully aligns with the rule and the described setting.
-
"No" otherwise.
Do not provide explanations or any additional text.
Here is the rule and the current task setting.
Rule
{ rule description }
Task Setting
{ task setting text }
CoT to Evaluate
{ CoT }
Does the CoT correctly follow the rule under this setting?
Output only "Yes" or "No".
The task setting text in the rule consistency evaluation prompt is treated as a variable component, instantiated according to the specific configuration of each MICL episode.
We first determine whether the episode corresponds to a paired-image matching setting, where each sample contains two images and the answer is a binary label indicating whether the two images yield the same outcome under the original underlying rule. This condition is indicated by the variable is pair. We then consider whether the episode applies nonsensical token remapping to replace original answers, which is indicated by the variable use nonsense.
The task setting text is instantiated differently under each combination of these variables, ensuring that the rule consistency evaluation prompt accurately reflects the episode structure while avoiding unintended information leakage.
Task Setting Text
{ % if is pair % }
In this task, each context sample contains a pair of images.
Under the base rule, each image would independently receive an answer.
For paired-image tasks, the final answer is determined by comparing the two answers:
If the two answers are identical, the correct result is 'Yes'.
If they differ, the correct result is 'No'.
The CoT must follow this paired-image rule.
{ % elif use nonsense % }
In this task, answers that follow the base rule are re-
placed by meaningless tokens
using a predefined mapping. The CoT must apply the base rule correctly,
but must express all answers using the nonsense words instead of meaningful ones.
{ % else % }
In this task, answers follow the base rule directly with no modification.
{ % endif % }
B.6 Prompt for Rewriting
You will receive a snippet of text that references a "description" or "caption" of an image. Your task is to produce a nearly identical version of that text with minimal changes, focusing on the following:
- Replace references to "description", "caption" and "rationale" with wording that references "" the image. "*
-
For example, "The description says..." could become "The image shows..."
-
"The caption suggests..." could become "The image suggests..."
-
"Based on the rationale..." could become "Based on the image..."
-
Make sure the replacement sounds natural but does not otherwise change the meaning.
-
Preserve all line breaks, punctuation, and spacing as much as possible, and make no additional edits outside of these replacements.
-
You should only output the rewritten content.
Here is the input: { CoT }
C Experiment Details
C.1 Detailed Data Split for SFT and DAPO
In our two-stage fine-tuning strategy, we separate the data used for supervised fine-tuning and reinforcement learning to avoid overlap and to maintain a balanced split. This design prevents the RL stage from being overly constrained by supervised signals and preserves sufficient room for policy exploration. All training data are obtained from the Explicit Rule-Induction Supervision generation process applied to rule-centric MICL episodes. Owing to differences in data sources and rule design strategies, subsets exhibit substantial variation in the success rate of generating valid rule-induction chains. To maintain a globally reasonable SFT–DAPO data ratio while fully utilizing the generated supervision, we adopt an adaptive data split across subsets. Specifically, subsets with higher induction-generation success rates allocate a smaller proportion of data to SFT and reserve more episodes for DAPO training. In contrast, subsets with lower success rates allocate a larger fraction of data to SFT.
| Hyperparameter | Value |
|---|---|
| temperature | 0.0 |
| min p | 0.0 |
| top p | 1.0 |
| top k | -1 |
| repetition penalty | 1.0 |
| frequency penalty | 0.0 |
| presence penalty | 0.0 |
| max token | 2048 |
Table 4: Inference hyperparameters.
| Hyperparameter | Value |
|---|---|
| batch size | 128 |
| learning rate | 1e-5 |
| train epochs | 6 |
| lr scheduler type | cosine |
| warmup ratio | 0.1 |
| training precision | bfloat16 |
| image min pixels | 3136 |
| image max pixels | 313600 |
| freeze vision tower | true |
| freeze multi modal projector | true |
Table 5: Supervised fine-tuning hyperparameters.
C.2 Implementation Details
All inference and evaluation for our model and baselines are conducted using VLMEvalKit (Duan et al. 2024). We extend the framework by integrating the VL-ICL and TrueMICL benchmarks, enabling unified multimodal inference and evaluation. Inference-related settings are summarized in Table 4.
Supervised fine-tuning is performed with LLaMA-Factory (Zheng et al. 2024), and the corresponding hyper-parameters are reported in Table 5. For the reinforcement learning stage, we adopt EasyR1 (Zheng et al. 2025; Sheng et al. 2024) to conduct multimodal DAPO training, with hyperparameters listed in Table 6. All experiments are carried out on 4 NVIDIA RTX A6000 GPUs.
C.3 Complete Main Results
The complete main experimental results are reported in Table 7.
C.4 Complete Training Strategy Ablation Results
The complete training strategy ablation results are reported in Table 8.
D Out-of-Domain Evaluation
To further evaluate whether our method generalizes beyond the data distributions seen during training and in-domain evaluation, we construct an additional out-of-domain Case II MICL benchmark from a multimodal dataset that does not appear in either our training data or the main evaluation
| Hyperparameter | Value |
|---|---|
| max prompt length | 3072 |
| max response length | 2048 |
| rollout batch size | 64 |
| global batch size | 16 |
| min pixels | 3136 |
| max pixels | 313600 |
| kl coef | 1e-3 |
| training precision | bfloat16 |
| rollout n | 8 |
| rollout temperature | 1.0 |
| rollout top p | 1.0 |
| total epochs | 4 |
| filter low (DAPO) | 0.01 |
| filter high (DAPO) | 0.99 |
| learning rate | 1e-6 |
| weight decay | 1e-2 |
| lr warmup ratio | 0.0 |
Table 6: DAPO hyperparameters.
benchmarks. Following the construction principle of existing Case II benchmarks, we manually organize this dataset into rule-governed MICL episodes and evaluate several major baselines together with our final model, ERIM-3B. This setting provides a stricter test of whether the model can transfer its learned rule-induction behavior to a new multimodal distribution, rather than benefiting from familiarity with previously seen datasets or benchmark formats.
D.1 Data Construction
For out-of-domain evaluation, we use ShapeWorld (Kuhnle and Copestake 2017), a software-rendered dataset of 2D scenes with controllable data distributions and detailed annotations. Its clean visual structure and precise attribute annotations make it suitable for constructing a new Case II MICL benchmark with well-defined underlying rules. Following the same general design principle as the CLEVR subset in VL-ICL (Zong, Bohdal, and Hospedales 2025), we define the underlying rule in each episode as the mapping from the attribute-value relation described in the question to the number of objects in the image that satisfy the corresponding condition. In this construction, we focus on two attributes, namely shape and color, and organize samples into support-query episodes according to the shared underlying rule. As a result, the final ShapeWorld benchmark serves as an out-of-domain Case II evaluation set that differs from both our training data and the benchmark distributions used in the main experiments.
D.2 Result Analysis
Table 9 reports the out-of-domain evaluation results on the constructed ShapeWorld benchmark. ERIM-3B achieves the best overall performance, obtaining the highest average accuracy among all compared methods. Although some baselines remain competitive under individual shot settings, our method delivers the strongest overall results and achieves the best accuracy in most settings. These results show that the advantage of ERIM is not limited to the training distribution or the in-domain benchmarks considered in the main paper. Instead, the model retains strong performance when transferred to a previously unseen multimodal dataset with a different visual domain and rule instantiation, demonstrating better generalization of explicit rule induction. This out-of-domain evaluation therefore provides additional evidence that our method learns more transferable rule-induction behavior for Case II MICL, rather than merely adapting to the specific distributions of the training and evaluation benchmarks.
| Method | Mode | Open MI | CLEVR | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 4 | 5 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 0.00 | 5.17 | 49.67 | 80.17 | 80.50 | 43.10 | 24.00 | 24.67 | 24.17 | 26.67 | 24.83 | 24.87 |
| IDEFICS3-8B-Llama3 | answer | 0.00 | 0.00 | 6.83 | 33.00 | 39.33 | 15.83 | 57.00 | 54.00 | 54.50 | 57.83 | 60.83 | 56.83 |
| Phi-3.5-Vision | answer | 0.00 | 2.50 | 20.33 | 29.33 | 29.83 | 16.40 | 32.17 | 26.83 | 28.33 | 26.00 | 28.33 | 28.33 |
| LLaVA-OneVision-7B | answer | 0.00 | 23.83 | 78.00 | 85.50 | 87.33 | 54.93 | 46.33 | 48.83 | 51.17 | 50.50 | 49.83 | 49.33 |
| OpenVLThinker-3B | reasoning | 0.00 | 4.17 | 27.17 | 30.00 | 30.67 | 18.40 | 56.33 | 57.17 | 53.00 | 55.83 | 53.33 | 55.13 |
| VLAA-Thinker-3B | reasoning | 0.00 | 4.50 | 24.50 | 35.00 | 40.67 | 20.93 | 56.83 | 56.67 | 54.67 | 51.50 | 48.67 | 53.67 |
| Qwen2.5-VL-3B | answer | 0.00 | 12.17 | 81.50 | 90.33 | 89.50 | 54.70 | 51.00 | 52.67 | 53.33 | 54.67 | 55.17 | 53.37 |
| ERIM-3B (Ours) | induction | 0.00 | 83.67 | 96.67 | 97.67 | 96.17 | 74.83 | 64.00 | 64.33 | 65.33 | 66.83 | 63.83 | 64.87 |
| Method | Mode | Operator Induction | Interleaved Operator Induction | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 8.33 | 7.78 | 6.11 | 5.00 | 8.33 | 7.11 | 7.22 | 5.56 | 2.78 | 3.33 | 6.11 | 5.00 |
| IDEFICS3-8B-Llama3 | answer | 0.00 | 0.00 | 1.11 | 1.67 | 1.67 | 0.89 | 5.00 | 4.44 | 7.22 | 7.22 | 10.56 | 6.89 |
| Phi-3.5-Vision | answer | 10.56 | 15.56 | 11.11 | 6.11 | 7.78 | 10.22 | 8.89 | 7.22 | 8.33 | 6.11 | 5.56 | 7.22 |
| LLaVA-OneVision-7B | answer | 43.89 | 50.56 | 54.44 | 49.44 | 55.00 | 50.67 | 40.00 | 47.78 | 47.22 | 46.67 | 46.11 | 45.56 |
| OpenVLThinker-3B | reasoning | 73.33 | 82.22 | 80.00 | 79.44 | 82.22 | 79.44 | 60.56 | 57.78 | 56.67 | 69.44 | 66.67 | 62.22 |
| VLAA-Thinker-3B | reasoning | 67.78 | 76.11 | 83.33 | 83.89 | 80.56 | 78.33 | 60.00 | 61.67 | 68.33 | 69.44 | 75.00 | 66.89 |
| Qwen2.5-VL-3B | answer | 67.78 | 74.44 | 74.44 | 80.56 | 76.67 | 74.78 | 54.44 | 60.56 | 62.22 | 58.89 | 66.11 | 60.44 |
| ERIM-3B (Ours) | induction | 88.89 | 92.22 | 90.56 | 96.67 | 97.22 | 93.11 | 84.44 | 82.78 | 87.22 | 79.44 | 83.89 | 83.56 |
| Method | Mode | Matching MI | Clock | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 4 | 5 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 32.08 | 50.00 | 50.00 | 50.00 | 50.00 | 46.42 | 5.00 | 7.00 | 3.00 | 3.00 | 5.00 | 4.60 |
| IDEFICS3-8B-Llama3 | answer | 62.58 | 50.17 | 50.08 | 49.75 | 50.17 | 52.55 | 3.00 | 3.00 | 5.00 | 8.00 | 6.00 | 5.00 |
| Phi-3.5-Vision | answer | 68.42 | 49.75 | 49.92 | 50.08 | 50.08 | 53.65 | 7.00 | 5.00 | 11.00 | 6.00 | 6.00 | 7.00 |
| LLaVA-OneVision-7B | answer | 84.00 | 55.83 | 56.67 | 56.75 | 54.58 | 61.57 | 21.00 | 14.00 | 18.00 | 16.00 | 14.00 | 16.60 |
| OpenVLThinker-3B | reasoning | 77.58 | 56.75 | 55.83 | 58.00 | 56.83 | 61.00 | 44.00 | 61.00 | 74.00 | 71.00 | 74.00 | 64.80 |
| VLAA-Thinker-3B | reasoning | 75.50 | 60.67 | 62.50 | 63.08 | 65.33 | 65.42 | 42.00 | 52.00 | 52.00 | 60.00 | 54.00 | 52.00 |
| Qwen2.5-VL-3B | answer | 67.67 | 52.08 | 52.17 | 53.42 | 54.50 | 55.97 | 32.00 | 41.00 | 45.00 | 51.00 | 49.00 | 43.60 |
| ERIM-3B (Ours) | induction | 64.17 | 76.25 | 77.08 | 81.58 | 82.08 | 76.23 | 78.00 | 71.00 | 83.00 | 77.00 | 71.00 | 76.00 |
| Method | Mode | Palindrome | CLEVR (TrueMICL) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 6.00 | 9.00 | 9.00 | 11.00 | 11.00 | 9.20 | 30.00 | 34.00 | 34.00 | 33.00 | 30.00 | 32.20 |
| IDEFICS3-8B-Llama3 | answer | 35.00 | 45.00 | 40.00 | 39.00 | 39.00 | 39.60 | 35.00 | 31.00 | 39.00 | 31.00 | 39.00 | 35.00 |
| Phi-3.5-Vision | answer | 11.00 | 6.00 | 15.00 | 8.00 | 14.00 | 10.80 | 25.00 | 29.00 | 29.00 | 35.00 | 30.00 | 29.60 |
| LLaVA-OneVision-7B | answer | 87.00 | 87.00 | 91.00 | 92.00 | 90.00 | 89.40 | 30.00 | 32.00 | 38.00 | 35.00 | 37.00 | 34.40 |
| OpenVLThinker-3B | reasoning | 71.00 | 79.00 | 78.00 | 75.00 | 77.00 | 76.00 | 16.00 | 18.00 | 15.00 | 16.00 | 18.00 | 16.60 |
| VLAA-Thinker-3B | reasoning | 39.00 | 44.00 | 35.00 | 46.00 | 48.00 | 42.40 | 11.00 | 12.00 | 6.00 | 12.00 | 12.00 | 10.60 |
| Qwen2.5-VL-3B | answer | 41.00 | 35.00 | 30.00 | 28.00 | 27.00 | 32.20 | 12.00 | 19.00 | 24.00 | 27.00 | 31.00 | 22.60 |
| ERIM-3B (Ours) | induction | 55.00 | 68.00 | 73.00 | 81.00 | 77.00 | 70.80 | 35.00 | 37.00 | 46.00 | 44.00 | 32.00 | 38.80 |
Table 7: Complete main experimental results comparing ERIM with baseline methods across all evaluation benchmarks.
| Method | Strategy | Open MI | CLEVR | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SFT | RL | 0 | 1 | 2 | 4 | 5 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✕ | ✕ | 0.00 | 12.17 | 81.50 | 90.33 | 89.50 | 54.70 | 51.00 | 52.67 | 53.33 | 54.67 | 55.17 | 53.37 |
| +Direct-SFT | Direct | ✕ | 0.00 | 98.50 | 99.67 | 100.00 | 99.67 | 79.57 | 60.17 | 61.17 | 61.17 | 62.83 | 59.83 | 61.03 |
| +Think-RL | ✕ | ✓ | 0.00 | 91.83 | 98.83 | 99.33 | 99.33 | 77.87 | 49.00 | 51.17 | 51.33 | 50.67 | 51.00 | 50.63 |
| +ERIM | Mixed | ✓ | 0.00 | 83.67 | 96.67 | 97.67 | 96.17 | 74.83 | 64.00 | 64.33 | 65.33 | 66.83 | 63.83 | 64.87 |
| Method | Strategy | Operator Induction | Interleaved Operator Induction | |||||||||||
| SFT | RL | 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✕ | ✕ | 67.78 | 74.44 | 74.44 | 80.56 | 76.67 | 74.78 | 54.44 | 60.56 | 62.22 | 58.89 | 66.11 | 60.44 |
| +Direct-SFT | Direct | ✕ | 62.22 | 74.44 | 77.22 | 81.67 | 79.44 | 75.00 | 67.22 | 73.33 | 75.56 | 76.11 | 78.89 | 74.22 |
| +Think-RL | ✕ | ✓ | 76.11 | 86.67 | 90.56 | 93.33 | 91.11 | 87.56 | 68.89 | 73.89 | 76.67 | 81.11 | 84.44 | 77.00 |
| +ERIM | Mixed | ✓ | 88.89 | 92.22 | 90.56 | 96.67 | 97.22 | 93.11 | 84.44 | 82.78 | 87.22 | 79.44 | 83.89 | 83.56 |
| Method | Strategy | Matching MI | Clock | |||||||||||
| SFT | RL | 0 | 1 | 2 | 4 | 5 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✕ | ✕ | 67.67 | 52.08 | 52.17 | 53.42 | 54.50 | 55.97 | 32.00 | 41.00 | 45.00 | 51.00 | 49.00 | 43.60 |
| +Direct-SFT | Direct | ✕ | 80.75 | 85.83 | 86.67 | 85.25 | 85.50 | 84.80 | 31.00 | 44.00 | 37.00 | 46.00 | 43.00 | 40.20 |
| +Think-RL | ✕ | ✓ | 90.00 | 89.75 | 89.67 | 90.00 | 89.92 | 89.87 | 64.00 | 72.00 | 81.00 | 87.00 | 83.00 | 77.40 |
| +ERIM | Mixed | ✓ | 64.17 | 76.25 | 77.08 | 81.58 | 82.08 | 76.23 | 78.00 | 71.00 | 83.00 | 77.00 | 71.00 | 76.00 |
| Method | Strategy | Palindrome | CLEVR (TrueMICL) | |||||||||||
| SFT | RL | 2 | 3 | 4 | 5 | 6 | Avg | 2 | 3 | 4 | 5 | 6 | Avg | |
| Qwen2.5VL | ✕ | ✕ | 41.00 | 35.00 | 30.00 | 28.00 | 27.00 | 32.20 | 12.00 | 19.00 | 24.00 | 27.00 | 31.00 | 22.60 |
| +Direct-SFT | Direct | ✕ | 39.00 | 34.00 | 37.00 | 33.00 | 32.00 | 35.00 | 31.00 | 31.00 | 31.00 | 30.00 | 31.00 | 30.80 |
| +Think-RL | ✕ | ✓ | 63.00 | 66.00 | 68.00 | 57.00 | 62.00 | 63.20 | 23.00 | 24.00 | 22.00 | 19.00 | 21.00 | 21.80 |
| +ERIM | Mixed | ✓ | 55.00 | 68.00 | 73.00 | 81.00 | 77.00 | 70.80 | 35.00 | 37.00 | 46.00 | 44.00 | 32.00 | 38.80 |
Table 8: Complete ablation results analyzing the impact of different training strategies.
| Method | Mode | ShapeWorld | |||||
|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 5 | 6 | Avg | ||
| OpenFlamingo-9B | answer | 36.67 | 23.33 | 21.11 | 35.56 | 30.00 | 29.33 |
| Phi-3.5-Vision | answer | 41.11 | 25.56 | 26.67 | 28.89 | 30.00 | 30.45 |
| OpenVLThinker-3B | reasoning | 37.78 | 26.67 | 44.44 | 37.78 | 40.00 | 37.33 |
| VLAA-Thinker-3B | reasoning | 40.00 | 33.33 | 46.67 | 42.22 | 36.67 | 39.78 |
| Qwen2.5-VL-3B | answer | 30.00 | 33.33 | 35.56 | 33.33 | 31.11 | 32.67 |
| ERIM-3B (Ours) | induction | 41.11 | 34.44 | 42.22 | 46.67 | 42.22 | 41.33 |
Table 9: Results on out-of-domain evaluation benchmark. We report accuracy (%) of different methods under varying n-shot settings, along with the average performance over n-shots.