arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.14933cs.CVcs.AIcs.CLcs.LG
收藏

多模态模型合并的实证研究

An Empirical Study of Multimodal Model Merging

UNC Chapel Hill(北卡罗来纳大学教堂山分校);Microsoft(微软);Apple AI/ML(苹果人工智能与机器学习部门)

Yi-Lin Sung, Linjie Li, Kevin Lin, Zhe Gan, Mohit Bansal, Lijuan Wang

AI总结:

本研究实证探索多模态模型合并,通过合并视觉、语言和跨模态Transformer构建参数高效的模态无关架构,提出距离度量并优化训练方案,在多项任务上显著超越朴素合并。

摘要:

模型合并(例如通过插值或任务算术)将针对不同任务训练的多个模型融合,以生成一个多任务解决方案。该技术在以往的研究中已被证明是成功的,其中模型是在相似任务和相同初始化条件下训练的。在本文中,我们将这一概念扩展到多模态设置,通过合并在不同模态上训练的Transformer。此外,我们针对一个新目标进行研究,即合并模态特定架构的视觉、语言和跨模态Transformer,以创建一个参数高效的模态无关架构。通过全面的实验,我们系统地研究了影响合并后模型性能的关键因素,包括初始化、合并机制和模型架构。我们还提出了两个度量指标,用于评估待合并权重之间的距离,并可作为合并结果的指示器。我们的分析得出了一种有效的训练方案,通过模型合并使性能匹配模态无关基线(即从头预训练)。我们的方法在各种任务上也显著优于朴素合并,在VQA上提升3%,在COCO检索上提升7%,在NLVR2上提升25%,在Flickr30k上提升14%,在ADE20k上提升3%。我们的代码可在 https://github.com/ylsung/vl-merging 获取。

英文摘要:

Model merging (e.g., via interpolation or task arithmetic) fuses multiple models trained on different tasks to generate a multi-task solution. The technique has been proven successful in previous studies, where the models are trained on similar tasks and with the same initialization. In this paper, we expand on this concept to a multimodal setup by merging transformers trained on different modalities. Furthermore, we conduct our study for a novel goal where we can merge vision, language, and cross-modal transformers of a modality-specific architecture to create a parameter-efficient modality-agnostic architecture. Through comprehensive experiments, we systematically investigate the key factors impacting model performance after merging, including initialization, merging mechanisms, and model architectures. We also propose two metrics that assess the distance between weights to be merged and can serve as an indicator of the merging outcomes. Our analysis leads to an effective training recipe for matching the performance of the modality-agnostic baseline (i.e., pre-trained from scratch) via model merging. Our method also outperforms naive merging significantly on various tasks, with improvements of 3% on VQA, 7% on COCO retrieval, 25% on NLVR2, 14% on Flickr30k and 3% on ADE20k. Our code is available at https://github.com/ylsung/vl-merging

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

↑