Watch and Learn: Teaching Visual In-Context Learning by Removing Textual Shortcuts
Nimrod Shabtay, Asaf Yehudai, Avihu Dekel, Eli Schwartz, Raja Giryes
Abstract
Vision-language models (VLMs) struggle with in context learning compared to their textual counterparts. Our preliminary study shows that VLMs rely on textual shortcuts and underutilize the visual demonstrations. We therefore hypothesize that VLMs are insufficiently trained to perform visual in-context learning (vICL). To this end, we construct MIME, a task-agnostic vICL training set without textual shortcuts. We ensure the instruction does not state the rule linking the demonstration images to their answers, so the model must infer it from the visual demonstrations. Fine-tuning on MIME improves vICL accuracy by 8.1 to 18.0 points across three VLMs, preserves single-image performance, and improves multi-image and text only in-context learning. In contrast, stating the rule in the training data sharply reduces this gain. We further propose DTAD (Demonstration Text Attention Dropout), which randomly withholds demonstration labels during training so that the VLM must infer the rule from the demonstration images. While achieving comparable vICL accuracy to fine-tuning on MIME, DTAD yields more consistent attention to the demonstration images. On TrueMICL, Qwen3-VL-8B trained on MIME matches frontier models such as Claude Opus 5, and surpasses them with DTAD. Finally, adding MIME to the instruction-tuning mix of LLaVA 1.5 13B more than doubles its vICL accuracy without hurting single-image abilities, whereas a same-size multi-image set improves it only slightly. These results suggest that vICL data should be a standard component of VLM training.
Create a lesson
Related papers
Visual Grounding First, Multimodal In-context Learning Follows
Shared title terminologycs.CVMinhyuk Seo, Minjae Lee, Chaeeun Lee et al.
World-in-Context: Interactive Video World Modeling with In-Context Conditioning
Shared title terminologycs.CVHarold Haodong Chen, Rui Peng, Rongjin Guo et al.
Are Textual Residuals Truly Complementary? Learning Visual Complements under Semantic Superposition for Visible-Infrared Person Re-Identification
Shared title terminologycs.CVXiaoyang Li, Mingming Lu, Wei Zhou et al.
WebVibe: Multimodal Interactive Website Generation via Reverse Synthesis and Visual Self-Distillation
Shared title terminologycs.CVTianxiang Jiang, Sheng Xia, Yilin Long et al.
Modality-Shift Contrastive Decoding for Temporally Grounded Audio-Visual Understanding
Shared title terminologycs.CVMinyeong Jeong, Yeonju Kim, Yong Man Ro
What Makes a Gavagai? Learning Visual Concepts from One Positive and Few Negatives
Shared title terminologycs.CVKatsuya Ogata, Kazuya Nishimura, Yuta Nakashima