arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.07873cs.LGcs.AI
收藏

乘法正交序列编辑用于语言模型

Multiplicative Orthogonal Sequential Editing for Language Models

Hao-Xiang Xu, Jun-Yu Ma, Ziqi Peng, Yuhao Sun, Zhen-Hua Ling, Jia-Chen Gu

AI总结:

MOSE通过乘法正交矩阵编辑方法提升语言模型的序列编辑性能,同时保持一般能力。

摘要:

知识编辑旨在高效地修改大型语言模型(LLMs)的内部知识,而不影响其其他能力。现有的编辑范式,即在原始参数矩阵后附加一个更新矩阵,已被一些研究证明会损害关键的数值稳定性指标(如条件数和范数),从而降低编辑性能和一般能力,尤其是在序列编辑场景中。尽管后续方法取得了一些改进,但它们仍局限于加法框架,尚未从根本上解决这一限制。为了解决这个问题,我们从统计和数学两个角度分析,并得出结论,将原始矩阵乘以一个正交矩阵不会改变矩阵的数值稳定性。受此启发,不同于之前的加法编辑范式,提出了一种称为乘法正交序列编辑(MOSE)的乘法编辑范式。具体来说,我们首先推导出乘法形式的矩阵更新,新的知识随后被纳入一个正交矩阵中,该矩阵乘以原始参数矩阵。这样,编辑后的矩阵的数值稳定性保持不变,从而保持编辑性能和一般能力。我们比较了MOSE与几种当前的知识编辑方法,系统评估了它们对编辑性能和一般能力在三种不同LLMs上的影响。实验结果表明,MOSE有效限制了编辑参数矩阵中的偏差,并保持其数值稳定性。与当前方法相比,MOSE在序列编辑性能上提高了12.08%,而在下游任务上保留了95.73%的一般能力。代码可在https://github.com/famoustourist/MOSE上获得。

英文摘要:

Knowledge editing aims to efficiently modify the internal knowledge of large language models (LLMs) without compromising their other capabilities. The prevailing editing paradigm, which appends an update matrix to the original parameter matrix, has been shown by some studies to damage key numerical stability indicators (such as condition number and norm), thereby reducing editing performance and general abilities, especially in sequential editing scenario. Although subsequent methods have made some improvements, they remain within the additive framework and have not fundamentally addressed this limitation. To solve this problem, we analyze it from both statistical and mathematical perspectives and conclude that multiplying the original matrix by an orthogonal matrix does not change the numerical stability of the matrix. Inspired by this, different from the previous additive editing paradigm, a multiplicative editing paradigm termed Multiplicative Orthogonal Sequential Editing (MOSE) is proposed. Specifically, we first derive the matrix update in the multiplicative form, the new knowledge is then incorporated into an orthogonal matrix, which is multiplied by the original parameter matrix. In this way, the numerical stability of the edited matrix is unchanged, thereby maintaining editing performance and general abilities. We compared MOSE with several current knowledge editing methods, systematically evaluating their impact on both editing performance and the general abilities across three different LLMs. Experimental results show that MOSE effectively limits deviations in the edited parameter matrix and maintains its numerical stability. Compared to current methods, MOSE achieves a 12.08% improvement in sequential editing performance, while retaining 95.73% of general abilities across downstream tasks. The code is available at https://github.com/famoustourist/MOSE.

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

↑