atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning

NeurIPS 2024 · Vision-language and multimodal › Human and embodied modeling · approach: Multimodal retrieval-augmented modeling · 5 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.

Compresses many multimodal in-context examples into attention-head activation vectors (Multimodal Task Vectors, MTV) extracted via a REINFORCE-style head search, enabling many-shot ICL in LMMs without finetuning or extra context tokens.

Problem

Many-shot multimodal in-context learning is limited by LMM context length, since interleaved image tokens are expensive, and long-context inference is slow and memory-heavy.

Approach

Decouple task-vector extraction into (1) averaging last-token attention-head activations over many few-shot inference calls to encode many shots, and (2) separately searching for which heads to patch using a Bernoulli-policy REINFORCE-style procedure on format-matched downstream examples; the patched activations then replace head outputs at inference with no extra context tokens.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply MTV instead of zero-shot inferenceQwen-VL-7B · VizWiz validationaccuracy: 35.2 -> 45.6Helped
apply MTV instead of few-shot ICLIdefics2 · VizWiz validationaccuracy: 43.8 -> 52.5Helped
apply MTV instead of few-shot ICLVILA-1.5-8B · OK-VQA validationaccuracy: 36.5 -> 40.6Helped
apply MTV instead of few-shot ICLMANTIS-LLaMA3-8B · VizWiz validationaccuracy: 27.5 -> 51.0Helped
add MTV alongside 1-shot ICLQwen-VL-7B · Flowersaccuracy: 55.0 -> 78.1Helped
add MTV alongside 1-shot ICLVILA-1.5-8B · CUBaccuracy: 88.4 -> 89.7Helped
fine-tune shots by Facility Location instead of selecting random shots (ablation)QwenVL-7B + MTV · VizWiz validationaccuracy: 45.6 -> 58.1Helped
increase iterations from 100 to 200 at 25 shots per iteration (ablation)QwenVL-7B + MTV · VizWiz validationaccuracy: 56.4 -> 51.4Hurt
use 4 shots for 1 iteration to calculate mean activations (ablation)ViLA-1.5-8B + MTV · VizWiz validationaccuracy: 39.3 -> 57.4Helped
reuse attention heads extracted on VizWiz for OK-VQAViLA-1.5-8B + MTV · OK-VQA validationaccuracy: 36.5 -> 38.3Helped
encode 400 examples with MTV instead of using 16-shot ICLViLA-1.5-8B · VizWiz validationRuntime per 100 iterations (min): 3.3 -> 1.9Helped
encode 400 examples with MTV instead of using 16-shot ICLViLA-1.5-8B · VizWiz validationMax GPU Memory (GB): 20.6 -> 19.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: VizWiz OK-VQA Flowers CUB-200-2011 ChartQA TextVQA

Benchmarks: VizWiz OK-VQA Flowers CUB-200-2011 ChartQA TextVQA

Metrics: accuracy

Baselines: few-shot ICL (4-shot, 8-shot) Function Vectors Visual Task Vectors VizWiz finetuning Flamingo 9B BLIP3

Builds on: function vectors visual task vectors REINFORCE

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