arXiv:2610.41754cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41754

Multimodal In-Context Learning with Explicit Rule Induction

Yuquan Li, Xinyang Jiang, Yuhao Xue, Cairong Zhao

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

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.