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

ADEM-VL:面向高效视觉-语言调优的自适应嵌入式融合

ADEM-VL: Adaptive and Embedded Fusion for Efficient Vision-Language Tuning

School of Information and Electronics, Beijing Institute of Technology(北京理工大学信息与电子学院);School of Cyber Science and Technology, Sun Yat-sen University(中山大学网络空间安全学院);School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院)

Zhiwei Hao, Jianyuan Guo, Li Shen, Yong Luo, Han Hu, Yonggang Wen

AI总结:

ADEM-VL提出一种基于无参数交叉注意力的高效视觉-语言调优方法,通过多尺度特征生成和自适应融合减少可训练参数与计算开销,在多个多模态任务上以更低延迟超越现有方法。

摘要:

近年来,多模态融合的最新进展见证了视觉-语言(VL)模型的显著成功,这些模型在图像描述和视觉问答等多种多模态应用中表现出色。然而,构建VL模型需要大量的硬件资源,其效率受到两个关键因素的限制:语言模型输入序列因视觉特征而变长,需要更多的计算操作;大量额外的可学习参数增加了内存复杂度。这些挑战严重限制了此类模型的更广泛应用。为了弥合这一差距,我们提出了ADEM-VL,这是一种高效的视觉-语言方法,通过在多模态融合中采用无参数交叉注意力机制进行相似性度量,基于预训练大语言模型(LLMs)来调优VL模型。该方法只需将视觉特征嵌入到语言空间中,显著减少了可训练参数的数量,并加快了训练和推理速度。为了增强融合模块中的表示学习,我们引入了一种高效的多尺度特征生成方案,该方案只需对视觉编码器进行一次前向传播。此外,我们提出了一种自适应融合方案,根据每个文本token的注意力分数动态丢弃相关性较低的视觉信息。这确保了融合过程优先考虑最相关的视觉特征。通过在视觉问答、图像描述和指令跟随等多种任务上的实验,我们证明了我们的框架优于现有方法。具体而言,我们的方法在ScienceQA数据集上的平均准确率比现有方法高出0.77%,同时降低了训练和推理延迟,证明了我们框架的优越性。代码可在https://github.com/Hao840/ADEM-VL获取。

英文摘要:

Recent advancements in multimodal fusion have witnessed the remarkable success of vision-language (VL) models, which excel in various multimodal applications such as image captioning and visual question answering. However, building VL models requires substantial hardware resources, where efficiency is restricted by two key factors: the extended input sequence of the language model with vision features demands more computational operations, and a large number of additional learnable parameters increase memory complexity. These challenges significantly restrict the broader applicability of such models. To bridge this gap, we propose ADEM-VL, an efficient vision-language method that tunes VL models based on pretrained large language models (LLMs) by adopting a parameter-free cross-attention mechanism for similarity measurements in multimodal fusion. This approach only requires embedding vision features into the language space, significantly reducing the number of trainable parameters and accelerating both training and inference speeds. To enhance representation learning in fusion module, we introduce an efficient multiscale feature generation scheme that requires only a single forward pass through the vision encoder. Moreover, we propose an adaptive fusion scheme that dynamically discards less relevant visual information for each text token based on its attention score. This ensures that the fusion process prioritizes the most pertinent visual features. With experiments on various tasks including visual question answering, image captioning, and instruction-following, we demonstrate that our framework outperforms existing approaches. Specifically, our method surpasses existing methods by an average accuracy of 0.77% on ScienceQA dataset, with reduced training and inference latency, demonstrating the superiority of our framework. The code is available at https://github.com/Hao840/ADEM-VL.

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

↑