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:
- 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.
- Task-Aligned Demonstration Retrieval: Instead of relying on raw visual similarity to pick prompt examples, they use two distinct assembly pipelines:
- Feature-Based Assembly: Uses a Determinantal Point Process (DPP) over multimodal embeddings to select examples that balance relevance and diversity.
- Intent-Based Assembly: Uses exact Boolean metadata matching to construct episodes for abstract, rule-based tasks.
- Context-Adaptive Prototype Modulator (CAPM): A lightweight, plug-and-play adapter for transformer layers. CAPM prevents flat self-attention from mixing up context by:
- Separating user instructions from assistant responses using segment-masked cross-attention.
- Compressing each demonstration into a compact, low-rank transformation token.
- Dynamically routing context using an adaptive attention temperature inferred from the episode itself.
- 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