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

在注意力中调优LayerNorm:迈向高效的多模态大语言模型微调

Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning

University of Edinburgh(爱丁堡大学);University of Chinese Academy of Sciences(中国科学院大学);Johns Hopkins University(约翰斯·霍普金斯大学);UC Santa Cruz(加州大学圣克鲁兹分校)

Bingchen Zhao, Haoqin Tu, Chen Wei, Jieru Mei, Cihang Xie

AI总结:

本研究提出仅调优注意力块中LayerNorm的高效多模态LLM微调策略,性能优于LoRA且参数与显存占用更低,还可结合对话数据选择性调优进一步提效,并分析了LayerNorm的作用机制。

摘要:

本文提出了一种将大语言模型(LLMs)转化为多模态大语言模型(MLLMs)的高效策略。通过将这一转化概念化为域适应过程,即从文本理解转向适配多种模态,我们饶有兴味地发现,在每个注意力块内,仅调优LayerNorm就足以实现优异性能。此外,与全参数微调或LoRA等其他调优方法相比,该方法在效率上优势显著。例如,在13B模型规模下与LoRA相比,其在五项多模态任务上的性能平均提升超过20%,同时可训练参数大幅减少41.9%,GPU内存使用量降低17.6%。在该LayerNorm策略的基础上,我们还证明仅选择性地用对话数据调优可进一步提升效率。除这些实证结果外,我们还开展了全面分析,探究LayerNorm在使LLMs适应多模态域及提升模型表达能力方面的作用。

英文摘要:

This paper introduces an efficient strategy to transform Large Language Models (LLMs) into Multi-Modal Large Language Models (MLLMs). By conceptualizing this transformation as a domain adaptation process, i.e., transitioning from text understanding to embracing multiple modalities, we intriguingly note that, within each attention block, tuning LayerNorm suffices to yield strong performance. Moreover, when benchmarked against other tuning approaches like full parameter finetuning or LoRA, its benefits on efficiency are substantial. For example, when compared to LoRA on a 13B model scale, performance can be enhanced by an average of over 20% across five multi-modal tasks, and meanwhile, results in a significant reduction of trainable parameters by 41.9% and a decrease in GPU memory usage by 17.6%. On top of this LayerNorm strategy, we showcase that selectively tuning only with conversational data can improve efficiency further. Beyond these empirical outcomes, we provide a comprehensive analysis to explore the role of LayerNorm in adapting LLMs to the multi-modal domain and improving the expressive power of the model.

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

↑