提出乘法正交编辑方法,提升大模型知识修改的稳定性与效果。
Multiplicative Orthogonal Sequential Editing for Language Models
- 用正交矩阵乘法替代加法更新参数,保持数值稳定性。
- 顺序编辑性能提升12.08%,通用能力保留95.73%。
- 适合需要多轮知识更新且不希望性能下降的场景。
知识编辑旨在高效修改大语言模型(LLMs)的内部知识,同时不损害其其他能力。现有编辑范式通过在原始参数矩阵上叠加更新矩阵实现,但研究发现该方法会破坏关键数值稳定性指标(如条件数和范数),导致编辑性能和泛化能力下降,尤其在序列编辑中更为明显。尽管后续方法有所改进,仍局限于加法框架,未根本解决此问题。本文从统计与数学角度分析,证明将原矩阵与正交矩阵相乘不会改变其数值稳定性。据此提出新的乘法编辑范式——乘法正交序列编辑(MOSE)。具体地,推导出乘法形式的矩阵更新,将新知识融入正交矩阵,并与原参数矩阵相乘。该方法确保编辑后矩阵的数值稳定性不变,从而维持编辑性能与通用能力。在三种不同大语言模型上对比多个当前方法,系统评估其对编辑性能与下游任务通用能力的影响。实验表明,MOSE有效控制参数矩阵偏差,保持数值稳定性;相比现有方法,序列编辑性能提升12.08%,下游任务通用能力保留95.73%。代码已开源:https://github.com/famoustourist/MOSE。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。