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

VeRA:基于向量的随机矩阵适配

VeRA: Vector-based Random Matrix Adaptation

University of Amsterdam(阿姆斯特丹大学);Qualcomm AI Research(高通人工智能研究院)

Dawid J. Kopiczko, Tijmen Blankevoort, Yuki M. Asano

AI总结:

本文提出VeRA方法,通过跨层共享低秩随机矩阵并仅学习小缩放向量,在保持LoRA性能的同时大幅减少可训练参数量,并在多个基准和指令微调任务中验证其有效性。

摘要:

低秩适配(LoRA)是一种流行的方法,可在微调大型语言模型时减少可训练参数的数量,但在扩展到更大模型或部署大量按用户或按任务适配的模型时,仍面临严峻的存储挑战。在本工作中,我们提出基于向量的随机矩阵适配(VeRA),与LoRA相比,它显著减少了可训练参数的数量,同时保持相同的性能。其实现方式是使用一对在所有层之间共享的低秩矩阵,并改为学习小的缩放向量。我们在GLUE和E2E基准、图像分类任务上证明了其有效性,并展示了其在7B和13B语言模型指令微调中的应用。

英文摘要:

Low-rank adapation (LoRA) is a popular method that reduces the number of trainable parameters when finetuning large language models, but still faces acute storage challenges when scaling to even larger models or deploying numerous per-user or per-task adapted models. In this work, we present Vector-based Random Matrix Adaptation (VeRA), which significantly reduces the number of trainable parameters compared to LoRA, yet maintains the same performance. It achieves this by using a single pair of low-rank matrices shared across all layers and learning small scaling vectors instead. We demonstrate its effectiveness on the GLUE and E2E benchmarks, image classification tasks, and show its application in instruction-tuning of 7B and 13B language models.

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

↑