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

面向高效视觉-语言微调的记忆空间视觉提示

Memory-Space Visual Prompting for Efficient Vision-Language Fine-Tuning

School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);National Key Laboratory of General Artificial Intelligence(通用人工智能全国重点实验室)

Shibo Jie, Yehui Tang, Ning Ding, Zhi-Hong Deng, Kai Han, Yunhe Wang

AI总结:

针对视觉提示增加语言模型输入长度的问题,本文提出MemVP,将视觉提示与FFN权重拼接以注入知识,在多种VL任务上降低训练与推理开销并超越PEFT方法。

摘要:

当前高效构建大型视觉-语言(VL)模型的解决方案遵循两步范式:将预训练视觉编码器的输出投影到预训练语言模型的输入空间,作为视觉提示;随后通过端到端参数高效微调(PEFT)将模型迁移到下游VL任务。然而,该范式仍存在效率低下的问题,因为它显著增加了语言模型的输入长度。本文不同于将视觉提示整合到输入中的做法,而是将视觉提示视为促进语言模型处理与视觉信息相关任务的额外知识。受语言模型的前馈网络(FFN)充当“键值记忆”这一发现启发,我们提出了一种称为记忆空间视觉提示(MemVP)的新方法,其中视觉提示与FFN的权重拼接,以注入视觉知识。在多种VL任务和语言模型上的实验结果表明,MemVP显著减少了微调后VL模型的训练时间和推理延迟,并且性能超过了以往的PEFT方法。代码:https://github.com/JieShibo/MemVP

英文摘要:

Current solutions for efficiently constructing large vision-language (VL) models follow a two-step paradigm: projecting the output of pre-trained vision encoders to the input space of pre-trained language models as visual prompts; and then transferring the models to downstream VL tasks via end-to-end parameter-efficient fine-tuning (PEFT). However, this paradigm still exhibits inefficiency since it significantly increases the input length of the language models. In this paper, in contrast to integrating visual prompts into inputs, we regard visual prompts as additional knowledge that facilitates language models in addressing tasks associated with visual information. Motivated by the finding that Feed-Forward Network (FFN) of language models acts as "key-value memory", we introduce a novel approach termed memory-space visual prompting (MemVP), wherein visual prompts are concatenated with the weights of FFN for visual knowledge injection. Experimental results across various VL tasks and language models reveal that MemVP significantly reduces the training time and inference latency of the finetuned VL models and surpasses the performance of previous PEFT methods. Code: https://github.com/JieShibo/MemVP

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

↑