arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.15334cs.CVcs.AIcs.CLcs.LG
收藏

多模态任务向量实现多样本多模态上下文学习

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

IBM Research(IBM研究院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);University of California, Berkeley(加州大学伯克利分校)

Brandon Huang, Chancharik Mitra, Assaf Arbelle, Leonid Karlinsky, Trevor Darrell, Roei Herzig

AI总结:

本文提出利用多模态任务向量(MTV)将大量上下文示例压缩为紧凑隐式表示,使大型多模态模型在不微调且不增加推理上下文长度的前提下,有效实现多样本多模态上下文学习并能泛化至域外任务。

摘要:

交错大型多模态模型(LMMs)在少样本学习中的近期成功表明,使用大量示例进行上下文学习(ICL)在学习新任务方面具有潜力。然而,这种多样本多模态ICL设置存在一个关键问题:它从根本上受限于预训练时设定的模型上下文长度。该问题在同时处理文本和图像、需要额外token的多模态领域尤为突出。这促使我们需要一种多模态方法,能在不微调的情况下将多样本压缩为更少的token。在本研究中,我们通过利用多模态任务向量(MTV)——即压缩在模型注意力头中的上下文示例的紧凑隐式表示,使LMM能够执行多模态多样本上下文学习。具体而言,我们首先证明了此类MTV在LMM中的存在性,随后利用这些提取出的MTV为各种视觉-语言任务实现多样本上下文学习。实验表明,MTV的性能可随压缩样本数量增加而扩展,并能泛化至相似的域外任务,且推理时无需增加额外上下文长度。代码:https://github.com/Brandon3964/MultiModal-Task-Vector

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑