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

LoRA-XS:极少量参数的低秩自适应

LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters

Jagiellonian University(雅盖隆大学);EPFL(苏黎世联邦理工学院)

Klaudia Bałazy, Mohammadreza Banaei, Karl Aberer, Jacek Tabor

AI总结:

针对LoRA部署多模块时的存储与计算挑战,提出LoRA-XS,通过在预训练权重SVD冻结低秩矩阵间引入小型可训练矩阵,大幅减少参数并适配约束,在多基准上精度优于或匹配LoRA/VeRA,提升参数效率。

摘要:

大语言模型的发展凸显了参数高效微调的必要性。尽管LoRA广受欢迎,但在部署多个任务或用户特定模块时,它面临存储和计算挑战。为解决这一问题,我们提出LoRA-XS,一种由理论推导支持的新型微调方法。LoRA-XS通过在预训练权重奇异值分解(SVD)得到的冻结低秩矩阵之间引入一个小型可训练权重矩阵,大幅减少可训练参数。该设计使LoRA-XS在7B模型中比LoRA减少100倍以上的存储需求。此外,与其他方法不同,LoRA-XS对可训练参数没有下界限制——它可以从每个模块单个参数扩展到任意大的值,适应任何存储或计算约束。在不同模型规模的GLUE、GSM8K、MATH和常识推理基准上的评估表明,LoRA-XS在精度上持续优于或匹配LoRA和VeRA,提供无与伦比的参数效率。我们的消融研究强调了Transformer权重中奇异向量的重要性,确立LoRA-XS为大规模语言模型扩展和个性化的强大、存储高效的解决方案。

英文摘要:

The growth of large language models underscores the need for parameter-efficient fine-tuning. Despite its popularity, LoRA encounters storage and computational challenges when deploying multiple task- or user-specific modules. To address this, we introduce LoRA-XS, a novel fine-tuning method backed by a theoretical derivation. LoRA-XS drastically reduces trainable parameters by incorporating a small, trainable weight matrix between frozen low-rank matrices derived from the Singular Value Decomposition of pre-trained weights. This design enables LoRA-XS to reduce storage requirements by over 100x in 7B models compared to LoRA. Additionally, unlike other methods, LoRA-XS imposes no lower bound on trainable parameters - it can scale from a single parameter per module to arbitrarily large values, adapting to any storage or computational constraint. Evaluations on GLUE, GSM8K, MATH, and commonsense reasoning benchmarks across different model scales reveal that LoRA-XS consistently outperforms or matches LoRA and VeRA in accuracy, offering unmatched parameter efficiency. Our ablation studies highlight the significance of singular vectors in transformer weights, establishing LoRA-XS as a powerful, storage-efficient solution for scaling and personalizing large language models.

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

↑