UniICL: Systematizing Unified Multimodal In-context Learning through a Capability-Oriented Taxonomy

Yicheng Xu, Jiangning Zhang, Zhucun Xue, Teng Hu, Ran Yi, Xiaobin Hu, Yong Liu, Dacheng TaoarXiv 2026

TL;DR

Unified multimodal models that handle both image understanding and generation often suffer from extreme instability during in-context learning (ICL), where adding more examples can paradoxically degrade performance. This paper introduces UniICL, a framework that systematizes multimodal ICL using a six-level cognitive taxonomy, a massive 766K-episode dataset, and a plug-and-play adapter called CAPM that stabilizes few-shot scaling. The resulting model achieves consistent, positive scaling and outperforms larger-parameter baselines on diverse vision-language tasks.

What Problem Does This Paper Address?

In-context learning (ICL) allows large models to adapt to new tasks purely through a few examples (shots) provided in the prompt, without updating any weights. While highly successful in text-only models, ICL is notoriously fragile in unified multimodal models—architectures designed to handle both visual understanding (e.g., visual question answering) and visual generation (e.g., image editing) within a shared token space.

When text and image tokens are densely interleaved, unified models suffer from cross-modal interference, role conflation, and context dilution. Consequently, their performance often scales non-monotonically: adding more example shots can actually confuse the model and destroy its accuracy. This paper addresses the lack of a systematic framework to diagnose, benchmark, and fix these few-shot scaling failures across different cognitive demands.

Methods

The authors tackle multimodal ICL instability through a combined data-driven and architectural approach:

  1. Capability-Oriented Taxonomy: Inspired by neurocognitive development, they categorize ICL tasks into six functional levels based on what the demonstrations contribute to the solution: Perception, Imitation, Conception, Deduction, Analogy, and Discernment.
  2. Task-Aligned Demonstration Retrieval: Instead of relying on raw visual similarity to pick prompt examples, they use two distinct assembly pipelines:
  3. Feature-Based Assembly: Uses a Determinantal Point Process (DPP) over multimodal embeddings to select examples that balance relevance and diversity.
  4. Intent-Based Assembly: Uses exact Boolean metadata matching to construct episodes for abstract, rule-based tasks.
  5. Context-Adaptive Prototype Modulator (CAPM): A lightweight, plug-and-play adapter for transformer layers. CAPM prevents flat self-attention from mixing up context by:
  6. Separating user instructions from assistant responses using segment-masked cross-attention.
  7. Compressing each demonstration into a compact, low-rank transformation token.
  8. Dynamically routing context using an adaptive attention temperature inferred from the episode itself.
  9. Injecting the modulated context back into the backbone via a multiplicative residual gate.
[Input Episode] ➔ [Decoupled Encoding] ➔ [Low-Rank Transformation] ➔ [Adaptive Routing] ➔ [Gated Injection]

Datasets

The paper introduces two core data resources:

  • UniICL-760K: A large-scale training corpus consisting of 766,868 carefully curated 8-shot ICL episodes across 15 subtasks. It is built from a mixture of validated scene-centric annotations (via models like SAM 2 and RAM++) and quality-controlled synthetic assets.
  • UniICL-Bench: A compact, cognitively structured diagnostic testbed containing 1,250 episodes across the six taxonomy levels to evaluate 0-to-8-shot behaviors, stability, and cross-modal generation.

The framework was also cross-validated on the external VL-ICL-Bench to ensure generalization.

Key Insights and Ideas

  • The Unification Tax: Unified models pay a steep stability price compared to specialized vision-language models. The shared token space causes severe cross-modal noise, which explains why generation ICL is uniformly weaker than understanding ICL across all baseline models.
  • Cognitive Load Dictates Scaling: Not all tasks scale the same way. Low-level Perception tasks (which have strong zero-shot priors) often degrade when given more shots due to visual distraction. Conversely, high-level inductive tasks like Conception and Analogy show massive gains as shot counts increase.
  • Data Builds Capability, Architecture Stabilizes It: Ablation studies revealed that the curated dataset (UniICL-760K) is the primary driver of raw performance gains, while the CAPM module acts as the critical stabilizer that prevents performance from collapsing in long, noisy contexts.

Key Results

  • Positive ICL Efficiency: UniICL was the only unified model to achieve positive ICL efficiency across both understanding (+16.9) and generation (+4.9), meaning its performance reliably improved as more examples were added.
  • Baseline Outperformance: UniICL achieved the highest average peak scores among unified models on UniICL-Bench. On understanding tasks, it matched or outperformed specialized, larger-parameter multimodal large language models (MLLMs) like Qwen3-VL-32B.
  • Superior Stability: Under context perturbations (randomly replacing or reordering examples), UniICL demonstrated remarkable robustness, showing an absolute performance variation of only 1.7% on understanding and 6.6% on generation, compared to the 10–12%+ drops seen in other unified models.

Limitations and Future Work

  • Fine-Grained Generation Bottleneck: Dense pixel-level manipulation tasks (like fine-grained image editing) remain highly vulnerable to context overload. While UniICL mitigates this better than baselines, complex spatial localization at high shot counts remains an open challenge.
  • Modality Limitations: The current framework and taxonomy are strictly limited to image-text data. The authors note that extending this to video and audio will require handling complex temporal dynamics and cross-modal synchronization.
  • Dependence on Foundation Models: The data curation pipeline relies heavily on upstream foundation models (e.g., GLM-4.5V, Qwen3), meaning any inherent biases in those models could be transferred to the UniICL dataset.

Summary updated

Abstract

In-context learning (ICL) enables fast task adaptation from demonstrations without per-task parameter updates but remains highly sensitive to example selection and formatting. In unified multimodal models spanning understanding and generation, this sensitivity is exacerbated by cross-modal interference and varying cognitive demands. Consequently, in-context learning efficacy is often non-monotonic and highly task-dependent. To diagnose these behaviors, we introduce a six-level Capability-Oriented Taxonomy that categorizes the functional role of demonstrations from basic perception to high-order discernment. Guided by this cognitive framework, we construct UniICL-760K, a large-scale corpus featuring curated 8-shot in-context learning episodes across 15 subtasks, alongside UniICL-Bench for rigorous, controlled evaluation. We show that this data-driven assembly is the primary source of our gains. As a complementary, lightweight stabilizer, we additionally propose the Context-Adaptive Prototype Modulator, a plug-and-play module that further improves few-shot stability. Evaluations on UniICL-Bench show that our approach yields highly competitive unified results, outperforming larger-parameter multimodal large language model baselines on most understanding in-context learning tasks. Data and code are available at https://github.com/xuyicheng-zju/UniICL.
BibTeX
@misc{xu2026uniicl,
  author = {Yicheng Xu and Jiangning Zhang and Zhucun Xue and Teng Hu and Ran Yi and Xiaobin Hu and Yong Liu and Dacheng Tao},
  title = {{UniICL: Systematizing Unified Multimodal In-context Learning through a Capability-Oriented Taxonomy}},
  year = {2026},
  eprint = {2603.24690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.24690},
}
Figure