atlas

Research map / Architectures and efficiency / Attention and transformers

Mimic In-Context Learning for Multimodal Tasks

CVPR 2025 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MimIC, lightweight per-head learnable shift vectors with query-dependent magnitude and layer-wise alignment loss that mimic in-context learning in LMMs without demonstrations at inference.

Problem

In-context learning in large multimodal models is highly sensitive to demonstration configurations and costly in context length; existing shift-vector methods use incomplete approximations of the ICD effect.

Approach

Derives that ICDs act as a shift on query hidden states after attention, and approximates this with per-attention-head learnable shift vectors scaled by a query-dependent magnitude from a linear layer, trained with a layer-wise alignment loss to match ICL hidden states.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace head-specific shift magnitudes with one magnitude shared across heads (ablation)MimIC on Idefics1 · VQAv2accuracy: 57.89 -> 59.64Hurt
replace head-specific shift magnitudes with one magnitude shared across heads (ablation)MimIC on Idefics1 · OK-VQAaccuracy: 50.86 -> 52.05Hurt
replace head-specific shift magnitudes with one magnitude shared across heads (ablation)MimIC on Idefics1 · COCO CaptionCIDEr: 111.98 -> 114.89Hurt
use a fixed shift magnitude instead of query-dependent magnitudes (ablation)MimIC on Idefics1 · VQAv2accuracy: 57.95 -> 59.64Hurt
use a fixed shift magnitude instead of query-dependent magnitudes (ablation)MimIC on Idefics1 · OK-VQAaccuracy: 50.94 -> 52.05Hurt
use a fixed shift magnitude instead of query-dependent magnitudes (ablation)MimIC on Idefics1 · COCO CaptionCIDEr: 112.48 -> 114.89Hurt
replace layer-wise L2 alignment loss with KL divergence (ablation)MimIC on Idefics1 · VQAv2L2 distance to 32-shot ICL: 32.13 -> 30.17Hurt
replace layer-wise L2 alignment loss with KL divergence (ablation)MimIC on Idefics1 · OK-VQAL2 distance to 32-shot ICL: 29.76 -> 28.25Hurt
train MimIC with fewer demonstrations (ablation)MimIC on Idefics1 · COCO CaptionCHAIRs: 5.57 -> 4.09Helped

Surprising findings

Limitations

Experimental setup

Datasets: VQAv2 OK-VQA COCO Caption

Benchmarks: VQAv2 OK-VQA COCO Caption

Metrics: accuracy CIDEr CHAIR recall L2 distance

Baselines: 32-shot ICL RICES Task Vector Function Vector LIVE LoRA Zero-shot

Builds on: Task Vector Function Vector LIVE LoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy