PMSS:用于LLM微调的预训练矩阵骨架选择
PMSS: Pretrained Matrices Skeleton Selection for LLM Fine-tuning
AI总结:
提出PMSS方法,通过从预训练权重矩阵选择骨架并仅学习小矩阵,以低成本实现高秩更新,在DROP和数学推理等复杂任务上显著优于LoRA。
摘要:
低秩适应(LoRA)及其变体近期因其能避免过高的推理开销而备受关注。然而,LoRA仍面临以下挑战:(1)低秩假设的局限性;以及(2)其初始化方法可能不够最优。为此,我们提出PMSS(Pre-trained Matrices Skeleton Selection,预训练矩阵骨架选择),它以低成本实现高秩更新,同时利用预训练权重中固有的语义和语言信息。该方法通过从预训练权重矩阵中选择骨架,并仅学习一个小矩阵来实现。实验表明,PMSS在各项任务中优于LoRA及其他微调方法,且可训练参数少得多。我们证明了其有效性,特别是在处理复杂任务时,如DROP基准(在LLaMA2-7B/13B上+3.4%/+5.9%)和数学推理(在GSM8K上,LLaMA2-7B、Mistral-7B和Gemma-7B分别+12.89%/+5.61%/+3.11%)。代码和模型即将发布。
英文摘要:
Low-rank adaptation (LoRA) and its variants have recently gained much interest due to their ability to avoid excessive inference costs. However, LoRA still encounters the following challenges: (1) Limitation of low-rank assumption; and (2) Its initialization method may be suboptimal. To this end, we propose PMSS(Pre-trained Matrices Skeleton Selection), which enables high-rank updates with low costs while leveraging semantic and linguistic information inherent in pre-trained weight. It achieves this by selecting skeletons from the pre-trained weight matrix and only learning a small matrix instead. Experiments demonstrate that PMSS outperforms LoRA and other fine-tuning methods across tasks with much less trainable parameters. We demonstrate its effectiveness, especially in handling complex tasks such as DROP benchmark(+3.4%/+5.9% on LLaMA2-7B/13B) and math reasoning(+12.89%/+5.61%/+3.11% on LLaMA2-7B, Mistral-7B and Gemma-7B of GSM8K). The code and model will be released soon.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。