paper-with-me

Papers

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

2024-06-21 · Brandon Huang, Chancharik Mitra, Assaf Arbelle, Leonid Karlinsky, Trevor Darrell, Roei Herzig

The recent success of interleaved Large Multimodal Models (LMMs) in few-shot learning suggests that in-context learning (ICL) with many examples can be promising for learning new tasks. However, this many-shot multimodal ICL setting has one crucial problem: it is fundamentally limited by the model's context length set at pretraining. The problem is especially prominent in the multimodal domain, which processes both text and images, requiring additional tokens. This motivates the need for a multimodal method to compress many shots into fewer tokens without finetuning. In this work, we enable LMMs to perform multimodal, many-shot in-context learning by leveraging Multimodal Task Vectors (MTV) -- compact implicit representations of in-context examples compressed in the model's attention heads. Specifically, we first demonstrate the existence of such MTV in LMMs and then leverage these extracted MTV to enable many-shot in-context learning for various vision-and-language tasks. Our experiments suggest that MTV can scale in performance with the number of compressed shots and generalize to similar out-of-domain tasks without additional context length for inference. Code: https://github.com/Brandon3964/MultiModal-Task-Vector

📄 PDF Abstract BibTeX arXiv:2406.15334

Code (1)

brandon3964/multimodal-task-vector 공식 구현 pytorch

Tasks

Few-Shot LearningIn-Context Learning

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Differentially Private Multimodal In-Context Learning

2026-03-05 · Ivoline C. Ngong, Zarreen Reza, Joseph P. Near arxiv

Vision-language models are increasingly applied to sensitive domains such as medical imaging and personal photographs, yet existing differentially private methods for in-context learning are limited to few-shot, text-onl…

Where and What Matters: Sensitivity-Aware Task Vectors for Many-Shot Multimodal In-Context Learning

2025-11-11 · Ziyu Ma, Chenhui Gou, Yiming Hu, Yong Wang 외 arxiv

Large Multimodal Models (LMMs) have shown promising in-context learning (ICL) capabilities, but scaling to many-shot settings remains difficult due to limited context length and high inference cost. To address these chal…

Reinforcement Learning

Many-Shot In-Context Learning in Multimodal Foundation Models

2024-05-16 · Yixing Jiang, Jeremy Irvin, Ji Hun Wang, Muhammad Ahmed Chaudhry 외

Large language models are effective at few-shot in-context learning (ICL). Recent advancements in multimodal foundation models have enabled unprecedentedly long context windows, presenting an opportunity to explore their…

image-classificationImage ClassificationIn-Context LearningObject Localization

Multimodal Function Vectors for Visual Relations

2025-10-02 · Shuhao Fu, Esther Goldberg, Ying Nian Wu, Hongjing Lu arxiv

Large Multimodal Models (LMMs) demonstrate impressive in-context learning abilities from few multimodal demonstrations, yet the internal mechanisms supporting such task learning remain opaque. Building on prior work of L…

Relational Reasoning

Sparse Attention Vectors: Generative Multimodal Model Features Are Discriminative Vision-Language Classifiers

2024-11-28 · Chancharik Mitra, Brandon Huang, Tianning Chai, Zhiqiu Lin 외

Generative Large Multimodal Models (LMMs) like LLaVA and Qwen-VL excel at a wide variety of vision-language (VL) tasks such as image captioning or visual question answering. Despite strong performance, LMMs are not direc…

Image Captioningimage-classificationImage ClassificationMultiple-choice+3