arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10785cs.CLcs.AI
收藏

ShareLoRA:通过共享低秩适配实现参数高效且鲁棒的大语言模型微调

ShareLoRA: Parameter Efficient and Robust Large Language Model Fine-tuning via Shared Low-Rank Adaptation

UC Irvine(uci大学);VMware Research(vmware研究院)

Yurun Song, Junchen Zhao, Ian G. Harris, Sangeetha Abdu Jyothi

AI总结:

该研究提出ShareLoRA共享低秩适配微调技术,通过跨层共享低秩矩阵大幅减少可训练参数与内存开销,在多种模型和任务中性能优于标准LoRA,兼具高效性、鲁棒性与持续适配能力。

摘要:

本文提出了共享低秩适配(Shared Low-Rank Adaptation,ShareLoRA),这是一种大语言模型(LLM)微调技术,能够在不牺牲性能的前提下平衡参数效率、适配性与鲁棒性。通过在不同层间策略性地共享低秩权重矩阵,ShareLoRA的可训练参数较标准LoRA减少了44%至96%,同时显著降低了内存开销。这种效率增益随模型规模扩大而提升,使得ShareLoRA在资源受限环境中尤其具有优势。重要的是,ShareLoRA不仅能维持模型性能,还在RoBERTa、GPT-2以及LLaMA系列(1、2、3代)等多种模型的分类和生成任务中均表现出鲁棒性。它在零样本、少样本和持续微调场景下始终优于LoRA,平均准确率提升最高达1.2%,且跨领域泛化能力更强。在持续学习设置中,ShareLoRA在GSM8K上的准确率高出1.2%,在HumanEval上高出0.6%,在MMLU和MMLU-Pro上均高出0.5%。我们的结果表明,ShareLoRA支持高质量微调,同时在不同模型规模和多样化任务中具备强泛化性与持续适配能力。

英文摘要:

In this paper, we introduce \textbf{Share}d \textbf{Lo}w \textbf{R}ank \textbf{A}daptation (ShareLoRA), a Large Language Model (LLM) fine-tuning technique that balances parameter efficiency, adaptability, and robustness without compromising performance. By strategically sharing the low-rank weight matrices across different layers, ShareLoRA achieves 44\% to 96\% reduction in trainable parameters compared to standard LoRA, alongside a substantial decrease in memory overhead. This efficiency gain scales with model size, making ShareLoRA particularly advantageous for resource-constrained environments. Importantly, ShareLoRA not only maintains model performance but also exhibits robustness in both classification and generation tasks across diverse models, including RoBERTa, GPT-2, and LLaMA series (1, 2, and 3). It consistently outperforms LoRA in zero-shot, few-shot, and continual fine-tuning scenarios, achieving up to 1.2\% average accuracy improvement, and enhanced generalization across domains. In continual learning settings, ShareLoRA achieves 1.2\% higher accuracy on GSM8K, 0.6\% on HumanEval, and 0.5\% on both MMLU and MMLU-Pro. Our results demonstrate that ShareLoRA supports high-quality fine-tuning while offering strong generalization and continual adaptation across various model scales and diverse tasks.

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

↑