TwinICL: Diagnosing Multimodal In-Context Learning through Paired Counterfactuals

Zihan Xue, Po-Yi Lu, Serhii Honcharenko, Zih-Ching Chen, Hsuan-Tien Lin +3 more
9/14/2026
cs.CVcs.LG

Official code: lab-flair/TwinICL (0 stars, last commit 2026-09-13).

Abstract

In-context learning (ICL) enables models to infer tasks from demonstrations, but existing benchmarks generally lack matched text and image versions needed to compare ICL performance across modalities. We introduce TwinICL, a procedurally generated benchmark providing such pairs for controlled comparison. Across six open-weight models and 38 tasks, multimodal ICL consistently underperforms text-only ICL, with gaps varying by task family. To test whether this gap can be recovered, we target visual access, task framing, and reasoning through three interventions. Their combination recovers strong multimodal ICL performance on a diagnostic subset, despite limited or inconsistent individual effects. To distinguish difficulties in executing tasks from those in inferring them, we evaluate models with explicit task instructions, revealing a modality gap even when the task is known. We then examine how adding demonstration inputs and outputs reshapes this gap, highlighting demonstrations' dual role as additional context to process and evidence about the task. The dataset is available at https://github.com/lab-flair/TwinICL.

View on arXivView PDF

Code Implementations(1)

lab-flair/TwinICLOfficial100%

Resources for TwinICL: Diagnosing Multimodal In-Context Learning through Paired Counterfactuals.

00Sep 13, 20261 months ago

Similar Papers

Cite this paper

@article{xue2026twinicl,
  title  = {TwinICL: Diagnosing Multimodal In-Context Learning through Paired Counterfactuals},
  author = {Zihan Xue and Po-Yi Lu and Serhii Honcharenko and Zih-Ching Chen and Hsuan-Tien Lin and Nanyun Peng and I-Hung Hsu and Kuan-Hao Huang},
  year   = {2026},
  eprint = {2609.15028},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.15028v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.15028.svg)](https://codeofpaper.com/paper/2609.15028)

Discussion