arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.15226cs.MMcs.CL
收藏

并非所有注意力都是必需的:面向多模态大语言模型的参数和计算高效迁移学习

Not All Attention is Needed: Parameter and Computation Efficient Transfer Learning for Multi-modal Large Language Models

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China(教育部多媒体可信感知与高效计算重点实验室);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究院)

Qiong Wu, Weihao Ye, Yiyi Zhou, Xiaoshuai Sun, Rongrong Ji

AI总结:

本文提出高效注意力跳过方法,通过减少冗余注意力计算提升多模态大语言模型的推理效率与性能。

摘要:

在本文中,我们提出了一种针对多模态大语言模型(MLLMs)的新参数和计算高效的微调方法,称为高效注意力跳过(EAS)。具体而言,我们首先揭示了多头注意力(MHAs),即MLLMs的主要计算开销,往往对下游任务来说是冗余的。基于这一观察,EAS评估注意力冗余性并跳过不重要的MHAs以加快推理速度。此外,我们还提出了一种新的信息传播适配器(PIA)以服务于EAS的注意力跳过,并保持参数效率,该适配器可以进一步重新参数化为前馈网络(FFNs)以实现零额外延迟。为了验证EAS,我们将其应用于最近提出的一种MLLM称为LaVIN和经典视觉语言预训练模型称为METER,并在一组基准测试上进行了广泛的实验。实验表明,EAS不仅保持了高性能和参数效率,还显著加快了推理速度。例如,LaVIN-EAS在ScineceQA上可以达到89.98%的准确率,同时将推理速度提升到LaVIN的2.2倍。

英文摘要:

In this paper, we propose a novel parameter and computation efficient tuning method for Multi-modal Large Language Models (MLLMs), termed Efficient Attention Skipping (EAS). Concretely, we first reveal that multi-head attentions (MHAs), the main computational overhead of MLLMs, are often redundant to downstream tasks. Based on this observation, EAS evaluates the attention redundancy and skips the less important MHAs to speed up inference. Besides, we also propose a novel propagation-of-information adapter (PIA) to serve the attention skipping of EAS and keep parameter efficiency, which can be further re-parameterized into feed-forward networks (FFNs) for zero-extra latency. To validate EAS, we apply it to a recently proposed MLLM called LaVIN and a classic VL pre-trained model called METER, and conduct extensive experiments on a set of benchmarks. The experiments show that EAS not only retains high performance and parameter efficiency, but also greatly speeds up inference speed. For instance, LaVIN-EAS can obtain 89.98\% accuracy on ScineceQA while speeding up inference by 2.2 times to LaVIN

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

↑