RoseLoRA:用于知识编辑和微调的预训练语言模型行列稀疏低秩自适应
RoseLoRA: Row and Column-wise Sparse Low-rank Adaptation of Pre-trained Language Model for Knowledge Editing and Fine-tuning
AI总结:
针对LoRA推理时更新所有参数阻碍知识编辑的问题,提出RoseLoRA方法,通过对低秩矩阵乘积施加行列稀疏约束仅更新任务最重要参数,在保持效率的同时于五个基准二十个数据集上显著提升微调与知识编辑性能。
摘要:
在大规模语料库上训练的预训练语言模型在各种NLP任务中展现出强大的泛化能力。针对特定任务对这些模型进行微调通常涉及更新所有参数,这非常消耗资源。参数高效微调(PEFT)方法,如流行的LoRA系列,引入低秩矩阵以高效地仅学习少量参数。然而,在推理期间,这些矩阵的乘积会更新所有预训练参数,这使得需要选择性更新的知识编辑等任务变得复杂。我们提出一种新颖的PEFT方法,即进行行列稀疏低秩自适应(RoseLoRA)来解决这一挑战。RoseLoRA仅识别并更新特定任务最重要的参数,在保持效率的同时保留其他模型知识。通过对低秩矩阵乘积添加稀疏约束并将其转化为行列稀疏,我们确保了高效且精确的模型更新。我们的理论分析保证了矩阵乘积稀疏性的下界。在跨二十个数据集的五个基准上的大量实验表明,RoseLoRA在一般微调和知识编辑任务上均优于基线。
英文摘要:
Pre-trained language models, trained on large-scale corpora, demonstrate strong generalizability across various NLP tasks. Fine-tuning these models for specific tasks typically involves updating all parameters, which is resource-intensive. Parameter-efficient fine-tuning (PEFT) methods, such as the popular LoRA family, introduce low-rank matrices to learn only a few parameters efficiently. However, during inference, the product of these matrices updates all pre-trained parameters, complicating tasks like knowledge editing that require selective updates. We propose a novel PEFT method, which conducts \textbf{r}ow and c\textbf{o}lumn-wise spar\textbf{se} \textbf{lo}w-\textbf{r}ank \textbf{a}daptation (RoseLoRA), to address this challenge. RoseLoRA identifies and updates only the most important parameters for a specific task, maintaining efficiency while preserving other model knowledge. By adding a sparsity constraint on the product of low-rank matrices and converting it to row and column-wise sparsity, we ensure efficient and precise model updates. Our theoretical analysis guarantees the lower bound of the sparsity with respective to the matrix product. Extensive experiments on five benchmarks across twenty datasets demonstrate that RoseLoRA outperforms baselines in both general fine-tuning and knowledge editing tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。