arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.05109cs.CV
收藏

面向多模态统一模型的轻量级上下文内调优

Lightweight In-Context Tuning for Multimodal Unified Models

The Chinese University of Hong Kong(香港中文大学);Amazon Web Services(亚马逊云科技)

Yixin Chen, Shuai Zhang, Boran Han, Jiaya Jia

AI总结:

针对多模态模型上下文学习能力弱的问题,提出轻量级模块M$^2$IXT,通过可扩展上下文窗口和混合任务训练,仅用少量数据即可显著提升多种多模态模型的少样本性能,参数规模远小于同类方法。

摘要:

上下文学习(ICL)指基于给定的上下文示例进行推理的过程。随着模态数量增加,交错的输入模态会让理解过程更复杂,这一流程也变得更具挑战性。一个典型表现是,多模态模型通常难以有效从上下文示例中泛化以完成ICL。为解决这些挑战,我们提出多模态上下文内调优(MultiModal In-conteXt Tuning,M$^2$IXT),这是一种用于增强多模态统一模型ICL能力的轻量级模块。所提出的M$^2$IXT模块具备可扩展的上下文窗口,可纳入多种模态(如文本、图像和坐标)的各类带标注示例。它可前置在不同架构的多种多模态统一模型(如OFA、Unival、LLaVA)上,并通过混合任务策略训练,实现跨多个任务和数据集的快速少样本适配。仅用5万条多模态数据调优时,M$^2$IXT就能显著提升少样本ICL性能(例如OFA的性能相对提升18%),在视觉问答、图像描述、视觉定位、视觉蕴含等一系列任务上取得了最优结果,同时模型参数量极小(例如比Flamingo或MMICL小约20倍),凸显了M$^2$IXT作为多模态上下文学习器的灵活性与有效性。

英文摘要:

In-context learning (ICL) involves reasoning from given contextual examples. As more modalities comes, this procedure is becoming more challenging as the interleaved input modalities convolutes the understanding process. This is exemplified by the observation that multimodal models often struggle to effectively extrapolate from contextual examples to perform ICL. To address these challenges, we introduce MultiModal In-conteXt Tuning (M$^2$IXT), a lightweight module to enhance the ICL capabilities of multimodal unified models. The proposed M$^2$IXT module perceives an expandable context window to incorporate various labeled examples of multiple modalities (e.g., text, image, and coordinates). It can be prepended to various multimodal unified models (e.g., OFA, Unival, LLaVA) of different architectures and trained via a mixed-tasks strategy to enable rapid few-shot adaption on multiple tasks and datasets. When tuned on as little as 50K multimodal data, M$^2$IXT can boost the few-shot ICL performance significantly (e.g., 18\% relative increase for OFA), and obtained state-of-the-art results across an array of tasks including visual question answering, image captioning, visual grounding, and visual entailment, while being considerably small in terms of model parameters (e.g., $\sim$$20\times$ smaller than Flamingo or MMICL), highlighting the flexibility and effectiveness of M$^2$IXT as a multimodal in-context learner.

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

↑