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

M²IV:通过表示工程实现高效且细粒度的多模态上下文学习

M$^2$IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineering

Brown University(布朗大学);University of Warwick(沃里克大学);Samsung US(三星美国分公司);Boston University(波士顿大学);University of Alabama at Birmingham(阿拉巴马大学伯明翰分校);Rutgers University(罗格斯大学)

Yanshu Li, Yi Cao, Hongyang He, Qisen Cheng, Xiang Fu, Xi Xiao, Tianyang Wang, Ruixiang Tang

AI总结:

针对多模态上下文学习中标记密集和跨模态推理复杂的问题,提出M²IV表示工程方法,用可学习向量替代演示标记,结合训练策略提升性能并减少开销,还引入VLibrary支持灵活应用。

摘要:

多模态上下文学习(ICL)使大型视觉语言模型(LVLMs)能够通过多个用户提供的演示适应新任务,无需任何模型参数更新。然而,其有效性受限于多模态输入的标记密集特性和跨模态少样本推理的复杂性,这两者共同阻碍了LVLMs从演示中提取有用模式。为应对这些挑战,我们提出M²IV,一种新颖的表示工程方法,用一组可学习的多模态上下文向量替代显式的标记级演示,直接注入LVLMs的残差流中。通过分析多头注意力(MHA)和多层感知器(MLP)在ICL过程中的不同作用,我们设计了一种训练策略,使M²IV能够执行细粒度的语义蒸馏和鲁棒的跨模态表示学习。M²IV不仅在不同任务和LVLMs上提高了性能,还显著减少了标记开销,实现了向多示例场景的平滑扩展。为进一步提升可用性,我们引入VLibrary,一个存储训练好的M²IV的仓库,用于灵活检索和注入。借助VLibrary,用户可以以定制方式引导预训练的LVLMs,满足多样化需求。大量实验表明,M²IV持续优于普通ICL和先前的表示工程基线,平均准确率提升3.74%,整体效率大幅提高。

英文摘要:

Multimodal in-context learning (ICL) equips Large Vision-language Models (LVLMs) with the ability to adapt to new tasks via multiple user-provided demonstrations, without requiring any model parameter updates. However, its effectiveness is constrained by the token-intensive nature of multimodal inputs and the complexity of cross-modal few-shot reasoning, which together hinder LVLMs from extracting useful patterns from demonstrations. To address these challenges, we propose \textbf{M$^2$IV}, a novel representation engineering approach that replaces explicit token-level demonstrations with a set of learnable Multimodal In-context Vectors directly injected into the residual streams of LVLMs. By analyzing the distinct roles of multi-head attention (MHA) and multi-layer perceptrons (MLP) in the ICL process, we design a training strategy that enables M$^2$IV to perform fine-grained semantic distillation and robust cross-modal representation learning. M$^2$IV not only improves performance across diverse tasks and LVLMs but also significantly reduces token overhead, enabling graceful scaling to many-shot scenarios. To further enhance usability, we introduce \textbf{VLibrary}, a repository that stores trained M$^2$IVs for flexible retrieval and injection. With VLibrary, users can steer pre-trained LVLMs in a customized manner that meets diverse requirements. Extensive experiments demonstrate that M$^2$IV consistently outperforms vanilla ICL and prior representation engineering baselines, achieving an average accuracy gain of 3.74\% with substantial improvements in overall efficiency.

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

↑